From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: how to set fonts for a language Date: Fri, 27 Dec 2013 09:27:50 +0530 Message-ID: <87ha9vkksh.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1388116754 10926 80.91.229.3 (27 Dec 2013 03:59:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2013 03:59:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?Fran=C3=A7ois?= Patte Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 04:59:19 2013 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 1VwOZy-0002VI-ND for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2013 04:59:18 +0100 Original-Received: from localhost ([::1]:47835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwOZy-0003Pe-AF for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Dec 2013 22:59:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwOZi-0003Ov-TP for help-gnu-emacs@gnu.org; Thu, 26 Dec 2013 22:59:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwOZd-0001Jr-2T for help-gnu-emacs@gnu.org; Thu, 26 Dec 2013 22:59:02 -0500 Original-Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:59693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwOZc-0001Jk-RT for help-gnu-emacs@gnu.org; Thu, 26 Dec 2013 22:58:57 -0500 Original-Received: by mail-pa0-f48.google.com with SMTP id rd3so8891683pab.35 for ; Thu, 26 Dec 2013 19:58:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=Vsal1cY8vj5vQMQYgI0z2Uxyhd4CJphCP7RHnSGvce0=; b=uU/rZNJyZzEZs48CRoF5eHEQ3CsGXAofbHkj3phAtUxSM063WnJZQeiARz4DQ+CZyv ePYBlDAY8GccARCi73gGGmOjahDTaElxdJq4+Zk0Kv3n2AndqsMG7H5INz0oDYcZ4d0w v/MH5tKFmBur3Z3aUaru1QPHDKjY8V6dqg3qci83yfLYUrP2T/OTkvWDrtxvj3J70lPF prZAUApAauJb/WQxayCm8DBik7hKsYf0ZfU6pQfHKKkKMqLjYIccbZTHhY4WslO9kooJ 7OaemtlmyBFIlF7WOM7SSOmcoV8bC2X5cBP+qwog+mhWrGPpwCLMDdKMN8qBDYPbPfYq wXLg== X-Received: by 10.66.156.106 with SMTP id wd10mr48033376pab.125.1388116735231; Thu, 26 Dec 2013 19:58:55 -0800 (PST) Original-Received: from debian-6.05 ([101.63.185.222]) by mx.google.com with ESMTPSA id vn10sm58623648pbc.21.2013.12.26.19.58.52 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 26 Dec 2013 19:58:54 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Fran=C3=A7o?= =?utf-8?Q?is?= Patte"'s message of "Thu, 26 Dec 2013 22:46:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::230 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:95164 Archived-At: This is what I have for Tamil. C-\ will toggle between English and Tamil for me. Script in your case will be 'bengali. (set-face-font 'default "fontset-default") (set-fontset-font "fontset-default" 'tamil "Lohit Tamil") (set-language-environment "Tamil") (add-hook 'set-language-environment-hook (lambda nil (when (equal current-language-environment "Tamil") (setq default-input-method "tamil-itrans")))) kjambunathan@debian-6:~$ fc-list :lang=3Dta TSCu_Paranar:style=3DBold TSCu_Times:style=3DNormal TAMu_Maduram:style=3DNormal FreeSerif:style=3DMedium,Mittel,=C2=B5=CE=B5=CF=83=CE=B1=CE=AF=CE=B1,No= rmal,Gemiddeld,navadno TSCu_Comic:style=3DNormal TAMu_Kadambri:style=3DRegular TAMu_Kalyani:style=3DRegular Lohit Tamil:style=3DRegular unifont:style=3DMedium TSCu_Paranar:style=3DRegular kjambunathan@debian-6:~$ dpkg -l | grep indic ii ttf-indic-fonts 1:0.5.11 Metapackage for free Indian language fonts =20=20=20=20=20 Fran=C3=A7ois Patte writes: > Bonjour, > > I use emacs to publish multilingual texts with xelatex. I have > customized some keys in order to switch from a script to another one, > like this: > > (global-set-key [f12] > (lambda () (interactive) (set-input-method "bengali-itrans"))) > > So far, it works perfectly, emacs uses some Bengali fonts installed on > debian sid. > > I want now to use some special otf/ttf fonts in association with this > switch: when I press f12 key, I want that emacs use these fonts for > displaying the text. Is that possible and how. > > > Thanks for any help.