https://bugs.documentfoundation.org/show_bug.cgi?id=150398
Bug ID: 150398
Summary: No handling of Unicode Variation Selectors
Product: LibreOffice
Version: 7.3.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
This is a follow up for
https://ask.libreoffice.org/t/unicode-characters-showing-as-emojis/80537
Unicode provides a Geometric Shapes block U+25A0-U+25FF. Unfortunately, the
standard (see https://en.wikipedia.org/wiki/Geometric_Shapes_(Unicode_block))
states that 8 glyphs within the block can be rendered either as a basic
character or as an emoji.
Selection between text and emoji form is possible by suffixing the codepoint
with a Variant Selector (U+FE00-U+FE0F) combining character. The variant
selectors effective on the Geometric Shapes emoji/text glyphs are U+FE0E VS15
(text) and U+FE0F VS16 (emoji).
It looks like Writer (or perhaps HarfBuzz) merely ignore the combining
character. It is likely that the same behaviour occurs also in other components
but I haven't tested. It does also occur in Calc, making me suspect a common
library.
Steps to reproduce:
- in a fresh document type U+25B6, then Alt+X
Expected: BLACK RIGHT-POINTING TRIANGLE
Real: coloured Play-like button (emoji)
- after the previous character, type U+FE0E, then Alt+X
Expected: change to black glyph
Real: no change
I tried to enter all characters in this block with the Alt+X method. As long as
the dual text/emoji character is not the first in the paragraph, i.e. follows
existing characters, it is displayed as text (maybe inheriting some property
from the preceding character).
When the dual character is first in its paragraph (no possible inheritance from
preceding glyph), it is displayed as an emoji. Then it is no longer possible to
display any later dual as text; the emoji form is always chosen and can't be
reverted.
No matter how I enter them, U+25FB-U+25FE are always displayed as emoji.
No attachment as the result is highly dependent on entry sequence. Most of the
time (99.9%) you get the emoji form. Getting the text form is very tricky and
constrained (0.1%) and doesn't work for all dual glyphs.
--
You are receiving this mail because:
You are the assignee for the bug.