Menu

#844 DocBook XML filter ignores some content

3.6
closed-fixed
None
5
2017-02-07
2016-11-21
No

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" });

Discussion

  • Didier Briel

    Didier Briel - 2016-11-22

    What content is ignored by the parser?

    Didier

     
  • Camille Bégnis

    Camille Bégnis - 2016-11-22

    Typically, simpara elements inside admonitions were ignored. In the following sample:

    <?xml version='1.0' encoding='UTF-8'?><section xmlns="http://docbook.org/ns/docbook" xmlns:d="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="fr" version="5.0">
      <title>Mise en service</title>
      <important>
        <simpara>Lire <xref linkend="C05"/></simpara>
      </important>
    

    The word "Lire" was ignored.

     
    • Didier Briel

      Didier Briel - 2016-11-22

      Thank you.

      Fixed in SVN (3.6 and /trunk).

      Didier

       
  • Didier Briel

    Didier Briel - 2016-11-22
    • status: open --> open-fixed
    • assigned_to: Didier Briel
     
  • Didier Briel

    Didier Briel - 2016-11-24

    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

     
  • Didier Briel

    Didier Briel - 2017-02-07

    Fixed in the released version 4.1 of OmegaT (and 3.6 udpate 5, not yet released).

    Didier

     
  • Didier Briel

    Didier Briel - 2017-02-07
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB