[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writting Greek in Emacs
From: |
Thanos Apollo |
Subject: |
Re: Writting Greek in Emacs |
Date: |
Sat, 21 Sep 2024 01:00:35 +0300 |
Emanuel Berg <incal@dataswamp.org> writes:
[...]
> The compose key does this. I have it for Swedish chars in the
> Linux VT. Hääj! Those I insert with compose " a. Compose o and
> a is å. Very clever! Whoever came up with it (the compose
> key).
>
This is exactly what I was looking for, thank you Emanuel!
> But the Swedish abc cannot be compared to the Greek as that is
> a whole alphabet of its own. Depending on how often you have
> to do this, the compose key is not a bad solution.
>
Actually the Latin alphabet has 26 characters, the greek alphabet has
only 24, leaving 2 extra keys for accents/punctuation.
Apologies for not inputting my thoughts on the issue properly before. I
will try to reiterate.
When creating a new Greek input method for Emacs, several issues and
goals need to be considered:
----------------------------
- Only include letters of the Greek alphabet.
- greek-ibycus4 for example includes the character J, which is due to
not including the letter "J" in quail-define-rules. I believe this is
a bug as well.
- greek-babel includes many archaic greek letters that are not part of
the Greek alphabet since the 5th century BC.
- Follow the Greek QWERTY layout for keybindings.
- If modifier/compose keys are not used in creating a new Greek
polytonic input method, one could replace the characters "|", "{",
"}", and "~" with hard-coded accent combinations, as these characters
are not commonly used in Greek.
- Another tricky part is handling the letter Sigma ("Σ", "σ", "ς"). "Σ"
is the capital version of sigma ("σ") while "ς" is used at the end of
a word. In iOS, this is done automatically with one key. Similarly,
greek-ibycus4 attempts to implement this feature:
("j" ?ς) ("s " ["ς "]) ("s," ["ς,"]) ("s." ["ς."]) ("s?" ["ς;"]) ("s;"
["ς·"]) #line842 in greek.el
Using "j" and "s" as a keybinding as well does not make much sense. The
commonly key usually used for sigma is "s". Currently the "greek" input
method, which is used for monotonic greek, has duplicate keys including
("W" ?Σ) #line1208 and ("S" ?Σ)#line1220 in greek.el. It'd be ideal to
have all 3 versions of sigma under the keybinding "s" in a new
greek-polytonic input method.
I propose a restructure/refactor of =greek.el= as follows:
----------------------------------------------------------
- Retain the "greek" input method as is.
- It provides proper support for monotonic Greek and is familiar to most
users.
- Retain "greek-postfix" as is.
- Supports monotonic Greek with familiar postfix keybindings.
- Retain "greek-babel" as is.
- Supports archaic Greek letters & polytonic accents.
For other input methods:
- "greek-mizuochi" and "greek-ibycus4" lack proper Greek support,
including non-mapped keys. Since "greek-babel" includes archaic Greek
letters, they seem redundant. They should be either rewritten or
considered deprecated.
- "greek-jis" seems unique, with JIS likely standing for Japanese
Industrial Standard. However, it lacks support for Greek all accents
and many Greek letters. While this could be an interesting niche
package, it may not belong in =greek.el= if it's not really Greek.
Introduce:
- Add "greek-polytonic".
- This should support only the 24 letters of the Greek alphabet and
polytonic accents, using keybindings for the standard QWERTY
Greek keyboard as closely as possible.
- Add "greek-polytonic-postfix" _after_ establishing proper polytonic
support.
--
Thanos Apollo
https://thanosapollo.org
signature.asc
Description: PGP signature
- Re: Writting Greek in Emacs, (continued)
- Re: Writting Greek in Emacs, Emanuel Berg, 2024/09/20
- Re: Writting Greek in Emacs, Eli Zaretskii, 2024/09/20
- Re: Writting Greek in Emacs, Thanos Apollo, 2024/09/20
- Re: Writting Greek in Emacs, Thanos Apollo, 2024/09/20
- Re: Writting Greek in Emacs, Robert Pluim, 2024/09/20
- Re: Writting Greek in Emacs, Thanos Apollo, 2024/09/20
- Re: Writting Greek in Emacs, Robert Pluim, 2024/09/20
- Re: Writting Greek in Emacs, Eli Zaretskii, 2024/09/20
- Re: Writting Greek in Emacs, Thanos Apollo, 2024/09/20
- Re: Writting Greek in Emacs, Emanuel Berg, 2024/09/20
- Re: Writting Greek in Emacs,
Thanos Apollo <=
- Re: Writting Greek in Emacs, Eli Zaretskii, 2024/09/21
- Re: Writting Greek in Emacs, Emanuel Berg, 2024/09/21
- Re: Writting Greek in Emacs, Max Nikulin, 2024/09/20
- Re: Writting Greek in Emacs, Thanos Apollo, 2024/09/20
- Keybindings and changing keyboard layout [was: Writting Greek in Emacs], tomas, 2024/09/21
- Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs], Juri Linkov, 2024/09/21
- Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs], tomas, 2024/09/22
- Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs], Max Nikulin, 2024/09/22
- Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs], tomas, 2024/09/23
- Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs], Max Nikulin, 2024/09/24