Re: [q-lang-users] More Unicode queries.
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-01-14 18:41:14
|
Rob Hubbard wrote: >> No. Are there other languages which offer this? > > Python: > \N{name} Ok, I see. Well, I could probably extract the necessary tables from ICU, but that would add quite as lot of static string data to the interpreter. So, before I put this on the TODO list, let me ask whether anybody really wants/needs this? > (Originally, I just wondered whether if might be available "for free" > through a library used to implement Unicode support in Q.) No, I didn't like the idea to add a huge dependency like ICU to the interpreter. So I wrote the code for parsing utf8 myself, and other than that Q only pilfers a few bits from ICU for the character predicates, and uses libiconv for encoding conversions. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |