[BangPypers] converting utf to octal
Kenneth Gonsalves
lawgon at au-kbc.org
Wed Nov 24 04:51:35 CET 2010
On Tue, 2010-11-23 at 17:36 +0530, JAGANADH G wrote:
> On Tue, Nov 23, 2010 at 4:35 PM, Kenneth Gonsalves
> <lawgon at au-kbc.org>wrote:
>
> > hi,
> >
> > say I have an indic (tamil) string like நான். This is actually
> > represented by the following:
> > 0x0ba8,0x0bbe,0x0ba9,0x0bcd. How can I convert the above string into
> > these characters - or at least into base 10 integers?
> > --
> >
>
>
> Are you looking something similar to this
> http://silpa.smc.org.in/CharDetails
something like that, but the code on that site is all thoroughly GPLed
and hence cannot be used. Actually the moment I saw the GPL notice, I
shut my eyes and closed the site. Unfortunately, before closing my eyes
I noticed that they import codecs - which is central to my solution. I
do not think I have violated the GPL by importing codecs - but am a bit
apprehensive about getting a legal notice. Anyway, what I wanted to do
is here:
http://bitbucket.org/lawgon/tamtrans/src/21197e0f1388/syllcount.py
<rant> why do people make useful code unusable by GPLing it? </rant>
--
regards
Kenneth Gonsalves
More information about the BangPypers
mailing list