Re: Pure python implementation of string-like class

2006-02-26 Thread Akihiro KAYAMA
Hi Ross. Thanks a lot for your clarifying. I didn't think my post could be an Unicode frame. I don't know this mailing list is the right place talking about Unicode issue, but as for me, a million codespace which UTF-16 brings is not enough. It presume that same characters has a same codepoint

Re: Pure python implementation of string-like class

2006-02-26 Thread Ross Ridge
Ross Ridge wrote: > Akihiro Kayama in his original post made it clear that he wanted to use > a character set larger than entire Unicode code space. Xavier Morel wrote: > He implies that ... He explictly said that character set he wanted to use wouldn't fit in UTF-16. >... but in later messages

Re: Pure python implementation of string-like class

2006-02-26 Thread Xavier Morel
Ross Ridge wrote: > Xavier Morel wrote: >> Not if you're still within Unicode / Universal Character Set code space. > > Akihiro Kayama in his original post made it clear that he wanted to use > a character set larger than entire Unicode code space. > > Ross R

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Xavier Morel wrote: > Not if you're still within Unicode / Universal Character Set code space. Akihiro Kayama in his original post made it clear that he wanted to use a character set larger than entire Unicode code space. Ross Ridge -- http://mail.python.o

Re: Pure python implementation of string-like class

2006-02-25 Thread Xavier Morel
Ross Ridge wrote: > Steve Holden wrote: >> "Wider than UTF-16" doesn't make sense. > > It makes perfect sense. > > Ross > Ridge > Not if you're still within Unicode / Universal Character Set code space. While UCS-4 technically goes

Re: Pure python implementation of string-like class

2006-02-25 Thread Xavier Morel
Akihiro KAYAMA wrote: > Sorry for my terrible English. I am living in Japan, and we have a > large number of characters called Kanji. UTF-16(U+...U+10) is > enough for practical use in this country also, but for academic > purpose, I need a large codespace over 20-bits. I wish I could use >

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Steve Holden wrote: >"Wider than UTF-16" doesn't make sense. Ross Ridge wrote" > It makes perfect sense. Alan Kennedy wrote: > UTF-16 is a "Unicode Transcription Format", meaning that it is a > mechanism for representing all unicode code points, even the ones with > ordinals greater than 0x,

Re: Pure python implementation of string-like class

2006-02-25 Thread Alan Kennedy
[Steve Holden] >>"Wider than UTF-16" doesn't make sense. [Ross Ridge] > It makes perfect sense. No it doesn't. UTF-16 is a "Unicode Transcription Format", meaning that it is a mechanism for representing all unicode code points, even the ones with ordinals greater than 0x, using series of 16-

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Steve Holden wrote: > "Wider than UTF-16" doesn't make sense. It makes perfect sense. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Pure python implementation of string-like class

2006-02-25 Thread Akihiro KAYAMA
Hi Steve. In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> writes: steve> Akihiro KAYAMA wrote: steve> > Hi all. steve> > steve> > I would like to ask how I can implement string-like class using tuple steve> > or list. Does anyone know about some example codes of pure python stev

Re: Pure python implementation of string-like class

2006-02-25 Thread Akihiro KAYAMA
Hi And. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: and-google> Akihiro KAYAMA wrote: and-google> > As the character set is wider than UTF-16(U+10), I can't use and-google> > Python's native unicode string class. and-google> and-google> Have you tried using Python compiled in W

Re: Pure python implementation of string-like class

2006-02-25 Thread Akihiro KAYAMA
Hi bearophile. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: bearophileHUGS> Maybe you can create your class using an array of 'L' with the array bearophileHUGS> standard module. Thanks for your suggestion. I'm currently using an usual list as a internal representation. According to

Re: Pure python implementation of string-like class

2006-02-25 Thread Steve Holden
Akihiro KAYAMA wrote: > Hi all. > > I would like to ask how I can implement string-like class using tuple > or list. Does anyone know about some example codes of pure python > implementation of string-like class? > > Because I am trying to use Python for a text processing w

Re: Pure python implementation of string-like class

2006-02-25 Thread and-google
Akihiro KAYAMA wrote: > As the character set is wider than UTF-16(U+10), I can't use > Python's native unicode string class. Have you tried using Python compiled in Wide Unicode mode (--enable-unicode=ucs4)? You get native UTF-32/UCS-4 strings then, which should be enough for most purposes. -

Re: Pure python implementation of string-like class

2006-02-24 Thread bearophileHUGS
Maybe you can create your class using an array of 'L' with the array standard module. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Pure python implementation of string-like class

2006-02-24 Thread Akihiro KAYAMA
Hi all. I would like to ask how I can implement string-like class using tuple or list. Does anyone know about some example codes of pure python implementation of string-like class? Because I am trying to use Python for a text processing which is composed of a large character set. As the