unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60023: [wishlist] cyrillic-chuvash input method
@ 2022-12-12 16:15 flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-12-14 15:33 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-12 16:15 UTC (permalink / raw)
  To: 60023

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

Please include a Chuvash (CV) input method (the one attached or something similar) in Emacs. I've created it based on "russian-computer" input method. I use it in my init.el and it is working, though I'm new to Emacs and somewhat unsure where and how it should properly be placed (inside other cyrillic ones, likely).

 It is almost all cyrillic, however Çç characters are Latin (letter c with cedilla), because there is actually no cyrillic С with a cedilla in Unicode. There are Ҫҫ (cyrillic letter es with descender), however they are unreliable as they often look wrong in practice:

• Bashkir, Chuvash
• letterforms with right hooks are preferred, although occasional variants with left hooks occur
• in Chuvashia, letterforms identical to or similar in form to 00E7 ç regularly occur
(from Unicode PDF on Cyrillic range)

Maybe it's simply a misnomer and half the world got it wrong, or not. I have no idea.


[-- Attachment #2: chuvash.el --]
[-- Type: text/x-emacs-lisp, Size: 1800 bytes --]

;; Chuvash layout based on russian-computer.
(quail-define-package
	"cyrillic-chuvash" "Chuvash" "CV" t
	"Input method for cyrillic Chuvash with a postfix modifier.

А* -> Ӑ
а* -> ӑ
Е* -> Ӗ
Е* -> ӗ
С* -> Ç (uses latin character)
с* -> ç (uses latin character)
У* -> Ӳ
у* -> ӳ

Doubling the postfix separates the letter and postfix
"
	nil t nil nil nil nil nil nil nil nil t)

(quail-define-rules
	("1" ?1)
	("2" ?2)
	("3" ?3)
	("4" ?4)
	("5" ?5)
	("6" ?6)
	("7" ?7)
	("8" ?8)
	("9" ?9)
	("0" ?0)
	("-" ?-)
	("=" ?=)
	("|" ?/)
	("`" ?ё)
	("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" ?ь)
	("," ?б)
	("." ?ю)
	("/" ?.)
	("!" ?!)
	("@" ?\")
	("#" ?№)
	("$" ?\;)
	("%" ?%)
	("^" ?:)
	("&" ??)
	("*" ?*)
	("(" ?\()
	(")" ?\))
	("_" ?_)
	("+" ?+)
	("~" ?Ё)
	("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" ?Ь)
	("<" ?Б)
	(">" ?Ю)
	("?" ?,)
	("F*" ?Ӑ)
	("f*" ?ӑ)
	("T*" ?Ӗ)
	("t*" ?ӗ)
	("C*" ?Ç)
	("c*" ?ç)
	("E*" ?Ӳ)
	("e*" ?ӳ)
	("F**" ["А*"])
	("f**" ["а*"])
	("T**" ["Е*"])
	("t**" ["е*"])
	("C**" ["С*"])
	("c**" ["с*"])
	("E**" ["У*"])
	("e**" ["у*"]))

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

* bug#60023: [wishlist] cyrillic-chuvash input method
  2022-12-12 16:15 bug#60023: [wishlist] cyrillic-chuvash input method flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-14 15:33 ` Eli Zaretskii
  2022-12-14 17:28   ` flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2022-12-14 15:33 UTC (permalink / raw)
  To: flashymittens; +Cc: 60023

> Date: Mon, 12 Dec 2022 17:15:43 +0100 (CET)
> From: flashymittens--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
>  It is almost all cyrillic, however Çç characters are Latin (letter c with cedilla), because there is actually no cyrillic С with a cedilla in Unicode. There are Ҫҫ (cyrillic letter es with descender), however they are unreliable as they often look wrong in practice:

Are you sure it is a good idea to use Çç?  It will cause Emacs to
consider, e.g., абвгҪҫÇçҪҫабвг, as 3 words, not one word, for the
purposes of cursor motion commands, like M-f and C-<LEFT>.  That's
because Emacs always stops these movement commands when text switches
to a different script, and here we will have a switch from Cyrillic to
Latin and back.

So maybe we should use Ҫҫ after all?





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

* bug#60023: [wishlist] cyrillic-chuvash input method
  2022-12-14 15:33 ` Eli Zaretskii
@ 2022-12-14 17:28   ` flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-12-16 20:08     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-14 17:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 60023

Dec 14, 2022, 15:33 by eliz@gnu.org:

> Are you sure it is a good idea to use Çç?  It will cause Emacs to
> consider, e.g., абвгҪҫÇçҪҫабвг, as 3 words, not one word, for the
> purposes of cursor motion commands, like M-f and C-<LEFT>.  That's
> because Emacs always stops these movement commands when text switches
> to a different script, and here we will have a switch from Cyrillic to
> Latin and back.
>
> So maybe we should use Ҫҫ after all?
>
Oh, I didn't know that. Hm… I guess Cyrillic ones work too then, if it can't be overriden on input method level.






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

* bug#60023: [wishlist] cyrillic-chuvash input method
  2022-12-14 17:28   ` flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-16 20:08     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2022-12-16 20:08 UTC (permalink / raw)
  To: flashymittens; +Cc: 60023-done

> Date: Wed, 14 Dec 2022 18:28:02 +0100 (CET)
> From: flashymittens@tutanota.com
> Cc: 60023@debbugs.gnu.org
> 
> Dec 14, 2022, 15:33 by eliz@gnu.org:
> 
> > Are you sure it is a good idea to use Çç?  It will cause Emacs to
> > consider, e.g., абвгҪҫÇçҪҫабвг, as 3 words, not one word, for the
> > purposes of cursor motion commands, like M-f and C-<LEFT>.  That's
> > because Emacs always stops these movement commands when text switches
> > to a different script, and here we will have a switch from Cyrillic to
> > Latin and back.
> >
> > So maybe we should use Ҫҫ after all?
> >
> Oh, I didn't know that. Hm… I guess Cyrillic ones work too then, if it can't be overriden on input method level.

OK, I've now installed this on the emacs-29 branch, using the Cyrillic
characters, and I'm marking this bug done.

Thanks.





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

end of thread, other threads:[~2022-12-16 20:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12 16:15 bug#60023: [wishlist] cyrillic-chuvash input method flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-14 15:33 ` Eli Zaretskii
2022-12-14 17:28   ` flashymittens--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-16 20:08     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).