<div dir="ltr">Ian,<div><br></div><div style>For the top-level API, there's a one-to-one mapping between the characters of the input string and ones on the output string: no characters removed, no new characters inserted, they just move around.</div>
<div style><br></div><div style>Hope it answers your question.</div><div style>-BehNaM</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 12:03 PM, Ian Walberg <span dir="ltr"><<a href="mailto:ian.walberg@airborne.aero" target="_blank">ian.walberg@airborne.aero</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Behdad,<br>
<br>
Agreed that we should be using Pango etc but until that is implemented we are trying a few work arounds.<br>
<br>
This is for the mapserv label rendering in the mapstring.c file.<br>
<br>
The question we have is are the RLE, RLM etc codes removed from the returned string or do we need to strip them before the processed text is rendered?<br>
<div class="im HOEnZb"><br>
Thanks<br>
<br>
Ian<br>
<br>
-----Original Message-----<br>
From: Behdad Esfahbod [mailto:<a href="mailto:behdad.esfahbod@gmail.com">behdad.esfahbod@gmail.com</a>] On Behalf Of Behdad Esfahbod<br>
</div><div class="im HOEnZb">Sent: Monday, May 13, 2013 3:39 PM<br>
To: Ian Walberg<br>
</div><div class="im HOEnZb">Cc: Khaled Hosny; FriBidi<br>
Subject: Re: [FriBidi] Mixed RTL and numeric strings<br>
<br>
</div><div class="im HOEnZb">Do you have code you can show us?  I'm not even sure what you are trying to do.  You should be using a full-fledged text layout system like Pango.<br>
<br>
On 13-05-13 05:50 PM, Ian Walberg wrote:<br>
> So using notepad on windows we have been able to insert the LTE code rather than using a hex editor which is much more practical.<br>
><br>
> However when displaying the labels on mapserver we are still getting boxes (I assume unrecognized characters) displayed.<br>
><br>
> The question now is do the non-displaying characters need removing from the returned string before rendering?<br>
><br>
> Thanks<br>
><br>
> Ian<br>
><br>
> -----Original Message-----<br>
> From: fribidi-bounces+ian.walberg=<a href="mailto:airborne.aero@lists.freedesktop.org">airborne.aero@lists.freedesktop.org</a><br>
> [mailto:<a href="mailto:fribidi-bounces%2Bian.walberg">fribidi-bounces+ian.walberg</a>=airborne.aero@lists.freedesktop.or<br>
</div><div class="HOEnZb"><div class="h5">> g] On Behalf Of Ian Walberg<br>
> Sent: Wednesday, April 17, 2013 3:50 PM<br>
> To: Behdad Esfahbod; Khaled Hosny<br>
> Cc: FriBidi<br>
> Subject: Re: [FriBidi] Mixed RTL and numeric strings<br>
><br>
> Ok we have rather awkwardly inserted the hex codes for LTE and PDF around the -32 in our arabic text for -32 degrees from google translate.<br>
><br>
> This now displays the characters as we believe they should be and the minus sign to the left (-32) instead of the right (32-).<br>
><br>
> We are getting a couple of boxes displayed which I assume are bad characters we have entered when doing the hex edit.<br>
><br>
> However my question now is how do with do this in a way that normal none hex editing humans can understand?<br>
><br>
> Thanks<br>
><br>
> Ian<br>
><br>
> -----Original Message-----<br>
> From: Ian Walberg<br>
> Sent: Wednesday, April 17, 2013 2:43 PM<br>
> To: 'Behdad Esfahbod'; Khaled Hosny<br>
> Cc: FriBidi<br>
> Subject: RE: [FriBidi] Mixed RTL and numeric strings<br>
><br>
> Behdad,<br>
><br>
> Ok good .....<br>
><br>
> What we have been requested to do is always put the minus sign on the left hand side of the number (12345) digits even when the left is RTL.<br>
><br>
> We are experimenting with combinations of characters this afternoon but are not sure what might work or if this is even possible. Currently we always see the minus sign on the right hand side when the test is RTL.<br>

><br>
> Many thanks<br>
><br>
> Ian<br>
><br>
> -----Original Message-----<br>
> From: Behdad Esfahbod [mailto:<a href="mailto:behdad.esfahbod@gmail.com">behdad.esfahbod@gmail.com</a>] On Behalf Of<br>
> Behdad Esfahbod<br>
> Sent: Wednesday, April 17, 2013 2:35 PM<br>
> To: Khaled Hosny<br>
> Cc: Ian Walberg; FriBidi<br>
> Subject: Re: [FriBidi] Mixed RTL and numeric strings<br>
><br>
> Snap.  That's exactly why U+066x digits and U+06Fx digits have different types.  So, MINUS SIGN is supposed to work both for Arabic and Persian digits.<br>
><br>
> b<br>
><br>
> On 13-04-17 05:31 PM, Khaled Hosny wrote:<br>
>> For RTL text I expect the minus to be on the right (OK, I was taught<br>
>> math in from right to left using Arabic notation), so Unicode/FriBiDi<br>
>> are doing the right thing, so what you want here is to treat math<br>
>> expressions as being “isolated” LTR, so you should enclose them in<br>
>> LRE and PDF marks (U+202A and U+202C, respectively).<br>
>><br>
>> Regards,<br>
>> Khaled<br>
>><br>
>> On Wed, Apr 17, 2013 at 05:21:11PM -0400, Ian Walberg wrote:<br>
>>> Behdad,<br>
>>><br>
>>> Let us try that, we do need to mix number (12345) and Arabic/Hebrew text with the minus sign.<br>
>>><br>
>>> Thanks<br>
>>><br>
>>> Ian<br>
>>><br>
>>> -----Original Message-----<br>
>>> From: Behdad Esfahbod [mailto:<a href="mailto:behdad.esfahbod@gmail.com">behdad.esfahbod@gmail.com</a>] On Behalf<br>
>>> Of Behdad Esfahbod<br>
>>> Sent: Wednesday, April 17, 2013 2:18 PM<br>
>>> To: Ian Walberg<br>
>>> Cc: FriBidi<br>
>>> Subject: Re: [FriBidi] Mixed RTL and numeric strings<br>
>>><br>
>>> On 13-04-17 05:10 PM, Ian Walberg wrote:<br>
>>>> Behdad,<br>
>>>><br>
>>>> That seems to give the same result.<br>
>>>><br>
>>>> Can you send me a utf8 string that you think should work with a minus sign?<br>
>>><br>
>>> How about this:<br>
>>><br>
>>> −۳۲ بهداد<br>
>>><br>
>>> b<br>
>>><br>
>>>> Thanks<br>
>>>><br>
>>>> Ian<br>
>>>><br>
>>>><br>
>>>> -----Original Message-----<br>
>>>> From:<br>
>>>> fribidi-bounces+ian.walberg=<a href="mailto:airborne.aero@lists.freedesktop.org">airborne.aero@lists.freedesktop.org</a><br>
>>>> [mailto:<a href="mailto:fribidi-bounces%2Bian.walberg">fribidi-bounces+ian.walberg</a>=airborne.aero@lists.freedesktop.<br>
>>>> or<br>
>>>> g] On Behalf Of Ian Walberg<br>
>>>> Sent: Wednesday, April 17, 2013 1:54 PM<br>
>>>> To: Behdad Esfahbod<br>
>>>> Cc: FriBidi<br>
>>>> Subject: Re: [FriBidi] Mixed RTL and numeric strings<br>
>>>><br>
>>>> Behdad,<br>
>>>><br>
>>>> Ok great, how do we insert that? Say using a text editor? We use ultra edit.<br>
>>>><br>
>>>> Thanks<br>
>>>><br>
>>>> Ian<br>
>>>><br>
>>>> -----Original Message-----<br>
>>>> From: Behdad Esfahbod [mailto:<a href="mailto:behdad.esfahbod@gmail.com">behdad.esfahbod@gmail.com</a>] On Behalf<br>
>>>> Of Behdad Esfahbod<br>
>>>> Sent: Wednesday, April 17, 2013 1:49 PM<br>
>>>> To: Ian Walberg<br>
>>>> Cc: FriBidi<br>
>>>> Subject: Re: Mixed RTL and numeric strings<br>
>>>><br>
>>>> I think the easiest way to fix this is to use U+2212 MINUS SIGN instead of ASCII HYPHEN-MINUS.<br>
>>>><br>
>>>> behdad<br>
>>>><br>
>>>> On 13-04-16 07:45 PM, Ian Walberg wrote:<br>
>>>>> Behdad,<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Below is the image from mapserver and the text copied from the<br>
>>>>> sqlite database (attached).<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Regards<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Ian<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> -32 درجة حرارة الهواء<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> -----Original Message-----<br>
>>>>> From: Behdad Esfahbod [mailto:<a href="mailto:behdad.esfahbod@gmail.com">behdad.esfahbod@gmail.com</a>] On Behalf<br>
>>>>> Of Behdad Esfahbod<br>
>>>>> Sent: Tuesday, April 16, 2013 12:49 PM<br>
>>>>> To: Ian Walberg<br>
>>>>> Cc: FriBidi<br>
>>>>> Subject: Re: Mixed RTL and numeric strings<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On 13-04-16 11:23 AM, Ian Walberg wrote:<br>
>>>>><br>
>>>>>> Behdad,<br>
>>>>><br>
>>>>>><br>
>>>>><br>
>>>>>> We are using mapserver and need to display mixed RTL text and<br>
>>>>>> numeric<br>
>>>>><br>
>>>>>> data.<br>
>>>>><br>
>>>>>><br>
>>>>><br>
>>>>>> The numeric data displays the minus sign after the string 123-<br>
>>>>>> rather<br>
>>>>><br>
>>>>>> than -123 as we would like.<br>
>>>>><br>
>>>>>><br>
>>>>><br>
>>>>>> Is it possible to make the minus sign appear before the numbers?<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Show me the code?<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>>> Many thanks<br>
>>>>><br>
>>>>>><br>
>>>>><br>
>>>>>> Ian<br>
>>>>><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>><br>
>>>>> behdad<br>
>>>>><br>
>>>>> <a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
>>>>><br>
>>>><br>
>>>> --<br>
>>>> behdad<br>
>>>> <a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
>>>> _______________________________________________<br>
>>>> fribidi mailing list<br>
>>>> <a href="mailto:fribidi@lists.freedesktop.org">fribidi@lists.freedesktop.org</a><br>
>>>> <a href="http://lists.freedesktop.org/mailman/listinfo/fribidi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fribidi</a><br>
>>>><br>
>>><br>
>>> --<br>
>>> behdad<br>
>>> <a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
>>> _______________________________________________<br>
>>> fribidi mailing list<br>
>>> <a href="mailto:fribidi@lists.freedesktop.org">fribidi@lists.freedesktop.org</a><br>
>>> <a href="http://lists.freedesktop.org/mailman/listinfo/fribidi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fribidi</a><br>
>><br>
><br>
> --<br>
> behdad<br>
> <a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
> _______________________________________________<br>
> fribidi mailing list<br>
> <a href="mailto:fribidi@lists.freedesktop.org">fribidi@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/fribidi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fribidi</a><br>
><br>
<br>
--<br>
behdad<br>
<a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
_______________________________________________<br>
fribidi mailing list<br>
<a href="mailto:fribidi@lists.freedesktop.org">fribidi@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/fribidi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fribidi</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Behnam Esfahbod | بهنام اسفهبد<br><a href="http://behnam.es/" target="_blank">http://behnam.es/</a><div><div>GPG-FP: 3E7F B4B6 6F4C A8AB 9BB9 7520 5701 CA40 259E 0F8B<br>
</div></div><div><br></div></div>
</div>