[Libreoffice-bugs] [Bug 44410] New: : Soft Hyphens Ignored in Cross-References

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 3 06:52:42 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=44410

             Bug #: 44410
           Summary: : Soft Hyphens Ignored in Cross-References
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.3.2 release
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: Libreoffice
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: jrw0602 at yahoo.co.uk


Created attachment 55064
  --> https://bugs.freedesktop.org/attachment.cgi?id=55064
Example of soft hyphen being ignored in cross-reference in paragraph 2 but ZWSP
being honoured in cross-reference in Paragraph 4.

This bug is also present in 3.5.0 Beta2.

Problem description: 
When a cross-reference is inserted as a reference, soft hyphens in the text
being referenced are ignored.

Steps to reproduce:
1. In a new paragraph, enter string of letters and digits long enough to cause
a line wrap.
2. Insert a soft-hyphen, e.g. by ctrl/-, so that the text only breaks at that
point.
3. Create a new, empty paragraph with the same styling as the paragraph at Step
1.
4. Select text entered at steps 1 and 2, and create a reference by insert,
cross-reference, set-reference, entering a name, and clicking insert in the
dialogue box.
5. Create a cross-reference in the new, empty paragraph by insert,
cross-reference, choosing Reference in 'Insert reference to', selecting the
name from Step 4 and clicking insert in the dialogue box.

Observed behaviour:
The cross-reference text breaks not at the location of the optional hyphen, but
when the cross-reference text reaches the end of line.  This is observed in
both the writer display and in exported PDF.

An example of what is saved in content.xml is the following:

<text:p text:style-name="P1"><text:reference-mark-start
text:name="testing"/>verylongstringpt1­verylongstringpt2<text:reference-mark-end
text:name="testing"/></text:p>
<text:p text:style-name="P1"><text:reference-ref text:reference-format="text"
text:ref-name="testing">verylongstringpt1verylongstringpt2</text:reference-ref></text:p>

There is a soft hyphen in the reference definition (between 'pt1' and 'very'),
in the first paragraph, but not in the cross reference (the second paragraph). 

Correct behaviour:
The text of the cross-reference should both break at the point of the soft
hyphen rather than between letters and digits.

Remark:
This problem does not occur with zero-width spaces.  They are stored in their
own text:span elements, and the ZWSP (U+200B) character occurs within a
text:span element in the cross-reference. (This partial work-around is more
difficult to apply in 3.5.0 beta2 because ZWSP no longer appears on the insert,
formatting mark menu.  Not all keyboards include ZWSP.)

Platform (if different from the browser): 

Browser: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.24) Gecko/20111107
Ubuntu/10.04 (lucid) Firefox/3.6.24

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


More information about the Libreoffice-bugs mailing list