<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Ebrahim,<br>
<br>
My problem is not how to change the numerals but when. For instance
LibreOffice seems to be based on the context whereas MS Word detects
the selected keyboard layout and takes that as the locale. <br>
<br>
Given that I'm using the "hb_language_from_script"feature I was
wondering whether it could deal with the locales as well. <br>
<br>
But you are right. I was expecting not to have to solve this problem
at all because it should be the input method the one that should
deal with that. Now I realice if the input method fixed the problem,
some softwares would not recognize ۲۳٫۴۵ as a number.<br>
<br>
I will just set the locale of the script of the latest non-numeral
character. I hope that works.<br>
<br>
Thanks, and sorry for the off-topic!<br>
<br>
Eduardo. <br>
<br>
On 9/12/2016 7:55 PM, Ebrahim Byagowi wrote:<br>
<blockquote
cite="mid:CAC+jVkvwHNZbYPUBVe-LzVmirWtAMo3GstXVfCXQebgtDZF3Cw@mail.gmail.com"
type="cite">
<div dir="ltr">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.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 12, 2016 at 9:25 PM, Sascha
Brawer <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sascha@google.com" target="_blank">sascha@google.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Which font are you using?
<div><br>
</div>
<div>— Sascha</div>
</div>
<div class="gmail_extra">
<div>
<div class="h5"><br>
<div class="gmail_quote">On Mon, Sep 12, 2016 at 6:09
PM, Eduardo Castiñeyra <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:eduardo@brainstorm3d.com"
target="_blank">eduardo@brainstorm3d.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Can hb be configured to automatically replace the
numerals according to the language of the
paragraph ?<br>
<br>
I'm not sure how to address this.<br>
<br>
Thanks!<br>
<br>
______________________________<wbr>_________________<br>
HarfBuzz mailing list<br>
<a moz-do-not-send="true"
href="mailto:HarfBuzz@lists.freedesktop.org"
target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a moz-do-not-send="true"
href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz"
rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/harfbuzz</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span class="HOEnZb"><font color="#888888">-- <br>
<div data-smartmail="gmail_signature">
<div dir="ltr">— Sascha
<div><br>
</div>
</div>
</div>
</font></span></div>
<br>
______________________________<wbr>_________________<br>
HarfBuzz mailing list<br>
<a moz-do-not-send="true"
href="mailto:HarfBuzz@lists.freedesktop.org">HarfBuzz@lists.freedesktop.org</a><br>
<a moz-do-not-send="true"
href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz"
rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/harfbuzz</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>