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>
Cc: gururaj <ms.gururaj@rediffmail.com>
Subject: Re: Kannada
Date: Tue, 4 Dec 2007 01:51:56 +0100	[thread overview]
Message-ID: <6faad9f00712031651g2242f858r79f605934f5d709@mail.gmail.com> (raw)

Hello,

Please post such questions to the list, not to me personally.

---------- Forwarded message ----------
From: gururaj <ms.gururaj@rediffmail.com>
Date: 3 Dec 2007 16:12:42 -0000
Subject: context

I couldn't configure TexnicCenter for ConTeXt. I am using SciTe
instead which works fine. I have another problem. When I had Miktex
installed on my machine I could use the macro package "kanlel" which
gives the output in  Kannada, my native language. But with ConTeXt I
am unable to use the macro package. How can I make this package work
with ConTeXt?

%%%%

I would suggest you to use XeTeX or LuaTeX for Kannada, I don't see
any advantage in supporting pdfTeX to do that.

You need:
- the proper font
- perhaps hyphenation patterns
(http://www.ctan.org/tex-archive/macros/xetex/hyphenation/sanhyph/):
Hans would need to add support to ConTeXt somehow, but *if and only
if* you:
  - are ready to test (to change files and regenerate formats)
  - provide enough feedback (if you ask a question about TeXnicCenter
and people answer it on the list, it's polite to answer that it either
didn't work and what went wrong or that you managed to compile
successfully)
  - provide enough information (what exactly doesn't work, where does
it fail, what's the error message)
  - specify what you need (figure captions probably need to be
translated into semething as well)

This is a sample (which should be simplified):

% engine=xetex
% this ugly portion of code could be shorter, perhaps reduced to
% \definetypeface[myface][rm][Xserif][Devanagari MT]
% \setupbodyfont[myface]

\definefontfeature[devanagari][script=deva]

\starttypescript[serif][devanagari]
% replace "Devanagari MT" in "name:Devanagari MT" with the font you
have installed
\definefontsynonym[DevanagariMTRegular] [name:Devanagari MT]
[features=devanagari]
\definefontsynonym[DevanagariMTBold]    [name:Devanagari MT/B]
[features=devanagari]
\stoptypescript

\starttypescript[serif][devanagari][name]
\definefontsynonym[Serif]           [DevanagariMTRegular]
\definefontsynonym[SerifBold]       [DevanagariMTBold]
\definefontsynonym[SerifItalic]     [Serif]
\definefontsynonym[SerifBoldItalic] [SerifBold]
\definefontsynonym[SerifSlanted]    [Serif]
\definefontsynonym[SerifBoldSlanted][SerifBold]
\stoptypescript

\starttypescript[devanagari]
	\definetypeface [devanagari] [rm] [serif] [devanagari] [default]
\stoptypescript
% the ugly code ends here

\usetypescript[devanagari]
\setupbodyfont[devanagari,15pt]

\starttext

% no idea what this means, but it looks non-latin at least
नेपाल चार जात छत्तिस वर्णको साझा फूलवारी हो ।

\stoptext

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

                 reply	other threads:[~2007-12-04  0:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=6faad9f00712031651g2242f858r79f605934f5d709@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ms.gururaj@rediffmail.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).