Hi,,
I have a doubt..
As per the Indian languages,
There are some consonants and vowels.
On combination of Consonant and Vowel, the glyph to be display is different.
It is not similar either to Consonant or Vowel, Its completely different.
Normally , in English, if the consonant 't' is followed by vowel 'a', we will
write it as 'ta', but in Indian languages, these two chars 'ta' will be written
in some different way.
For Indian language, I mapped (for eg.) 'D' to a vowel and 'K' to a
consonant. If I type 'K' the corresponding consonant to that 'K' would be
displayed. If I type the consonant again, it just display the corresponding
consonants and going on and on.
but, If I type the vowel character 'D' next to the consonant 'K', the already
printed consonant, should be removed and the character corresponding to the
combination of the Consonant+Vowel should be displayed.
This is the thing needed for all the Koffice application( of course, KDE). so,
I am modifying the Xlibrary.
Do you have any Idea? How to do that?
Things I have tried are :
To delete the already displayed consonant, we have to generate backspace
event, so, in the XTranslateKeySym(), while the match for Consonant and vowel
comes,
I just assign *sym_rtrn = 65288; (for backspace)
and assigned the resulting glyph in buffer such as
buffer = resultingValue;
but it sends only backspace, not printing the content of the buffer..
If I assigned the values in buffer as
buffer[0]='\b';
strcat(buffer,resultingValue);
It displays a box for '\b' (in KDE Applns) and appended the resultingValue with
that.
Now, I think, what happen If I generate a seperate event for backspace ?
for that, I have to give a KeyPress and KeyRelease Events,
By using, XPeekEvent, I can get the KeyRelease event, but I couldnt get the
Keypress event.
I dont know, whether I am moving in a correct way... !!
Give me your comments and Solutions..
with Regards, Vivek
________________________________________________
(o-----------------------------------------------)
\ Distributed Systems and Optical Networks Lab, \
\ IITM, Chennai-36, India (__) \
\ Ph:044-2578904 oo ) \
\ 044-2578353 -=G=N=U=- |_/\ \
o)_______________________________________________)
Expressions other than SMILES are Dangerous
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert