Inserting accented characters

Chipp Walters chipp at chipp.com
Fri Dec 6 06:08:01 EST 2002


Bernard,
I don't have any easy answers here, if the key commands don't work in a
field then you may want to try and trap them and insert into the field the
correct codes. I have a menu called "Special Chars" which I use to do some
of this...

on menuPick pWhich
  switch pWhich
  case "copyright mark"
    if the selectedChunk contains "field" then
      put "©" after the selectedChunk
    end if
    break
  case "registered mark"
    if the selectedChunk contains "field" then
      put "®" after the selectedChunk
    end if
    break
  case "trademark"
    if the selectedChunk contains "field" then
      put "™" after the selectedChunk
    end if
    break
  case "bullet"
    if the selectedChunk contains "field" then
      put "•" after the selectedChunk
    end if
    break
  end switch
end menuPick

-Chipp

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Bernard
> Devlin
> Sent: Thursday, December 05, 2002 4:59 AM
> To: use-revolution
> Subject: Inserting accented characters
>
>
> I would like to make it as easy for users to insert accented characters.
>
> I know that in word-processing apps there are key combinations
> (e.g. "control+,
> (pause) c" ) in Wordpad.  Some of my users are quite accustomed to this.
> However even this does not appear to work in a Rev field.
>
> Do I need a series of handlers that will intercept these keyboard
> combinations
> and insert the appropriate characters?
>
> If this is feasible, I can imagine augmenting this with a
> scrollable palette of
> buttons (the labels of which are generated from a user-modifiable list of
> accented characters) that would insert the appropriate character
> into a field.
> However, I can imagine a problem with the palette knowing which
> field should
> receive the character - I take it if the user has clicked in a
> field that this
> can direct the output of the palette button.
>
> Does this seem like the right way to go?  Will the introduction
> of Unicode in
> Rev 2.0 make all of this unnecesssary?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the Use-livecode mailing list