From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94586 Path: news.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: Problem with Quran KFGQPC Uthman Taha Naskh font Date: Fri, 29 Apr 2016 06:00:19 -0400 Message-ID: References: <4c29e3c9-f390-b6db-7e3a-d8c6999a5569@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6490017358131060616==" X-Trace: ger.gmane.org 1461924104 31829 80.91.229.3 (29 Apr 2016 10:01:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 10:01:44 +0000 (UTC) Cc: Khaled Hosny , =?UTF-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrdin2YXYrw==?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 29 12:01:27 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aw5El-0006hZ-JI for gctc-ntg-context-518@m.gmane.org; Fri, 29 Apr 2016 12:01:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5896EB510; Fri, 29 Apr 2016 12:00:34 +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 UWg50Nkzh9aX; Fri, 29 Apr 2016 12:00:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8EA82B51C; Fri, 29 Apr 2016 12:00:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4FF24B514 for ; Fri, 29 Apr 2016 12:00:32 +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 9EY1VskEfceO for ; Fri, 29 Apr 2016 12:00:31 +0200 (CEST) Original-Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) (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 34127B510 for ; Fri, 29 Apr 2016 12:00:21 +0200 (CEST) Original-Received: by mail-oi0-f45.google.com with SMTP id x201so113060534oif.3 for ; Fri, 29 Apr 2016 03:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=3hvR6bxe05R8tJ8kVit8haSjifrWq3WkB6ZlHjZsioo=; b=U/z0U8XsJX+Yt1Xdh7gpzorQmDLjPjFlPd3MGdES9HyRUFobqEOdNkOekWoWVl5Y9k G2FHmCSPCZXNwPoT4Vhy7vZcBPuI+L9Tfg6eTTm7zcoEfA5W+d7sj+cA0d+C78vYliqf Jbkvl4HBsTpe70nizws9jtpR7h3MwpQaLyh+3f6KgCx4cMKkX4AiL1zqWQ77WMz77ZTf FvALCLDF3MNoeI3OyEJJmBB7lv2BmTWtA8N5LtQ5Jys7UjauZbxjjV4kfmLUrN1356fY O2n06KiskBQngqOYjjtHhtX8FAbMHBm8R3cohURdt4zevGNQI14HQUGWlYgnVtz6sVac qnrQ== 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:date :message-id:subject:from:to:cc; bh=3hvR6bxe05R8tJ8kVit8haSjifrWq3WkB6ZlHjZsioo=; b=QpqyW5JlZSiDwFx7EhID5HLVNSpgH0K4PBRala7ssqm6Y1Ha/GTuL37fweAPOnpb5U mZw+CxArbFzwcaCbIhBe2z42R9/W6T/lp+T5BXf+mEN4T/NqtrCHxuLErZB6yBh631HB ThiowzoFL+fHyHxb1T+Bhv+wiMmwSqnlpycNA/nzJvMnsxWB8wSTOkiyBq/DIB/1XS0u TxNGIiyBRQ0DlW2TvwqK6sJzn1hN/9mD5wPW2d8QV3jSoJr5VnhJnlZgFTW5gN+TVg3O 0zxtlofni/iBIVVuYs8cfY8x1P+MuYkobeAYk8pDIE8jwktzZ14tdb+qxHisIrQqUlIR BnLw== X-Gm-Message-State: AOPr4FWEVm5YvweoMzbTcU2nx/a7/3nNK96fD49bibk90Gn1I8xHcB+sitdCh5YL3zjLpFsWTVuUpQ14ZAzysg== X-Received: by 10.157.44.147 with SMTP id p19mr8902776otb.37.1461924019437; Fri, 29 Apr 2016 03:00:19 -0700 (PDT) Original-Received: by 10.157.3.34 with HTTP; Fri, 29 Apr 2016 03:00:19 -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:94586 Archived-At: --===============6490017358131060616== Content-Type: multipart/alternative; boundary=001a113e2756de081705319cb5c1 --001a113e2756de081705319cb5c1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Actually the MWE may help: \usemodule[simplefonts] \setmainfont[KFGQPC Uthman Taha Naskh][features=3Darabic,range=3Darabic] \setcharacterstripping[1] \setupdirections[bidi=3Don,method=3Done] \setupalign[r2l] \starttext \tfb =D8=A7=D9=84=D9=92=D8=AD=D9=8E=D9=85=D9=92=D8=AF=D9=8F \stoptext =E2=80=94MHB On Fri, Apr 29, 2016 at 5:52 AM, Mohammad Hossein Bateni wrote: > Thanks, Hans! The problem is *almost* fixed in the latest beta, version: > 2016.04.27 10:18. I didn't think something had changed in the past two > weeks; that's why I hadn't tried with the latest version. > > There is only one word where I notice bad placement of diacritics when > using CONTEXT. Compare this > and this > . > > BTW context gave the following "warning" about not being able to access > the data. Is that because it was the first run of a new installation? > > system > lua > compiling >> '/Users/bateni/context.newest/tex/texmf-cache/luatex-cache/context/5fe67= e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma' >> into >> '/Users/bateni/context.newest/tex/texmf-cache/luatex-cache/context/5fe67= e0bfe781ce0dde776fb1556f32e/fonts/data/names.tmc' >> system > lua > dumping >> '/Users/bateni/context.newest/tex/texmf-cache/luatex-cache/context/5fe67= e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma' >> into >> '/Users/bateni/context.newest/tex/texmf-cache/luatex-cache/context/5fe67= e0bfe781ce0dde776fb1556f32e/fonts/data/names.tmc' >> stripped >> fonts > names > accessing the data table failed > > > =E2=80=94MHB > > On Fri, Apr 29, 2016 at 4:42 AM, Hans Hagen wrote: > >> On 4/29/2016 5:01 AM, Mohammad Hossein Bateni wrote: >> >>> The attachments in the email below were too big for the list (>100KB). >>> I uploaded them here . >>> >>> On Thu, Apr 28, 2016 at 10:20 PM, Mohammad Hossein Bateni >>> > wrote: >>> >>> Hi, >>> >>> I am not sure whether I'm missing certain features in the font >>> definition or whether there is actually some bug in how CONTEXT or >>> LuaTeX for that matter handles this font. It might as well be that >>> there is something wrong with the font >>> , though I doubt >>> that. >>> >>> Attached is my simple test program and the PDF output, which is >>> annotated to show the problems. You can compare with the reference >>> PNG file I generated via rendering in Chrome. I hope you can see >>> the annotations where I have pointed out the incorrect typesetting, >>> otherwise you can compare the two outputs to notice the difference: >>> for the most part, some diacritics that are not placed in the right >>> location (both vertically and horizontally). >>> >>> I am using Mac OS X with CONTEXT current version: 2016.04.13 16:46. >>> >> >> can you check the context + beta from the contextgarden? >> >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl >> ----------------------------------------------------------------- >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ > > > --001a113e2756de081705319cb5c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Actually the MWE may help:

\usemodule[simplefo= nts]
\setmainfont[KFGQPC Uthman Taha Naskh][features=3Darabic,range=3Dar= abic]
\setcharacterstripping[1]

\setupdirections[bidi=3Don,method= =3Done]
\setupalign[r2l]

\starttext
\tfb

=D8=A7=D9=84= =D9=92=D8=AD=D9=8E=D9=85=D9=92=D8=AF=D9=8F

\stoptext

<= div>=E2=80=94MHB

On Fri, Apr 29, 2016 at 5:52 AM, Mohammad Hossein Bateni <= span dir=3D"ltr"><= bateni@gmail.com> wrote:
Thanks, Hans!=C2=A0 The problem is almost fixed in th= e=C2=A0latest beta, version: 2016.04.27 10:18.=C2=A0 I didn't think som= ething had changed in the past two weeks; that's why I hadn't tried= with the latest version.

There is only one word where I= notice bad placement of diacritics when using CONTEXT.=C2=A0 Compare this and this.

BTW context gave th= e following "warning" about not being able to access the data.=C2= =A0 Is that because it was the first run of a new installation?
<= br>
system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> lua= > compiling '/Users/bateni/context.newest/tex/texmf-cache/luatex-ca= che/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma' into= '/Users/bateni/context.newest/tex/texmf-cache/luatex-cache/context/5fe= 67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tmc'
system =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0> lua > dumping '/Users/bateni/context= .newest/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f3= 2e/fonts/data/names.tma' into '/Users/bateni/context.newest/tex/tex= mf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/n= ames.tmc' stripped
fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > nam= es > accessing the data table failed
=

=E2=80=94MHB

On Fri, Apr 29, 2016 at 4:42 AM, H= ans Hagen <pragma@wxs.nl> wrote:
On 4/29/2016 5:01 AM, Mohammad Hossein Bateni wrote:
The attachments in the email below were too big for the list (>100KB). I uploaded them here <http://mhbateni.com/context/bug-01/&= gt;.

On Thu, Apr 28, 2016 at 10:20 PM, Mohammad Hossein Bateni
<bateni@gmail.com<= /a> <mailto:bateni= @gmail.com>> wrote:

=C2=A0 =C2=A0 Hi,

=C2=A0 =C2=A0 I am not sure whether I'm missing certain features in the= font
=C2=A0 =C2=A0 definition or whether there is actually some bug in how CONTE= XT or
=C2=A0 =C2=A0 LuaTeX for that matter handles this font.=C2=A0 It might as w= ell be that
=C2=A0 =C2=A0 there is something wrong with the font
=C2=A0 =C2=A0 <http://fonts.qurancomplex.gov.sa/?p= age_id=3D608>, though I doubt that.

=C2=A0 =C2=A0 Attached is my simple test program and the PDF output, which = is
=C2=A0 =C2=A0 annotated to show the problems.=C2=A0 You can compare with th= e reference
=C2=A0 =C2=A0 PNG file I generated via rendering in Chrome.=C2=A0 I hope yo= u can see
=C2=A0 =C2=A0 the annotations where I have pointed out the incorrect typese= tting,
=C2=A0 =C2=A0 otherwise you can compare the two outputs to notice the diffe= rence:
=C2=A0 =C2=A0 for the most part, some diacritics that are not placed in the= right
=C2=A0 =C2=A0 location (both vertically and horizontally).

=C2=A0 =C2=A0 I am using Mac OS X with CONTEXT current version: 2016.04.13 16= :46.

can you check the context + beta from the contextgarden?


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.com | www.prag= ma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


--001a113e2756de081705319cb5c1-- --===============6490017358131060616== 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= --===============6490017358131060616==--