Hi Zoran,

first of all, I'm definetely not saying that this script can totally
substitute for native unicode support in director. it's just what it is,
a parent script with methods for converting Unicode or UTF-8 text to
single-byte text with given codepage, converting single-byte text with
given codepage to UTF-8 or Unicode, or converting single-byte text from
one codepage to another.

In your case, you could use it to handle unicode/UTF-8 text that might
e.g. come from external text files or a database, convert it to
single-byte CP1251/CP1250 text on the fly and display this text in text-
or field-members using CP1251- and CP1250 fonts that are embedded as
font cast members.
That's about it.

Concerning searching and string operations: they do work in director,
somehow. once you have Unicode/UTF-8 strings loaded into memory (as
"binary" strings that contain numtochar(0)), most of lingo's string
operations can be used. E.g. offset() also works with "binary" strings.
When concatenating Unicode strings, just make sure, that both use the
same byte order (big-endian or little-endian), and when concatenating
Unicode or UTF-8 strings, make sure to strip the "byte order mark" (BOM)
from the second string, if it exists (numtochar(255)&numtochar(254) or
numtochar(254)&numtochar(255) for unicode strings,
numtochar(239)&numtochar(187)&numtochar(191) for UTF-8)

For more information check out the links at the end of readme.txt in the
zip file.

Valentin


KOŠ & CO. wrote:
> Hi Valentine,
>
> Your utility for Unicode seems really usefull to me, but there are
> some
> unclearness in its application. I need some basic explanations. I am
> using
> Cyrillic (CP 1251) and Serbian and Croatian Latin (CP 1250). There
> are no so
> many problems with the text view but with search options and string
> operations. Can your tool help with this and how?
>
> I ve noticed numerous options for codepage converting, conversion
> tables
> etc. I need some basic instructions on syntax.
>
> Zoran
>
>
>
>
>
>
>
> [To remove yourself from this list, or to change to digest mode, go
> to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
> email [email protected]  (Problems, email
> [EMAIL PROTECTED]). Lingo-L is for learning and helping with
> programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to