bugGNU libunistring - Bugs: bug #49721, uc_mirror_char returns surprising...


You are not allowed to post comments on this tracker with your current authentication level.

bug #49721: uc_mirror_char returns surprising results

Submitted by:  Bruno Haible <haible>
Submitted on:  Mon 28 Nov 2016 01:41:51 AM UTC  
Category: unictypeSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: Open

Mon 28 Nov 2016 01:49:31 AM UTC, comment #1:

Regarding 1):
It's also explained in http://www.unicode.org/reports/tr9/#Mirroring

Bruno Haible <haible>
Project Administrator
Mon 28 Nov 2016 01:41:51 AM UTC, original submission:

Reported at http://lists.gnu.org/archive/html/bug-libunistring/2016-11/msg00004.html

1) The documentation should explain that uc_mirror_char may return true, yet set the character to 0xfffd. This means that the character has the bidi mirror property (i.e. that it should be displayed through a mirrored glyph) but that this mirrored glyph does not exist as a Unicode character; thus a rendering engine needs to synthesize it artificially or pick it from an appropriate font. See section 4.7 of the Unicode standard.

2) The 'mirror_pairs' table in gen-uni-ctype.c should not be hardcoded but rather be read from the BidiMirroring.txt data file.

Bruno Haible <haible>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by haible (Submitted the item)
  • -unavailable- added by haible

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Nov 2016 01:41:51 AM UTChaibleCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1