unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24967: Kashubian input method
@ 2016-11-19 12:02 Wojciech Gac
  2016-11-19 12:23 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Wojciech Gac @ 2016-11-19 12:02 UTC (permalink / raw)
  To: 24967


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

Hello,
I've created a Kashubian prefix input method for Emacs. For every diacritic
character it uses the most intuitive prefix character, e.g. ':e' generates
the character 'ë', '`o' - 'ò', etc. I've also added the option to
explicitly insert those prefix characters by inputting them twice.
Regards,
Wojtek

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

[-- Attachment #2: kashubian.patch --]
[-- Type: text/x-patch, Size: 1137 bytes --]

diff --git a/lisp/leim/quail/latin-pre.el b/lisp/leim/quail/latin-pre.el
index 138a97a..3e9dbef 100644
--- a/lisp/leim/quail/latin-pre.el
+++ b/lisp/leim/quail/latin-pre.el
@@ -706,6 +706,47 @@
 
 
 (quail-define-package
+ "kashubian-prefix" "Kashubian" "CSB>" nil
+ "Kashubian input method."
+ nil t t nil nil nil nil nil nil nil t)
+
+(quail-define-rules
+ ("/a" ?ą)
+ ("/A" ?Ą)
+ ("~a" ?ã)
+ ("~A" ?Ã)
+ ("'e" ?é)
+ ("'E" ?É)
+ (":e" ?ë)
+ (":E" ?Ë)
+ ("/l" ?ł)
+ ("/L" ?Ł)
+ ("/n" ?ń)
+ ("/N" ?Ń)
+ ("`o" ?ò)
+ ("`O" ?Ò)
+ ("'o" ?ó)
+ ("'O" ?Ó)
+ ("^o" ?ô)
+ ("^O" ?Ô)
+ ("`u" ?ù)
+ ("`U" ?Ù)
+ (".z" ?ż)
+ (".Z" ?Ż)
+ ;; Explicit input of prefix characters. Normally, to input a prefix
+ ;; character itself, one needs to press <Tab>. Definitions below
+ ;; allow to input those characters by entering them twice.
+ ("//" ?/)
+ ("~~" ?~)
+ ("''" ?')
+ ("::" ?:)
+ ("``" ?`)
+ ("^^" ?^)
+ (".." ?.)
+)
+
+
+(quail-define-package
  "polish-slash" "Polish" "PL>" nil
  "Polish diacritics and slash character are input as `/[acelnosxzACELNOSXZ/]'.
 For example, the character named `aogonek' is obtained by `/a'."

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

* bug#24967: Kashubian input method
  2016-11-19 12:02 bug#24967: Kashubian input method Wojciech Gac
@ 2016-11-19 12:23 ` Eli Zaretskii
  2016-11-19 13:21   ` Wojciech Gac
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-11-19 12:23 UTC (permalink / raw)
  To: Wojciech Gac; +Cc: 24967

> From: Wojciech Gac <wojciech.s.gac@gmail.com>
> Date: Sat, 19 Nov 2016 13:02:42 +0100
> 
> I've created a Kashubian prefix input method for Emacs. For every diacritic character it uses the most intuitive
> prefix character, e.g. ':e' generates the character 'ë', '`o' - 'ò', etc. I've also added the option to explicitly insert
> those prefix characters by inputting them twice.

Thanks.

Why do we need a separate input method?  Why not extend the Polish
input method so that it includes the additional characters it lacks
now which are required to support Kashubian?





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

* bug#24967: Kashubian input method
  2016-11-19 12:23 ` Eli Zaretskii
@ 2016-11-19 13:21   ` Wojciech Gac
  2016-11-19 14:20     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Wojciech Gac @ 2016-11-19 13:21 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 24967

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

Well, I did consider this for a moment, but the Polish method is called
'polish-slash' and assumes slash as the prefix character. But in the
Kashubian script there are sometimes multiple diacritic variations of the
same Latin letter, e.g. 'é' and 'ë'. Combined with normal Polish 'ę'
(absent in Kashubian) this is beginning to get messy. But perhaps I could
create something called 'polish-prefix' which would serve as a union of
scripts, i.e. combining ordinary Polish diacritics with regional ones. What
do you think?
Wojtek

2016-11-19 13:23 GMT+01:00 Eli Zaretskii <eliz@gnu.org>:

> > From: Wojciech Gac <wojciech.s.gac@gmail.com>
> > Date: Sat, 19 Nov 2016 13:02:42 +0100
> >
> > I've created a Kashubian prefix input method for Emacs. For every
> diacritic character it uses the most intuitive
> > prefix character, e.g. ':e' generates the character 'ë', '`o' - 'ò',
> etc. I've also added the option to explicitly insert
> > those prefix characters by inputting them twice.
>
> Thanks.
>
> Why do we need a separate input method?  Why not extend the Polish
> input method so that it includes the additional characters it lacks
> now which are required to support Kashubian?
>

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

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

* bug#24967: Kashubian input method
  2016-11-19 13:21   ` Wojciech Gac
@ 2016-11-19 14:20     ` Eli Zaretskii
  2016-11-19 23:49       ` Wojciech Gac
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-11-19 14:20 UTC (permalink / raw)
  To: Wojciech Gac; +Cc: 24967

> From: Wojciech Gac <wojciech.s.gac@gmail.com>
> Date: Sat, 19 Nov 2016 14:21:10 +0100
> Cc: 24967@debbugs.gnu.org
> 
> Well, I did consider this for a moment, but the Polish method is called 'polish-slash' and assumes slash as
> the prefix character.

I see.

> But perhaps I could create something called 'polish-prefix' which would serve as a union of scripts,
> i.e. combining ordinary Polish diacritics with regional ones. What do you think? 

Sounds like a good idea, thanks.





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

* bug#24967: Kashubian input method
  2016-11-19 14:20     ` Eli Zaretskii
@ 2016-11-19 23:49       ` Wojciech Gac
  2016-11-25 10:43         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Wojciech Gac @ 2016-11-19 23:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 24967


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

Ok, here's another take on the topic. Now it's not region-specific and
incorporates as many regional diacritics as I was able to find.
Regards,
Wojtek

2016-11-19 15:20 GMT+01:00 Eli Zaretskii <eliz@gnu.org>:

> > From: Wojciech Gac <wojciech.s.gac@gmail.com>
> > Date: Sat, 19 Nov 2016 14:21:10 +0100
> > Cc: 24967@debbugs.gnu.org
> >
> > Well, I did consider this for a moment, but the Polish method is called
> 'polish-slash' and assumes slash as
> > the prefix character.
>
> I see.
>
> > But perhaps I could create something called 'polish-prefix' which would
> serve as a union of scripts,
> > i.e. combining ordinary Polish diacritics with regional ones. What do
> you think?
>
> Sounds like a good idea, thanks.
>

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

[-- Attachment #2: polish-prefix.patch --]
[-- Type: text/x-patch, Size: 1986 bytes --]

diff --git a/lisp/leim/quail/latin-pre.el b/lisp/leim/quail/latin-pre.el
index 138a97a..fb44897 100644
--- a/lisp/leim/quail/latin-pre.el
+++ b/lisp/leim/quail/latin-pre.el
@@ -705,6 +705,97 @@
 )
 
 
+;; Author: Wojciech Gac <wojciech.s.gac@gmail.com>
+(quail-define-package
+ "polish-prefix" "Polish" "PL>" nil
+ "Polish input method. Similar in spirit to `polish-slash', but
+ using the most intuitive prefix for each diacritic. In addition
+ to ordinary Polish diacritics, this input method also contains
+ characters from the Kashubian, Kurpie and Silesian (both Steuer
+ and Ślabikŏrzowy szrajbōnek) scripts."
+ nil t t nil nil nil nil nil nil nil t)
+
+(quail-define-rules
+ (",a" ?ą)
+ (",A" ?Ą)
+ ("/a" ?á)
+ ("/A" ?Á)
+ ("'a" ?á)
+ ("'A" ?Á)
+ ("\\a" ?à)
+ ("\\A" ?À)
+ ("`a" ?à)
+ ("`A" ?À)
+ (".a" ?å)
+ (".A" ?Å)
+ ("~a" ?ã)
+ ("~A" ?Ã)
+ ("/c" ?ć)
+ ("/C" ?Ć)
+ ("'c" ?ć)
+ ("'C" ?Ć)
+ ("'e" ?é)
+ ("'E" ?É)
+ ("/e" ?é)
+ ("/E" ?É)
+ (",e" ?ę)
+ (",E" ?Ę)
+ (":e" ?ë)
+ (":E" ?Ë)
+ (":i" ?ï)
+ (":I" ?Ï)
+ ("/l" ?ł)
+ ("/L" ?Ł)
+ ("/n" ?ń)
+ ("/N" ?Ń)
+ ("'n" ?ń)
+ ("'N" ?Ń)
+ ("`o" ?ò)
+ ("`O" ?Ò)
+ ("\\o" ?ò)
+ ("\\O" ?Ò)
+ ("'o" ?ó)
+ ("'O" ?Ó)
+ ("/o" ?ó)
+ ("/O" ?Ó)
+ ("^o" ?ô)
+ ("^O" ?Ô)
+ ("-o" ?ō)
+ ("-O" ?Ō)
+ ("~o" ?õ)
+ ("~O" ?Õ)
+ ("#o" ?ŏ)
+ ("#O" ?Ŏ)
+ ("/s" ?ś)
+ ("/S" ?Ś)
+ ("'s" ?ś)
+ ("'S" ?Ś)
+ ("`u" ?ù)
+ ("`U" ?Ù)
+ (".u" ?ů)
+ (".U" ?Ů)
+ ("/z" ?ź)
+ ("/Z" ?Ź)
+ ("'z" ?ź)
+ ("'Z" ?Ź)
+ (".z" ?ż)
+ (".Z" ?Ż)
+ ;; Explicit input of prefix characters. Normally, to input a prefix
+ ;; character itself, one needs to press <Tab>. Definitions below
+ ;; allow to input those characters by entering them twice.
+ ("//" ?/)
+ ("\\\\" ?\\)
+ ("~~" ?~)
+ ("''" ?')
+ ("::" ?:)
+ ("``" ?`)
+ ("^^" ?^)
+ (".." ?.)
+ (",," ?,)
+ ("--" ?-)
+)
+
+
 (quail-define-package
  "polish-slash" "Polish" "PL>" nil
  "Polish diacritics and slash character are input as `/[acelnosxzACELNOSXZ/]'.

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

* bug#24967: Kashubian input method
  2016-11-19 23:49       ` Wojciech Gac
@ 2016-11-25 10:43         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2016-11-25 10:43 UTC (permalink / raw)
  To: Wojciech Gac; +Cc: 24967-done

> From: Wojciech Gac <wojciech.s.gac@gmail.com>
> Date: Sun, 20 Nov 2016 00:49:07 +0100
> Cc: 24967@debbugs.gnu.org
> 
> Ok, here's another take on the topic. Now it's not region-specific and incorporates as many regional diacritics
> as I was able to find. 

Thanks, pushed to master.





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

end of thread, other threads:[~2016-11-25 10:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-19 12:02 bug#24967: Kashubian input method Wojciech Gac
2016-11-19 12:23 ` Eli Zaretskii
2016-11-19 13:21   ` Wojciech Gac
2016-11-19 14:20     ` Eli Zaretskii
2016-11-19 23:49       ` Wojciech Gac
2016-11-25 10:43         ` 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).