From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96408 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to use "fontsampler example" with Persian font Date: Mon, 10 Oct 2016 11:38:39 +0200 Message-ID: <57FB619F.8010402@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1144541342473308086==" X-Trace: blaine.gmane.org 1476092368 3665 195.159.176.226 (10 Oct 2016 09:39:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2016 09:39:28 +0000 (UTC) User-Agent: Postbox 5.0.4 (Macintosh/20161007) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 10 11:39:22 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 1btX39-0007VQ-Sy for gctc-ntg-context-518@m.gmane.org; Mon, 10 Oct 2016 11:39:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 42E9D1AD06; Mon, 10 Oct 2016 11:38:58 +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 Q1VAW4Op1sq6; Mon, 10 Oct 2016 11:38:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 916711AD09; Mon, 10 Oct 2016 11:38:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC49F1AD07 for ; Mon, 10 Oct 2016 11:38:56 +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 8LsM5Y6qOU3d for ; Mon, 10 Oct 2016 11:38:56 +0200 (CEST) Original-Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) (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 3C1921AD06 for ; Mon, 10 Oct 2016 11:38:46 +0200 (CEST) Original-Received: by mail-lf0-f43.google.com with SMTP id l131so114955158lfl.2 for ; Mon, 10 Oct 2016 02:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=WW2Upt+tQF1xA0BnlSBoweD8V7Qp9y0ZfAu8vpy9l2w=; b=PUcjv8Ot0vU8DQh8yWZLAlK7rpUGITEjPru0peIL4BioS4QW8u4cw8J3DzK1X4xmoM 9o8Shn8ZvhH3bw2eq1tkALQ533QlOeo+SwRHPO7IUq+gMmdUXnBbhNNskbIAaMpBioqq 1hKi9DaoVs4u5PjEql17pUbdRaGofchnj6i6ksQGYVm3q0MVy3GWdW8QGwjWg7+PL9Ar qRiwmV0r8SCuNm0Xkav14Ytwi6ObrPjooZgfdwjliav4zNOUcMwIlyuT4zwPHWq6X2kf JE/Tw9m9rwk2E4Y7QeGQy5KrN7ucDLze2O/9njD5Pf3xw7l93IQ8OhOR8AnrbZVjnk07 VI5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=WW2Upt+tQF1xA0BnlSBoweD8V7Qp9y0ZfAu8vpy9l2w=; b=deR/7wjVG0pn4SzmtFduIi4/Jfs3vYLQ1xkzhhg4XsAsLKXEtDLVXWTYCE4xAnwMzo lW+B0ZheBCFOE0NfXUwsjc03JLe/vf71mLrjlx/pLlYvBWh09hzONJeTgnVeFRDDq5rN RXFW1A01oBTQ0gVrzTQ3JgG8x1EoBcOE0Ye6BwP8OnFupJ2fFrIKH+sX8CECBUTmtrSR u/3Ron2m6eL71rTn0iArOXWyJrxB/4mycNd2eDfo1/h2wdNR7nxRy7zIIxpuTSlovfoz 49afzMWWDYMVGN0AlnfHbmKdLYe6fq9ylTdthiqUVu0F3dap46lOgVDRRp/82lX2GKNt bXqg== X-Gm-Message-State: AA6/9RlmOj/bwQPYKOaEpjrPh3c4u8D0oP21wIODHqQrvFEY5ydQ+tgykFTFYzLJWi3rnA== X-Received: by 10.25.207.10 with SMTP id f10mr14160697lfg.108.1476092323275; Mon, 10 Oct 2016 02:38:43 -0700 (PDT) Original-Received: from keima.localdomain (x2f23e0b.dyn.telefonica.de. [2.242.62.11]) by smtp.gmail.com with ESMTPSA id 72sm6043094lfx.3.2016.10.10.02.38.41 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Oct 2016 02:38:42 -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:96408 Archived-At: This is a multi-part message in MIME format. --===============1144541342473308086== Content-Type: multipart/alternative; boundary="------------050106020302040503050700" This is a multi-part message in MIME format. --------------050106020302040503050700 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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 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 Wolfgang --------------050106020302040503050700 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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 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

Wolfgang
--------------050106020302040503050700-- --===============1144541342473308086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1144541342473308086==--