Hello,
Welcome to this mailing list.
On Thu, 17 Mar 2005, Jean-Michel POURE wrote:
First of all, thanks for this great work on po4a.
Many thanks :)
[...]
I am trying to use po4a to translate the docbook XML source files.
The command line is :
po4a-gettextize -M utf-8 -f docbook \
-m introduction.docbook -p introduction.pot
It works well, except for dbhtml XML extensions.
For example, the following text is not parsed :
************************************************************************************
<chapter id="introduction">
<? dbhtml filename="introduction.html" ?>
<title>Introduction</title>
<section><title>Les origines de l'étude</title>
************************************************************************************
But the following text is parsed like a charm :
************************************************************************************
<chapter id="introduction">
<title>Introduction</title>
<section><title>Les origines de l'étude</title>
************************************************************************************
I tried to send options to the parser using -o, but did not succeed. Any
solution to skip <? dbhtml filename="introduction.html" ?> ?
The processing instructions ( <? ... ?> ) aren't currently defined in the
XML parser, so it simply breaks when it finds them. I think I'll try to
simply ignore them, because I don't know of any case of translateable
strings inside of them.
I'll commit a patch soon.
Regards,
Jordi Vilalta