From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Sample farsi file
Date: Wed, 07 Jan 2009 09:38:11 +0100 [thread overview]
Message-ID: <496469F3.9060504@wxs.nl> (raw)
In-Reply-To: <75357924-3B46-4BBB-8416-1AACFC079EF3@gmail.com>
Otared Kavian wrote:
> On 6 janv. 09, at 10:53, Ilda Khaki wrote:
>> can someone send me a sample file to type farsi?
>
>
> Hi Ilda,
>
> Here is a sample file for writing Faarsi with XeConTeXt (that is XeTeX +
> ConTeXt).
> In principle one can also use ConTeXt-mkiv, that is ConTeXt with the
> LuaTeX engine, but at this point I have not been able to solve some
> problems with the Persian fonts available.
i can look into it if i have samples + fonts + expected output
a few remakrs concerning your test doc:
\everypar={\setbox0=\lastbox \beginR \box0 }
^^ this is dangerous, either do this locally or use
\EveryPar{...}
otherwise you loose quite some functionality
\font\title="X Kerman:script=arab" at 28pt
\font\heading="X Kerman:script=arab" at 18pt
\font\body="X Kerman:script=arab" at 10pt \body
^^^ don't use names for fonts that can conflict with existing macros ...
\titlefont, \TitleFont etc are better choices
\def\Hemi#1{%
\start
\beginR
#1 \par
\endR
\stop}
^^ here you use a % to avoid a space
\Hemi{
ای دل زجان گذر کن، تا جان جان ببینی
}
^^ but here you introduce one (potentially, depends on the state tex's in)
\stopnarrower
\stoptext
\endinput
^^ no endinput needed, since \stoptext ends the job already
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-01-07 8:38 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 9:53 Ilda Khaki
2009-01-07 7:28 ` Otared Kavian
2009-01-07 8:38 ` Hans Hagen [this message]
2009-01-07 9:08 ` Hans Hagen
2009-01-07 16:56 ` Otared Kavian
2009-01-08 0:29 ` Hans Hagen
2009-01-08 8:06 ` Otared Kavian
2009-01-08 8:13 ` Taco Hoekwater
2009-01-08 10:44 ` Otared Kavian
2009-01-08 11:26 ` Wolfgang Schuster
2009-01-08 11:42 ` Mojca Miklavec
2009-01-08 12:03 ` Taco Hoekwater
2009-01-09 2:04 ` Ilda Khaki
2009-01-09 7:58 ` Hans Hagen
2009-01-09 8:37 ` Mehdi Omidali
2009-01-09 8:40 ` Mehdi Omidali
2009-01-09 8:44 ` Mehdi Omidali
2009-01-09 9:49 ` Mehdi Omidali
2009-01-09 10:45 ` Ilda Khaki
2009-01-09 11:11 ` Hans Hagen
2009-01-09 11:27 ` Ilda Khaki
2009-01-09 11:53 ` Mehdi Omidali
2009-01-09 12:07 ` Hans Hagen
2009-01-09 12:20 ` Taco Hoekwater
2009-01-09 14:24 ` Mehdi Omidali
2009-01-09 14:28 ` Taco Hoekwater
2009-01-09 15:57 ` Mehdi Omidali
2009-01-09 21:31 ` Khaled Hosny
2009-01-09 12:03 ` Hans Hagen
2009-01-09 12:08 ` Ilda Khaki
2009-01-09 11:15 ` Hans Hagen
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=496469F3.9060504@wxs.nl \
--to=pragma@wxs.nl \
--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).