aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory Heytings2021-10-28 20:58:02 +0000
committerEli Zaretskii2021-10-29 10:33:36 +0300
commit3da9fa875bbfceee41df38d9f97e06013484a791 (patch)
tree19cd33cb14fbec182042374f9e9304f0138f40ce
parent928e05f2d63564284eb51a7102f96439c1b87d9f (diff)
downloademacs-3da9fa875bbfceee41df38d9f97e06013484a791.tar.gz
emacs-3da9fa875bbfceee41df38d9f97e06013484a791.zip
Make hieroglyphs display correctly with existing fonts
* etc/HELLO: Remove hieroglyph format control characters. * lisp/language/misc-lang.el: Add a rule to compose Egyptian hieroglyphs even without Unicode format control characters.
-rw-r--r--etc/HELLO2
-rw-r--r--lisp/language/misc-lang.el15
2 files changed, 15 insertions, 2 deletions
diff --git a/etc/HELLO b/etc/HELLO
index 577c2828ded..8bd489fb401 100644
--- a/etc/HELLO
+++ b/etc/HELLO
@@ -38,7 +38,7 @@ Czech (čeština) Dobrý den
38Danish (dansk) Hej / Goddag / Halløj 38Danish (dansk) Hej / Goddag / Halløj
39Dutch (Nederlands) Hallo / Dag 39Dutch (Nederlands) Hallo / Dag
40Efik /ˈɛfɪk/ Mɔkɔm 40Efik /ˈɛfɪk/ Mɔkɔm
41Egyptian Hieroglyphs (𓂋𓈖𓆎𓅓𓏏) 𓅓𓊵𓐷𓊪𓐸, 𓇍𓇋𓂻𓍘𓇋 41Egyptian Hieroglyphs (𓂋𓏤𓈖𓆎𓅓𓏏𓊖) 𓅓𓊵𓏏𓊪, 𓇍𓇋𓂻𓍘𓇋
42Emacs emacs --no-splash -f view-hello-file 42Emacs emacs --no-splash -f view-hello-file
43Emoji 👋 43Emoji 👋
44English /ˈɪŋɡlɪʃ/ Hello 44English /ˈɪŋɡlɪʃ/ Hello
diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el
index a2ca678b2be..de4f092dc13 100644
--- a/lisp/language/misc-lang.el
+++ b/lisp/language/misc-lang.el
@@ -192,7 +192,20 @@ thin (i.e. 1-dot width) space."
192 composition-function-table 192 composition-function-table
193 #x13437 193 #x13437
194 (list (vector "\U00013437[\U00013000-\U0001343F]+" 194 (list (vector "\U00013437[\U00013000-\U0001343F]+"
195 0 #'egyptian-shape-grouping)))) 195 0 #'egyptian-shape-grouping)))
196 ;; As of late 2021, Egyptian Hieroglyph Format Controls are not yet
197 ;; supported in existing fonts and shaping engines, but some fonts
198 ;; do provide ligatures with which texts in Egyptian Hieroglyphs are
199 ;; correctly displayed. If and when these format controls are
200 ;; supported, the five lines below (which cancel the effect of the
201 ;; above lines) can be removed, and the entry in etc/HELLO can be
202 ;; restored to:
203 ;; Egyptian Hieroglyphs (𓂋𓐰𓏤𓈖𓆎𓅓𓏏𓐰𓊖) 𓅓𓊵𓐰𓐷𓏏𓊪𓐸, 𓇍𓇋𓂻𓍘𓇋
204 (set-char-table-range
205 composition-function-table
206 '(#x13000 . #x1342E)
207 (list (vector "[\U00013000-\U0001342E]+"
208 0 #'font-shape-gstring))))
196 209
197(provide 'misc-lang) 210(provide 'misc-lang)
198 211