unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get the connected forms of Syriac letters?
Date: Mon, 15 Dec 2014 23:32:53 +0100	[thread overview]
Message-ID: <8761dcv90q.fsf@justinian.turtle-trading.net> (raw)
In-Reply-To: mailman.16150.1418679134.1147.help-gnu-emacs@gnu.org

Hi Fabian,

Fabian Rieger writes:
> Is there a method to make Emacs show the connected (initial, medial,
> final) forms of Syriac letters?

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)))

benny


       reply	other threads:[~2014-12-15 22:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.16150.1418679134.1147.help-gnu-emacs@gnu.org>
2014-12-15 22:32 ` Benjamin Riefenstahl [this message]
2014-12-16 15:37   ` How to get the connected forms of Syriac letters? 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
     [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
2014-12-16 11:00 Fabian Rieger
  -- strict thread matches above, loose matches on Subject: below --
2014-12-15 21:12 How to get the connected forms of Syriac letters? 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=8761dcv90q.fsf@justinian.turtle-trading.net \
    --to=b.riefenstahl@turtle-trading.net \
    --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).