Re: [HarfBuzz] persian numerals
On 12.09.2016 19:09, Eduardo Castiñeyra wrote: > Hi, > > Can hb be configured to automatically replace the numerals according to > the language of the paragraph ? > > I'm not sure how to address this. I can tell that at least with Windows shaping engines this is a matter of additional configuration that's applied before actual shaping simply replacing '0'-'9' range with appropriate codepoints. So basically it's a job for a layer above shaping. > > Thanks! > > ___ > HarfBuzz mailing list > HarfBuzz@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/harfbuzz ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz
Re: [HarfBuzz] persian numerals
You should resolve this on a level upper than hb as this is not just about digits, but thousand and fraction separator also should be replaced with their counterpart signs on different languages which sometimes needs some context aware replaces (and on some locales, you should switch dot with comma at once for getting correct result). If you have control on number to string conversion itself, it is better to ICU for this task, for example, if you press (23.45).toLocaleString('fa') on Chrome or Firefox JavaScript console, you will get ۲۳٫۴۵ which is provided by ICU for JavaScript. On Mon, Sep 12, 2016 at 9:25 PM, Sascha Brawerwrote: > Which font are you using? > > — Sascha > > On Mon, Sep 12, 2016 at 6:09 PM, Eduardo Castiñeyra < > edua...@brainstorm3d.com> wrote: > >> Hi, >> >> Can hb be configured to automatically replace the numerals according to >> the language of the paragraph ? >> >> I'm not sure how to address this. >> >> Thanks! >> >> ___ >> HarfBuzz mailing list >> HarfBuzz@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/harfbuzz >> > > > > -- > — Sascha > > > ___ > HarfBuzz mailing list > HarfBuzz@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/harfbuzz > > ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz
[HarfBuzz] persian numerals
Hi, Can hb be configured to automatically replace the numerals according to the language of the paragraph ? I'm not sure how to address this. Thanks! ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz
[HarfBuzz] harfbuzz: Branch 'master'
win32/detectenv-msvc.mak |3 +++ 1 file changed, 3 insertions(+) New commits: commit 02bfd965af588640250c47f344ad3096c8a373e0 Author: Gregory MorseDate: Mon Sep 12 10:22:15 2016 +0200 Update detectenv-msvc.mak (#316) Windows x86 ARM capability diff --git a/win32/detectenv-msvc.mak b/win32/detectenv-msvc.mak index a94ab84..83d8786 100644 --- a/win32/detectenv-msvc.mak +++ b/win32/detectenv-msvc.mak @@ -119,6 +119,9 @@ CFLAGS_ADD = /MDd /Od !if "$(PLAT)" == "x64" LDFLAGS_ARCH = /machine:x64 +!elseif "$(PLAT)" == "arm" +LDFLAGS_ARCH = /machine:arm +CFLAGS_ADD = $(CFLAGS_ADD) /DWINAPI_FAMILY=3 !else LDFLAGS_ARCH = /machine:x86 !endif ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz