From: Robert Zydenbos <context@zydenbos.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: ConTeXt, XeTeX, special effects in Indic font for Kannada
Date: Thu, 8 Aug 2013 13:00:14 +0200 [thread overview]
Message-ID: <DDCBC53B-10E6-4045-8F84-96282202EFB1@zydenbos.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
On my Mac (Mountain Lion) I would like to use ConTeXt with a complex OpenType font named Kedage for the Indian language Kannada, and I thought that I could do this using XeTeX (because LuaTeX seems unable to handle Indic fonts at present).
This freely available font (found on Linux systems, for instance) comes in four files: Kedage-n.TTF, Kedage-b.TTF, Kedage-i.TTF, Kedage-t.TTF (normal, bold, italic and bolditalic, respectively).
I have been partly successful with the simple command
\definefontsynonym[kan][name:Kedage]
and then using
\definedfont[kan]
where I want to have the font in the text. Also \font\kannada="Kedage" (and \kannada later in the text) seems to work well without any further indications of language, script etc.
However, I would also like to use the bold, italic and bolditalic forms of the font. Simply using \bold and \em does not work.
Here I see two possibilities:
(1) use the XeTeX parameters FakeSlant and FakeBold, which I have done in LaTeX. But I do not know how this is done in ConTeXt.
(2) use the other font files (Kedage-b.TTF etc.), and again I do not know how to do this.
Can anybody help me out, either way? (I have attached a sample.)
Robert
[-- Attachment #2: kannadacontext.pdf --]
[-- Type: application/pdf, Size: 14656 bytes --]
[-- Attachment #3: kannadacontext.tex --]
[-- Type: application/octet-stream, Size: 553 bytes --]
\font\kannada="Kedage"
\definefontsynonym[kan][name:Kedage]
\starttext
We will now use a Kannada font named Kedage in XeConTeXt.\blank
{\kannada ಇದು ಕನ್ನಡದಲ್ಲಿದೆ. ಬಹಳ ರೋಚಕವಾದುದು, ಹೀಗೆ ಬರೆಯುವುದು ಎಂದು ಭಾವಿಸುತ್ತೇನೆ. \bold ಈಗ ದಪ್ಪಗೆ, ಮತ್ತು \em ಕೊಂಕು.} (Kedage)\blank
And now it is defined differently:
{\definedfont[kan] ಇದು ಓದಬಹುದಾ? \bold ಓದಬಹುದಾ?}\blank
\stoptext
[-- Attachment #4: Type: text/plain, Size: 2 bytes --]
[-- Attachment #5: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2013-08-08 11:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 11:00 Robert Zydenbos [this message]
2013-08-08 11:51 ` Hans Hagen
2013-08-08 12:26 ` Robert Zydenbos
2013-08-08 16:51 ` Hans Hagen
2013-08-08 19:39 ` Rajeesh K Nambiar
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DDCBC53B-10E6-4045-8F84-96282202EFB1@zydenbos.net \
--to=context@zydenbos.net \
--cc=ntg-context@ntg.nl \
/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 NNTP newsgroup(s).