From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Roland Winkler <winkler@gnu.org>, 64212@debbugs.gnu.org
Subject: bug#64212: 29.0.91; \Phi missing in TeX input method
Date: Thu, 22 Jun 2023 10:42:37 -0400 [thread overview]
Message-ID: <jwvo7l7v9ww.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83a5ws3xa0.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 08:01:59 +0300")
>> The TeX input method is missing \Phi that should give GREEK CAPITAL
>> LETTER PHI. I am surprised I never stumbled upon this previously. But
>> apparently that's what it is (with emacs -Q).
> Why do you need that letter in a TeX context?
FWIW, the TeX input method uses a lot of such Greek letters already.
> TeX input method is more for typing scientific text in TeX and its
> variants, and there they use a different codepoint for the symbol.
I don't see any better code point for capital phi.
>> (There is a special treatment of variants of the greek letter phi in
>> latin-ltx.el that goes beyond my knowledge of how input methods are
>> implemented.)
>
> If all that's needs to be added to the input method is
>
> ("\\Phi" ?Φ)
>
> then I can do that.
That would work, but I think the problem was in the regexp and the patch
below should fix it The Right Way. Should I push it to `master` or are
we still considering such fixes for `emacs-29`?
Stefan
diff --git a/lisp/leim/quail/latin-ltx.el b/lisp/leim/quail/latin-ltx.el
index 21a01c85737..9be3d722504 100644
--- a/lisp/leim/quail/latin-ltx.el
+++ b/lisp/leim/quail/latin-ltx.el
@@ -244,7 +244,8 @@
;; (which is \varphi) are reversed in `ucs-names', so we define
;; them manually. Also ignore "GREEK SMALL LETTER EPSILON" and
;; add the correct value for \epsilon manually.
- (unless (string-match-p "\\<\\(?:PHI\\|GREEK SMALL LETTER EPSILON\\)\\>" name)
+ (unless (string-match-p "\\<GREEK SMALL LETTER \\(?:EPSILON\\|PHI\\)\\>"
+ name)
(concat "\\" (funcall (if (match-end 1) #' capitalize #'downcase)
(match-string 2 name)))))
"\\`GREEK \\(?:SMALL\\|CAPITA\\(L\\)\\) LETTER \\([^- ]+\\)\\'")
next prev parent reply other threads:[~2023-06-22 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-21 23:24 bug#64212: 29.0.91; \Phi missing in TeX input method Roland Winkler
2023-06-22 5:01 ` Eli Zaretskii
2023-06-22 13:49 ` Roland Winkler
2023-06-22 14:42 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-06-22 15:17 ` Eli Zaretskii
2023-06-22 17:11 ` Stefan Monnier 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=jwvo7l7v9ww.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=64212@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=winkler@gnu.org \
/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).