From: Robert Pluim <rpluim@gmail.com>
To: Kai Ma <justksqsf@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 55319@debbugs.gnu.org
Subject: bug#55319: 28.1.50; Abugida not rendered correctly (MacOS)
Date: Thu, 12 May 2022 10:36:29 +0200 [thread overview]
Message-ID: <87r14z406q.fsf@gmail.com> (raw)
In-Reply-To: <56617540-B9BC-4769-BE87-24935CBAA99C@gmail.com> (Kai Ma's message of "Thu, 12 May 2022 16:26:49 +0800")
>>>>> On Thu, 12 May 2022 16:26:49 +0800, Kai Ma <justksqsf@gmail.com> said:
Kai> Thanks. I’ve got it work.
Kai> Besides the pattern problem, there were two missing pieces:
Kai> (1) canonical-combining-class, and
Iʼm surprised you needed to override that, but composition has many
dark corners.
Kai> (2) `compose-' to actually compose it into one glyph. `font-shape-gstring' alone does not work.
Kai> This is the result:
Kai> (defun zbalermorna-setup ()
Kai> "Set up the composition rules for zbalermonrna."
Kai> (interactive)
Kai> (dolist (v (number-sequence #xeda0 #xeda9))
Kai> (put-char-code-property v 'canonical-combining-class (encode-composition-rule '(tc . bc))))
Kai> (let* ((c "\\([\uED80-\uED97]\\|\uEDAA\\|\uEDAB\\)")
Kai> (v "[\uEDA0-\uEDA9]")
Kai> (dot "\uED89")
Kai> (h "\uED8A")
Kai> (pattern1 (concat c v))
Kai> (pattern2 (concat v h v)))
Kai> (set-char-table-range
Kai> composition-function-table '(#xeda0 . #xeda9)
Kai> (list (vector pattern2 2 #'compose-gstring-for-graphic)
Kai> (vector pattern1 1 #'compose-gstring-for-graphic)
Kai> [nil 0 font-shape-gstring]))))
Eli, since these are PUA, can we still add them to Emacs?
Thanks
Robert
--
next prev parent reply other threads:[~2022-05-12 8:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-08 11:45 bug#55319: 28.1.50; Abugida not rendered correctly (MacOS) Kai Ma
2022-05-08 16:57 ` Eli Zaretskii
2022-05-09 1:43 ` Kai Ma
2022-05-09 2:38 ` Eli Zaretskii
2022-05-11 15:43 ` Kai Ma
2022-05-11 16:12 ` Eli Zaretskii
2022-05-12 8:10 ` Robert Pluim
2022-05-12 8:26 ` Kai Ma
2022-05-12 8:36 ` Robert Pluim [this message]
2022-05-12 9:37 ` Eli Zaretskii
2022-05-12 9:42 ` Robert Pluim
2022-05-12 9:54 ` Eli Zaretskii
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=87r14z406q.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=55319@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=justksqsf@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).