emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d21cdb6: Set up composition-function-table for Egyptian


From: Eli Zaretskii
Subject: master d21cdb6: Set up composition-function-table for Egyptian
Date: Fri, 23 Oct 2020 10:24:38 -0400 (EDT)

branch: master
commit d21cdb6c056453d4e4ef8a3a1f27d8bc203c09ea
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Set up composition-function-table for Egyptian
    
    * lisp/language/misc-lang.el (composition-function-table): Set up
    for Egyptian Hieroglyphs.
---
 lisp/language/misc-lang.el | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el
index e3a24c4..3f45f70 100644
--- a/lisp/language/misc-lang.el
+++ b/lisp/language/misc-lang.el
@@ -141,6 +141,20 @@ thin (i.e. 1-dot width) space."
        (vector "[\u0600-\u074F\u200C\u200D]+"
                0 'arabic-shape-gstring)))
 
+;; The Egyptian Hieroglyph Format Controls were introduced in Unicode
+;; Standard v12.0.  Apparently, they are not yet well supported in
+;; existing fonts, as of late 2020.  But there's no reason for us not
+;; to be ready for when they will be!
+;; The below is needed to support the arrangement of the Egyptian
+;; Hieroglyphs in "quadrats", as directed by the format controls,
+;; which specify how the hieroglyphs should be joined horizontally and
+;; vertically.
+(set-char-table-range
+ composition-function-table
+ '(#x13000 . #x1343F)
+ (list (vector "[\U00013000-\U0001343F]+"
+               0 'compose-gstring-for-graphic)))
+
 (provide 'misc-lang)
 
 ;;; misc-lang.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]