ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mingranina Gingranina <mingranina@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: problem with Persian feature
Date: Wed, 7 Aug 2013 15:08:18 +0430	[thread overview]
Message-ID: <CAEEu-Tiu2U0zRDiFpO_G4jwVGKS44txowPMYdyn=qk8QTPohPQ@mail.gmail.com> (raw)
In-Reply-To: <52020D79.6070400@wxs.nl>

Dear Hans,
Hello,

Thank you very much for your reply. With your code the Persian part
disappears on my
system unless I insert the following two lines after \definefontfeature:
   \usemodule[simplefonts]
   \setmainfont[arial][feature=persian]

However the Persian characters still appears as isolated characters.

Thanks,
Mingranina

On 8/7/13, Hans Hagen <pragma@wxs.nl> wrote:
> On 8/7/2013 10:50 AM, Mingranina Gingranina wrote:
>>   Dear All,
>>   Hello,
>>
>>   I am completely new to ConTeXt and after searching and exploring the
>>   ConTeXt Garden wiki pages and other resources thoroughly, I decided
>>   to write my first document in Persian which reads:
>>
>> \enableregime [utf-8]
>> \definefontfeature [persian] [mode=node,language=dflt,script=arab,
>> init=yes,medi=yes,fina=yes,isol=yes,liga=yes,dlig=yes,rlig=yes,clig=yes,
>> mark=yes,mkmk=yes,kern=yes,curs=yes]
>>
>> \usemodule[simplefonts]
>> \setmainfont[arial][feature=persian]
>>
>> \mainlanguage[pe]
>> \setupbodyfont[arial,12pt]
>>
>> \starttext
>> \pagedir TRT\bodydir TRT\pardir TRT\textdir TRT
>> این یک آزمایش است.
>> \pagedir TLT\bodydir TLT\pardir TLT\textdir TLT
>> This is a test.
>> \stoptext
>>
>>   As there are some UTF-8 characters in the document I have attached the
>>   document to this message too.
>>
>>   The problem is that on my system the Persian part of the output is a set
>> of
>>   Persian Isolated characters, but on http://live.contextgarden.net the
>> Persian
>>   part does not appear at all.
>>   Could somebody please let me know what am I doing wrong?
>
> Here is a more minimal test:
>
> \definefontfeature [persian] [arabic] % [...]
>
> \mainlanguage[pe]
>
> \starttext
>
>      \definedfont[arial*persian]
>
>      \setupalign[r2l]
>
>      این یک آزمایش است.
>
>      \setupalign[l2r]
>
>      This is a test.
>
> \stoptext
>
> If that works, you can try the simplefonts variant. Keep in mind that
> you need to end a paragraph with an empty line or \par because otherwise
> the last settings apply.
>
> Hans
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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:[~2013-08-07 10:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07  8:50 Mingranina Gingranina
2013-08-07  9:03 ` Hans Hagen
2013-08-07 10:38   ` Mingranina Gingranina [this message]
2013-08-07 12:38     ` Mingranina Gingranina
2013-08-07 12:42       ` Hans Hagen
2013-08-07 14:09         ` Mingranina Gingranina
2013-08-07 17:54           ` Pablo Rodríguez
2013-08-07 20:39             ` Mingranina Gingranina
2013-08-07 13:19     ` Wolfgang Schuster
2013-08-07 20:48       ` Mingranina Gingranina
2013-08-07 17:11     ` Otared Kavian
2013-08-07 21:07       ` Mingranina Gingranina

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='CAEEu-Tiu2U0zRDiFpO_G4jwVGKS44txowPMYdyn=qk8QTPohPQ@mail.gmail.com' \
    --to=mingranina@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).