Support for reST (reStructuredText)
by Christian Ziemski
Hi!
I'm using Po4a for maintenance of reST(reStructuredText) formatted
documents.
The format "text" is almost working fine here but has problems with some
of reST's specials.
So I patched Text.pm to get it working, at least for me.
Since I'm new to Po4a (and to this list) and not fluent in Perl
it may not be a perfect solution, but anyway:
Is there any interest in the patch (it's against version 0.42)?
Regards
Christian
6 years, 8 months
ignore lines in Tex
by Felix Dietze
Hi,
I'm using po4a to translate this LaTeX document:
https://github.com/iuf/rulebook/blob/master/src/iuf-rulebook.tex
It works well, but my translators get confused by the latex-commands
they see in the strings:
#. type: Plain text
#: ./src/iuf-rulebook.tex:11
msgid "\\textwidth=14.7cm \\textheight=22.1cm"
msgstr ""
#. \usepackage[nenglish]{babel}
#. type: Plain text
#: ./src/iuf-rulebook.tex:22
msgid "\\setlist{itemsep=-1mm, topsep=-1pt, partopsep=0pt}"
msgstr ""
#. turning off part numbering in the backmatter
#. parts will still go to the TOC
#. type: Plain text
#: ./src/iuf-rulebook.tex:28
msgid "\\g@addto@macro\\backmatter{\\setcounter{secnumdepth}{-2}} \\makeatother"
msgstr ""
#. prettier TOC
#. use 'KOMAlike" if you don't want dots
#. type: Plain text
#: ./src/iuf-rulebook.tex:42
msgid ""
"\\usetocstyle{allwithdot} \\settocstylefeature [-1] {entryvskip} {15pt} "
"\\settocstylefeature [0] {entryvskip} {10pt} \\settocstylefeature [0] "
"{entryhook} {\\hspace{18pt} }"
msgstr ""
#. if a part only has a single chapter in it use \singlechapter{}
otherwise use the normal \chapter{}
#. type: Plain text
#: ./src/iuf-rulebook.tex:48
msgid ""
"\\singlechapter[1]{\\begin{mtchideinmaintoc} \\addstarredchapter{#1} "
"\\chapter*{#1} \\end{mtchideinmaintoc}}"
msgstr ""
Is there a way to exclude lines from the translation?
Thank you
Felix
6 years, 9 months