* [PATCH] input-method: french "e dans l'o"
@ 2013-09-06 6:31 jean haidouk
2013-09-06 18:39 ` Davis Herring
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: jean haidouk @ 2013-09-06 6:31 UTC (permalink / raw)
To: emacs-devel
Hi,
Here is a patch to add support for the french Œ.
http://en.wikipedia.org/wiki/%C5%92#Encodings
Thanks.
---
leim/ChangeLog | 6 ++++++
leim/quail/latin-alt.el | 8 +++++++-
leim/quail/latin-post.el | 8 ++++++--
leim/quail/latin-pre.el | 4 ++++
4 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/leim/ChangeLog b/leim/ChangeLog
index 3e25c0e..c85a4d5 100644
--- a/leim/ChangeLog
+++ b/leim/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-05 Jean Haidouk <haidouk@yandex.com>
+
+ * quail/latin-pre.el ("french-prefix"):
+ * quail/latin-post.el ("french-postfix"):
+ * quail/latin-alt.el ("french-alt-postfix"): Add U+0152 `œ'.
+
2013-08-28 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
diff --git a/leim/quail/latin-alt.el b/leim/quail/latin-alt.el
index fdfc89f..6841947 100644
--- a/leim/quail/latin-alt.el
+++ b/leim/quail/latin-alt.el
@@ -938,7 +938,7 @@ Par exemple: a` -> à e' -> é.
En doublant la frappe des diacritiques, ils s'isoleront de la lettre.
Par exemple: e'' -> e'
-<e dans l'o> n'est pas disponible."
+Œ est produit par O/."
nil t nil nil nil nil nil nil nil nil t)
(quail-define-rules
@@ -959,7 +959,9 @@ Par exemple: e'' -> e'
("i^" ?î)
("i\"" ?ï)
("O^" ?Ô)
+ ("O/" ?Œ)
("o^" ?ô)
+ ("o/" ?œ)
("U`" ?Ù)
("U^" ?Û)
("U\"" ?Ü)
@@ -988,8 +990,9 @@ Par exemple: e'' -> e'
("i^^" ["i^"])
("i\"\"" ["i\""])
("O^^" ["O^"])
+ ("O//" ["O/"])
("o^^" ["o^"])
+ ("o//" ["o/"])
("U``" ["U`"])
("U^^" ["U^"])
("U\"\"" ["U\""])
@@ -1423,6 +1427,7 @@ Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
("O'" ?Ó)
("O-" ?Ō)
("O/" ?Ø)
+ ("O/" ?Œ)
("O:" ?Ő)
("O\"" ?Ö)
("O^" ?Ô)
@@ -1515,6 +1520,7 @@ Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
("o'" ?ó)
("o-" ?ō)
("o/" ?ø)
+ ("o/" ?œ)
("o:" ?ő)
("o\"" ?ö)
("o^" ?ô)
diff --git a/leim/quail/latin-post.el b/leim/quail/latin-post.el
index 67cd064..7fa3d88 100644
--- a/leim/quail/latin-post.el
+++ b/leim/quail/latin-post.el
@@ -1013,7 +1013,7 @@ Par exemple: a` -> à e' -> é.
En doublant la frappe des diacritiques, ils s'isoleront de la lettre.
Par exemple: e'' -> e'
-<e dans l'o> n'est pas disponible."
+Œ est produit par O/."
nil t nil nil nil nil nil nil nil nil t)
(quail-define-rules
@@ -1034,7 +1034,9 @@ Par exemple: e'' -> e'
("i^" ?î)
("i\"" ?ï)
("O^" ?Ô)
+ ("O/" ?Œ)
("o^" ?ô)
+ ("o/" ?œ)
("U`" ?Ù)
("U^" ?Û)
("U\"" ?Ü)
@@ -1063,7 +1065,9 @@ Par exemple: e'' -> e'
("i^^" ["i^"])
("i\"\"" ["i\""])
("O^^" ["O^"])
+ ("O//" ["O/"])
("o^^" ["o^"])
+ ("o//" ["o/"])
("U``" ["U`"])
("U^^" ["U^"])
("U\"\"" ["U\""])
@@ -2099,7 +2103,7 @@ of characters from a single Latin-N charset.
dot | . | z. -> ż
stroke | / | d/ -> đ
nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
- others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> °
+ others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> ° o/ -> œ
| various | << -> « >> -> » o_ -> º a_ -> ª
Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
diff --git a/leim/quail/latin-pre.el b/leim/quail/latin-pre.el
index 4b4179e..c6085f3 100644
--- a/leim/quail/latin-pre.el
+++ b/leim/quail/latin-pre.el
@@ -264,6 +264,7 @@ Key translation rules are:
diaeresis | \" | \"i -> ï
cedilla | ~ or , | ~c -> ç ,c -> ç
symbol | ~ | ~> -> » ~< -> «
+ misc | / | /o -> œ
" nil t nil nil nil nil nil nil nil nil t)
(quail-define-rules
@@ -295,6 +296,9 @@ Key translation rules are:
("\"e" ?ë)
("\"i" ?ï)
("\" " ?\")
+ ("/o" ?œ)
+ ("/O" ?Œ)
+ ("/ " ?/)
("~<" ?\«)
("~>" ?\»)
("~C" ?Ç)
--
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 6:31 [PATCH] input-method: french "e dans l'o" jean haidouk
@ 2013-09-06 18:39 ` Davis Herring
2013-09-06 22:06 ` jean haidouk
` (2 more replies)
2013-09-06 22:50 ` Stefan Monnier
2013-09-09 19:28 ` Stefan Monnier
2 siblings, 3 replies; 11+ messages in thread
From: Davis Herring @ 2013-09-06 18:39 UTC (permalink / raw)
To: Jean Haidouk; +Cc: emacs-devel
> @@ -2099,7 +2103,7 @@ of characters from a single Latin-N charset.
> dot | . | z. -> ż
> stroke | / | d/ -> đ
> nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
> - others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> °
> + others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> ° o/ -> œ
> | various | << -> « >> -> » o_ -> º a_ -> ª
>
> Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
I think you have overridden "o/" here...
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 18:39 ` Davis Herring
@ 2013-09-06 22:06 ` jean haidouk
2013-09-07 4:32 ` Stephen J. Turnbull
2013-09-07 5:58 ` Andreas Schwab
2 siblings, 0 replies; 11+ messages in thread
From: jean haidouk @ 2013-09-06 22:06 UTC (permalink / raw)
To: Davis Herring; +Cc: emacs-devel@gnu.org
I replicated for the latin-prefix input-method what was already done for the latin-9-prefix input-method. There is even a comment justifying that:
`("/o" ?œ) ; clash with ø, but æ uses /'
This is supported. You have to enter an extra number to insert the character.
The mini buffer looks like this after entering `/o':
`/o (01/01) 1.ø 2.œ'
Thanks for reviewing my little patch.
Jean
06.09.2013, 20:39, "Davis Herring" <herring@lanl.gov>:
>> @@ -2099,7 +2103,7 @@ of characters from a single Latin-N charset.
>> dot | . | z. -> ż
>> stroke | / | d/ -> đ
>> nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
>> - others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> °
>> + others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> ° o/ -> œ
>> | various | << -> « >> -> » o_ -> º a_ -> ª
>>
>> Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
>
> I think you have overridden "o/" here...
>
> Davis
>
> --
> This product is sold by volume, not by mass. If it appears too dense or
> too sparse, it is because mass-energy conversion has occurred during
> shipping.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 18:39 ` Davis Herring
2013-09-06 22:06 ` jean haidouk
@ 2013-09-07 4:32 ` Stephen J. Turnbull
2013-09-07 5:58 ` Andreas Schwab
2 siblings, 0 replies; 11+ messages in thread
From: Stephen J. Turnbull @ 2013-09-07 4:32 UTC (permalink / raw)
To: Davis Herring; +Cc: emacs-devel, Jean Haidouk
Davis Herring writes:
> > @@ -2099,7 +2103,7 @@ of characters from a single Latin-N charset.
> > dot | . | z. -> ż
> > stroke | / | d/ -> đ
> > nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
> > - others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> °
> > + others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> ° o/ -> œ
> > | various | << -> « >> -> » o_ -> º a_ -> ª
> >
> > Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
>
> I think you have overridden "o/" here...
FWIW, the "d/" in the nordic line overides the "d/" in the stroke
line, too.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 18:39 ` Davis Herring
2013-09-06 22:06 ` jean haidouk
2013-09-07 4:32 ` Stephen J. Turnbull
@ 2013-09-07 5:58 ` Andreas Schwab
2013-09-07 6:23 ` Werner LEMBERG
2 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2013-09-07 5:58 UTC (permalink / raw)
To: Davis Herring; +Cc: emacs-devel, Jean Haidouk
Davis Herring <herring@lanl.gov> writes:
>> @@ -2099,7 +2103,7 @@ of characters from a single Latin-N charset.
>> dot | . | z. -> ż
>> stroke | / | d/ -> đ
>> nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
>> - others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> °
>> + others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> ° o/ -> œ
>> | various | << -> « >> -> » o_ -> º a_ -> ª
>>
>> Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
>
> I think you have overridden "o/" here...
No, you'll just get a menu to select one of them.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-07 5:58 ` Andreas Schwab
@ 2013-09-07 6:23 ` Werner LEMBERG
2013-09-07 6:47 ` Werner LEMBERG
0 siblings, 1 reply; 11+ messages in thread
From: Werner LEMBERG @ 2013-09-07 6:23 UTC (permalink / raw)
To: schwab; +Cc: haidouk, emacs-devel
>>> dot | . | z. -> ż
>>> stroke | / | d/ -> đ
>>> nordic | / | d/ -> ð t/ -> þ a/ -> å e/ -> æ o/ -> ø
>>> - others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> °
>>> + others | / | s/ -> ß ?/ -> ¿ !/ -> ¡ // -> ° o/ -> œ
>>> | various | << -> « >> -> » o_ -> º a_ -> ª
>>>
>>> Doubling the postfix separates the letter and postfix: e.g. a'' -> a'
>>
>> I think you have overridden "o/" here...
>
> No, you'll just get a menu to select one of them.
Nope. At least not for `d/' – you only get ð, and đ can't be
selected. So I think the same is true for ø and œ.
Werner
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 6:31 [PATCH] input-method: french "e dans l'o" jean haidouk
2013-09-06 18:39 ` Davis Herring
@ 2013-09-06 22:50 ` Stefan Monnier
2013-09-06 23:23 ` Drew Adams
2013-09-09 19:28 ` Stefan Monnier
2 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2013-09-06 22:50 UTC (permalink / raw)
To: jean haidouk; +Cc: emacs-devel
> +Œ est produit par O/."
Why not "OE", which seems more intuitive, and also has the advantage of
not overriding the O/ => Ø mapping?
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PATCH] input-method: french "e dans l'o"
2013-09-06 22:50 ` Stefan Monnier
@ 2013-09-06 23:23 ` Drew Adams
2013-09-07 9:01 ` jean haidouk
0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2013-09-06 23:23 UTC (permalink / raw)
To: Stefan Monnier, jean haidouk; +Cc: emacs-devel
> > +Œ est produit par O/."
>
> Why not "OE", which seems more intuitive, and also has the advantage of
> not overriding the O/ => Ø mapping?
Are there cases where you sometimes want "l'o dans l'e" and you sometimes
want "oe"? Dunno. What about proper names. (Or maybe there is a way
to override such abbreviation/composition?)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 23:23 ` Drew Adams
@ 2013-09-07 9:01 ` jean haidouk
0 siblings, 0 replies; 11+ messages in thread
From: jean haidouk @ 2013-09-07 9:01 UTC (permalink / raw)
To: Drew Adams, Stefan Monnier; +Cc: emacs-devel@gnu.org
Yes, you definitely want the raw `oe' like in words: poêle, moelleux, Noël, poésie, poète, coentreprise, coefficient...
http://en.wikipedia.org/wiki/%C5%92#French
So OE will be far more frequent than O/ (postfix input) or /O (prefix input) and so far more annoying when typing a french text.
I kept O/ /O because it was already chosen for the latin-9-input, and it seems better to have an uniform character sequence across all input methods. And for the national specific input method, since Ø does not exists in french, there is no clash.
Jean
07.09.2013, 01:23, "Drew Adams" <drew.adams@oracle.com>:
>>> +Œ est produit par O/."
>> Why not "OE", which seems more intuitive, and also has the advantage of
>> not overriding the O/ => Ø mapping?
>
> Are there cases where you sometimes want "l'o dans l'e" and you sometimes
> want "oe"? Dunno. What about proper names. (Or maybe there is a way
> to override such abbreviation/composition?)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] input-method: french "e dans l'o"
2013-09-06 6:31 [PATCH] input-method: french "e dans l'o" jean haidouk
2013-09-06 18:39 ` Davis Herring
2013-09-06 22:50 ` Stefan Monnier
@ 2013-09-09 19:28 ` Stefan Monnier
2 siblings, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 2013-09-09 19:28 UTC (permalink / raw)
To: jean haidouk; +Cc: emacs-devel
> Here is a patch to add support for the french Œ.
> http://en.wikipedia.org/wiki/%C5%92#Encodings
Thanks, installed,
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-09-09 19:28 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 6:31 [PATCH] input-method: french "e dans l'o" jean haidouk
2013-09-06 18:39 ` Davis Herring
2013-09-06 22:06 ` jean haidouk
2013-09-07 4:32 ` Stephen J. Turnbull
2013-09-07 5:58 ` Andreas Schwab
2013-09-07 6:23 ` Werner LEMBERG
2013-09-07 6:47 ` Werner LEMBERG
2013-09-06 22:50 ` Stefan Monnier
2013-09-06 23:23 ` Drew Adams
2013-09-07 9:01 ` jean haidouk
2013-09-09 19:28 ` Stefan Monnier
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.