--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > Doc says, if type for default_get_set_type is numeric, it can use
> > values in the range 0 to 65280. 0x2153 is 8531; but it gives the
> > error:
> > unicode.set_chars: Numeric value too big
>
> yup, I was comparing with 0xFF instead of 0xFFFF.
>
> Fixed in unicodePlugin0.73_090728.zip in
> http://tech.groups.yahoo.com/group/power-pro/sfupld?path=/0_TEMP_/AlansPluginProvisional/
>
> > Also, error_dialog_on is documented, but the service doesn't exist.
>
> No, I forgot to delete documentation to it. You can have it if
> yo0u want it, but then I'd have to set unicode_status all the
> time so scripter would know when things went wrong. Can do, your
> call.
Not necessary, I prefer to use exec.onerror("none") and test _lasterror_
> > Also, it appeared I should be able to specify the type in the
> > brackets when setting only one character, but then I get position
> > argument errors.
>
> With unicodePlugin0.73_090728.zip, you still getting problem?
> I'm not.
>
Yes, see below. Also something is up with base. If base is the default of zero,
can't set ustring[0] or ustring[5] -- they both give the position arg error.
Also the doc mentions set_char (singular) but only set_chars (plural) seems to
be a valid service. But set_chars doesn't work if type instead of end position
is used.
win.debug("unicode version:",unicode.version) ;; currently nothing returned
win.debug("unicode base:", unicode.get_base) ;; zero
unicode.set_base(1)
win.debug("unicode base:", unicode.get_base)
unicode.default_get_set_type("numeric")
local ustring=unicode.new(" ") ;;5 spaces
ustring[1]=0x00BC
ustring[2]=0x0020
ustring[3]=0x2153
ustring[4]=0x00A0
ustring[5]=0x2154
win.debug(unicode.to_utf8(ustring))
local nustring=unicode.new(" ") ;;5 spaces
nustring[1,"n"]=0x00BC
nustring[2,"n"]=0x0020 ;;<--unicode.set_char:position args out of range
nustring[3,"n"]=0x2153
nustring[4,"n"]=0x00A0
nustring[5,"n"]=0x2154
win.debug(unicode.to_utf8(nustring))
quit