ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Sanskrit Devanagari characters
Date: Sun, 26 Jun 2011 08:44:37 +0200	[thread overview]
Message-ID: <BANLkTik4_Dg6ftFAR_yo2Ya_Xmz_h+ck3A@mail.gmail.com> (raw)
In-Reply-To: <1309047775.9217.68.camel@kip-laptop>

[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]

On Sun, Jun 26, 2011 at 02:22, Kip Warner wrote:
> On Thu, 2011-06-23 at 07:58 +0200, Mojca Miklavec wrote:
>> Or produce the whole document with ConTeXt + XeTeX :)
>
> I would, but getting ConTeXt alone up and running has taken weeks.

If you have it up and running, you can use it now also for XeTeX.

The only difference is that you have to run "texexec --xtx filename"
as opposed to "context filename".

> You'd think it would just be something really simple like
> \switchfont[devangari]
> तरीकिन
> \unswitchfont

With ConTeXt+XeTeX it boils down to:

% this is plain xetex font switch; see next example
\font\devanagari="Devanagari MT:script=Deva"
\starttext
{\devanagari तरीकिन}
\stoptext

Or the following one that could work in both XeTeX and LuaTeX with MKIV:

\definefontfeature[devanagari][script=deva]
\definefontsynonym[devanagari][name:Devanagari MT][features=devanagari]

\starttext
{\definedfont[devanagari] तरीकिन}
\stoptext

See attachments. XeTeX should work fine for you, the only question is
whether you need any MKIV features or not. If you do need them, you
could use Aditya's approach to insert snipets compiled with XeTeX (it
will happen automatically), if you don't need them you just take XeTeX
and you are done. The example that you sent also works fine in ConTeXt
MKIV, but as soon as it comes to slightly more complex ligatures,
LuaTeX won't render them properly without writing some additional
support.

Mojca

[-- Attachment #2: devanagari-xetex.pdf --]
[-- Type: application/pdf, Size: 7507 bytes --]

[-- Attachment #3: devanagari-luatex.pdf --]
[-- Type: application/pdf, Size: 10403 bytes --]

[-- Attachment #4: 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
___________________________________________________________________________________

  reply	other threads:[~2011-06-26  6:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22 22:51 Kip Warner
2011-06-23  4:36 ` Khaled Hosny
2011-06-23  5:58   ` Mojca Miklavec
2011-06-23  6:06     ` Khaled Hosny
2011-06-23  7:38       ` Hans Hagen
2011-06-23 12:05         ` Daniel Stender
2011-06-24  0:23           ` Kip Warner
2011-06-26  0:22     ` Kip Warner
2011-06-26  6:44       ` Mojca Miklavec [this message]
2011-06-26  6:50         ` Aditya Mahajan
2011-06-26  6:59           ` Mojca Miklavec
2011-06-26  9:31           ` Hans Hagen
2011-06-27  2:10         ` Kip Warner
2011-06-27  7:35           ` Mojca Miklavec
2011-06-28  1:39             ` Kip Warner
2011-06-28  1:51               ` Mojca Miklavec
2011-06-28  1:57                 ` Kip Warner
2011-06-24  0:25   ` Kip Warner
2011-06-24  7:06     ` Aditya Mahajan
2011-06-24 21:36       ` Kip Warner

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=BANLkTik4_Dg6ftFAR_yo2Ya_Xmz_h+ck3A@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).