Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- Date: Tue, 16 Jan 2007 21:12:56 +0900
- From: "Guillaume Proux" <gproux@example.com>
- Subject: Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- References: <45AAFDA9.90504@example.com> <20070115091710.465a8f0b.jep200404@example.com> <op.tl694ax0p3esx5@example.com> <78d7dd350701151659n104a93e3v6cd6cb936f4459ed@example.com> <20070115212859.0251adf4.jep200404@example.com> <157AA731-9AC1-4FEF-ABAD-23A5BE8F0C05@example.com> <Pine.NEB.4.64.0701161628390.12325@example.com> <78d7dd350701160014h40155a75n345183640cbccfc5@example.com> <19dd68ba0701160122i1b813c10jf34c0210d53fbbdd@example.com> <op.tl8roo02rtshzt@example.com>
On 1/16/07, Zev Blut <zb@example.com> wrote:> Ruby still does not have proper Unicode support.
I have to ask how does Unicode support become a stopping point for "Japanese" text processing?
I never said "stopping"... Simply Unicode support makes it easier to support Japanese processing.... or any other text processing. You never have to worry anymore...
In *standard python*, you can load up files in sjis, euc-jp, utf-8, utf-16 convert them on the fly to Unicode for processing...
For example...
fh = file("sjisfile","rb") content = fh.read().decode("sjis") # then you can print len(content), content[2]
will give you the string len and give you the second "character".
I don't know what would happen with standard ruby but the little I have read is scary.
--- from http://wiki.rubyonrails.org/rails/pages/HowToUseUnicodeStrings --- Note though that most of the methods return wrong results. Among the methods which are not covered by jcode.rb (every use of these methods in your application introduces a bug, sometimes including irreversible damage to strings):
String#reverse String#size ... String#strip, String#rstrip and String#lstrip String#slice ----------
I would say that Jim should try a simple program in both languages and make an educated choice from his own experience.
cheers,
Guillaume
- Follow-Ups:
- References:
- [tlug] What is the most appropriate scripting language
- From: Dave M G
- Bourne Shell is the most appropriate scripting language (was Re: [tlug] What is the most appropriate scripting language)
- From: Jim
- [tlug] Re: Bourne Shell is the most appropriate scripting language
- From: Greg Thomson
- Re: [tlug] Re: Bourne Shell is the most appropriate scripting language
- From: Nguyen Vu Hung
- Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Jim
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Jean-Christophe Helary
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Curt Sampson
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Nguyen Vu Hung
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Guillaume Proux
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Zev Blut
Home | Main Index | Thread Index
- Prev by Date: Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- Next by Date: Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- Previous by thread: Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- Next by thread: Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links