https://bugs.documentfoundation.org/show_bug.cgi?id=155767

            Bug ID: 155767
           Summary: Bad rendering of optional hyphen for Arabic/Persian
                    text
           Product: LibreOffice
           Version: 7.6.0.0 alpha1+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: hoss...@libreoffice.org

Created attachment 187821
  --> https://bugs.documentfoundation.org/attachment.cgi?id=187821&action=edit
File containing Persian text and optional hyphen

Description:
Hyphenation is not used in Arabic script, but in reality many Persian documents
use it instead of ZWNJ, as adding it is easier (ctrl+-) compared to ZWNJ
(ctrl+shift+2) with Persian keyboard.
In MS Word, the optional hyphen breaks the words, and if the words falls at the
start or middle of a row, it works similarly as ZWNJ. The difference is when it
breaks the word in the end of the line, and part of it falls in the next line.
In this case, it adds a hyphen (-).
In LibreOffice, the rendering of optional hyphen for Arabic script is bad,
because not only the word breaking does not happen, but an extra gray area plus
a hyphen is always rendered over the word that contains optional hyphen.

Steps to Reproduce:
1. Open the attached .odt file

Actual Results:
There are multiple problems:
1. Arabic words that contain optional hyphen do not break in the middle of the
line.
2. A gray vertical rectangle is drawn over such words.
3. A hyphen is drawn over the word in edit mode (not visible in read-only
mode).
4. When a word is broken across two lines, the non-final form of the Arabic
characters are used.

Expected Results:
1. Arabic word that contain optional hyphen should break, in all places. In
case a part falls into the second line, a hyphen (-) should be visible.
2. The gray vertical rectangle should not be visible.
3. The hyphen should not be drawn over the word in the middle of the line.
4. When a word is broken across two lines, the final form of the Arabic
characters should be used.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_DE); UI: en-GB
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to