minor fixes about translatable help files in markdown
This commit is contained in:
parent
aad28a3d3c
commit
9339afcc26
|
@ -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" )
|
||||
|
||||
# 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
|
||||
STRING(REGEX REPLACE "\"" "\\\\\"" linem ${buffer})
|
||||
STRING(REGEX REPLACE "\n" "\\\\n\"\n\"" buff_m ${linem})
|
||||
STRING( REGEX REPLACE "\"" "\\\\\"" linem ${linea} )
|
||||
|
||||
# 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
|
||||
file( APPEND ${outputFile} "_HKI( \"" ${buff_m} "\" )\n" )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
### Bridged tee attenuator:
|
||||
__Zin__ desired input impedance in Ω<br>
|
||||
__Zin__ desired input impedance in Ω<br>
|
||||
__Zout__ desired output impedance<br>
|
||||
__Z<sub>0</sub> = Zin = Zout__<br><br>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Pi attenuator
|
||||
__Zin__ desired input impedance in Ω<br>
|
||||
__Zin__ desired input impedance in Ω<br>
|
||||
__Zout__ desired output impedance<br>
|
||||
__Zin = Zout__<br><br>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## Splitted attenuator
|
||||
### Attenuation is 6dB
|
||||
___Z<sub>in</sub>___ desired input impedance in Ω<br>
|
||||
___Z<sub>out</sub>___ desired output impedance in Ω<br>
|
||||
___Z<sub>in</sub>___ desired input impedance in Ω<br>
|
||||
___Z<sub>out</sub>___ desired output impedance in Ω<br>
|
||||
___Z<sub>in</sub> = Z<sub>out</sub>___
|
||||
|
||||
___R1 = R2 = R3 = Z<sub>out</sub>/3___
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Tee attenuator
|
||||
__Zin__ desired input impedance in Ω<br>
|
||||
__Zin__ desired input impedance in Ω<br>
|
||||
__Zout__ desired output impedance<br>
|
||||
__Zin = Zout__<br><br>
|
||||
|
||||
|
|
Loading…
Reference in New Issue