* greek-style quotes for greek input method?
@ 2010-08-08 13:31 Giorgos Keramidas
2010-08-09 2:36 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Giorgos Keramidas @ 2010-08-08 13:31 UTC (permalink / raw)
To: emacs-devel
Greek books use a different set of quotes from the normal English
"double" or ``double'' quotes. The default "el" input method of XKB and
my Gnome desktop maps these special greek-style quotes to the ";<" and
";>" input strings. So when I switch to the Gnome-greek input method by
typing Alt-Shift I can type this text
EL: Ελληνικό κείμενο με «εισαγωγικά».
EN: Greek text with «quotes».
by typing the greek-style quotes as ";<" and ";>" respectively.
The `greek' input method of Emacs supports most of the diacritic marks
with the following special key sequences:
KEY SEQUENCE
------------
You can also input more characters by the following key sequences:
key char [type a key sequence to insert the corresponding character]
--- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- --- ----
:I Ϊ :i ϊ ;A Ά ;H Ή ;O Ό ;Y Ύ ;e έ ;i ί ;v ώ :;i ΐ ;:i ΐ
:Y Ϋ :y ϋ ;E Έ ;I Ί ;V Ώ ;a ά ;h ή ;o ό ;y ύ :;y ΰ ;:y ΰ
It would be nice if it also supported ;< and ;> for greek-style quotes
but I don't know how to do this using the current sources of the file
`emacs/trunk/leim/quail/greek.el'.
Does anyone feel like showing me how to do this, or even patching
`quail/greek.el' directly?
The mapping that we could use from input text to Unicode character of
the greek-style quotes would be:
(";<" "«")
(";>" "»")
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-08 13:31 greek-style quotes for greek input method? Giorgos Keramidas
@ 2010-08-09 2:36 ` Kenichi Handa
2010-08-09 6:53 ` Giorgos Keramidas
0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2010-08-09 2:36 UTC (permalink / raw)
To: Giorgos Keramidas; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=iso-2022-jp-2, Size: 1381 bytes --]
In article <87r5i9dye9.fsf@kobe.laptop>, Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
> Greek books use a different set of quotes from the normal English
> "double" or ``double'' quotes. The default "el" input method of XKB and
> my Gnome desktop maps these special greek-style quotes to the ";<" and
> ";>" input strings. So when I switch to the Gnome-greek input method by
> typing Alt-Shift I can type this text
[...]
> It would be nice if it also supported ;< and ;> for greek-style quotes
> but I don't know how to do this using the current sources of the file
> `emacs/trunk/leim/quail/greek.el'.
> Does anyone feel like showing me how to do this, or even patching
> `quail/greek.el' directly?
> The mapping that we could use from input text to Unicode character of
> the greek-style quotes would be:
> (";<" "^[,A+^[(B")
> (";>" "^[,A;^[(B")
It seems reasonable to add that rules.
I've just committed the attached patch to emacs-23 branch.
---
Kenichi Handa
handa@m17n.org
=== modified file 'leim/quail/greek.el'
--- leim/quail/greek.el 2010-01-13 08:35:10 +0000
+++ leim/quail/greek.el 2010-08-09 02:26:29 +0000
@@ -1279,7 +1279,9 @@
(";:i" ?^[$(D&v^[(B)
(":;i" ?^[$(D&v^[(B)
(";:y" ?^[$(D&{^[(B)
- (":;y" ?^[$(D&{^[(B))
+ (":;y" ?^[$(D&{^[(B)
+ (";<" "^[,A+^[(B")
+ (";>" "^[,A;^[(B"))
(quail-define-package
"greek-postfix" "GreekPost" "^[$B&7^[(B" nil
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-09 2:36 ` Kenichi Handa
@ 2010-08-09 6:53 ` Giorgos Keramidas
2010-08-09 6:58 ` Giorgos Keramidas
0 siblings, 1 reply; 8+ messages in thread
From: Giorgos Keramidas @ 2010-08-09 6:53 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
On Mon, 09 Aug 2010 11:36:35 +0900, Kenichi Handa <handa@m17n.org> wrote:
>In article <87r5i9dye9.fsf@kobe.laptop>, Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
>> Greek books use a different set of quotes from the normal English
>> "double" or ``double'' quotes. The default "el" input method of XKB and
>> my Gnome desktop maps these special greek-style quotes to the ";<" and
>> ";>" input strings. So when I switch to the Gnome-greek input method by
>> typing Alt-Shift I can type this text
> [...]
>> It would be nice if it also supported ;< and ;> for greek-style quotes
>> but I don't know how to do this using the current sources of the file
>> `emacs/trunk/leim/quail/greek.el'.
>
>> Does anyone feel like showing me how to do this, or even patching
>> `quail/greek.el' directly?
>
>> The mapping that we could use from input text to Unicode character of
>> the greek-style quotes would be:
>
>> (";<" "«")
>> (";>" "»")
>
> It seems reasonable to add that rules.
> I've just committed the attached patch to emacs-23 branch.
> === modified file 'leim/quail/greek.el'
> --- leim/quail/greek.el 2010-01-13 08:35:10 +0000
> +++ leim/quail/greek.el 2010-08-09 02:26:29 +0000
> @@ -1279,7 +1279,9 @@
> (";:i" ?ΐ)
> (":;i" ?ΐ)
> (";:y" ?ΰ)
> - (":;y" ?ΰ))
> + (":;y" ?ΰ)
> + (";<" "«")
> + (";>" "»"))
>
> (quail-define-package
> "greek-postfix" "GreekPost" "Ψ" nil
Thanks!
Should we also modify the greek-postfix rules to include "<;" and ">;"
for the same?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-09 6:53 ` Giorgos Keramidas
@ 2010-08-09 6:58 ` Giorgos Keramidas
2010-08-09 8:03 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Giorgos Keramidas @ 2010-08-09 6:58 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
On Mon, 09 Aug 2010 09:53:45 +0300, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
> On Mon, 09 Aug 2010 11:36:35 +0900, Kenichi Handa <handa@m17n.org> wrote:
>>In article <87r5i9dye9.fsf@kobe.laptop>, Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
>>> The mapping that we could use from input text to Unicode character of
>>> the greek-style quotes would be:
>>
>>> (";<" "«")
>>> (";>" "»")
>>
>> It seems reasonable to add that rules.
>> I've just committed the attached patch to emacs-23 branch.
>
>> === modified file 'leim/quail/greek.el'
>> --- leim/quail/greek.el 2010-01-13 08:35:10 +0000
>> +++ leim/quail/greek.el 2010-08-09 02:26:29 +0000
>> @@ -1279,7 +1279,9 @@
>> (";:i" ?ΐ)
>> (":;i" ?ΐ)
>> (";:y" ?ΰ)
>> - (":;y" ?ΰ))
>> + (":;y" ?ΰ)
>> + (";<" "«")
>> + (";>" "»"))
>>
>> (quail-define-package
>> "greek-postfix" "GreekPost" "Ψ" nil
>
> Thanks!
>
> Should we also modify the greek-postfix rules to include "<;" and ">;"
> for the same?
Something like this perhaps?
%%%
diff -r 8be8f7b37e26 leim/quail/greek.el
--- a/leim/quail/greek.el Fri Apr 03 03:02:01 2009 +0300
+++ b/leim/quail/greek.el Mon Aug 09 09:55:26 2010 +0300
@@ -1279,7 +1279,9 @@ e.g.
(";:i" ?ΐ)
(":;i" ?ΐ)
(";:y" ?ΰ)
- (":;y" ?ΰ))
+ (":;y" ?ΰ)
+ (";<" ?«)
+ (";>" ?»))
(quail-define-package
"greek-postfix" "GreekPost" "Ψ" nil
@@ -1419,7 +1421,9 @@ e.g.
("i:;" ?ΐ)
("i;:" ?ΐ)
("y:;" ?ΰ)
- ("y;:" ?ΰ))
+ ("y;:" ?ΰ)
+ ("<;" ?«)
+ (">;" ?»))
;; arch-tag: 2a37e042-db1b-4ecf-b755-117775a3c150
%%%
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-09 6:58 ` Giorgos Keramidas
@ 2010-08-09 8:03 ` Kenichi Handa
2010-08-09 11:55 ` Giorgos Keramidas
0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2010-08-09 8:03 UTC (permalink / raw)
To: Giorgos Keramidas; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=iso-2022-jp-2, Size: 807 bytes --]
In article <87d3ts5l1u.fsf@kobe.laptop>, Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
> > Should we also modify the greek-postfix rules to include "<;" and ">;"
> > for the same?
> Something like this perhaps?
[...]
> (quail-define-package
> "greek-postfix" "GreekPost" "^[$B&7^[(B" nil
> @@ -1419,7 +1421,9 @@ e.g.
> ("i:;" ?^[$(D&v^[(B)
> ("i;:" ?^[$(D&v^[(B)
> ("y:;" ?^[$(D&{^[(B)
> - ("y;:" ?^[$(D&{^[(B))
> + ("y;:" ?^[$(D&{^[(B)
> + ("<;" ?^[,A+^[(B)
> + (">;" ?^[,A;^[(B))
I'm not sure. In many Latin prefix methods, "~<" is used
for "^[,A+^[(B", but in Latin prefix methods, "<<" is used for "^[,A+^[(B".
It seems that this asymmetricness has some meaning. Isn't
it more convenient also for greek-postfix to use "<<"
provided that there's no standard for it.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-09 8:03 ` Kenichi Handa
@ 2010-08-09 11:55 ` Giorgos Keramidas
2010-08-13 6:56 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Giorgos Keramidas @ 2010-08-09 11:55 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
On Mon, 09 Aug 2010 17:03:18 +0900, Kenichi Handa <handa@m17n.org> wrote:
> In article <87d3ts5l1u.fsf@kobe.laptop>, Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
>> > Should we also modify the greek-postfix rules to include "<;" and ">;"
>> > for the same?
>
>> Something like this perhaps?
> [...]
>> (quail-define-package
>> "greek-postfix" "GreekPost" "Ψ" nil
>> @@ -1419,7 +1421,9 @@ e.g.
>> ("i:;" ?ΐ)
>> ("i;:" ?ΐ)
>> ("y:;" ?ΰ)
>> - ("y;:" ?ΰ))
>> + ("y;:" ?ΰ)
>> + ("<;" ?«)
>> + (">;" ?»))
>
> I'm not sure. In many Latin prefix methods, "~<" is used for "«", but
> in Latin prefix methods, "<<" is used for "«". It seems that this
> asymmetricness has some meaning. Isn't it more convenient also for
> greek-postfix to use "<<" provided that there's no standard for it.
Thanks for clarifying this! Whatever feels more natural for the rest of
input-methods is fine.
I just tried the "<;" / ">;" patch in a local build and it works. If
the rest of postfix input methods use "<<" and ">>", then I'll wait
until the patch hits trunk and remove my local changes :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-09 11:55 ` Giorgos Keramidas
@ 2010-08-13 6:56 ` Kenichi Handa
2010-08-13 9:54 ` Giorgos Keramidas
0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2010-08-13 6:56 UTC (permalink / raw)
To: Giorgos Keramidas; +Cc: emacs-devel
In article <87r5i8vw34.fsf@kobe.laptop>, Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
> > I'm not sure. In many Latin prefix methods, "~<" is used for "«", but
> > in Latin prefix methods, "<<" is used for "«". It seems that this
> > asymmetricness has some meaning. Isn't it more convenient also for
> > greek-postfix to use "<<" provided that there's no standard for it.
> Thanks for clarifying this! Whatever feels more natural for the rest of
> input-methods is fine.
Ok, I've just committed a change to add "<<" and ">>".
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: greek-style quotes for greek input method?
2010-08-13 6:56 ` Kenichi Handa
@ 2010-08-13 9:54 ` Giorgos Keramidas
0 siblings, 0 replies; 8+ messages in thread
From: Giorgos Keramidas @ 2010-08-13 9:54 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
On Fri, 13 Aug 2010 15:56:36 +0900, Kenichi Handa <handa@m17n.org> wrote:
>In article <87r5i8vw34.fsf@kobe.laptop>,
>Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
>>> I'm not sure. In many Latin prefix methods, "~<" is used for "«",
>>> but in Latin prefix methods, "<<" is used for "«". It seems that
>>> this asymmetricness has some meaning. Isn't it more convenient also
>>> for greek-postfix to use "<<" provided that there's no standard for
>>> it.
>>
>> Thanks for clarifying this! Whatever feels more natural for the rest
>> of input-methods is fine.
>
> Ok, I've just committed a change to add "<<" and ">>".
Thanks :-)
I can remove my local patch now.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-08-13 9:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-08 13:31 greek-style quotes for greek input method? Giorgos Keramidas
2010-08-09 2:36 ` Kenichi Handa
2010-08-09 6:53 ` Giorgos Keramidas
2010-08-09 6:58 ` Giorgos Keramidas
2010-08-09 8:03 ` Kenichi Handa
2010-08-09 11:55 ` Giorgos Keramidas
2010-08-13 6:56 ` Kenichi Handa
2010-08-13 9:54 ` Giorgos Keramidas
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).