From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.help Subject: Re: How to get the connected forms of Syriac letters? Date: Mon, 15 Dec 2014 23:32:53 +0100 Organization: None Message-ID: <8761dcv90q.fsf@justinian.turtle-trading.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418714966 21145 80.91.229.3 (16 Dec 2014 07:29:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 07:29:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 08:29:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y0mZH-0001z7-0i for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 08:29:15 +0100 Original-Received: from localhost ([::1]:43370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0mZE-00084D-Dh for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 02:29:12 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 15 Dec 2014 16:34:55 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:X2Ezhjk2tcZtRtkzPGZ9t/fqPeE= Original-Lines: 29 Original-X-Trace: sv3-X4UOrcE9NXHDzB2whXTx+jmRf/Z5FPgD8QlkTX55Ea5H0BPK673/xn4OL+MNRRfbXNSM/UgSwqaZY+u!696KEciMEdj2IPOxQwl51MAkoHfv8r9dIjYBJdJDnqT+MkiFXEpf9UQY8/nDO1lHGj5+91Wq2vWT!eLzS+Pw= Original-X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2028 X-Received-Bytes: 2140 X-Received-Body-CRC: 4021039015 Original-Xref: usenet.stanford.edu gnu.emacs.help:209315 X-Mailman-Approved-At: Tue, 16 Dec 2014 02:29:02 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101595 Archived-At: 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