unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20499: [PROPOSED PATCH] C-x 8 shorthands for curved quotes, Euro, etc.
@ 2015-05-04  1:13 Paul Eggert
  2015-05-04 14:22 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 62+ messages in thread
From: Paul Eggert @ 2015-05-04  1:13 UTC (permalink / raw)
  To: 20499; +Cc: Paul Eggert

Although C-x 8 lets you insert arbitrary Unicode characters, it's
awkward to use this to insert commonly used symbols such as curved
quotes, the Euro symbol, etc.  This patch adds simpler sequences for
ISO 8859-15 characters (which includes the Euro), plus characters that
are commonly found in English text and in basic math.  For example,
assuming the Alt key works on your keyboard and iso-transl is loaded,
one can now type "A-[" instead of "A-RET LEFT SIN TAB RET" to get the
character "‘" (U+2018 LEFT SINGLE QUOTATION MARK).
* doc/emacs/mule.texi (Unibyte Mode), etc/NEWS: Latin-9 and a few
other printing characters now work too.
* lisp/international/iso-transl.el (iso-transl-char-map):
Also support ISO 8859-15 characters (e.g., "€"), plus the characters
"–—‘’“”†‡•′″←→↔−≈≠≤≥" which are commonly used in English text
or basic math.
This patch is a followup to Bug#20385; although it is a separate issue
and does not fix Bug#20385, it could make fixing Bug#20385 easier.
---
 doc/emacs/mule.texi              |  4 ++--
 etc/NEWS                         |  2 ++
 lisp/international/iso-transl.el | 33 ++++++++++++++++++++++++++++++++-
 3 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi
index de381df..03e70da 100644
--- a/doc/emacs/mule.texi
+++ b/doc/emacs/mule.texi
@@ -1660,8 +1660,8 @@ characters present directly on the keyboard or using @key{Compose} or
 @cindex compose character
 @cindex dead character
 @item
-For Latin-1 only, you can use the key @kbd{C-x 8} as a ``compose
-character'' prefix for entry of non-@acronym{ASCII} Latin-1 printing
+You can use the key @kbd{C-x 8} as a ``compose character'' prefix for
+entry of non-@acronym{ASCII} Latin-1, Latin-9, and a few other printing
 characters.  @kbd{C-x 8} is good for insertion (in the minibuffer as
 well as other buffers), for searching, and in any other context where
 a key sequence is allowed.
diff --git a/etc/NEWS b/etc/NEWS
index 7497652..3313c56 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -213,6 +213,8 @@ successive char insertions.
 
 ** Unicode names entered via C-x 8 RET now use substring completion by default.
 
+** C-x 8 now has shorthands for Latin-9 and a few other commonly used chars.
+
 ** New minor mode global-eldoc-mode is enabled by default.
 
 ** Emacs now supports "bracketed paste mode" when running on a terminal
diff --git a/lisp/international/iso-transl.el b/lisp/international/iso-transl.el
index 73bcae0..ac91c1e 100644
--- a/lisp/international/iso-transl.el
+++ b/lisp/international/iso-transl.el
@@ -1,4 +1,4 @@
-;;; iso-transl.el --- keyboard input definitions for ISO 8859-1  -*- coding: utf-8 -*-
+;;; iso-transl.el --- keyboard input for ISO characters -*- coding: utf-8 -*-
 
 ;; Copyright (C) 1987, 1993-1999, 2001-2015 Free Software Foundation,
 ;; Inc.
@@ -36,6 +36,10 @@
 ;; to make all of the Alt keys autoload, and it is not clear
 ;; that the dead accent keys SHOULD autoload this package.
 
+;; This package supports all characters defined by ISO 8859-1 and ISO 8859-15,
+;; along with a few other ISO 10646 characters commonly used in English
+;; and computing text.
+
 ;;; Code:
 
 ;;; Provide some binding for startup:
@@ -192,6 +196,33 @@
     ("~o"   . [?õ])
     ("~t"   . [?þ])
     ("~~"   . [?¬])
+    ("OE"   . [?Œ])
+    ("Oe"   . [?œ])
+    ("vS"   . [?Š])
+    ("vs"   . [?š])
+    ("\"Y"  . [?Ÿ])
+    ("vZ"   . [?Ž])
+    ("vz"   . [?ž])
+    ("_n"   . [?–])
+    ("_m"   . [?—])
+    ("["    . [?‘])
+    ("]"    . [?’])
+    ("{"    . [?“])
+    ("}"    . [?”])
+    ("1+"   . [?†])
+    ("2+"   . [?‡])
+    ("**"   . [?•])
+    ("*'"   . [?′])
+    ("*\""  . [?″])
+    ("*E"   . [?€])
+    ("a<"   . [?←])
+    ("a>"   . [?→])
+    ("a="   . [?↔])
+    ("_-"   . [?−])
+    ("~="   . [?≈])
+    ("/="   . [?≠])
+    ("_<"   . [?≤])
+    ("_>"   . [?≥])
     ("' "   . "'")
     ("` "   . "`")
     ("\" "  . "\"")
-- 
2.1.0






^ permalink raw reply related	[flat|nested] 62+ messages in thread
[parent not found: <"<1430701990-31993-1-git-send-email-eggert"@cs.ucla.edu>]

end of thread, other threads:[~2020-08-13  8:49 UTC | newest]

Thread overview: 62+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04  1:13 bug#20499: [PROPOSED PATCH] C-x 8 shorthands for curved quotes, Euro, etc Paul Eggert
2015-05-04 14:22 ` Eli Zaretskii
2015-05-04 15:20   ` bug#16082: " Ivan Shmakov
2015-05-04 15:41     ` bug#20499: " Eli Zaretskii
2015-05-04 16:12       ` Ivan Shmakov
2015-05-04 16:31         ` Eli Zaretskii
2015-05-04 18:12           ` bug#20499: " Ivan Shmakov
2015-05-04 18:29             ` Eli Zaretskii
2015-05-04 22:00     ` bug#20499: bug#16082: bug#20499: [PROPOSED PATCH] " Stefan Monnier
2015-05-04 16:11   ` Paul Eggert
2015-05-04 16:15 ` Richard Stallman
2015-05-04 16:34   ` Eli Zaretskii
2015-05-04 16:48     ` Ivan Shmakov
2015-05-04 17:03       ` Eli Zaretskii
2015-05-04 17:40         ` bug#20499: " Ivan Shmakov
2015-05-04 22:00           ` Stefan Monnier
2015-05-05 14:38       ` bug#20499: [PROPOSED PATCH] " Richard Stallman
2015-05-05 14:49         ` Ted Zlatanov
2015-05-05 15:32           ` Eli Zaretskii
2015-05-05 16:05             ` bug#20499: " Ivan Shmakov
2015-05-05 15:31         ` bug#20499: [PROPOSED PATCH] " Eli Zaretskii
2015-05-05 16:20           ` bug#20499: " Ivan Shmakov
2015-05-05 16:42             ` Eli Zaretskii
2015-05-06 13:09             ` Richard Stallman
2015-05-06 15:33               ` Eli Zaretskii
     [not found]             ` <<E1Ypz4X-0002JA-R0@fencepost.gnu.org>
2015-05-09  0:03               ` Drew Adams
2015-05-09  8:22                 ` Eli Zaretskii
2015-05-06 13:09           ` bug#20499: [PROPOSED PATCH] " Richard Stallman
2015-05-06 16:27             ` Eli Zaretskii
2015-05-07 22:22               ` Richard Stallman
2015-05-08  5:48                 ` Eli Zaretskii
2015-05-08 18:46                   ` Richard Stallman
2015-05-08 18:46                   ` Richard Stallman
2015-05-09  7:44                     ` Eli Zaretskii
2015-05-09 14:17                       ` Richard Stallman
2015-05-09 14:36                         ` Eli Zaretskii
2015-05-08 20:18               ` Drew Adams
2015-05-09  7:59                 ` Eli Zaretskii
2015-05-04 18:40   ` Paul Eggert
2015-05-05  6:03     ` Paul Eggert
2015-05-06 22:20       ` bug#20499: " Ivan Shmakov
2015-05-07  4:05         ` Eli Zaretskii
2015-05-07  7:14           ` Ivan Shmakov
2015-05-07 14:33             ` Eli Zaretskii
2015-05-07  7:53       ` bug#20499: [PROPOSED PATCH] " Paul Eggert
2015-05-07 10:00         ` bug#20499: " Ivan Shmakov
2015-05-07 14:44           ` Eli Zaretskii
2015-05-07 17:03         ` bug#20499: [PROPOSED PATCH] " Stefan Monnier
2015-05-11  0:51           ` Paul Eggert
2015-05-11  2:25             ` Stefan Monnier
2015-05-11  1:28 ` bug#20499: [PROPOSED PATCH] C-x 8 shorthands for curved quotes, , " Paul Eggert
2015-05-11 14:54   ` Eli Zaretskii
2015-05-11 15:52     ` Stefan Monnier
2015-05-11 16:16       ` Eli Zaretskii
2015-05-11 18:48     ` Paul Eggert
2015-05-11 19:10       ` Eli Zaretskii
2015-05-12  8:56     ` Richard Stallman
2015-05-12 16:13       ` Eli Zaretskii
2019-06-26 15:12         ` bug#16082: " Lars Ingebrigtsen
2020-08-13  8:49           ` Lars Ingebrigtsen
2015-05-11 18:27   ` Richard Stallman
2015-05-11  1:55 ` bug#20499: C-x 8 shorthands for curved quotes, " Paul Eggert
     [not found] <"<1430701990-31993-1-git-send-email-eggert"@cs.ucla.edu>

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).