all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#56617: 28.1; No Mongolian option in input-method
@ 2022-07-17 10:20 Garid Zorigoo
  2022-07-17 15:54 ` Eli Zaretskii
  2023-04-04  8:39 ` bug#56617: [PATCH] for Mongolian input Garid Zorigoo
  0 siblings, 2 replies; 7+ messages in thread
From: Garid Zorigoo @ 2022-07-17 10:20 UTC (permalink / raw)
  To: 56617

[-- Attachment #1: Type: text/plain, Size: 2056 bytes --]

No Mongolian option in input-method.
I'm reporting since someone has suggested me on a forum.
link:
https://emacs.stackexchange.com/questions/72598/how-to-write-in-mongolian-language-couldnt-find-it-in-set-input-method/72600#72600

My current method of writing in Mongolian is the following add to init.el.

I'd really like to have native Mongolian input support in Emacs,

Thanks.


Garid.


(quail-define-package
 "Mongolian-trans" "Mg-trans" "S>" t
 "Input method for Mongolian transcription."
 nil t nil nil nil nil nil nil nil nil t)

(quail-define-rules
    ;; keys (without shift)
    ("q" ?ф)
    ("w" ?ц)
    ("e" ?у)
    ("r" ?ж)
    ("t" ?э)
    ("y" ?н)
    ("u" ?г)
    ("i" ?ш)
    ("o" ?ү)
    ("p" ?з)
    ("[" ?к)
    ("]" ?ъ)
    ("a" ?й)
    ("s" ?ы)
    ("d" ?б)
    ("f" ?ө)
    ("g" ?а)
    ("h" ?х)
    ("j" ?р)
    ("k" ?о)
    ("l" ?л)
    (";" ?д)
    ("'" ?п)
    ("z" ?я)
    ("x" ?ч)
    ("c" ?ё)
    ("v" ?с)
    ("b" ?м)
    ("n" ?и)
    ("m" ?т)
    ("," ?ь)
    ("." ?в)
    ("/" ?ю)

    ;; keys (with shift)
    ("Q" ?ф)
    ("W" ?Ц)
    ("E" ?У)
    ("R" ?Ж)
    ("T" ?Э)
    ("Y" ?Н)
    ("U" ?Г)
    ("I" ?Ш)
    ("O" ?Ү)
    ("P" ?З)
    ("{" ?К)
    ("}" ?Ъ)
    ("A" ?Й)
    ("S" ?Ы)
    ("D" ?Б)
    ("F" ?Ө)
    ("G" ?А)
    ("H" ?Х)
    ("J" ?Р)
    ("K" ?О)
    ("L" ?Л)
    (":" ?Д)
    ("\"" ?П)
    ("Z" ?Я)
    ("X" ?Ч)
    ("C" ?Ё)
    ("V" ?С)
    ("B" ?М)
    ("N" ?И)
    ("M" ?Т)
    ("<" ?Ь)
    (">" ?В)
    ("?" ?Ю)


    ;; numbers keys (without shift)
    ("1" ?№)
    ("2" ?-)
    ("3" ?\")
    ("4" ?₮)
    ("5" ?:)
    ("6" ?.)
    ("7" ?_)
    ("8" ?,)
    ("9" ?%)
    ("0" ??)
    ("-" ?е)
    ("=" ?щ)


    ;; numbers keys (with shift)
    ("!" ?1)
    ("@" ?2)
    ("#" ?3)
    ("$" ?4)
    ("%" ?5)
    ("^" ?6)
    ("&" ?7)
    ("*" ?8)
    ("(" ?9)
    (")" ?0)
    ("_" ?Е)
    ("+" ?Щ)
)

[-- Attachment #2: Type: text/html, Size: 3661 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#56617: 28.1; No Mongolian option in input-method
  2022-07-17 10:20 bug#56617: 28.1; No Mongolian option in input-method Garid Zorigoo
@ 2022-07-17 15:54 ` Eli Zaretskii
  2023-04-04  8:39 ` bug#56617: [PATCH] for Mongolian input Garid Zorigoo
  1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2022-07-17 15:54 UTC (permalink / raw)
  To: Garid Zorigoo; +Cc: 56617

> From: Garid Zorigoo <garidzorigoo@gmail.com>
> Date: Sun, 17 Jul 2022 19:20:02 +0900
> 
> No Mongolian option in input-method.
> I'm reporting since someone has suggested me on a forum.
> link:
> https://emacs.stackexchange.com/questions/72598/how-to-write-in-mongolian-language-couldnt-find-it-in-set-input-method/72600#72600
> 
> 
> My current method of writing in Mongolian is the following add to init.el.
> 
> I'd really like to have native Mongolian input support in Emacs, 

If you want to write Mongolian using the Cyrillic script, I suggest
the cyrillic-translit input method.  It might lack one or two
characters from your list, but that's a minor issue.

And patches are welcome to add Mongolian to our input methods, of
course.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#56617: [PATCH] for Mongolian input
  2022-07-17 10:20 bug#56617: 28.1; No Mongolian option in input-method Garid Zorigoo
  2022-07-17 15:54 ` Eli Zaretskii
@ 2023-04-04  8:39 ` Garid Zorigoo
  2023-04-05  5:43   ` Eli Zaretskii
  1 sibling, 1 reply; 7+ messages in thread
From: Garid Zorigoo @ 2023-04-04  8:39 UTC (permalink / raw)
  To: 56617


[-- Attachment #1.1: Type: text/plain, Size: 265 bytes --]

This is [patch] for Mongolian Input.

I only added Mongolian layout into the `lisp/leim/quail/cyrillic.el` and
sent it as a patch.

Please note that my knowledge in elisp is basically zero.
So, If you have any improvement/modification, please go ahead.

Best
Garid

[-- Attachment #1.2: Type: text/html, Size: 351 bytes --]

[-- Attachment #2: 0001-mongolian-input-layout-has-added-to-.-quail-cyrillic.patch --]
[-- Type: text/x-patch, Size: 2467 bytes --]

From 3dab34e5c36f6fef3a7b74cde46bbe98ace42b8c Mon Sep 17 00:00:00 2001
From: garid3000 <garidzorigoo@gmail.com>
Date: Tue, 4 Apr 2023 17:27:47 +0900
Subject: [PATCH] (mongolian input layout) has added to ..../quail/cyrillic.el

---
 lisp/leim/quail/cyrillic.el | 119 ++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)

diff --git a/lisp/leim/quail/cyrillic.el b/lisp/leim/quail/cyrillic.el
index ba0b9c9ca12..9e8df41e80c 100644
--- a/lisp/leim/quail/cyrillic.el
+++ b/lisp/leim/quail/cyrillic.el
@@ -1844,6 +1844,125 @@
 	("E**" ["У*"])
 	("e**" ["у*"]))
 
+
+;; Mongolian layout: Mongolian alphabet has 2 letters: Ө Ү,
+;; and the layout is quite different than other cyrillic layouts.
+;; written by Garid Z.
+(quail-define-package
+ "cyrillic-mongolian" "Mongolian"  "MN-" t
+ "Input method for cyrillic Mongolian"
+ nil t nil nil nil nil nil nil nil nil t)
+
+;;  №  -  "  ₮  :    .  _  ,  %  ?  е  щ
+;;   Ф  Ц  У  Ж  Э    Н  Г  Ш  Ү  З  К  Ъ
+;;    Й  Ы  Б  Ө  А    Х  Р  О  Л  Д  П
+;;     Я  Ч  Ё  С  М    И  Т  Ь  В  Ю
+
+
+(quail-define-rules
+ ;; (lowercase 1st row)
+ ("q" ?ф)
+ ("w" ?ц)
+ ("e" ?у)
+ ("r" ?ж)
+ ("t" ?э)
+ ("y" ?н)
+ ("u" ?г)
+ ("i" ?ш)
+ ("o" ?ү)
+ ("p" ?з)
+ ("[" ?к)
+ ("]" ?ъ)
+ ;; (lowercase 2nd row)
+ ("a" ?й)
+ ("s" ?ы)
+ ("d" ?б)
+ ("f" ?ө)
+ ("g" ?а)
+ ("h" ?х)
+ ("j" ?р)
+ ("k" ?о)
+ ("l" ?л)
+ (";" ?д)
+ ("'" ?п)
+ ;; (lowercase 3rd row)
+ ("z" ?я)
+ ("x" ?ч)
+ ("c" ?ё)
+ ("v" ?с)
+ ("b" ?м)
+ ("n" ?и)
+ ("m" ?т)
+ ("," ?ь)
+ ("." ?в)
+ ("/" ?ю)
+
+
+ ;; (uppercase 1st row)
+ ("Q" ?Ф)
+ ("W" ?Ц)
+ ("E" ?У)
+ ("R" ?Ж)
+ ("T" ?Э)
+ ("Y" ?Н)
+ ("U" ?Г)
+ ("I" ?Ш)
+ ("O" ?Ү)
+ ("P" ?З)
+ ("{" ?К)
+ ("}" ?Ъ)
+ ;; (uppercase 2nd row)
+ ("A" ?Й)
+ ("S" ?Ы)
+ ("D" ?Б)
+ ("F" ?Ө)
+ ("G" ?А)
+ ("H" ?Х)
+ ("J" ?Р)
+ ("K" ?О)
+ ("L" ?Л)
+ (":" ?Д)
+ ("\"" ?П)
+ ;; (uppercase 3rd row)
+ ("Z" ?Я)
+ ("X" ?Ч)
+ ("C" ?Ё)
+ ("V" ?С)
+ ("B" ?М)
+ ("N" ?И)
+ ("M" ?Т)
+ ("<" ?Ь)
+ (">" ?В)
+ ("?" ?Ю)
+
+
+ ;;  (number row without shift)
+ ("1" ?№)
+ ("2" ?-)
+ ("3" ?\")
+ ("4" ?₮)
+ ("5" ?:)
+ ("6" ?.)
+ ("7" ?_)
+ ("8" ?,)
+ ("9" ?%)
+ ("0" ??)
+ ("-" ?е)
+ ("=" ?щ)
+ ;;  (number row with shift)
+ ("!" ?1)
+ ("@" ?2)
+ ("#" ?3)
+ ("$" ?4)
+ ("%" ?5)
+ ("^" ?6)
+ ("&" ?7)
+ ("*" ?8)
+ ("(" ?9)
+ (")" ?0)
+ ("_" ?Е)
+ ("+" ?Щ))
+
 ;; Local Variables:
 ;; coding: utf-8
 ;; End:
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#56617: [PATCH] for Mongolian input
  2023-04-04  8:39 ` bug#56617: [PATCH] for Mongolian input Garid Zorigoo
@ 2023-04-05  5:43   ` Eli Zaretskii
  2023-04-05  7:47     ` Garid Zorigoo
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2023-04-05  5:43 UTC (permalink / raw)
  To: Garid Zorigoo; +Cc: 56617

> From: Garid Zorigoo <garidzorigoo@gmail.com>
> Date: Tue, 4 Apr 2023 17:39:51 +0900
> 
> This is [patch] for Mongolian Input.
> 
> I only added Mongolian layout into the `lisp/leim/quail/cyrillic.el` and sent it as a patch.
> 
> Please note that my knowledge in elisp is basically zero.
> So, If you have any improvement/modification, please go ahead.

Thank you for your contribution.

Is this keyboard layout already in use in some keyboards used for
typing Mongolian (and you just copied it in Emacs LEIM format), or did
you invent the layout yourself?  In other words, where did you take
the idea of which letter to place on which key?  I'm asking because
with the exception of 2 characters, the letters are all present in
other Cyrillic input methods, but the arrangement of the keys is
different, so I'd like to understand the reasons for the differences.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#56617: [PATCH] for Mongolian input
  2023-04-05  5:43   ` Eli Zaretskii
@ 2023-04-05  7:47     ` Garid Zorigoo
  2023-04-08  7:53       ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Garid Zorigoo @ 2023-04-05  7:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 56617

[-- Attachment #1: Type: text/plain, Size: 2197 bytes --]

Thank you for you reply

> In other words, where did you take the idea of which letter to place on
which key?


Sorry, if the description was unclear.
I didn't invent this layout. Basically, this is the layout people get
when they change input-language on OS level (e.g. Windows and Linux).
I'm not sure where or when this was selected to be the Mongolian Keyboard
Layout.
At the moment, I can only find out following resources:

- https://en.wikipedia.org/wiki/Mongolian_Cyrillic_alphabet#Keyboard_layout
- https://learn.microsoft.com/en-us/globalization/keyboards/kbdmon.html
- http://kbdlayout.info/KBDMON/

> I'm asking because with the exception of 2 characters


This layout is still used like 99% of the Mongolian Computers (I think).
When I was a kid, I had to learn this layout in order to type.
And now, using other cyrillic input such as cyrillic-translit just
un-natural to me
(probably un-natural to others too).


> (and you just copied it in Emacs LEIM format)

From the technical side, I did copy the e-lisp code from various places.
To be honest, I still don't know what the code does or
what the code-structure is supposed to be .


Garid




On Wed, Apr 5, 2023 at 2:42 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Garid Zorigoo <garidzorigoo@gmail.com>
> > Date: Tue, 4 Apr 2023 17:39:51 +0900
> >
> > This is [patch] for Mongolian Input.
> >
> > I only added Mongolian layout into the `lisp/leim/quail/cyrillic.el` and
> sent it as a patch.
> >
> > Please note that my knowledge in elisp is basically zero.
> > So, If you have any improvement/modification, please go ahead.
>
> Thank you for your contribution.
>
> Is this keyboard layout already in use in some keyboards used for
> typing Mongolian (and you just copied it in Emacs LEIM format), or did
> you invent the layout yourself?  In other words, where did you take
> the idea of which letter to place on which key?  I'm asking because
> with the exception of 2 characters, the letters are all present in
> other Cyrillic input methods, but the arrangement of the keys is
> different, so I'd like to understand the reasons for the differences.
>
>

[-- Attachment #2: Type: text/html, Size: 3427 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#56617: [PATCH] for Mongolian input
  2023-04-05  7:47     ` Garid Zorigoo
@ 2023-04-08  7:53       ` Eli Zaretskii
  2023-04-08 10:51         ` Garid Zorigoo
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2023-04-08  7:53 UTC (permalink / raw)
  To: Garid Zorigoo; +Cc: 56617-done

> From: Garid Zorigoo <garidzorigoo@gmail.com>
> Date: Wed, 5 Apr 2023 16:47:17 +0900
> Cc: 56617@debbugs.gnu.org
> 
>  > In other words, where did you take the idea of which letter to place on which key?
> 
> Sorry, if the description was unclear. 
> I didn't invent this layout. Basically, this is the layout people get  
> when they change input-language on OS level (e.g. Windows and Linux).
> I'm not sure where or when this was selected to be the Mongolian Keyboard Layout. 
> At the moment, I can only find out following resources:
> 
> - https://en.wikipedia.org/wiki/Mongolian_Cyrillic_alphabet#Keyboard_layout
> - https://learn.microsoft.com/en-us/globalization/keyboards/kbdmon.html
> - http://kbdlayout.info/KBDMON/
> 
>  > I'm asking because with the exception of 2 characters
> 
> This layout is still used like 99% of the Mongolian Computers (I think).
> When I was a kid, I had to learn this layout in order to type.
> And now, using other cyrillic input such as cyrillic-translit just un-natural to me 
> (probably un-natural to others too).

Thanks, I installed this input method, and I'm closing the bug report.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#56617: [PATCH] for Mongolian input
  2023-04-08  7:53       ` Eli Zaretskii
@ 2023-04-08 10:51         ` Garid Zorigoo
  0 siblings, 0 replies; 7+ messages in thread
From: Garid Zorigoo @ 2023-04-08 10:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 56617-done

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]

Glad to hear it!

Thanks.

On Sat, Apr 8, 2023 at 4:53 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Garid Zorigoo <garidzorigoo@gmail.com>
> > Date: Wed, 5 Apr 2023 16:47:17 +0900
> > Cc: 56617@debbugs.gnu.org
> >
> >  > In other words, where did you take the idea of which letter to place
> on which key?
> >
> > Sorry, if the description was unclear.
> > I didn't invent this layout. Basically, this is the layout people get
> > when they change input-language on OS level (e.g. Windows and Linux).
> > I'm not sure where or when this was selected to be the Mongolian
> Keyboard Layout.
> > At the moment, I can only find out following resources:
> >
> > -
> https://en.wikipedia.org/wiki/Mongolian_Cyrillic_alphabet#Keyboard_layout
> > - https://learn.microsoft.com/en-us/globalization/keyboards/kbdmon.html
> > - http://kbdlayout.info/KBDMON/
> >
> >  > I'm asking because with the exception of 2 characters
> >
> > This layout is still used like 99% of the Mongolian Computers (I think).
> > When I was a kid, I had to learn this layout in order to type.
> > And now, using other cyrillic input such as cyrillic-translit just
> un-natural to me
> > (probably un-natural to others too).
>
> Thanks, I installed this input method, and I'm closing the bug report.
>

[-- Attachment #2: Type: text/html, Size: 2181 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-08 10:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-17 10:20 bug#56617: 28.1; No Mongolian option in input-method Garid Zorigoo
2022-07-17 15:54 ` Eli Zaretskii
2023-04-04  8:39 ` bug#56617: [PATCH] for Mongolian input Garid Zorigoo
2023-04-05  5:43   ` Eli Zaretskii
2023-04-05  7:47     ` Garid Zorigoo
2023-04-08  7:53       ` Eli Zaretskii
2023-04-08 10:51         ` Garid Zorigoo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.