From: handa@gnu.org (K. Handa)
To: Eli Zaretskii <eliz@gnu.org>
Cc: bgarvin@cse.unl.edu, 17739@debbugs.gnu.org
Subject: bug#17739: 24.3; Dotted circle does not combine with Thai vowel markers
Date: Thu, 12 Jun 2014 01:10:07 +0900 [thread overview]
Message-ID: <877g4n5sww.fsf@gnu.org> (raw)
In-Reply-To: <838up63j1x.fsf@gnu.org> (message from Eli Zaretskii on Mon, 09 Jun 2014 05:36:58 +0300)
In article <838up63j1x.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
> Check out the character composition rules in thai-util.el, perhaps
> something is missing there.
The function for composing Thai is thai-composition-function
in thai-util.el and which surely doesn't handle
dotted-circle. I think what we need is a general function
to compose dotted-circle with the following character
artifically. When you eval the following code:
(defun compose-dotted-circle (gstring)
(let* ((dotted-circle-glyph (lgstring-glyph gstring 0))
(following-glyph (lgstring-glyph gstring 1))
(from (lglyph-from dotted-circle-glyph))
(to (lglyph-to following-glyph)))
(lglyph-set-from-to dotted-circle-glyph from to)
(lglyph-set-from-to following-glyph from to)
gstring))
(aset composition-function-table ?◌ '(["◌[^◌ ]" 0 compose-dotted-circle]))
and Thai characters and dotted circle use the same Norasi
font, I think you get a good result. Could you please try?
But, the above function is not yet perfect. In some fonts,
a glyhp of dotted-circle may have positive width, a glyph of
a character following dotted-circle may be narrower than the
glyph of dotted-circle. The function should handle those
cases gracefully. I'm now working on it.
---
Kenichi Handa
handa@gnu.org
next prev parent reply other threads:[~2014-06-11 16:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-08 17:33 bug#17739: 24.3; Dotted circle does not combine with Thai vowel markers Brady Garvin
2014-06-08 18:41 ` Andreas Schwab
2014-06-08 21:37 ` Brady Garvin
2014-06-09 2:36 ` Eli Zaretskii
2014-06-09 3:17 ` Brady Garvin
2014-06-09 14:36 ` Eli Zaretskii
2014-06-09 15:13 ` Brady Garvin
2014-06-11 16:10 ` K. Handa [this message]
2014-06-28 2:01 ` K. Handa
2019-09-20 23:04 ` Stefan Kangas
2019-09-21 6:54 ` Eli Zaretskii
2019-09-21 9:36 ` Stefan Kangas
2019-09-21 9:52 ` Eli Zaretskii
2019-09-21 9:53 ` Stefan Kangas
2019-09-21 12:21 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877g4n5sww.fsf@gnu.org \
--to=handa@gnu.org \
--cc=17739@debbugs.gnu.org \
--cc=bgarvin@cse.unl.edu \
--cc=eliz@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.