RE: Persian in Windows Applications

2005-02-02 Thread _ Kianoosh _
Saber,
You'll come to find out that character encoding and fonts are the two keys 
you will concern yourself with.   What programming language are you using? 
Is there an internationalization (i18n) standard for building applications 
in that language? I'm more familiar with Java/J2EE, and there is an accepted 
i18n standard way of including different language files there.

Good luck and enjoy it. Please share your progress with us. I'm sure we're 
all curious.

-Kianoosh
From: "Saber Solomon" <[EMAIL PROTECTED]>
To: persiancomputing@lists.sharif.edu
Subject: Persian in Windows Applications
Date: Wed, 2 Feb 2005 02:47:36 +0330
I'm going to program and develop a windows application
and I want to use Persian in user interface.
I'm using Windows XP and uni-code in programming language.
But is there any trick or rule to make application working fine in
older windows? (98, ME)
Or just using uni-code makes anything fine?
Saber S.
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

___
PersianComputing mailing list
PersianComputing@lists.sharif.edu
http://lists.sharif.edu/mailman/listinfo/persiancomputing


RE: Persian in Windows Applications

2005-02-02 Thread Ehsan Akhgari



 

  
  I'm going to program and develop a windows 
  application
  and I want to use Persian in user 
  interface.
  I'm using Windows XP and uni-code in programming 
  language.
  But is there any trick or rule to make 
  application working fine in
  older windows? (98, ME)
  Or just using uni-code makes anything 
  fine?
Win9x does 
not support Unicode internally.  M$ has developed the so-called MSLU[1] 
which provides Unicode compatibility at the Windows API level for Win9x.  I 
have used it, and it indeed works, but be warned that these OSes do *not* 
support Unicode anyway, and all MSLU can do is implement API stubs for Unicode 
versions Win32 functions (such as, CreateFileW) which would allow you to build 
your app in Unicode mode in Visual C++.
 
What I've 
ended up doing in the past is do all the UI as HTML, and embed a HTML rendering 
engine in my app.  I've used the WebBrowser control (the same control used 
by IE).  This requires you to distribute a customized[2] version of IE with 
your own app which has "Arabic" support built-in, and write some amount of 
_javascript_ code to enable the user to type Persian in your application even if 
they don't have a Persian keyboard installed (you can find several JS codes as 
starters on the web for this purpose.)  You can also use Gecko, which is 
Mozilla's great HTML rendering engine as well.  If you decide to use the 
WebBrowser control, check out http://www.beginthread.com/Article/Ehsan/WebBrowser%20Goodies/ 
for some articles about possible customizations of the control that you may be 
needing in your own applications.
 
All of this, 
of course, applies to Visual C++.  If you use some other programming tool, 
then you'll have to research on your own, though I think that few support 
MSLU.
 
[1] You can 
download it from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdkredist.htm.
[2] You can 
deploy a customized IE install using the IE Administration Kit (IEAK.) 


-Ehsan Akhgari


www.farda-tech.comList Owner: MSVC@BeginThread.com
[Email: [EMAIL PROTECTED]][WWW: http://www.beginthread.com/Ehsan 
]
___
PersianComputing mailing list
PersianComputing@lists.sharif.edu
http://lists.sharif.edu/mailman/listinfo/persiancomputing