From: Fabian Rieger <cjkv@freenet.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get the connected forms of Syriac Letters?
Date: Tue, 16 Dec 2014 12:00:56 +0100 [thread overview]
Message-ID: <549010E8.4010308@freenet.de> (raw)
Benjamin Riefenstahl wrote
> I use something like this in my .emacs with Emacs 24.4.1 on Debian
> Jessie:
>
> ;; Tell Emacs to actually use shaping for Syriac (via m17n).
> ;; \u0700-\u074F: Syriac
> ;; \u0640: TATWEEL
> ;; \u200D: ZWJ
> (set-char-table-range
> composition-function-table
> '(?\u0700 . ?\u074F)
> (list ["[\u0700-\u074F\u0640\u200D]+" 0 font-shape-gstring]))
>
> (defun benny-setup-fonts (frame)
> (set-fontset-font t (?\u0700 . ?\u074F) "Serto Mardin 16" frame))
>
> ;; Run font setup whenever a new frame is constructed.
> (add-to-list 'after-make-frame-functions 'benny-setup-fonts)
>
> ;; Run font setup now if we already have a frame.
> (let ((frame (selected-frame)))
> (if frame (benny-setup-fonts frame)))
Hi Benny,
that solved the problem. I just had to replace
(set-fontset-font t (?\u0700 . ?\u074F) ...
with
(set-fontset-font t (cons (decode-char 'ucs ?\x0700)
(decode-char 'ucs ?\x074F) ...
(The reason for this maybe I'll try to understand next week ...)
and now Syriac really looks fine.
Thanks for your help.
Fabian
next reply other threads:[~2014-12-16 11:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-16 11:00 Fabian Rieger [this message]
[not found] <mailman.16173.1418727837.1147.help-gnu-emacs@gnu.org>
2014-12-18 1:26 ` How to get the connected forms of Syriac Letters? Stefan Monnier
2014-12-18 21:42 ` Benjamin Riefenstahl
[not found] <mailman.16150.1418679134.1147.help-gnu-emacs@gnu.org>
2014-12-15 22:32 ` How to get the connected forms of Syriac letters? Benjamin Riefenstahl
2014-12-16 15:37 ` Eli Zaretskii
[not found] ` <mailman.16194.1418744256.1147.help-gnu-emacs@gnu.org>
2014-12-16 19:32 ` Benjamin Riefenstahl
2014-12-16 20:19 ` Eli Zaretskii
[not found] ` <mailman.16227.1418762647.1147.help-gnu-emacs@gnu.org>
2014-12-16 22:38 ` Benjamin Riefenstahl
-- strict thread matches above, loose matches on Subject: below --
2014-12-15 21:12 Fabian Rieger
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=549010E8.4010308@freenet.de \
--to=cjkv@freenet.de \
--cc=help-gnu-emacs@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.
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).