Bug 72143 - PDF Old-style numerals in outline paragraphs get mangled in exported PDF's Outline
Summary: PDF Old-style numerals in outline paragraphs get mangled in exported PDF's Ou...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.2.3 release
Hardware: Other Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 08:00 UTC by josefk
Modified: 2013-12-27 23:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example Old-style numerals ODT, exported PDF, and screenshot of the latter (51.34 KB, application/x-compressed-tar-gz)
2013-11-29 08:00 UTC, josefk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description josefk 2013-11-29 08:00:14 UTC
Created attachment 89981 [details]
Example Old-style numerals ODT, exported PDF, and screenshot of the latter

When using old-style numerals in paragraphs that are assigned an outline-level in lowriter, these numerals are displayed correctly in the resulting PDF's text-body but become mangled in the PDF's outline.

There, they are represented as 
   "" instead of old-style "1", 
   "" instead of old-style "2", 
   "" for "3", 
   "" for "4", 
   "" for "5", 
   "" for "6", 
   "" for "7", 
   "" for "8", 
   "" for "9", and 
   "" for "0".

Given that the same glyphs are handled correctly in the text of the PDF, it might be that the text for the PDF's outline skips a characterset conversion step during the export?
Comment 1 ⁨خالد حسني⁩ 2013-11-30 00:20:25 UTC
Unicode does not encode separate old style numerals, they are considered stylistic variants of the regular numerals and are handled by font features not as separate input.

The character you are using are Unicode Private Use Area characters, those characters are pretty much an undefined area of Unicode and can be used for any thing. Linux Libertine happens to use them for old style numerals, and that is why it works in the document body, but it is font specific so the font your PDF reader uses for the outlines can contain totally unrelated symbols in this place.

So that is basically not a bug. The proper way to use old style numerals is to activate the respective font feature, but unfortunately LibreOffice does not support this for OpenType fonts (see bug 58941), but since you are already using Linux Libertine, I suggest you use the Graphite version, Linux Libertine G, since LibreOffice supports activating Graphite features already. Either way, you will get regular numerals in the outlines, there is just no way to get old style numerals there.
Comment 2 Cor Nouws 2013-12-27 23:08:52 UTC
(In reply to comment #1)
> [...]
> So that is basically not a bug. The proper way to use old style numerals is
> to activate the respective font feature, but unfortunately LibreOffice does
> not support this for OpenType fonts (see bug 58941), ...


So NOTABUG or an enhancement / duplicate of bug 58941 ?
Comment 3 ⁨خالد حسني⁩ 2013-12-27 23:13:32 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > [...]
> > So that is basically not a bug. The proper way to use old style numerals is
> > to activate the respective font feature, but unfortunately LibreOffice does
> > not support this for OpenType fonts (see bug 58941), ...
> 
> 
> So NOTABUG or an enhancement / duplicate of bug 58941 ?

This particular issue is NOTABUG, it is not directly related to bug 58941.