From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96452 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: How to use "fontsampler example" with Persian font Date: Tue, 11 Oct 2016 06:44:01 -0400 Message-ID: References: <57FB619F.8010402@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4918182265614144123==" X-Trace: blaine.gmane.org 1476182691 8187 195.159.176.226 (11 Oct 2016 10:44:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 10:44:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 11 12:44:46 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btuXu-0008IF-PV for gctc-ntg-context-518@m.gmane.org; Tue, 11 Oct 2016 12:44:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7A7011AB24; Tue, 11 Oct 2016 12:44:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fwY2H4cE_pDw; Tue, 11 Oct 2016 12:44:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9AB361AB46; Tue, 11 Oct 2016 12:44:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F9C51AB2B for ; Tue, 11 Oct 2016 12:44:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6uVdNxMIAGuu for ; Tue, 11 Oct 2016 12:44:13 +0200 (CEST) Original-Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 79D8B1AB24 for ; Tue, 11 Oct 2016 12:44:03 +0200 (CEST) Original-Received: by mail-oi0-f53.google.com with SMTP id d132so18579848oib.2 for ; Tue, 11 Oct 2016 03:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=eH1jTxVouWvvg3ZM50hnLmm0WEfjcLa1b6ULxDCQ2fw=; b=LVTng8oFLplFcq6rPRguZrTabBmTyyWASw8N8Zhqmwen/50Eqd7maF2ugi4vWoPcbV 8/l3twTqgiwrxnlS77v+djR/ml76QI6UpxgeL0Hv63iAt9GLb0JgWSj10kX2+7YNPgS3 jF2CMNPM3mUdAN8f4qwi8Fid1mqUmv7MtTQhFEr0SJe2EuPQS2P7ze4qyUizNS29sPWq 6eCWrTX9FYM9hI9DE0m1aUJujIfk+Ysq6NRrC1tsLshc5UIriFYqtU4RtcGBI5vDVeUB g7yrNcnfsK1269miT5k2kw514eWASOwqQ6gY0+eGGSP2GoY7rnRf7jjg3aIY6DXflgK6 ZhhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=eH1jTxVouWvvg3ZM50hnLmm0WEfjcLa1b6ULxDCQ2fw=; b=DE1LI6OG98LVVbWgsV+e5N2peywA3czHgscTTp7GcJ+oFxUBzUGJdcDL/+4SHBXqwr v55T4xifRa+sESN0dWsxVIPAR0mIHYYilj2KrpBMlVbxV5/O1ybt6hvVK0TJ+D+iw2KL z3fy0pGucvJ0qt84jCx3NKBD1wxAyG+kYCluQXSc/j86s+LXidKgF7uuKCJxzZzuY8m7 2vkQeT+d25C/pRf8AFGxmuALtmA5R2L0lkKmkA8iunoD/WTL8lRIjba5sbsrwA9X4twL DgyNzDJORyj92e7U6/XcXL/axNpNpdYCiBy2+zO7Rcl9wI1lXQA0NIlDB0Z3qcyARzlh nsiw== X-Gm-Message-State: AA6/9RlhI4eLEfCFADK9KJ1KytfZOAABqq3QAF1gyqj0juMsfD0ojJsN7hFikanOFhn3qvryWg3k1YMW1Xd3sg== X-Received: by 10.202.81.213 with SMTP id f204mr1824651oib.161.1476182641850; Tue, 11 Oct 2016 03:44:01 -0700 (PDT) Original-Received: by 10.157.31.2 with HTTP; Tue, 11 Oct 2016 03:44:01 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:96452 Archived-At: --===============4918182265614144123== Content-Type: multipart/alternative; boundary=001a113abe02fdbdaf053e948df6 --001a113abe02fdbdaf053e948df6 Content-Type: text/plain; charset=UTF-8 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 should see how they generate the page numbers and define a macro that provides the Persian numbers, etc. See how XePersian package handles it. (Search for \pagenumbering.) On Mon, Oct 10, 2016 at 11:44 PM, Mingranina Gingranina < mingranina@gmail.com> wrote: > 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 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? > > It is a module for Persian typesetting in ConTeXt. Please see: > https://github.com/bateni/dabeer > > > > > 2. You can access the list of known fonts with the "fonts.names.list" > > function: > > > > \setuppapersize[A4,landscape] > > > > \starttext > > > > \startluacode > > > > local fontlist = fonts.names.list("",true,true) > > > > context.starttabulate({"|l|l|"}) > > for fontname, fontentry in next, fontlist do > > context.NC() > > context(fontentry["rawname"]) > > context.NC() > > context(fontentry["filename"]) > > context.NC() > > context.NR() > > end > > context.stoptabulate() > > > > \stopluacode > > > > \stoptext > >> However, inspired by your reply I could get it to work in LuaTeX but > >> not in ConTeXt with Dabeer module. > >> > >> Are there any other set of features that I can test? > > ConTeXt inludes a few modules which can be used to show font information > > (search for s-fonts-*.mkiv|mkvi and s-math-*.mkiv|mkvi), below is a > > example from s-fonts-tables.mkiv: > > > > \usemodule[fonts-tables] > > > > \setupbodyfont[pagella] > > > > \starttext > > \showfonttables[title={TeX Gyre Pagella}] > > \stoptext > > I am a novice in LuaTeX and ConTeXt and to learn these I tried to > modify FontSampler code (http://wiki.luatex.org/index.php/Fontsampler) > to get a sample of Persian fonts in a directory hierarchy too. > > BTW, at the moment my problem with LuaTeX is that the page numbering > is in english. Do you know how to change the page numbering to Persian > in LuaTeX? > > Thanks, > Mingranina > ____________________________________________________________ > _______________________ > 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://context.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --001a113abe02fdbdaf053e948df6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This seems to not belong in the ConTeXt mailing list.=C2= =A0 You'd be better off asking it on Stack Exchange or on luatex mailin= g list.=C2=A0 The short answer is it depends on the "format file"= (and perhaps the LaTeX packages) you're using.=C2=A0 Most probably, yo= u either use "plain" or "latex", and then you should se= e how they generate the page numbers and define a macro that provides the P= ersian numbers, etc.=C2=A0 See how XePersian package handles it. =C2=A0(Sea= rch for \pagenumbering.)

On Mon, Oct 10, 2016 at 11:44 PM, Mingranina Gingranina <m= ingranina@gmail.com> wrote:
Dear Wolfgang
=C2=A0Hello,

First of all, let me thank you very much for your informative answer.

On 10/10/16, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>> Mingranina Gingranina <mailto:mingranina@gmail.com>
>> 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 wit= h
>> Dabeer module.
> 1. What is Dabeer?

It is a module for Persian typesetting in ConTeXt. Please see:
https://github.com/bateni/dabeer

>
> 2. You can access the list of known fonts with the "fonts.names.l= ist"
> function:
>
> \setuppapersize[A4,landscape]
>
> \starttext
>
> \startluacode
>
> local fontlist =3D fonts.names.list("",true,true)
>
> context.starttabulate({"|l|l|"})
> for fontname, fontentry in next, fontlist do
>=C2=A0 =C2=A0 =C2=A0 context.NC()
>=C2=A0 =C2=A0 =C2=A0 context(fontentry["rawname"])
>=C2=A0 =C2=A0 =C2=A0 context.NC()
>=C2=A0 =C2=A0 =C2=A0 context(fontentry["filename"])
>=C2=A0 =C2=A0 =C2=A0 context.NC()
>=C2=A0 =C2=A0 =C2=A0 context.NR()
> end
> context.stoptabulate()
>
> \stopluacode
>
> \stoptext
>> However, inspired by your reply I could get it to work in LuaTeX b= ut
>> not in ConTeXt with Dabeer module.
>>
>> Are there any other set of features that I can test?
> ConTeXt inludes a few modules which can be used to show font informati= on
> (search for s-fonts-*.mkiv|mkvi and s-math-*.mkiv|mkvi), below is a > example from s-fonts-tables.mkiv:
>
> \usemodule[fonts-tables]
>
> \setupbodyfont[pagella]
>
> \starttext
> \showfonttables[title=3D{TeX Gyre Pagella}]
> \stoptext

I am a novice in LuaTeX and ConTeXt and to learn these I tried = to
modify FontSampler code (http://wiki.luatex.org/index.php/Fontsampler)
to get a sample of Persian fonts in a directory hierarchy too.

BTW, at the moment my problem with LuaTeX is that the page numbering
is in english. Do you know how to change the page numbering to Persian
in LuaTeX?

=C2=A0Thanks,
=C2=A0Mingranina
_____________________________________________________= ______________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.= net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a113abe02fdbdaf053e948df6-- --===============4918182265614144123== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwOi8vZm91bmRyeS5zdXBl bGVjLmZyL3Byb2plY3RzL2NvbnRleHRyZXYvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRnYXJk ZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4918182265614144123==--