ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt, XeTeX, special effects in Indic font for Kannada
@ 2013-08-08 11:00 Robert Zydenbos
  2013-08-08 11:51 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Zydenbos @ 2013-08-08 11:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-08 19:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 11:00 ConTeXt, XeTeX, special effects in Indic font for Kannada Robert Zydenbos
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

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