Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-12 Thread Mingranina Gingranina
Dear Mohammad, Hello, \pagenumbering is not defined or redined in XePersian. In fact, in TeXLive 2016, it is only defined in the following files: texmf-dist/tex/latex/base/latex.ltx texmf-dist/tex/latex/feupphdteses/feupphdteses.sty texmf-dist/tex/latex/kluwer/kluedit.sty

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-11 Thread Mohammad Hossein Bateni
This seems to not belong in the ConTeXt mailing list. You'd be better off asking it on Stack Exchange or on luatex mailing list. The short answer is it depends on the "format file" (and perhaps the LaTeX packages) you're using. Most probably, you either use "plain" or "latex", and then you

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-10 Thread Mingranina Gingranina
Dear Wolfgang Hello, First of all, let me thank you very much for your informative answer. On 10/10/16, Wolfgang Schuster wrote: >> Mingranina Gingranina >> 7. Oktober 2016 um 17:41 >> Dear Mohammad, >> Hi, >> >> Thank you very much

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-10 Thread Wolfgang Schuster
Mingranina Gingranina 7. Oktober 2016 um 17:41 Dear Mohammad, Hi, Thank you very much for your reply. I forgot to mention that I had modified the fontsampler codes so that I can use it in ConTeXt with Dabeer module. 1. What is Dabeer? 2. You can access the list of

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
In ConTeXt, use \definedfont[font-name*arabic] instead of the following two commands: \font\myfont=blah blah \myfont On Fri, Oct 7, 2016 at 11:41 AM, Mingranina Gingranina wrote: > Dear Mohammad, > Hi, > > Thank you very much for your reply. I forgot to mention that I

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mingranina Gingranina
Dear Mohammad, Hi, Thank you very much for your reply. I forgot to mention that I had modified the fontsampler codes so that I can use it in ConTeXt with Dabeer module. However, inspired by your reply I could get it to work in LuaTeX but not in ConTeXt with Dabeer module. Are there any

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
The following works for me: \input luaotfload.sty \font \myfont = file:HM_XNiloofar.ttf:language=dflt;script=arab;ccmp=yes;init=yes;medi=yes;fina=yes;rlig=yes \myfont Salam \pardir TRT \textdir TRT سلام حسن \bye On Fri, Oct 7, 2016 at 7:19 AM, Mohammad Hossein Bateni wrote:

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
I don't know much about fontsampler but the commands you list here are mostly irrelevant. My guess is you will need to set the features in the font to get proper shaping. A good set of features that should do the trick is called "arabic". When loading the font, you should do something like the

[NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mingranina Gingranina
Dear All, Hello, I am trying to use "fontsampler example" with Persian fonts (please see below or "http://wiki.luatex.org/index.php/Fontsampler; for fontsampler codes). The problem is that Persian words apears as a string of separate glyphs, for example I get "ح‌س‌ن" instead of "حسن". Do I