[HarfBuzz] persian numerals

Ebrahim Byagowi ebraminio at gmail.com
Mon Sep 12 17:55:34 UTC 2016


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 Brawer <sascha at google.com> wrote:

> Which font are you using?
>
> — Sascha
>
> On Mon, Sep 12, 2016 at 6:09 PM, Eduardo Castiñeyra <
> eduardo at 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 at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>>
>
>
>
> --
> — Sascha
>
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160912/7728d2eb/attachment.html>


More information about the HarfBuzz mailing list