unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Thanos Apollo <public@thanosapollo.org>
Cc: 73909@debbugs.gnu.org, Visuwesh <visuweshm@gmail.com>
Subject: bug#73909: [PATCH 2/2] quail/greek.el: Add greek-polytonic.
Date: Mon, 21 Oct 2024 12:45:03 +0200	[thread overview]
Message-ID: <87y12hpweo.fsf@gmail.com> (raw)
In-Reply-To: <87ldyizhx3.fsf@thanosapollo.org> (Thanos Apollo via's message of "Sun, 20 Oct 2024 22:35:36 +0300")

>>>>> On Sun, 20 Oct 2024 22:35:36 +0300, Thanos Apollo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> said:

Thanks for this. A few minor comments below.

    Thanos> Git patches is not my area of expertise, if I've done anything wrong
    Thanos> feel free to correct me.

The commit message needs to be in ChangeLog format. See 'Generating
ChangeLog entries' in CONTRIBUTE in the Emacs sources for how to have
Emacs help you with that, and 'Commit messages' for other
recommendations. Since this is a new input method, thereʼs no need to
describe every single detail.

    Thanos> +(quail-define-package
    Thanos> + "greek-polytonic" "Greek" "ῶ" t
    Thanos> + "Greek input method, with support for polytonic & archaic Greek letters."
    Thanos> + nil t t t t nil nil nil nil nil t)
    Thanos> +
    Thanos> +(quail-define-rules
    Thanos> + ("1" ?1)
    Thanos> + ("2" ?2)
    Thanos> + ("3" ?3)
    Thanos> + ("4" ?4)
    Thanos> + ("5" ?5)
    Thanos> + ("6" ?6)
    Thanos> + ("7" ?7)
    Thanos> + ("8" ?8)
    Thanos> + ("9" ?9)
    Thanos> + ("0" ?0)
    Thanos> + ("-" ?-)
    Thanos> + ("=" ?=)
    Thanos> + ("[" ?\[)
    Thanos> + ("]" ?\])

Thereʼs no need for entries that map to themselves.

    Thanos> + ;; Changed punction from greek.el
    Thanos> + ("`" ?·)
    Thanos> + ("~" ?:)
    Thanos> + ;; tonoi
    Thanos> + (";" ?΄) ;; U+1FFD (oxia)
    Thanos> + ("q" ?`) ;; U+1FEF (varia)
    Thanos> + ("'" ?῀) ;; U+1FC0 (perispomeni)
    Thanos> + ("\"" ?ι) ;; U+1FBE (ypogegrammeni)
    Thanos> + ;; pneumata
    Thanos> + (":" ?᾿) ;; U+1FBF (psili)
    Thanos> + ("Q" ?῾) ;; U+1FFE (dasia)
    Thanos> + ("W" ?¨) ;; U+00A8 (dialytika)
    Thanos> + ;; apostrophe combinations
    Thanos> + ("; " ["’ "]) ;; U+2019 (apostrophe)

Strictly speaking, thatʼs a RIGHT SINGLE QUOTATION MARK. Apostrophe is
?ʼ U+2BC

    Thanos> + (";g" ["’γ"])
    Thanos> + (";d" ["’δ"])
    Thanos> + (";z" ["’ζ"])
    Thanos> + (";u" ["’θ"])
    Thanos> + (";k" ["’κ"])
    Thanos> + (";l" ["’λ"])
    Thanos> + (";m" ["’μ"])
    Thanos> + (";n" ["’ν"])
    Thanos> + (";j" ["’ξ"])
    Thanos> + (";p" ["’π"])
    Thanos> + (";ρ" ["’r"])
    Thanos> + (";s" ["’σ"])
    Thanos> + (";t" ["’τ"])
    Thanos> + (";f" ["’φ"])
    Thanos> + (";x" ["’χ"])
    Thanos> + (";c" ["’ψ"])
    Thanos> + ;;
    Thanos> + (";G" ["’Γ"])
    Thanos> + (";D" ["’Δ"])
    Thanos> + (";Z" ["’Ζ"])
    Thanos> + (";U" ["’Θ"])
    Thanos> + (";K" ["’Κ"])
    Thanos> + (";L" ["’Λ"])
    Thanos> + (";M" ["’Μ"])
    Thanos> + (";N" ["’Ν"])
    Thanos> + (";J" ["’Ξ"])
    Thanos> + (";P" ["’Π"])
    Thanos> + (";Ρ" ["’R"])
    Thanos> + (";S" ["’Σ"])
    Thanos> + (";T" ["’Τ"])
    Thanos> + (";F" ["’Φ"])
    Thanos> + (";X" ["’Χ"])
    Thanos> + (";C" ["’Ψ"])

This seems like a lot of work just to prepend ’ to the basic
letters. Perhaps just

(";;" ?’)

instead would be more general (and easier to type).

    Thanos> + ("QQ" ["“ ”"])

Iʼd investigate `electric-quote-mode'.

    Thanos> + ("," ?,)
    Thanos> + ("." ?.)
    Thanos> + ("/" ?/)
    Thanos> + ("!" ?!)
    Thanos> + ("@" ?@)
    Thanos> + ("#" ?#)
    Thanos> + ("$" ?$)
    Thanos> + ("%" ?%)
    Thanos> + ("^" ?^)
    Thanos> + ("&" ?&)
    Thanos> + ("*" ?*)
    Thanos> + ("(" ?\()
    Thanos> + (")" ?\))
    Thanos> + ("_" ?_)
    Thanos> + ("+" ?+)
    Thanos> + ("{" ?{)
    Thanos> + ("}" ?})
    Thanos> + (";;" "\"")
    Thanos> + ("<" ?<)
    Thanos> + (">" ?>)

These are all identity mappings again, so unnecessary (except for ";;")

Robert
-- 





  reply	other threads:[~2024-10-21 10:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20 12:46 bug#73909: [PATCH 2/2] quail/greek.el: Add greek-polytonic Thanos Apollo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-20 13:13 ` Eli Zaretskii
2024-10-20 13:21   ` Thanos Apollo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-20 13:54     ` Eli Zaretskii
2024-10-20 18:07 ` Visuwesh
2024-10-20 18:10   ` Visuwesh
2024-10-20 19:35   ` Thanos Apollo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-21 10:45     ` Robert Pluim [this message]
2024-10-21 11:05       ` Visuwesh
2024-10-21 13:36         ` Robert Pluim
2024-10-21 13:53           ` Visuwesh
2024-10-21 14:18             ` Robert Pluim
2024-10-21 14:31               ` Visuwesh
2024-10-21 14:45                 ` Robert Pluim
2024-10-21 15:06                   ` Visuwesh
2024-10-21 12:57       ` Thanos Apollo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-21 13:30         ` Robert Pluim
2024-10-21 13:39           ` Robert Pluim
2024-10-21 15:43             ` Thanos Apollo via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y12hpweo.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=73909@debbugs.gnu.org \
    --cc=public@thanosapollo.org \
    --cc=visuweshm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).