--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> Try unicodePlugin0.73_090804.zip
> in 
> http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/AlansPluginProvisional/
> 
> rtf updated, not pdf or chm
> 
> added append_fromnum (aka append_from_num, append_fromnums, 
> append_from_nums), from_num (creates a new unicode string).
> 
> All alias in docs are hyperlinks.
> 
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > OK, then if you feel like pursuing, it could be something like:
> > 
> > local ustring=unicode.append_fromnum(0x00BC,0x0020,0x215...)
>

Above you said from_num, but I guess you meant from_numS

I have problems trying to append nums, and with square bracket notation with 
this version.

win.debug("unicode version:",unicode.version) ;; 73
win.debug("unicode base:", unicode.get_base) ;; zero
unicode.set_base(0)
win.debug("unicode base:", unicode.get_base)

local austring=unicode.from_nums(0x00BC,0x0020,0x2153,0x00A0,0x2154)
win.debug("from_nums", unicode.to_utf8(austring)) ;;works

local ustring=unicode.repeat("\x20",5)
unicode.set_chars(ustring,0,"n",0x00BC)
unicode.set_chars(ustring,1,"n",0x0020)
unicode.set_chars(ustring,2,"n",0x2153)
unicode.set_chars(ustring,3,"n",0x00A0)
unicode.set_chars(ustring,4,"n",0x2154)
win.debug("set_chars n", unicode.to_utf8(ustring)) ;;works
ustring.append_fromnum(0x00BC, 0x0020, 0x2153, 0x00A0, 0x2154) ;;doesn't work
win.debug("append_fromnum, converted to utf8:", ustring.to_utf8())
ustring = unicode.release(ustring) ;;doesn't work

local nustring=unicode.repeat("\x20",5)
nustring[0]=0x00BC
nustring[1]=0x0020
nustring[2]=0x2153
nustring[3]=0x00A0 ;;doesn't work
nustring[4]=0x2154 ;;doesn't work
win.debug("square bracket notation", unicode.to_utf8(nustring))
quit


Reply via email to