Subject: Re: bug#36717: 25.3; greek.el: deprecated vowel+oxia combinations should be replaced with vowel+tonos counterparts

From: "Basil L. Contovounesios" <[email-masked]>
Date: Thu, 18 Jul 2019 19:16:39 +0100

Robert Pluim <[email-masked]> writes:

>>>>>> On Thu, 18 Jul 2019 11:03:10 +0200, Robert Alessi <[email-masked]> said:
>
>     Robert> As of 2016, the latest versions of Unicode (as of 2016) have now
>     Robert> formally deprecated and removed the vowel+oxia combinations from the
>     Robert> Greek extended range, leaving only the vowel+tonos from the basic Greek
>     Robert> and Coptic range.
>
>     Robert> As a result of this deprecation, the sixteen characters found in
>     Robert> greek.el (Quail package for inputting Greek) that use extended
>     Robert> codepoints should be replaced with those that use basic codepoints.  All
>     Robert> affected characters can be found here:
>     --> 
>     Robert> https://wiki.digitalclassicist.org/Greek_Unicode_duplicated_vowels#Affected_characters
>
> I took a look at greek.el, that shouldn't be difficult.

Indeed, it's just a simple search+replace:

>From 1e7e52b25d70f827644e179f2c921adda31306fc Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" <[email-masked]>
Date: Thu, 18 Jul 2019 15:52:33 +0100
Subject: [PATCH] Replace Greek vowel+oxia with vowel+tonos in Quail

* lisp/leim/quail/greek.el (greek-mizuochi, greek-babel)
(greek-ibycus4):
* lisp/leim/quail/rfc1345.el (rfc1345): Replace vowel+oxia
characters from the Greek Extended block with their equivalent
vowel+tonos characters from the Greek and Coptic block (bug#36717).
---
 lisp/leim/quail/greek.el   | 82 +++++++++++++++++++-------------------
 lisp/leim/quail/rfc1345.el | 30 +++++++-------
 2 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/lisp/leim/quail/greek.el b/lisp/leim/quail/greek.el
index 66a17a29f5..e5d3100390 100644
--- a/lisp/leim/quail/greek.el
+++ b/lisp/leim/quail/greek.el
@@ -264,7 +264,7 @@ "greek-mizuochi"
 
  ("i`" ?ἱ) ("iV" ?ἱ)
  ("i'" ?ἰ) ("iv" ?ἰ)
- ("i/" ?ί)
+ ("i/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?Ό)
 
  ("`W" ?Ὼ)
- ("'W" ?Ώ)
+ ("'W" ?Ώ)
  ("W|" ?ῼ)
 
  ("'" ?´) ; #x1ffd ; oxia
diff --git a/lisp/leim/quail/rfc1345.el b/lisp/leim/quail/rfc1345.el
index da1a453a9c..c08fa398c0 100644
--- a/lisp/leim/quail/rfc1345.el
+++ b/lisp/leim/quail/rfc1345.el
@@ -35,7 +35,7 @@
  nil t nil nil nil nil nil nil nil nil t)
 
 (quail-define-rules
-;; There doesn't seem to be any point in including ASCII.
+ ;; There doesn't seem to be any point in including ASCII.
  ("&PA" ?\200)
  ("&HO" ?\201)
  ("&BH" ?\202)
@@ -928,19 +928,19 @@
  ("&W*," ?Ὠ)
  ("&W*;" ?Ὡ)
  ("&a*!" ?ὰ)
- ("&a*'" ?ά)
+ ("&a*'" ?ά)
  ("&e*!" ?ὲ)
- ("&e*'" ?έ)
+ ("&e*'" ?έ)
  ("&y*!" ?ὴ)
- ("&y*'" ?ή)
+ ("&y*'" ?ή)
  ("&i*!" ?ὶ)
- ("&i*'" ?ί)
+ ("&i*'" ?ί)
  ("&o*!" ?ὸ)
- ("&o*'" ?ό)
+ ("&o*'" ?ό)
  ("&u*!" ?ὺ)
- ("&u*'" ?ύ)
+ ("&u*'" ?ύ)
  ("&w*!" ?ὼ)
- ("&w*'" ?ώ)
+ ("&w*'" ?ώ)
  ("&a*(" ?ᾰ)
  ("&a*-" ?ᾱ)
  ("&a*j" ?ᾳ)
@@ -948,7 +948,7 @@
  ("&A*(" ?Ᾰ)
  ("&A*-" ?Ᾱ)
  ("&A*!" ?Ὰ)
- ("&A*'" ?Ά)
+ ("&A*'" ?Ά)
  ("&A*J" ?ᾼ)
  ("&)*" ?᾽)
  ("&J3" ?ι)
@@ -957,9 +957,9 @@
  ("&?:" ?῁)
  ("&y*j" ?ῃ)
  ("&y*?" ?ῆ)
- ("&E*'" ?Έ)
+ ("&E*'" ?Έ)
  ("&Y*!" ?Ὴ)
- ("&Y*'" ?Ή)
+ ("&Y*'" ?Ή)
  ("&Y*J" ?ῌ)
  ("&,!" ?῍)
  ("&,'" ?῎)
@@ -970,7 +970,7 @@
  ("&I*(" ?Ῐ)
  ("&I*-" ?Ῑ)
  ("&I*!" ?Ὶ)
- ("&I*'" ?Ί)
+ ("&I*'" ?Ί)
  ("&;!" ?῝)
  ("&;'" ?῞)
  ("&?;" ?῟)
@@ -982,7 +982,7 @@
  ("&U*(" ?Ῠ)
  ("&U*-" ?Ῡ)
  ("&U*!" ?Ὺ)
- ("&U*'" ?Ύ)
+ ("&U*'" ?Ύ)
  ("&R*;" ?Ῥ)
  ("&!:" ?῭)
  ("&:'" ?΅)
@@ -990,9 +990,9 @@
  ("&w*j" ?ῳ)
  ("&w*?" ?ῶ)
  ("&O*!" ?Ὸ)
- ("&O*'" ?Ό)
+ ("&O*'" ?Ό)
  ("&W*!" ?Ὼ)
- ("&W*'" ?Ώ)
+ ("&W*'" ?Ώ)
  ("&W*J" ?ῼ)
  ("&/*" ?´)
  ("&;;" ?῾)
-- 
2.20.1

> What about GREEK OXIA vs GREEK TONOS as standalone characters? Should
> we replace the former with the latter?

I'm not sure; see my other message.  AFAIK vowels composed with oxia
decompose to their tonos counterparts, but not so oxia itself.  I'm
still confused as to what Quail should do with these equivalences.
Should it always use the simplest possible composition?

Thanks,

-- 
Basil