Hexadecimal Unicode input feature?

View: New views
6 Messages — Rating Filter:   Alert me  

Hexadecimal Unicode input feature?

by Enrico Tröger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

there is a feature in GTK which allows the user to hit Ctrl-Shift+u and
then type any hexcode of an Unicode character and after pressing Enter,
the typed character is printed. This works in GtkEntrys and
GtkTextViews.
Wouldn't it be nice if Scintilla would also support this? Or is there
already anything similar?

Alternatively, this could also be implemented by the container app. But
IMO it should be provided by Scintilla.

Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.key
Powered by Debian GNU/Linux, GnuPG and Sylpheed.
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Re: Hexadecimal Unicode input feature?

by Enrico Tröger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 8 Aug 2007 11:17:30 +0200, Enrico Tröger
<enrico.troeger@...> wrote:

> Hi,
>
> there is a feature in GTK which allows the user to hit Ctrl-Shift+u
> and then type any hexcode of an Unicode character and after pressing
> Enter, the typed character is printed. This works in GtkEntrys and
> GtkTextViews.
> Wouldn't it be nice if Scintilla would also support this? Or is there
Any opinions?


Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.key
Powered by Debian GNU/Linux, GnuPG and Sylpheed.
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Re: Hexadecimal Unicode input feature?

by Iago Rubio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Enrico,

> > there is a feature in GTK which allows the user to hit Ctrl-Shift+u
> > and then type any hexcode of an Unicode character and after pressing
> > Enter, the typed character is printed. This works in GtkEntrys and
> > GtkTextViews.

I tried it on Linux, and it worked on scintilla as long as I hold Ctrl +
Shift while typing the Unicode.

Check this ogg
http://iagorubio.com/scintilla/ScintillaUnicode.ogg
--
Iago Rubio

_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Re: Hexadecimal Unicode input feature?

by Enrico Tröger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 21 Aug 2007 21:05:27 +0200, Iago Rubio <iago@...>
wrote:

> Hi Enrico,
>
> > > there is a feature in GTK which allows the user to hit Ctrl-Shift
> > > +u and then type any hexcode of an Unicode character and after
> > > pressing Enter, the typed character is printed. This works in
> > > GtkEntrys and GtkTextViews.
>
> I tried it on Linux, and it worked on scintilla as long as I hold
> Ctrl + Shift while typing the Unicode.
I can't get it working here, whether with cssed(0.4.0) nor Geany nor
SciTE. Everytime when I press Ctrl+Shift+(any unicode) nothing happens.
(any unicode) is:
u+264d or
u264d or
264d?

> Check this ogg
> http://iagorubio.com/scintilla/ScintillaUnicode.ogg
Cool, looks like what I want.

Regards,
Enrico
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Re: Hexadecimal Unicode input feature?

by Iago Rubio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry if this message is duplicated, but It was sent last Thursday and
I've not seen it reaching the list.


On Wed, 2007-08-22 at 19:37 +0200, Enrico Tröger wrote:
> On Tue, 21 Aug 2007 21:05:27 +0200, Iago Rubio <iago@...>
> > > > there is a feature in GTK which allows the user to hit
Ctrl-Shift
> > > > +u and then type any hexcode of an Unicode
[snip]
> > I tried it on Linux, and it worked on scintilla as long as I hold
> > Ctrl + Shift while typing the Unicode.
> I can't get it working here, whether with cssed(0.4.0) nor Geany nor
> SciTE. Everytime when I press Ctrl+Shift+(any unicode) nothing
happens.

I tried it now with Scite and you're right. The cssed version I used is
CVS.
 
> (any unicode) is:
> u+264d or
> u264d or
> 264d?

Actually (Ctrl+Shift)+u264d.

In my case - with fedora 5 and CVS cssed - when pressing Ctrl+Shift+u
it's written an underlined 'u' on screen, then - without releasing Ctrl
+Shift - I type the unicode - say 264D - and then press enter.

The results are as you saw in the ogg file.

I tested it further, and scintilla only received the Shit+Ctrl key
events, and as soon as I pressed the 'u', it stops receiving any events.

The app I used - cssed - does not manage this key binding, so I bet it's
the gtk IM module who's doing the job.

If you need me to do any testing here, just let me know.


Regards.
--
Iago Rubio


_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Re: Hexadecimal Unicode input feature?

by Enrico Tröger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 26 Aug 2007 12:37:19 +0200, Iago Rubio <iago@...>
wrote:

> On Wed, 2007-08-22 at 19:37 +0200, Enrico Tröger wrote:
> > On Tue, 21 Aug 2007 21:05:27 +0200, Iago Rubio <iago@...>
> > > > > there is a feature in GTK which allows the user to hit
> Ctrl-Shift
> > > > > +u and then type any hexcode of an Unicode
> [snip]
> > > I tried it on Linux, and it worked on scintilla as long as I hold
> > > Ctrl + Shift while typing the Unicode.
> > I can't get it working here, whether with cssed(0.4.0) nor Geany nor
> > SciTE. Everytime when I press Ctrl+Shift+(any unicode) nothing
> happens.
>
> I tried it now with Scite and you're right. The cssed version I used
Because SciTE does set the keybinding Ctrl+Shift+U for changing the
selection to upper case.

> > (any unicode) is:
> > u+264d or
> > u264d or
> > 264d?
>
> Actually (Ctrl+Shift)+u264d.
And it does actually work. I don't know why I didn't get it working the
first time I tried but now it works also in my app if I don't bind
Ctrl-Shift-U. Thanks Iago.

> I tested it further, and scintilla only received the Shit+Ctrl key
> events, and as soon as I pressed the 'u', it stops receiving any
> events.
>
> The app I used - cssed - does not manage this key binding, so I bet
> it's the gtk IM module who's doing the job.
Probably. Or maybe the Scintilla widget inherits this keybinding and the
associated feature from the parent GtkWidget.

Thanks for your help.

Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.key


_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

attachment0 (196 bytes) Download Attachment