StringInfo class

  • Thread starter Thread starter Wilfried Van Baelen
  • Start date Start date
W

Wilfried Van Baelen

Hi,

I am looking for a way to get the contectual forms from Arabic Script.

If you use a richtextbox in VB.net, and you fill it with a a unicode string
which contains the isolated characters, the control takes care of the
"shaping", it shows the approriate glyphs ( isolated, final, initial or
medial )

I would like to do the same in code, input isolated chars and output correct
glyphs.

For example : arabic letter BEEH (067B) when used at the end of a word
(final) becomes FB53.

Wat is the correct way for doing this ?

* the new stringinfo class ?
* uniscribe ?
* ....

Any help would be appriciated !!

Greetings.
 
I'm not sure why you would want to do this. The answer I would have thought
is that you should use only isolated characters and leave it up to the UI to
display correctly. As I understand it, the Arabic presentation forms (and
equivalents for other alphabets/abjads/abugidas etc.) are really only in
Unicode for backward compatibility.
 
Sorry I think I partially misunderstood your question and thought you wanted
to convert a string containing isolated characters to one containing
presentation forms and then pass to the UI. This you certainly do not want
to do. Leave the string alone and leave it up to the rendering engine to
display correctly. Have a look into Uniscribe (I don't know myself what it's
all about or what its capabilities are).
 
Clive,
I have to get hold of the presentation forms to use the converted string in
a program ( .DLL ) that does not convert the characters like for example
RichTextBox does ( labelprinter software ).
 
Back
Top