https://issues.apache.org/bugzilla/show_bug.cgi?id=53146

             Bug #: 53146
           Summary: Whitespace and Hyphenation with Zero Width Space
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 28677
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28677
FO file with 2 fo:blocks, text and long URL

See the attached FO file. It contains two fo:blocks: a text with a long Unix
file path. 

The only difference here is a Zero Width Space (ZWS, U+200B) at appropriate
locations (here: after the "/") and the hyphenation attribute. The ZWS is used
to indicate possible break opportunities in case hyphenation=false.

However, in the 2nd block, the beginning of the path /usr/... is broken into
"/", a linebreak, and "usr/..." although hyphenate=false. I'm not sure if this
is the correct behavior. Also compare the word spacing in the 1st block.

I would have expected no linbreak between "/" and "usr" and a more "balanced"
space between words (although it might be technically problematic). :)

I'll upload also two PDFs, one built with FOP, the other built with XEP.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to