Bug 90345 - New Layout variant for symbols file lk
Summary: New Layout variant for symbols file lk
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: high normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 17:00 UTC by JC Ahangama
Modified: 2015-05-09 16:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description JC Ahangama 2015-05-06 17:00:36 UTC
This is a proposed variant to add into the symbol file lk.
It has been tested and works as expected. The text below is
in three parts. 

1. The variant program for inclusion at the bottom of the
   symbols lk file.
2. The portion to be added to base.xml at the following
   location:
   <layout> -> <name>lk</name> -> <variantList>
   add the lines just above the closing tag </variantList>
3. Add the given line under '! variant' section as the first
   alphabetically listed variant for lk

Thank you most humbly.

JC

PROPOSED ADDITIONS:
1. Please add the following program to the end of lk symbols file

=============PLEASE ADD AT BOTTOM OF symbols/lk FILE==============


// SINGHALA - US, SUBSTITUTES SOME AND ADDS SOME
// =============================================
//
// This started as an upgrade to the first romanized version of
// Singhala called PTS Pali created in the 1860s. PTS requires
// dots and bars on letters that are rare in fonts, and impossible
// to type. Its singular purpose was to print Tripitaka, the
// collection of Buddhist discourses.
//
// This version covers the entire newer Singhala phoneme chart
// (Hodiya) that became standard just before the end of the 19th
// century. All the phonemes map to the SBCS. It is easy and
// faster than English to type. It overcomes the setback of
// Unicode Sinhala that it is not compatible with Pali and
// Sanskrit because it encodes two ligatures as base letters and
// the SLS1134 specification matching shape and morpheme sets
// violating Sanskrit orthography.
//
// Most importantly, this romanized version of Singhala has a
// companion orthographic font that displays the text in the
// native script and a JavaScript converts it to Unicode Sinhala
// and back dramatically increasing Singhala seen on the web due
// to its ease of use
//
// Dedication:
// Thomas William Rhys Davids, Ven. Udagama Sumangala
// Rev. Fr. A. M. Gunasekara, Rev. Fr. Theodore G. Perera
// Ven. Mettavihari
//
// Maintainer:
// JC Ahangama - sing@ahangama.com
//
partial alphanumeric_keys modifier_keys
xkb_symbols "us" {
  name[Group1]= "Singhala (US, Modified for Singhala Hodiya)";
  include "us(basic)"
  include "level3(alt_switch)"
//
//                   UNSHIFTED,         SHIFT,           ALT
//                   --------------------------------------------
//
  key <AB01> { [             z,    VoidSymbol,    VoidSymbol ] };
  key <AB02> { [             x,    VoidSymbol,    VoidSymbol ] };
  key <AB03> { [             c,      ccedilla,    VoidSymbol ] };
  key <AB04> { [             v,    VoidSymbol,    VoidSymbol ] };
  key <AB05> { [             b,             B,    VoidSymbol ] };
  key <AB06> { [             n,             N,        ntilde ] };
  key <AB07> { [             m,    VoidSymbol,    VoidSymbol ] };
  key <AB08> { [         comma,          less,           UAB ] };
  key <AB09> { [        period,       greater,           UBB ] };
  key <AB10> { [         slash,      question,         U200C ] };

  key <AC01> { [             a,        aacute,    adiaeresis ] };
  key <AC02> { [             s,    VoidSymbol,    VoidSymbol ] };
  key <AC03> { [             d,             D,    VoidSymbol ] };
  key <AC04> { [         thorn,             f,    VoidSymbol ] };
  key <AC05> { [             g,             G,    VoidSymbol ] };
  key <AC06> { [             h,    VoidSymbol,    VoidSymbol ] };
  key <AC07> { [             j,      ccedilla,    VoidSymbol ] };
  key <AC08> { [             k,    VoidSymbol,    VoidSymbol ] };
  key <AC09> { [             l,             L,   ocircumflex ] };
  key <AC10> { [     semicolon,         colon,    VoidSymbol ] };
  key <AC11> { [    apostrophe,      quotedbl,    VoidSymbol ] };

  key <AD01> { [           eth,           ETH,             q ] };
  key <AD02> { [            ae,         acute,    VoidSymbol ] };
  key <AD03> { [             e,        eacute,    ediaeresis ] };
  key <AD04> { [             r,   ucircumflex,    VoidSymbol ] };
  key <AD05> { [             t,    VoidSymbol,    VoidSymbol ] };
  key <AD06> { [             y,    VoidSymbol,    VoidSymbol ] };
  key <AD07> { [             u,        uacute,    udiaeresis ] };
  key <AD08> { [             i,        iacute,    idiaeresis ] };
  key <AD09> { [             o,        oacute,    odiaeresis ] };
  key <AD10> { [             p,    VoidSymbol,    VoidSymbol ] };
  key <AD11> { [   bracketleft,     braceleft,    VoidSymbol ] };
  key <AD12> { [  bracketright,    braceright,    VoidSymbol ] };

  key <AE01> { [           one,        exclam,   dead_macron ] };
  key <AE02> { [           two,            at, dead_belowdot ] };
  key <AE03> { [         three,    numbersign, dead_abovedot ] };
  key <AE04> { [          four,        dollar,      currency ] };
  key <AE05> { [          five,       percent,           UB0 ] };
  key <AE06> { [           six,   asciicircum,    onequarter ] };
  key <AE07> { [         seven,     ampersand,       onehalf ] };
  key <AE08> { [         eight,      asterisk, threequarters ] };
  key <AE09> { [          nine,     parenleft,    VoidSymbol ] };
  key <AE10> { [          zero,    parenright,    VoidSymbol ] };
  key <AE11> { [         minus,    underscore,         U2014 ] };
  key <AE12> { [         equal,          plus,    VoidSymbol ] };

  key <BKSL> { [     backslash,           bar,    VoidSymbol ] };
  key <SPCE> { [         space,  nobreakspace,    VoidSymbol ] };
  key <TLDE> { [         grave,    asciitilde,    VoidSymbol ] };
};

=============END VARIANT PROGRAM TO ADD TO symbols/lk=============




2. PLEASE ADD TO base.xml AS THE LAST VARIANT UNDER lk

==========LAST VARIANT UNDER lk LAYOUT IN base.xml FILE===========

        <variant>
          <configItem>
            <name>us</name>
            
            <shortDescription>si-us</shortDescription>
            <description>Singhala (US, Modified for Singhala Hodiya)</description>
            <languageList>
              <iso639Id>sin</iso639Id>
            </languageList>
          </configItem>
        </variant>

================END TEXT LINES TO ADD TO base.xml=================





3. PLEASE ADD THIS LINE TO THE base.lst file AS FIRST VARIANT FOR lk

=======LINE TO ADD UNDER '!variant' SECTION OF base.lst file======

         us              lk: Singhala (US, Modified for Singhala Hodiya)

==============END LINE TO BE ADDED TO base.lst file===============
Comment 1 JC Ahangama 2015-05-07 13:50:31 UTC
I changed the importance to high for reason explained below.

For the last ten years or so, this key layout was used only on Windows. The installation was easy -- unzip and double-click setup.exe:
http://smartfonts.net/singhala/singhala.zip

Now more people in South Asia (especially Sri Lanka) are thinking of Linux. The main reason is that they cannot get Windows 8 from vendors, whose habit is to sell systems installed with pre-release versions of Windows. Now with UEFI, vendors there haven't found a way to sell Windows 8, yet.

People are dependent on the computer store to sell them a working computer and Linux is getting out. The problem we have is that it is too difficult for us from the US to call long distance and instruct each person how to install this keymap, especially when they are not well versed in English, let alone editing system files using root privileges.

Thank you.

JC
Comment 2 Sergey V. Udaltsov 2015-05-08 23:23:36 UTC
Thanks. committed with some minor changes. Please check in git.
Comment 3 JC Ahangama 2015-05-09 16:38:28 UTC
Much obliged for the amazingly quick and POSITIVE response.

What did you mean by 'check in git'? Github? I could not find anything related there. Perhaps you could give a URL? (I am so ignorant, sorry).
Comment 4 Sergey V. Udaltsov 2015-05-09 16:50:45 UTC
(In reply to JC Ahangama from comment #3)
> Much obliged for the amazingly quick and POSITIVE response.
> 
> What did you mean by 'check in git'? Github? I could not find anything
> related there. Perhaps you could give a URL? (I am so ignorant, sorry).

http://www.freedesktop.org/wiki/Software/XKeyboardConfig/Development/
http://cgit.freedesktop.org/xkeyboard-config/


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.