Not sure what is your probleam with tolower. Anyways you can
re-use your old tolower by converting utf8 to latin1, do
everything that you used to and then convert back to unicode.

eg. unicode -> latin1

  a. {~ 3&u:@ucp 'utf8 or wide unicode'

do not worry latin1 cannot display correctly in J session so
long as you know its bit pattern is correct.

Сб, 01 мар 2014, Björn Helgason писал(а):
> I wrote a new tolower for nationalcharactersupport.
> 
> I have not done that since J turned Unicode.
> 
> To begin with then I did it in JQT on the Android.
> 
> JQT has never worked for me in Android before this latest release.
> 
> It took some time learning how to go about this.
> 
> Turns out that the national characters and the QT editor do not always
> agree.
> 
> Running all lines from the editor could therefore be a bit garbled at times.
> 
> Fixing the lines sometimes worked even if they looked pretty much the same
> before and after.
> 
> I did this in steps with globals to see what was happening.
> 
> The short story is that I managed to do this in the end.
> 
> Started out with the system utility tolower.
> 
> This two liner is in a script now with 33 lines.
> 
> tolowerna uses 7 u: in order to work.
> 
> Now that I have it working I may compress it -  or not.
> 
> Might even put comments in it.
> 
> I never bothered with this in other new environments because I did not
> really need it.
> 
> My older versions where and when I needed this are working merrily in pre
> Unicode versions of J.
> 
> I recently was going to work on a crossword assistance for the Android and
> I needed this to work and in J console it did not because of a bug in u:
> 
> It is nice to be able to get the qt version up and running and I am looking
> forward to do work with wd and pd.
> 
> Even if this can be made to work there are some quirks with editing
> sometimes and may need some getting used to.
> 
> Copy/paste does work but not easy.
> 
> Sometimes unintentional copy/paste happened.
> 
> Scrolling and sometimes it looked like lines turned readonly
> 
> Files or the terminal froze ob occasions.
> 
> It is a very interesting and promising tool.
> 
> I found my old way of doing everything in a file and send lines to terminal
> working fine.
> 
> Viewing and then scrolling the terminal can be a problem.
> 
> Much of the problems may be me not knowing enough.
> 
> This is getting quite useful.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to