×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    65

    bidi arabic support

    hi to all,

    i have arabic text, it is in left to right format, but i want to convert it into right t o left format. is there any class or function in j2me that works like java.text.bidi
    or any other function that will convert it into right to left format:

    with best regards
    khair m soomro

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    No, you'll have to make your own.

    shmoove

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    65
    i don't have any idea
    is there any hint,

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Hint to what? How to make your own? It's pretty straight forward: you take the text, split it up into words using the methods in the String class (indexOf(), substring(), etc.), put all the words in an array or vector, then you can reverse the words and rebuild the string from the end to the beginning. You will also need to take care of exceptions, like numbers or words that are not in arabic in the string. You can probably get ideas from looking at the source code for the java.text.bidi package.

    shmoove

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×