Talk:OLPC Nepali Keyboard: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 17: Line 17:


:::Comparing with the xkb file for Nepali, there a many differences. Is there a reason for these discrepancies? --[[User:Walter|Walter]] 05:41, 27 October 2007 (EDT)
:::Comparing with the xkb file for Nepali, there a many differences. Is there a reason for these discrepancies? --[[User:Walter|Walter]] 05:41, 27 October 2007 (EDT)

== Nepali Unicode traditional layout ==

It has been suggested that we use the Unicode layout instead of a variant of the standard X Windows layout. Comments?

<font color="red"> work in progress </font>
<pre>
partial alphanumeric_keys
xkb_symbols "olpc-unicode" {

// Contact: Walter Bender <walter@laptop.org>

include "np"
key <TLDE> { [ 0x100091E, 0x1000965 ] }; // NYA; double danda
key <AE01> { [ 0x1000967 ] }; // Nepali digit one
key <AE02> { [ 0x1000968 ] }; // Nepali digit two
key <AE03> { [ 0x1000969 ] }; // Nepali digit three
key <AE04> { [ 0x100096A ] }; // Nepali digit four
key <AE05> { [ 0x100096B ] }; // Nepali digit five
key <AE06> { [ 0x100096C, ] }; // Nepali digit six
key <AE07> { [ 0x100096D, ] }; // Nepali digit seven
key <AE08> { [ 0x100096e ] }; // Nepali digit eight
key <AE09> { [ 0x100096F ] }; // Nepali digit nine
key <AE10> { [ 0x1000966 ] }; // Nepali digit zero
key <AE11> { [ 0x1000913, 0x1000914 ] }; // O, AU
key <AE12> { [ 0x100200C, 0x1000902 ] }; // ZERO-WIDTH-NON-JOINER (ZWNJ); SIGN ANUSVARA

key <AC12> { [ 0x100094D, 0x100200D ] }; // SIGN VIRAMA; ZERO-WIDTH-JOINER (ZWJ)

key <AD01> { [ 0x100091C, 0x100091D ] }; // JA, JHA
key <AD02> { [ 0x1000917, 0x1000918 ] }; // GA, GHA
key <AD03> { [ 0x100092F, 0x100091E ] }; // YA, YNA
key <AD04> { [ 0x1000938, 0x1000936 ] }; // SA, SHA
key <AD05> { [ 0x100090F, 0x1000910 ] }; // E, AI
key <AD06> { [ 0x100091B, 0x100091A ] }; // CHHA, CHA
key <AD07> { [ 0x100092A, 0x100092B ] }; // PA, PHA
key <AD08> { [ 0x1000947, 0x1000948 ] }; // VOWEL SIGN E, VOWEL SIGN AI
key <AD09> { [ 0x100094B, 0x100093E ] }; // VOWEL SIGN O, VOWEL SIGN AA
key <AD10> { [ 0x1000924, 0x1000925 ] }; // TA, THA
key <AD11> { [ 0x1000909, 0x100090A ] }; // HRSHWA U, DIRGHA UU
key <AD12> { [ 0x100093F, 0x1000940 ] }; // VOWEL SIGN HRSHWA I, VOWEL SIGN DIRGHA II

key <AC01> { [ 0x100092E, 0x1000902 ] }; // MA, SIGN ANUSVARA
key <AC02> { [ 0x1000907, 0x1000908 ] }; // HRSHWA I, DIRGHA II
key <AC03> { [ 0x1000928, 0x1000923 ] }; // NA, NNA
key <AC04> { [ 0x100094D, 0x1000921 ] }; // VIRAMA (HALANTA?), DDA
key <AC05> { [ 0x100091F, 0x1000920 ] }; // TTA, TTHA
key <AC06> { [ 0x1000926, 0x1000927 ] }; // DA, DHA
key <AC07> { [ 0x100093E, 0x1000901 ] }; // SIGN AA, SIGN CANDRABINDU
key <AC08> { [ 0x1000930, 0x1000943 ] }; // RA, VOWEL SIGN VOCALIC R
key <AC09> { [ 0x1000915, 0x1000916 ] }; // KA, KHA

key <AB01> { [ 0x1000937, 0x100090B ] }; // SSA, VOCALIC R (RRI)
key <AB02> { [ 0x100092C, 0x100092D ] }; // BA, BHA
key <AB03> { [ 0x1000941, 0x1000942 ] }; // VOWEL SIGN HRSHWA U, VOWEL SIGN DIRGHA U (UU)
key <AB04> { [ 0x1000939, 0x1000922 ] }; // HA, DDHA
key <AB05> { [ 0x1000913, 0x1000914 ] }; // O, AU
key <AB06> { [ 0x1000905, 0x1000906 ] }; // A, AA
key <AB07> { [ 0x1000932, 0x1000919 ] }; // LA, NGA
key <AB08> { [ comma, 0x1000935 ] }; // VA
key <AB09> { [ 0x1000964, 0x1000965 ] }; // PURNA VIRAM, DIRGHA VIRAM

key <I219> { [ ISO_Next_Group, ISO_Prev_Group ] }; //language key

};

</pre>

Revision as of 23:05, 9 December 2007

character sample

What is the equivalent of AB (the first two letters of the alphabet) in Nepalese? --Walter 23:18, 26 September 2007 (EDT)

It's कख Shankar 02:46, 27 September 2007 (EDT)
Thanks Shankar. I've used them on the "language key". I've finished my first pass--any feedback would be appreciated. --Walter 13:15, 27 September 2007 (EDT)
Purpose? If this is for something like a font sample, then you should instead use the characters which are most likely to vary in interesting ways. (for English, probably "ag") AlbertCahalan 13:11, 27 September 2007 (EDT)

Thanks Walter. In the png file that you have prepared, the fifth row (zxcvbnm -row) has some errors, could you check it once. We have some extra characters too, which we type in traditional systems using Caps Lock key. Any ideas, how can we incorporate those extra characters in this layout? -- Suyesh 08:32, 28 September 2007 (EDT)

I'll work on the z-? row. Regarding extra characters, how many are there? We could add them as shifts to the numbers row, for example. The way the keyboard input will be set up, you can switch back and forth between Nepalese and Latin characters en mass by using the "language" key (the AB/कख) or individually by using the Alt-Gr key (for example, when in Nepalese "mode", Alt-Gr ज would give you q; Alt-Gr १ would give you 1; Shift-Alt-Gr ज would give you Q). --Walter 09:49, 28 September 2007 (EDT)
I just posted a new version of the keyboard. Please let me know if I caught all of the changes. --Walter 10:00, 28 September 2007 (EDT)
As per above, I'd suggest we consider any of the keycap positions marked in red for adding characters (See
NE-MP-alt.png
). --Walter 11:35, 28 September 2007 (EDT)
Thank you again Walter. There are about 30 extra characters but we think that some of them are obsolete. We will talk to linguist here in Nepal to decide which of them are really required, and inform you soon.--Suyesh 12:38, 28 September 2007 (EDT)
Shankar, thanks for labeling the characters. Do you have any further word on whether or not the "extra" characters are desired or needed? -Walter 04:35, 27 October 2007 (EDT)
Comparing with the xkb file for Nepali, there a many differences. Is there a reason for these discrepancies? --Walter 05:41, 27 October 2007 (EDT)

Nepali Unicode traditional layout

It has been suggested that we use the Unicode layout instead of a variant of the standard X Windows layout. Comments?

work in progress

partial alphanumeric_keys
xkb_symbols "olpc-unicode" {

// Contact: Walter Bender <walter@laptop.org>

  include "np"
      key <TLDE> { [      0x100091E,  0x1000965 	]	}; // NYA; double danda
      key <AE01> { [      0x1000967	 		]	}; // Nepali digit one
      key <AE02> { [      0x1000968			]	}; // Nepali digit two
      key <AE03> { [      0x1000969 	 		]	}; // Nepali digit three
      key <AE04> { [      0x100096A  	 		]	}; // Nepali digit four
      key <AE05> { [      0x100096B  	 		]	}; // Nepali digit five
      key <AE06> { [      0x100096C,   	 	]	}; // Nepali digit six
      key <AE07> { [      0x100096D,   	 	]	}; // Nepali digit seven
      key <AE08> { [      0x100096e  	 		]	}; // Nepali digit eight
      key <AE09> { [      0x100096F	 		]	}; // Nepali digit nine
      key <AE10> { [      0x1000966			]	}; // Nepali digit zero
      key <AE11> { [      0x1000913,  0x1000914         ]       }; // O, AU
      key <AE12> { [      0x100200C,  0x1000902 	]       }; // ZERO-WIDTH-NON-JOINER (ZWNJ); SIGN ANUSVARA

      key <AC12> { [      0x100094D,  0x100200D 	]	}; // SIGN VIRAMA; ZERO-WIDTH-JOINER (ZWJ)

      key <AD01> { [      0x100091C,  0x100091D 	]	}; // JA, JHA
      key <AD02> { [      0x1000917,  0x1000918       	]	}; // GA, GHA
      key <AD03> { [      0x100092F,  0x100091E 	]	}; // YA, YNA
      key <AD04> { [      0x1000938,  0x1000936       	]	}; // SA, SHA
      key <AD05> { [      0x100090F,  0x1000910		]	}; // E, AI
      key <AD06> { [      0x100091B,  0x100091A         ]       }; // CHHA, CHA
      key <AD07> { [      0x100092A,  0x100092B 	]	}; // PA, PHA
      key <AD08> { [      0x1000947,  0x1000948       	]	}; // VOWEL SIGN E, VOWEL SIGN AI
      key <AD09> { [      0x100094B,  0x100093E		]	}; // VOWEL SIGN O, VOWEL SIGN AA
      key <AD10> { [      0x1000924,  0x1000925       	]	}; // TA, THA
      key <AD11> { [      0x1000909,  0x100090A 	]	}; // HRSHWA U, DIRGHA UU
      key <AD12> { [      0x100093F,  0x1000940 	]	}; // VOWEL SIGN HRSHWA I, VOWEL SIGN DIRGHA II

      key <AC01> { [      0x100092E,  0x1000902         ]       }; // MA, SIGN ANUSVARA
      key <AC02> { [      0x1000907,  0x1000908		]	}; // HRSHWA I, DIRGHA II
      key <AC03> { [      0x1000928,  0x1000923         ]       }; // NA, NNA
      key <AC04> { [      0x100094D,  0x1000921		]       }; // VIRAMA (HALANTA?), DDA
      key <AC05> { [      0x100091F,  0x1000920       	]	}; // TTA, TTHA
      key <AC06> { [      0x1000926,  0x1000927       	]	}; // DA, DHA
      key <AC07> { [      0x100093E,  0x1000901       	]	}; // SIGN AA, SIGN CANDRABINDU
      key <AC08> { [      0x1000930,  0x1000943       	]	}; // RA, VOWEL SIGN VOCALIC R
      key <AC09> { [      0x1000915,  0x1000916 	]	}; // KA, KHA

      key <AB01> { [      0x1000937,  0x100090B		]	}; // SSA, VOCALIC R (RRI)
      key <AB02> { [      0x100092C,  0x100092D		]       }; // BA, BHA
      key <AB03> { [      0x1000941,  0x1000942       	]	}; // VOWEL SIGN HRSHWA U, VOWEL SIGN DIRGHA U (UU)
      key <AB04> { [      0x1000939,  0x1000922 	]	}; // HA, DDHA
      key <AB05> { [      0x1000913,  0x1000914		]	}; // O, AU
      key <AB06> { [      0x1000905,  0x1000906		]	}; // A, AA
      key <AB07> { [      0x1000932,  0x1000919 	]	}; // LA, NGA
      key <AB08> { [      comma,  0x1000935		]       }; // VA
      key <AB09> { [      0x1000964,  0x1000965		]       }; // PURNA VIRAM, DIRGHA VIRAM

      key <I219> { [ ISO_Next_Group, ISO_Prev_Group	]	};  //language key

};