AW: ICU question with embedding levels

Stefan Wanger <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Message-ID <A0BC62EEBEA1D0119EFD0020AFF9BE270174A2A4@MAJESTIX>
I solved the problem already.

This mail was sent twice due to problems with our mail server.
Sorry.

Stefan

-----Ursprüngliche Nachricht-----
Von: Mark Davis [mailto:[email protected]] 
Gesendet: Mittwoch, 13. August 2003 00:14
An: Stefan Wanger; [email protected]
Betreff: Re: ICU question with embedding levels 

It is hard to tell exactly what your example is. Here is what I am
guessing.

Your input is (where AB are RTL characters, 0..9 are numbers, and " "
is space):

12 34 56 78 AB 90

You want the following output:

12 56 34 78 BA 90

The way you would do that is to use a RLO. An override will actually
change the character types of the characters it embeds, instead of
just changing the level. That will force the 3,4,space,5,6 to act like
RTL characters. So change your input to:

12 <RLO>34 56<PDF> 78 AB 90

Mark
__________________________________
http://www.macchiato.com
►  “Eppur si muove” ◄

----- Original Message ----- 
From: "Stefan Wanger" <[email protected]>
To: <[email protected]>
Sent: Friday, July 11, 2003 02:45
Subject: WG: ICU question with embedding levels


> Help wanted.  See below
>
> Thanks
>
> Stefan
>
> -----Ursprüngliche Nachricht-----
> Von: Icu Intl [mailto:[email protected]]
> Gesendet: Donnerstag, 10. Juli 2003 20:44
> An: Stefan Wanger
> Cc: Icu Intl
> Betreff: Re: ICU question with embedding levels
>
> Hi, I have some ideas for how to do this, but it would be better
(read:
> you would get more responses) to discuss this in a broader forum. I
> strongly suggest you subscribe to the icu4c-support mailing list and
> repost your question there.
http://oss.software.ibm.com/icu/archives/
>
> Viele Grüße,
> markus
>
>
>
>
>
> Stefan Wanger <[email protected]>
> 2003-07-10 06:19
>
>         To:     Icu Intl/Cupertino/IBM@IBMUS
>         cc:     Stefan Wanger <[email protected]>
>         Subject:        ICU question with embedding levels
>
>
>
>
> Hi,
>
> i am testing ICU 2.4 with your Layout sample.
>
> But i have problems with embedded levels using the ubidi_setPara und
> ubidi_getLogicalRun API.
>
> This is my sample in logical order.  <<12 34 56 78 90.txt>>
>
> 12 34 56 78 AB 90
>
> AB are strong RTL characters. Paragrapg level is LTR. "34 56" should
be
> treated as RTL run
>
> How can I achieve the following visual output:
>
> 12 56 34 78 BA 90
>
> I tried 2 solutions
>
> 1. if i am using embedded levels ("00011110000000000") with
ubidi_setPara,
> AB is not resolved as RTL run, when calling ubidi_getLogicalRun.
>
> 2. if i am using the RLE keyword (12 <RLE>34 56<PDF> 78 AB 90), the
output
> is  12 90 BA 78 56 34
>
> Please show me the right way.
>
> I would be very glad, if you can help.
>
> Thanks
>
> Stefan Wanger
>
>
>
> #### 12 34 56 78 90.txt has been removed from this note on July 10,
2003
> by Markus Scherer
> _______________________________________________
> icu mailing list
> [email protected]
> http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.