From dcfdf8be20bff349c1a7a54d6b4d079d91bf540e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 28 Nov 2010 09:12:36 +0000 Subject: Removed FLTK own character composition rules --> left to OSs. Closes STR #2421. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Input.H | 168 +++------------------------------------------------------- 1 file changed, 6 insertions(+), 162 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Input.H b/FL/Fl_Input.H index 89903a24c..da193849d 100644 --- a/FL/Fl_Input.H +++ b/FL/Fl_Input.H @@ -40,7 +40,11 @@ characters (even 0), and will correctly display any UTF text, using ^X notation for unprintable control characters. It assumes the font can draw any characters of the used scripts, which is true - for standard fonts under MSWindows and Mac OS X.

+ for standard fonts under MSWindows and Mac OS X. + Characters can be input using the keyboard or the character palette/map. + Character composition is done using using dead keys and/or a compose + key as defined by the operating system. +

@@ -84,168 +88,8 @@ expected. - -
Shift+moveMove the cursor but also extend the selection.
RightCtrl or -
Compose
- \anchor Fl_Input_Compose_Character - Start a compose-character - sequence. The next one or two keys typed define the character to - insert (see table that follows.) - -

For instance, to type "á" type [compose][a]['] or [compose]['][a]. - -

The character "nbsp" (non-breaking space) is typed by using - [compose][space]. - -

The single-character sequences may be followed by a space if - necessary to remove ambiguity. For instance, if you really want to - type "ª~" rather than "ã" you must type [compose][a][space][~]. - -

The same key may be used to "quote" control characters into the - text. If you need a ^Q character you can get one by typing - [compose][Control+Q]. - -

X may have a key on the keyboard - defined as XK_Multi_key. If so this key may be used as well - as the right-hand control key. You can set this up with the program - xmodmap. - -

If your keyboard is set to support a foreign language you should - also be able to type "dead key" prefix characters. On X you will - actually be able to see what dead key you typed, and if you then move - the cursor without completing the sequence the accent will remain - inserted. - -

Under MSWindows or Mac OS X, character composition is done using - system-defined keystroke series.

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Character Composition Table
KeysCharKeysCharKeysCharKeysCharKeysCharKeysChar
spnbsp*°` AÀD -Ð` aàd -ð
!¡+ -±' AÁ~ NÑ' aá~ nñ
%¢2²A ^Â` OÒ^ aâ` oò
#£3³~ AÃ' OÓ~ aã' oó
$¤'´: AÄ^ OÔ: aä^ oô
y =¥uµ* AÅ~ OÕ* aå~ oõ
|¦pA EÆ: OÖa eæ: oö
&§.·, CÇx×, cç- :÷
:¨,¸E `ÈO /Ø` eèo /ø
c©1¹' EÉ` UÙ' eé` uù
aªoº^ EÊ' UÚ^ eê' uú
< <«> >»: EË^ UÛ: eë^ uû
~¬1 4¼` IÌ: UÜ` iì: uü
-­1 2½' IÍ' YÝ' ií' yý
r®3 4¾^ IÎT HÞ^ iît hþ
_¯?¿: IÏs sß: iï: yÿ
-*/ + */ class FL_EXPORT Fl_Input : public Fl_Input_ { int handle_key(); int shift_position(int p); -- cgit v1.2.3