Hello Juan Rafael,
I gave it a try.
I already encountered a bug:
macro.tex, line 14, contains:
\xml*{table width="100%" cellpadding=0 cellspacing=2}\xml{tr}
the '%' here is quite disturbing for the TeX parser, which consider the
end of the line as a comment, thus miss a closing }, and thus spend most
of its time on is_closed and cannot separate paragraphs for the following
files.
I will have to add another category of commands.
Does the xml command behave like a verbatim block?
What appens if there is an end of line inside an xml command argument? (is
it reproduced in the output document?)
But anyway, after removing the % sign (or change it to
PERCENT_SIGN_TO_RESTORE not to forgot it), I could use the tex files.
Here is the command I use (in the fr directory, after executing the
all-in-one.sh script):
TEXINPUTS=/usr/share/texmf/tex/latex/base \
PERLLIB=/home/fzt/sources/po4a/cvs/lib \
/home/fzt/sources/po4a/cvs/po4a-gettextize -f latex -m book.tex \
-p freeduc.pot -o exclude_include=content-fr:application-fr \
-M ISO-8859-1
Some explanations:
TEXINPUTS: needed because of the book documentclass.
documentclass files are read because they are allowed to contain
"% po4a:" line for the po4a parser.
=>I will change this in order to just warn if the document class is not
found.
PERLLIB: not needed if po4a is installed. I wanted to test cvs version
(currently equal to the released one)
-f latex: use the LaTeX parser
-m book.tex: indicate the parser to use this document as input. It will
find the other included document (i.e. granules and other files)
-p freeduc.pot: the generated PO file
-o exclude_include=content-fr:application-fr:
book.tex contains a \input{content-fr}, but I could not find or
generate it. So I indicated po4a that it should not try to include it
on the fly.
-M ISO-8859-1
I also added the following lines in macro.tex file:
% po4a: environment ifhtml push_environment
% po4a: environment iftex push_environment
The freeduc.pot PO file was generated without any more difficulty.
I will now start adding "%po4a: command" line to describe the behavior of
the unknown commands.
I will send the diff with the macro.tex file once it will be ready.
Then I will have a look at the differences between the french book.pdf and
the one translated by po4a (without translation, so still in French).
Kind Regards,
--
Nekral