Re: Unicode normalization and text display differences
- From: Behdad Esfahbod <behdad esfahbod gmail com>
- To: Benjamin Kiessling <mittagessen l unchti me>, gtk-i18n-list gnome org
- Subject: Re: Unicode normalization and text display differences
- Date: Wed, 6 Jan 2016 14:38:11 +0000
Hi Ben,
You at least need to tell us on what platform you are testing this and with
what fonts.
On 16-01-06 02:00 PM, Benjamin Kiessling wrote:
Hi everybody,
I am trying to build a simple line generation tool for training neural
networks for OCR and everything is working fine except an oddity in
display depending on Unicode normalization, in particular diacritic
placement.
In [0] (text is normalized to NFC) diacritics are placed correctly while
in [1] (text normalized to NFD) diacritics are placed next to the
preceding code point.
If I understand Unicode correctly there should be no difference in
display and there is a presentation about Pango from 2004 claiming that
there shouldn't be one.
Is this a known issue or expected behavior? Is there some preprocessing
necessary before using pango_layout_set_text()?
All Best,
Ben
[0] http://l.unchti.me/dump/nfc.png
[1] http://l.unchti.me/dump/nfd.png
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]