Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User alexkerr's Avatar
    Join Date
    Jan 2006
    Posts
    12
    I'm writing a J2ME app to display unicode text for non-Latin scripts, especially ones that are written right to left (like Hebrew) and also where multiple characters get combined to form one character using character shaping/joining rules (e.g. Arabic, various Indian/Asian languages etc).

    Firstly, I'm assuming that a phone sold somewhere will have the correct fonts to support text displayed in that font (e.g. Arabic fonts if sold in an Arabic country, Hebrew fonts if sold in Israel, Farsi font if sold in Iran, Simplified Chinese font for China etc.). Is this an OK assumption? (I know it's not absolute but would it be generally the case - and for non-Nokia phones too?)

    Second, and my main question, if I've got a Unicode string (encoded in UTF-8) e.g. in Arabic and I just want to display it on screen using standard J2ME method Graphics.drawString(), will the J2ME implementation on the phone handle the BiDirectional (BiDi) algorithm and character shaping for Arabic? (or whatever other languages/fonts are built into the phone).

    Surely I don't have to implement my own BiDi algorithm and character shaping rules....or do I?

    (Note I have searched quite extensively on this subject on the Forum before asking, so if I have missed a reply that answers my query, I'd be happy to be directed to it!).

    Many thanks,
    Alex

  2. #2
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    Quote Originally Posted by alexkerr View Post
    Firstly, I'm assuming that a phone sold somewhere will have the correct fonts to support text displayed in that font (e.g. Arabic fonts if sold in an Arabic country, Hebrew fonts if sold in Israel, Farsi font if sold in Iran, Simplified Chinese font for China etc.). Is this an OK assumption?
    Usually it is a correct assumption at least as far as Nokia is concerned.

Similar Threads

  1. handle SMS content on byte not unicode character
    By LaineGates in forum Symbian C++
    Replies: 2
    Last Post: 2009-11-23, 14:23
  2. displaying arabic using j2me
    By raghda in forum Mobile Java General
    Replies: 16
    Last Post: 2009-06-18, 13:03
  3. Arabic and chinese character in MIDP
    By rabert in forum Mobile Java General
    Replies: 8
    Last Post: 2007-10-05, 06:47
  4. bidi arabic support
    By kmsoomro in forum Mobile Java General
    Replies: 3
    Last Post: 2005-04-11, 15:41
  5. why the toolkit3.1 browser does not support unicode character?
    By lhjiang in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-07-22, 12:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved