Hello,
We realized while working with DocBook XML files, that some content was ignored by the parser.
Please find below a suggestion to address those issues.
DocBookDialect.java
defineParagraphTags(new String[] { "book", "bookinfo", "title", "subtitle", "authorgroup", "author",
"firstname", "surname", "affiliation", "orgname", "address", "email", "edition", "pubdate",
"copyright", "year", "holder", "isbn", "keywordset", "keyword", "preface", "title", "simpara", "para",
"chapter", "table", "tgroup", "thead", "tbody", "row", "entry", "revhistory", "revision",
"revnumber", "date", "authorinitials", "revremark", "itemizedlist", "listitem", "member",
"releaseinfo", "bibliomixed", "bibliomset", "bridgehead", "glossseealso",
"primaryie", "refentrytitle", "secondaryie", "seealsoie", "seeie", "subtitle",
"synopfragmentref", "term", "tertiaryie", "tocentry", "glosssee"});
defineOutOfTurnTags(new String[] { "indexterm", });
definePreformatTags(new String[] { "screen", "programlisting", "synopsis", "literallayout", "address" });
defineTranslatableAttributes(new String[] { "url", "lang", "xml:lang" });
What content is ignored by the parser?
Didier
Typically, simpara elements inside admonitions were ignored. In the following sample:
The word "Lire" was ignored.
Thank you.
Fixed in SVN (3.6 and /trunk).
Didier
Actually, the real reason some content was missing was because <section> was not declared as a paragraph tag. (That doesn't mean <simpara> should not be a paragraph tag.) At least one paragraph tag must be encountered in the path so that content is shown. I have added <section> as a paragraph tag.
Didier
Fixed in the released version 4.1 of OmegaT (and 3.6 udpate 5, not yet released).
Didier