[Libreoffice-bugs] [Bug 48191] New: Improper choice of features based on text language.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 2 14:32:13 CEST 2012


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

             Bug #: 48191
           Summary: Improper choice of features based on text language.
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.5.2 RC2
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: Writer
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: stevan.white at googlemail.com


Created attachment 59375
  --> https://bugs.freedesktop.org/attachment.cgi?id=59375
Shows failure to apply features for default language in Hindi etc.

Hi,

I'm using a modification from GIT pull with Caolán's patch from
https://bugs.freedesktop.org/show_bug.cgi?id=31821
With this, a lot of OpenType features are working, that were not working
before.

However, it may have uncovered a different problem.
See the attached file, which compares text in the Indic languages Sinhala and
Hindi, from FreeSerif and Lohit Hindi.

The Sinhala text in FreeSerif is largely right.  This means a lot of font
features are being applied (it would be garbled otherwise, with overlapping
parts of letters etc).

The Hindi text from FreeSerif is wrong.  It looks as if no features are being
applied.  Notice diagonal strokes below the letters, and higher strokes appear
beside but disconnected with the letters.  Compare this text to the same text
in FreeSans and Lohit Hindi -- instead of strokes below, the corresponding
letters are transformed, and the higher strokes are placed over the letters.

This is my guess as to what is happening.

The Sinhala range in FreeSerif, and the Hindi range in Lohit Hindi, are
activated by script{language} 
    sinh{dflt} 
and 
    deva{dflt} 
respectively.

However, in FreeFont a distinction is made between the default language (Hindi)
and Sanskrit (both using the Devanagari script).  Most features are activated
by
   dev2{SAN ,dflt} deva{SAN ,dflt}
However, in FreeSerif only there are some features activated only for Sanskrit
by
   dev2{SAN } deva{SAN }

In this text, no language was specified (or rather, it's set to the default of
English).
So swriter should apply the Devanagari features marked 'dflt'.

Instead, it's applying *no* Devanagari features.  
This is evidently because some features for that script are specified to
activate for a specific language.

Pango and Firefox get this right.

-- 
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