Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2522

[PATCH] Soft hyphens in front of some characters are transformed to hyphen-minus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • None
    • None

    Description

      If you have a verbatim block like <programlisting> in DocBook, the DocBook XSL stylesheets insert many soft hypens (http://decodeunicode.org/u+00AD) into the content to show where the FO-processor may insert linebreaks. By default after spaces and non-breakable spaces, but configurable also after arbitrary other characters.

      Unfortunately it seems FOP does not handle the soft hyphens correctly, depending on the character that follows it. Soft Hyphens in front of some characters are transformed to hyphen-minus, no matter what hyphenation-characters is configured and even if the occurence is within a line and not at line break.

      I've observed this behaviour with soft hyphens in front of apostrophe (http://decodeunicode.org/u+0027), quotation mark (http://decodeunicode.org/u+0022), hyphen-minus (http://decodeunicode.org/u+002D) and full stop (http://decodeunicode.org/u+002E)

      Attachments

        1. issue-2522.patch
          3 kB
          Björn Kautler
        2. issue-2522.fo
          3 kB
          Björn Kautler
        3. image-2024-01-17-14-48-50-945.png
          20 kB
          Björn Kautler
        4. image-2024-01-17-14-49-08-309.png
          22 kB
          Björn Kautler

        Activity

          People

            Unassigned Unassigned
            vampire Björn Kautler
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: