From: Mingranina Gingranina <mingranina@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to use "fontsampler example" with Persian font
Date: Wed, 12 Oct 2016 17:37:21 +0330 [thread overview]
Message-ID: <CAEEu-ThXd_bDjeYzz08ePw_QuLefaXvivY+HS5uRiZDVSk2agQ@mail.gmail.com> (raw)
In-Reply-To: <CAMHZ1dZz8yUi6H5Xso3sGNTYrt=hmU7eFciR8OuZOrgFyYHxyA@mail.gmail.com>
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
texmf-dist/tex/latex/kluwer/kluwer.cls
texmf-dist/tex/latex/pdfwin/pdfwin.sty
texmf-dist/tex/latex/romanneg/romanneg.sty
texmf-dist/tex/plain/gustlib/plmac218/plidxmac.tex
texmf-dist/tex/plain/makeindex/idxmac.tex
I think it would be better to look at arabluatex's code for solving the problem.
Regards,
Mingranina
On 10/11/16, Mohammad Hossein Bateni <bateni@gmail.com> wrote:
> 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 <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 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
>> ____________________________________________________________
>> _______________________
>>
>
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2016-10-12 14:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-07 11:01 Mingranina Gingranina
2016-10-07 11:19 ` Mohammad Hossein Bateni
2016-10-07 11:24 ` Mohammad Hossein Bateni
2016-10-07 15:41 ` Mingranina Gingranina
2016-10-07 15:48 ` Mohammad Hossein Bateni
2016-10-10 9:38 ` Wolfgang Schuster
2016-10-11 3:44 ` Mingranina Gingranina
2016-10-11 10:44 ` Mohammad Hossein Bateni
2016-10-12 14:07 ` Mingranina Gingranina [this message]
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-ThXd_bDjeYzz08ePw_QuLefaXvivY+HS5uRiZDVSk2agQ@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).