* how to set fonts for a language
@ 2013-12-26 21:46 François Patte
2013-12-27 3:57 ` Jambunathan K
[not found] ` <mailman.10486.1388116750.10748.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: François Patte @ 2013-12-26 21:46 UTC (permalink / raw)
To: help-gnu-emacs
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.
--
François Patte
Université Paris Descartes
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to set fonts for a language
2013-12-26 21:46 how to set fonts for a language François Patte
@ 2013-12-27 3:57 ` Jambunathan K
[not found] ` <mailman.10486.1388116750.10748.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Jambunathan K @ 2013-12-27 3:57 UTC (permalink / raw)
To: François Patte; +Cc: help-gnu-emacs
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=ta
TSCu_Paranar:style=Bold
TSCu_Times:style=Normal
TAMu_Maduram:style=Normal
FreeSerif:style=Medium,Mittel,µεσαία,Normal,Gemiddeld,navadno
TSCu_Comic:style=Normal
TAMu_Kadambri:style=Regular
TAMu_Kalyani:style=Regular
Lohit Tamil:style=Regular
unifont:style=Medium
TSCu_Paranar:style=Regular
kjambunathan@debian-6:~$ dpkg -l | grep indic
ii ttf-indic-fonts 1:0.5.11 Metapackage for free Indian language fonts
François Patte <francois.patte@mi.parisdescartes.fr> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.10486.1388116750.10748.help-gnu-emacs@gnu.org>]
* Re: how to set fonts for a language
[not found] ` <mailman.10486.1388116750.10748.help-gnu-emacs@gnu.org>
@ 2013-12-27 12:33 ` François Patte
2013-12-27 13:42 ` Jambunathan K
0 siblings, 1 reply; 6+ messages in thread
From: François Patte @ 2013-12-27 12:33 UTC (permalink / raw)
To: help-gnu-emacs
Le 27/12/2013 04:57, Jambunathan K a écrit :
>
> 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"))))
>
Thank you for this, it works for me.
BTW (as you use Tamil): do you some fonts for grantha? I found one
(e-grantamil) but the character codes use bengali unicode.... Do you
know if grantha has been forgotten by the unicode consortium?
Thanks
--
François Patte
Université Paris Descartes
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-12-27 15:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26 21:46 how to set fonts for a language François Patte
2013-12-27 3:57 ` Jambunathan K
[not found] ` <mailman.10486.1388116750.10748.help-gnu-emacs@gnu.org>
2013-12-27 12:33 ` François Patte
2013-12-27 13:42 ` Jambunathan K
2013-12-27 13:47 ` Jambunathan K
2013-12-27 15:17 ` Eli Zaretskii
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.