--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > --- In [email protected], "entropyreduction" 
> > <alancampbelllists+yahoo@> wrote:
> > >
> > > --- In [email protected], "Sheri" <sherip99@> wrote:
> 
> 
> > 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.
> 
> Yup.  Try unicodePlugin0.73_090729.zip in
> http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/AlansPluginProvisional/
>  

much better, now work in both base 0 and base 1 incantations.

> > 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. 

> I think set_char, set_chars both work now.

Not for me, I get:

Cannot locate plugin service unicode.set_char

> 
> > win.debug("unicode version:",unicode.version) ;; currently nothing 
> 
> ;Still broken.

yes, need a version number

> 
> local ustring=unicode.new("     ") ;;5 spaces
> 
> I could change the rules for set_char/set_chars, so that it
> string into which you're inserting character isn;t long enough,
> it will be extended. But with what character? 

> ;Make sure there are actually five spaces there.

There were, but doesn't look that way on Yahoo.
> 
> unicode.empty(5) could generate a string made of five blanks. But
> a bit redundant cause there's unicode.repeat, which is much same
> thing. Maybe empty should be removed?

Removing empty would be fine, I tried unicode.repeat and that worked for the 
purpose I had.

It would be nice to be able to append using some form of the numeric value. Eg:

local 
ustring=unicode.char(0x00BC)++unicode.char(0x0020)++unicode.char(0x2153)..etc...

or possibly:

ustring=unicode.char(0x00BC)++"\x20"++unicode.char(0x2153)..etc..

Regards,
Sheri

Reply via email to