minor fixes about translatable help files in markdown

This commit is contained in:
jean-pierre charras 2019-10-01 09:56:35 +02:00
parent aad28a3d3c
commit 9339afcc26
5 changed files with 16 additions and 7 deletions

View File

@ -7,9 +7,18 @@ file( READ ${inputFile} buffer )
file( WRITE ${outputFile} "// Do not edit this file, it is autogenerated by CMake from an .md file\n" ) file( WRITE ${outputFile} "// Do not edit this file, it is autogenerated by CMake from an .md file\n" )
# Replace each "\" char by "\\". the \ is found in .md files
# to prepend some chars that usually control chars
STRING( REGEX REPLACE "\\\\" "\\\\\\\\" linea ${buffer} )
# Replace each EOL char by "\n" + " + EOL # Replace each EOL char by "\n" + " + EOL
STRING(REGEX REPLACE "\"" "\\\\\"" linem ${buffer}) STRING( REGEX REPLACE "\"" "\\\\\"" linem ${linea} )
STRING(REGEX REPLACE "\n" "\\\\n\"\n\"" buff_m ${linem})
# create the full string compatible "C":
# _HKI( "<md string>"\n
# to make it translatable. We use here the marker _HKI because
# the translation will be explicitely called in Kicad code
STRING( REGEX REPLACE "\n" "\\\\n\"\n\"" buff_m ${linem} )
# Write the buffer between quotes # Write the buffer between quotes
file( APPEND ${outputFile} "_HKI( \"" ${buff_m} "\" )\n" ) file( APPEND ${outputFile} "_HKI( \"" ${buff_m} "\" )\n" )

View File

@ -1,5 +1,5 @@
### Bridged tee attenuator: ### Bridged tee attenuator:
__Zin__ desired input impedance in &#8486;<br> __Zin__ desired input impedance in &#x2126;<br>
__Zout__ desired output impedance<br> __Zout__ desired output impedance<br>
__Z<sub>0</sub> = Zin = Zout__<br><br> __Z<sub>0</sub> = Zin = Zout__<br><br>

View File

@ -1,5 +1,5 @@
## Pi attenuator ## Pi attenuator
__Zin__ desired input impedance in &#8486;<br> __Zin__ desired input impedance in &#x2126;<br>
__Zout__ desired output impedance<br> __Zout__ desired output impedance<br>
__Zin = Zout__<br><br> __Zin = Zout__<br><br>

View File

@ -1,7 +1,7 @@
## Splitted attenuator ## Splitted attenuator
### Attenuation is 6dB ### Attenuation is 6dB
___Z<sub>in</sub>___ desired input impedance in &#8486;<br> ___Z<sub>in</sub>___ desired input impedance in &#x2126;<br>
___Z<sub>out</sub>___ desired output impedance in &#8486;<br> ___Z<sub>out</sub>___ desired output impedance in &#x2126;<br>
___Z<sub>in</sub> = Z<sub>out</sub>___ ___Z<sub>in</sub> = Z<sub>out</sub>___
___R1 = R2 = R3 = Z<sub>out</sub>/3___ ___R1 = R2 = R3 = Z<sub>out</sub>/3___

View File

@ -1,5 +1,5 @@
## Tee attenuator ## Tee attenuator
__Zin__ desired input impedance in &#8486;<br> __Zin__ desired input impedance in &#x2126;<br>
__Zout__ desired output impedance<br> __Zout__ desired output impedance<br>
__Zin = Zout__<br><br> __Zin = Zout__<br><br>