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 10:08:29 +0100 [thread overview]
Message-ID: <4964710D.9010203@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.
mkiv variant
\definefontfeature
[arab-default]
[mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
locl=yes,calt=yes,clig=yes,ccmp=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]
\definefont[testfont][arabtype*arab-default at 18pt]
\definestartstop[Hemi][style=\textdir TRT\testfont]
\starttext
\setupalign[left]
\startlines
\Hemi{ای دل زجان گذر کن، تا جان جان ببینی}
\Hemi{بگذار این جهان را، تا آن جهان ببینی}
\Hemi{تا نگذری ز دنیا، هرگز رسی بعقبی؟}
\Hemi{آزاد شو از اینجا، تا بی گمان ببینی}
\Hemi{گر تو نشان بجویی، ای یار اندر این ره}
\Hemi{از خویش بی نشان شو٬ تا تو نشان ببینی}
\Hemi{از چار و پنج بگذر در شش و هفت منگر}
\Hemi{چون از زمین برآیی، هفت آسمان ببینی}
\Hemi{هفت آسمان چو دیدی درهشتمین فلک شو}
\Hemi{پا برسر مکان نه، تا لا مکان ببینی}
\Hemi{در لامکان چو دیدی جانهای نازنینان}
\Hemi{بی تن نهاده سر ها، در آستان ببینی}
\Hemi{بربند چشم دعوی، بگشای چشم معنی}
\Hemi{یکدم زخود نهان شو، او را عیان ببینی}
\Hemi{ای نانهاده گامی، در راه نامرادی}
\Hemi{بی رنچ گنج وحدت، کی رایگان ببینی}
\Hemi{هی های شمس تبریز، خاموش باش ناطق}
\Hemi{تا جان خویشتن را، زان شادمان ببینی}
\stoplines
\stoptext
-----------------------------------------------------------------
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 9:08 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
2009-01-07 9:08 ` Hans Hagen [this message]
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=4964710D.9010203@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).