Change keyboard layout change

Asked by Keminda Ruberu

I'm Sri Lankan nationalist. We are using Sinhala Language in ubuntu keyboard preferences, Sinhala language keyboard layout is only phonetic keyboard. It is violate our Standard keyboard. In ibus & scim use other keyboard layouts such as wijesekara keyboard layout Please add keyboard preferences wijesekara keyboard layout.

Keminda Ruberu

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Harshula Jayasuriya (harshula) said :
#1

XKB only supports 1-1 mapping, hence a phonetic layout is the only option with XKB. Wijesekera requires surrounding text support or at a minimum a pre-edit buffer.

Have you tried using the m17n Wijesekera implementation which is available via IBus and SCIM?

Regards,
Harshula

Revision history for this message
Keminda Ruberu (kemindaruberu) said :
#2

But Fedora Linux base OS. It keyboard preferences use standard Sinhala keyboard. so why we cant use it for Ubuntu

Keminda

Revision history for this message
Harshula Jayasuriya (harshula) said :
#3

> But Fedora Linux base OS. It keyboard preferences use standard Sinhala
> keyboard. so why we cant use it for Ubuntu

That can not be correct. XKB only supports 1-1 mappings. How did you
come to that conclusion? Which versions of Ubuntu and Fedora are you
comparing? Can you describe the steps you take to reproduce your claim?

Regards,
Harshula

Revision history for this message
Keminda Ruberu (kemindaruberu) said :
#4

Dear Sir
Fedora 13 version keyboard preference we can select only simply wijesekara
keyboard layout. No need ibus or scim this file ";;
si-wijesekera-preedit.mim -- Sinhala input method with wijesekera method
;; Copyright (C) 2006, 2007
;; National Institute of Advanced Industrial Science and Technology (AIST)
;; Registration Number H15PRO112

;; This file is part of the m17n database; a sub-part of the m17n
;; library.

;; The m17n library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public License
;; as published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later version.

;; The m17n library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Lesser General Public License for more details.

;; You should have received a copy of the GNU Lesser General Public
;; License along with the m17n library; if not, write to the Free
;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

(input-method si wijesekera)

(description "Sinhala input method based on SLS 1134 Rev. 2:2004.
  <http://www.fonts.lk/doc/sin-kbd-layout4.pdf>
This input method uses preedit rather than surrounding text.

Key Summary :
ඳ --> alt-gr+o
ඟ --> alt-gr+.
ඬ --> alt-gr+v
ඦ --> alt-gr+c
ඃ --> alt-gr+x
෴ --> alt-gr+'

Key summary: Tyronne Wickramarathne <email address hidden>
")

(title "සි")

(map
 (independent
  ("w" "අ") ; 0D85
  ("b" "ඉ") ; 0D89
  ("B" "ඊ") ; 0D8A
  ("W" "උ") ; 0D8B
  ("R" "ඍ") ; 0D8D
  ((A-,) "ඏ") ; 0D8F
  ("t" "එ") ; 0D91
  ("T" "ඔ") ; 0D94
  ("l" "ක") ; 0D9A
  ("L" "ඛ") ; 0D9B
  ("." "ග") ; 0D9C
  (">" "ඝ") ; 0D9D
  ("X" "ඞ") ; 0D9E
  ((A-.) "ඟ") ((0x2E A-z) "ඟ") ; 0D9F
  ("p" "ච") ; 0DA0
  ("P" "ඡ") ; 0DA1
  ("c" "ජ") ; 0DA2
  ("C" "ඣ") ; 0DA3
  ("\[" "ඤ") ; 0DA4
  ("{" "ඥ") ; 0DA5
  ((A-c) "ඦ") ((0x63 A-z) "ඦ") ; 0DA6
  ("g" "ට") ; 0DA7
  ("G" "ඨ") ; 0DA8
  ("v" "ඩ") ; 0DA9
  ("V" "ඪ") ; 0DAA
  ("K" "ණ") ; 0DAB
  ((A-v) "ඬ") ((0x76 A-z) "ඬ") ; 0DAC
  (";" "ත") ; 0DAD
  (":" "ථ") ; 0DAE
  ("o" "ද") ; 0DAF
  ("O" "ධ") ; 0DB0
  ("k" "න") ; 0DB1
  ((A-o) "ඳ") ((0x6F A-z) "ඳ") ; 0DB3
  ("m" "ප") ; 0DB4
  ("M" "ඵ") ; 0DB5
  ("n" "බ") ; 0DB6
  ("N" "භ") ; 0DB7
  ("u" "ම") ; 0DB8
  ("U" "ඹ") ; 0DB9
  ("h" "ය") ; 0DBA
  ("r" "ර") ; 0DBB
  ("," "ල") ; 0DBD
  ("j" "ව") ; 0DC0
  ("Y" "ශ") ; 0DC1
  ("I" "ෂ") ; 0DC2
  ("i" "ස") ; 0DC3
  ("y" "හ") ; 0DC4
  ("<" "ළ") ; 0DC5
  ("F" "ෆ") ; 0DC6
  ((A-\') "෴") ; 0DF4

  ("J" "ළු") ; muurdhaja lu (0DC5 0DD4)

  ((S-\ ) " ") ; NBSP (00A0)
  ((A-\ ) "‌") ; ZWNJ (200C)

  ("\]" ";")
  ("}" ":")
  ("'" ".")
  ("\"" ",")
  ("z" "'")
  ("Z" "\"")
  )

 (dependent
  ("x" "ං") ; 0D82
  ((A-x) "ඃ") ; 0D83
  ("a"
   (cond
    ((= @-1 0x0D91) (delete @-) "ඒ") ; 0D92
    ((= @-1 0x0D94) (delete @-) "ඕ") ; 0D95
    ((= @-1 0x0DD9) (delete @-) "ේ") ; 0DDA
    ((= @-1 0x0DDC) (delete @-) "ෝ") ; 0DDD
    (1 "්"))) ; 0DCA
  ("d"
   (cond
    ((= @-1 0x0D85) (delete @-) "ආ") ; 0D86
    ((= @-1 0x0DD9) (delete @-) "ො") ; 0DDC
    (1 "ා"))) ; 0DCF
  ("e"
   (cond
    ((= @-1 0x0D85) (delete @-) "ඇ") ; 0D87
    (1 "ැ"))) ; 0DD0
  ("E"
   (cond
    ((= @-1 0x0D85) (delete @-) "ඈ") ; 0D88
    ((& (= @-2 0x0DC5) (= @-1 0x0DD4))
     (delete @-) "ූ") ; 0DD6
    (1 "ෑ"))) ; 0DD1
  ("s" "ි") ; 0DD2
  ("S" "ී") ; 0DD3
  ("q" "ු") ; 0DD4
  ("Q" "ූ") ; 0DD6

  ("D"
   (cond
    ((= @-1 0x0D8D) (delete @-) "ඎ") ; 0D8E
;; The following line does not work when no consonant proceeds.
;; ((= @-1 0x0DD8) (delete @-) "ෲ") ; 0DF2
    (1 "ෘ"))) ; 0DD8
;; This one works with or without a preceeding consonant.
  ("DD" "ෲ") ; 0DF2

  ("A"
   (cond
    ((= @-1 0x0D8B) (delete @-) "ඌ") ; 0D8C
    ((= @-1 0x0D8F) (delete @-) "ඐ") ; 0D90
    ((= @-1 0x0D94) (delete @-) "ඖ") ; 0D96
    ((= @-1 0x0DD9) (delete @-) "ෞ") ; 0DDE
    (1 "ෟ"))) ; 0DDF
  ((A-a) "ෳ") ; 0DF3

  ("H" ; yansaya (0DCA 200D 0DBA)
   (cond
    ((| (= @-1 0x0DD9) (= @-1 0x0DDB))
     (move @-) "්‍ය" (move @>))
    (1
     "්‍ය")))

  ("`" ; rakaransaya (0DCA 200D 0DBB)
   (cond
    ((| (= @-1 0x0DD2) (= @-1 0x0DD3) (= @-1 0x0DD9) (= @-1 0x0DDB))
     (move @-) "්‍ර" (move @>))
    (1 "්‍ර")))

  ("~" ; repaya (0DBB 0DCA 200D)
   (move @<)
   "ර්‍"
   (move @>))
  )

 (kombuva
  ("f" "ෙ")) ; 0DD9

 (join
  ("\\"))

 (backspace
  ((BackSpace)))
 )

(state
 (init-state
  (independent
   (shift independent-state))
  (kombuva
   (shift kombuva-state))
  (dependent))

 (independent-state
  (dependent)
  (join
   (cond
    ((| (= @-1 0x0DD9) (= @-1 0x0DDB))
     (shift join-state))
    ((| (< @-1 0x0D9A) (> @-1 0x0DC6))
     (undo -1))
    (1
     (shift join-state))))
  (backspace
   (undo)))

 (join-state
  (t
   (mark p))
  (independent
   (move p)
   (set c @-1)
   (cond
    ((| (= c 0x0DD9) (= c 0x0DDB))
     (delete @-)
     "්‍" ; 0DCA 200D
     (move @>)
     (insert c))
    (1
     "්‍" ; 0DCA 200D
     (move @>)))
   (shift independent-state))
  (backspace
   (undo)))

 (kombuva-state
  (t
   (mark p))
  (independent
   (cond
    ((& (= @0 0x0DD9) (= @1 0x0D91))
     (delete @<)
     "ඓ" ; 0D93
     (shift independent-state))
    ((& (= @0 0x0DD9) (< @2 0))
     (move @0)
     (delete @+)
     (move @>)
     "ෙ" ; 0DD9
     (shift independent-state))
    ((& (= @0 0x0DDB) (< @2 0))
     (move @0)
     (delete @+)
     (move @>)
     "ෛ" ; 0DDB
     (shift independent-state))
    (1
     (delete p)
     (pushback 1)
     (shift init-state))))
  (kombuva
   (mark p)
   (cond
    ((& (= @0 0x0DD9) (< @2 0))
     (delete @<)
     "ෛ") ; 0DDB
    (1
     (delete @-)
     (pushback 1)
     (shift init-state))))
  (dependent
   (mark p))
  (backspace
   (undo))))

;; Local Variables:
;; coding: utf-8
;; mode: emacs-lisp
;; End:

store in user/m17n folder
so sir
tell me why same procedure cant apply for ubuntu

Keminda

On Mon, Oct 4, 2010 at 11:27 AM, Harshula Jayasuriya <
<email address hidden>> wrote:

> Your question #127542 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/127542
>
> Status: Open => Answered
>
> Harshula Jayasuriya proposed the following answer:
> > But Fedora Linux base OS. It keyboard preferences use standard Sinhala
> > keyboard. so why we cant use it for Ubuntu
>
> That can not be correct. XKB only supports 1-1 mappings. How did you
> come to that conclusion? Which versions of Ubuntu and Fedora are you
> comparing? Can you describe the steps you take to reproduce your claim?
>
> Regards,
> Harshula
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/127542/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/127542
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Harshula Jayasuriya (harshula) said :
#5

On Mon, 2010-10-04 at 07:18 +0000, Keminda Ruberu wrote:
> Dear Sir
> Fedora 13 version keyboard preference we can select only simply wijesekara
> keyboard layout. No need ibus or scim this file ";;
> si-wijesekera-preedit.mim -- Sinhala input method with wijesekera method
...
> store in user/m17n folder
> so sir
> tell me why same procedure cant apply for ubuntu

The Wijesekera keyboard implementation is included in m17n-db. It is
available in Fedora, Debian and Ubuntu:

http://koji.fedoraproject.org/koji/packageinfo?packageID=268
http://packages.qa.debian.org/m/m17n-db.html
http://packages.ubuntu.com/maverick/m17n-db

You have been unclear how you are activating the m17n Wijesekera input
method. IBus or SCIM are required. Perhaps you are simply not familiar
with which packages need to be installed. For instructions, refer to:
http://sinhala.sourceforge.net/

Regards,
Harshula

Revision history for this message
Keminda Ruberu (kemindaruberu) said :
#6

dear Sir
I already installed both ibus scim for ububuntu acording to siyabasa and
http://sinhala.sourceforge.net/ I can type sinhala but sir I want to know
why when I keyboard preferences option activate it use phonetic key
board.itis not our sls standrad keyboard
But In fedora 13 version it sls 1134 standrad key board and google sinhala
input method vertual keyboard is sls 1134.

so why ubuntu keyboard preferences option use phonetic keyboard.
as a user we confused and it violate our sls standard

so can we change it please
I really appreciate your concern
Thank you

Best regards

keminda

0718477683

On Mon, Oct 4, 2010 at 2:45 PM, Harshula Jayasuriya <
<email address hidden>> wrote:

> Your question #127542 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/127542
>
> Status: Open => Answered
>
> Harshula Jayasuriya proposed the following answer:
> On Mon, 2010-10-04 at 07:18 +0000, Keminda Ruberu wrote:
> > Dear Sir
> > Fedora 13 version keyboard preference we can select only simply
> wijesekara
> > keyboard layout. No need ibus or scim this file ";;
> > si-wijesekera-preedit.mim -- Sinhala input method with wijesekera method
> ...
> > store in user/m17n folder
> > so sir
> > tell me why same procedure cant apply for ubuntu
>
> The Wijesekera keyboard implementation is included in m17n-db. It is
> available in Fedora, Debian and Ubuntu:
>
> http://koji.fedoraproject.org/koji/packageinfo?packageID=268
> http://packages.qa.debian.org/m/m17n-db.html
> http://packages.ubuntu.com/maverick/m17n-db
>
> You have been unclear how you are activating the m17n Wijesekera input
> method. IBus or SCIM are required. Perhaps you are simply not familiar
> with which packages need to be installed. For instructions, refer to:
> http://sinhala.sourceforge.net/
>
> Regards,
> Harshula
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/127542/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/127542
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Harshula Jayasuriya (harshula) said :
#7

On Tue, 2010-10-05 at 03:36 +0000, Keminda Ruberu wrote:

> I already installed both ibus scim for ububuntu acording to siyabasa and
> http://sinhala.sourceforge.net/ I can type sinhala

1) So, you are saying you already have Wijesekera layout working
correctly on Ubuntu and Fedora?

> but sir I want to know
> why when I keyboard preferences option activate it use phonetic key
> board.itis not our sls standrad keyboard
> But In fedora 13 version it sls 1134 standrad key board and

2) Let me reiterate, a Wijesekera layout can NOT be implemented in XKB.
And gnome-keyboard-properties lists XKB layouts.

3) I have already asked: "Can you describe the steps you take to
reproduce your claim?" Can you now list the steps you take on Fedora 13
to enable a Wijesekera layout from gnome-keyboard-properties?

> google sinhala input method vertual keyboard is sls 1134.

4) Are you referring to:
http://www.google.com/webelements/virtualkeyboard/
If so, presumably it uses Javascript, not XKB.

> so why ubuntu keyboard preferences option use phonetic keyboard.

5) Fedora 13 keyboard preferences also uses the phonetic layout.

Regards,
Harshula

Revision history for this message
Keminda Ruberu (kemindaruberu) said :
#8

LinkedIn
------------

I'd like to add you to my professional network on LinkedIn.

- Keminda

Keminda Ruberu
Programme Assistant at National Police Commission
Sri Lanka

Confirm that you know Keminda Ruberu
https://www.linkedin.com/e/-angotj-godqa2wz-43/isd/3067090604/7ImfRX5U/

--
(c) 2011, LinkedIn Corporation

Revision history for this message
Keminda Ruberu (kemindaruberu) said :
#9

LinkedIn
------------

I'd like to add you to my professional network on LinkedIn.

- Keminda

Keminda Ruberu
Programme Assistant at National Police Commission
Sri Lanka

Confirm that you know Keminda Ruberu
https://www.linkedin.com/e/-angotj-godqbtgl-17/isd/3067090604/7ImfRX5U/

--
(c) 2011, LinkedIn Corporation

Revision history for this message
Harshula Jayasuriya (harshula) said :
#10

-------- Forwarded Message --------
From: Keminda Ruberu <email address hidden>
To: Harshula <email address hidden>
Subject: Re: Fwd: [Question #127542]: Change keyboard layout change
Date: Tue, 5 Oct 2010 15:12:14 +0530

Dear Sir
Thank you very much

I got it

I'm so sorry I could not provide screen shot now, because I'm using
ubuntu, when I was chatting with a one of my friend regarding this
issue, he told me he uses fedora 13. he do not have this. So I am trying
to find a way. My friend telling me he has mistake. so he could not take
screen shot too. we got it impossible.

Thank you very much

Best Regards

Keminda

Can you help with this problem?

Provide an answer of your own, or ask Keminda Ruberu for more information if necessary.

To post a message you must log in.