Open roptat opened 8 months ago
For clarity, is it XML or SGML docbook?
Assuming the docbook is XML, it's a known limitation of the po4a's XML parser, see TODO list
in man Locale::Po4a::Xml
.
po4a parses XMLs with regexps, so it will be not trivial to do it right...
In the meanwhile, the best is to put your entities on single lines, please.
I may be wrong but ...
If it is non-trivial to single-line these SGML entities, put them in a separate file and include them with single-line.
<!ENTITY % commondata SYSTEM "common.ent" > %commondata;
Just an idea ...
I'm working with a docbook file that I want to translate. The authors added a few entity definitions at the top, and they can be translated thanks to po4a. However, one of them is on multiple lines, and po4a doesn't generate an entry for it in the po file:
po4a provides translation for the first two, but not the last one.