1. Unicode

For Unicode, it seems to me Euphoria has a distinct advantage 
over other languages since strings are just sequences,
and the elements of a sequence can be very large numbers.
(Integers can be more than 31 bits. More like 52 bits).

Built-ins like find() and match() are already very general.
They are not limited to strings, let alone strings containing
8-bit characters.

Some builtins do assume 8-bit characters, e.g. puts(), gets(),
dir() and a couple of others.
A Euphoria library could override these using Euphoria-coded 
routines that support Unicode. The library could call Windows
or Linux/FreeBSD C routines that support Unicode.

Perhaps someone could create such a thing, and eventually
I could build it into Euphoria's C-coded runtime routines.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » topic index » view message » categorize

2. Re: Unicode

If you want, you can use my Unicode Library.
If it needs changes in the API, just tell me.
It can read and write UTF-8 and UTF-16 encoded files, and it comes
with a little tool to convert files from ASCII to Unicode and vice versa.

It should work cross-platform, because it's 100% pure Euphoria.

--
tommy online: http://users.telenet.be/tommycarlier
tommy.blog: http://tommycarlier.blogspot.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: Unicode

Tommy Carlier wrote:
> If you want, you can use my Unicode Library.
> If it needs changes in the API, just tell me.
> It can read and write UTF-8 and UTF-16 encoded files, and it comes
> with a little tool to convert files from ASCII to Unicode and vice versa.
> 
> It should work cross-platform, because it's 100% pure Euphoria.

Great. 
I'll study it when I get around to working on this stuff.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: Unicode

Tommy Carlier wrote:
> 
> If you want, you can use my Unicode Library.
> If it needs changes in the API, just tell me.
> It can read and write UTF-8 and UTF-16 encoded files, and it comes
> with a little tool to convert files from ASCII to Unicode and vice versa.
> 
> It should work cross-platform, because it's 100% pure Euphoria.
> 
> --
> tommy online: <a
> href="http://users.telenet.be/tommycarlier">http://users.telenet.be/tommycarlier</a>
> tommy.blog: <a
> href="http://tommycarlier.blogspot.com">http://tommycarlier.blogspot.com</a>

Yes, I use it to read the windows task scheduler log on XP  

--"ask about our layaway plan".
--

new topic     » goto parent     » topic index » view message » categorize

5. Re: Unicode

posted by: (not specified)

Hi Kat:

When using EuGTK(2) on Linux, Unicode support is built in, and 
works without a problem, and can accept keyboard input for about 20 
languages with a text editor, and/or you can embed the hex chars in your source.

The same does not seem to be true of Windows, which is perhaps the 
result of not having the right fonts - or ? - I don't know. 

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu