[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Will Lua kernel use Unicode in the future?
- From: Asko Kauppi <askok@...>
- Date: Thu, 29 Dec 2005 19:43:00 +0200
..keeping my fingers out of the hot oven, but..
local str= "This might be in Kanji: "..U(1234)..U(5678).." is that
I don't oppose the \U, no I don't. If they do it, also \x (hex input)
should be in..
Chris Marrin kirjoitti 29.12.2005 kello 19.17:
Roberto Ierusalimschy wrote:
Translating "U+1234" into a UTF8 sequence is a very small snippet
Sorry my ignorance, but why is such escape sequences so necessary?
there so many control chars in unicode? (For non-control chars, a
UTF8-aware editor should be able to put the proper enconding
string, is that right?)
It allows you to add "incidental" characters without the need for a
fully functional editor for that language. For instance, when I
worked for Sony we had the need to add a few characters of Kanji on
occasion. It's not easy to get a Kanji editor setup for a western
keyboard, so adding direct unicode was more convenient. There are
also some oddball symbols in the upper registers for math and
chemistry and such that are easier to add using escapes.
chris marrin ,""$,
firstname.lastname@example.org b` $ ,,.
mP b' , 1$'
,.` ,b` ,` :$$'
mP ,` ,mm
,b" b" ,` ,mm m$
$ ,m ,`P$$
m$` ,b` .` ,mm ,'|$P ,|"1$` ,b
$P ,` :$1
b$` ,$: :,`` |$$ ,` $$` ,|` ,$$,,`"$
$ .` :$|
b$| _m$`,:` :$1 ,` ,$Pm|` ` :$$,..;"'
P$b, _;b$$b$1" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'