Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 88875 Details for
Bug 120766
eterm-0.9.3-r4 - dead keys not working
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for eterm-0.9.3-r4 (dead keys problem)
patch (text/plain), 1.66 KB, created by
pavel sanda
on 2006-06-10 19:17:55 UTC
(
hide
)
Description:
patch for eterm-0.9.3-r4 (dead keys problem)
Filename:
MIME Type:
Creator:
pavel sanda
Created:
2006-06-10 19:17:55 UTC
Size:
1.66 KB
patch
obsolete
>diff -ur Eterm-0.9.3/src/term.c Eterm-0.9.3.patch/src/term.c >--- Eterm-0.9.3/src/term.c 2004-07-22 22:12:32.000000000 +0200 >+++ Eterm-0.9.3.patch/src/term.c 2006-06-11 03:39:28.000000000 +0200 >@@ -185,6 +185,40 @@ > # define LK_RET() return > #endif > >+ >+ >+ >+#define CARON 0xfe5a >+#define ACUTE 0xfe51 >+ >+static KeySym dead_key_previous = 0; >+ >+#define CHARS 8 >+KeySym TransformTable[CHARS][3] = { >+ {0x74,0xbb,CARON}, //t >+ {0x6e,0xf2,CARON}, //n >+ {0x64,0xef,CARON}, //d >+ {0x54,0xab,CARON}, //T >+ {0x4e,0xd2,CARON}, //N >+ {0x44,0xcf,CARON}, //D >+ {0x6f,0xf3,ACUTE}, //o >+ {0x4f,0xd3,ACUTE}, //O >+}; >+ >+/* Transform key according to given dead key. >+ Restricted to czech keyboard. */ >+void >+transform_with_dead_key(KeySym * key,KeySym dead_key) >+{ >+ int i; >+ for (i=0; i<CHARS; i++) >+ if (*key==TransformTable[i][0] && dead_key==TransformTable[i][2]) { *key = TransformTable[i][1]; return; } >+ >+} >+ >+ >+ >+ > /* This function is called for every keypress event we receive. Its job is to convert > the keypress into its corresponding action. It is responsible for calling the action > bindings routine to see if there is an action binding for that keysym; if there is, >@@ -282,6 +317,14 @@ > if (valid_keysym) { > #endif > >+ /* Transform keysym according to previous dead key */ >+ if (keysym==CARON || keysym==ACUTE) { dead_key_previous=keysym; return; } >+ if (dead_key_previous) { >+ transform_with_dead_key(&keysym, dead_key_previous); >+ kbuf[0]=keysym;kbuf[1]=0; >+ dead_key_previous = 0; >+ } >+ > /* Check for a corresponding action binding. If there is one, we're done with this event. */ > if (action_dispatch(ev, keysym)) { > LK_RET(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 120766
: 88875 |
177551