FLTK logo

[fltk.general] Re: Handling composed key for international text

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Handling composed key for international text "'Matthias Melcher' via fltk.general" 09:53 Aug 23  
  „Compare“ originates from OS‘s that use several keystrokes to write one character. For example, the Germn ö has a key on the German keyboard (so it’s a single keystroke and Fl::event_text returns the correct utf8 sequence. But if you have a U.S. keyboard, you can type ö by compositing “ and o . On macOS the sequence is Alt-U followed by O. FLTK outputs the “ after the first keystroke, and on the second keystroke, compose deletes the previous character and instead generates the ö. 

This is pretty cool to watch when you compose Korean characters out of three keystrokes. fLTK „builds“ the finals glyph in three steps.

ggar...@gmail.com schrieb am Freitag, 22. August 2025 um 22:03:25 UTC+2:
I wrote a text input widget (NOT derived from Fl_Input or Fl_Input_ as
it is Vulkan based).  I need some help in knowing how to handle
international input.

For example, how to handle:

ó or ü

Currently, my input widget uses Fl::event_text and as such, it gets
twice the input.  That is both:

´ and ó

Can any of the developers point me to the location in the FLTK code
where composition keys are handled?

--
ggar...@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/d68f6ff9-1ba8-4eef-b6ee-979f775357e1n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.