Pavel Makovec


Hello,
I'am using DDK for creating altered keyboard layout. There are a lot's of examples but i still have problem with russian accent (usually in russian don't use but in textbooks is still writing accent - it's heplfull for beginners). I tried to modify section with DEAD KEYS in my source file for layout but there is a problem that I need write for example " " or " " with accent and symbol with accent what I need is not in the Unicode chart. There are only > , > .
I tried this, but it isn' works:

static ALLOC_SECTION_LDATA VK_TO_WCHARS2 aVkToWch2[] = {
// | | Shift |
// |=========|=========|

{'1' ,0 ,WCH_DEAD ,WCH_DEAD },
{0xff ,0 ,0x0301 ,0x0301 }, // it's only part of a code



static ALLOC_SECTION_LDATA DEADKEY aDeadKey[] = {

DEADTRANS( 0x0444 , 0x0301 , 0x0444 , 0x0301), //
0, 0
};

this makes only :-(


Sorry for my english but I hope that you understant me.
Thanks for your help.

Pavel



Re: Keyboard layout for writing Russian coursebooks

Pavel Makovec


Pavel Makovec wrote:
Hello,
I'am using DDK for creating altered keyboard layout. There are a lot's of examples but i still have problem with russian accent (usually in russian don't use but in textbooks is still writing accent - it's heplfull for beginners). I tried to modify section with DEAD KEYS in my source file for layout but there is a problem that I need write for example " " or " " with accent and symbol with accent what I need is not in the Unicode chart. There are only > , > .
I tried this, but it isn' works:

static ALLOC_SECTION_LDATA VK_TO_WCHARS2 aVkToWch2[] = {
// | | Shift |
// |=========|=========|

{'1' ,0 ,WCH_DEAD ,WCH_DEAD },
{0xff ,0 ,0x0301 ,0x0301 }, // it's only part of a code



static ALLOC_SECTION_LDATA DEADKEY aDeadKey[] = {

DEADTRANS( 0x0444 , 0x0301 , 0x0444 , 0x0301), //
0, 0
};

this makes only :-(


Sorry for my english but I hope that you understant me.
Thanks for your help.

Pavel


Hi, so I made this:

this is a part of file for keyboard layout, for ex. kbdgr.c

static ALLOC_SECTION_LDATA VK_TO_WCHARS2 aVkToWch2[] = {
// | | Shift |
// |=========|=========|
{'a' ,CAPLOK ,WCH_LGTR ,'A' },
{0 ,0 ,0 ,0 }
};

static ALLOC_SECTION_LDATA LIGATURE2 aLigature[] = {
{'a', 0, 0x0444, 0x0301 },
{0 ,0 ,0 ,0 }
};

static ALLOC_SECTION_LDATA KBDTABLES KbdTables = {
/*
* Ligatures
*/
2,
sizeof(aLigature[0]),
(PLIGATURE1)aLigature
};

end of file

This makes , it is a ligature of 0x0444 and accute symbol 0x0301.
So I solved a half of my problem, now I need print by a DEAD_KEY.

I want to solve this: I'll press a DEAD_KEY with hexa symbol 0x0301, then I'll press the key which presents 0x0444 ( ), and the product of this will be .

Thanks for your help.








Re: Keyboard layout for writing Russian coursebooks

Danny Thorpe MSFT

Hi Pavel,

You should ask this question in one of the MSDN DDK or Win32 development forums. This Windows Live forum is for web services and web application development topics. We don't know nothin' about no DDK. ;>

Thanks,

-Danny