ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ibn Saeed <ibnsaeed@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: LineSpacing Issue in Arabic Fonts
Date: Mon, 20 Feb 2017 14:02:35 +0400	[thread overview]
Message-ID: <CAEvnCTCvZetQyoEGbUtjpFNx3vG_AhNPhxwoX6Lh1W70CxrY_Q@mail.gmail.com> (raw)
In-Reply-To: <8691E026-7838-41FF-8DCF-2453AC6DF71D@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 10776 bytes --]

my luatex version is:

This is LuaTeX, Version 1.0.4 (TeX Live 2016/W32TeX)


2017-02-20 11:42 GMT+04:00 Otared Kavian <otared@gmail.com>:

> Hello Ibn Saeed,
>
> I tried your example file and obtained the same result as you with
>         LuaTeX Version 1.0.3 and the latest beta version 2017.02.19 17:14.
>
> However the result is as expected with the version from TeXLIve, that is
>         LuaTeX Version 0.95.0 (TeX Live 2016) and ConTeXt  ver: 2016.05.17
> 19:20.
>
> So there seems that, as Hans warned us a few days ago, there are still
> some problems with LuaTeX and the latest version of ConTeXt.
>
> Best regards: OK
>
>
> > On 20 Feb 2017, at 06:46, Ibn Saeed <ibnsaeed@gmail.com> wrote:
> >
> > Hello
> >
> > I installed ConteXt standalone version.
> >
> > Here is the version details:
> >
> > ===
> > mtx-context     | ConTeXt Process Management 1.00
> > mtx-context     |
> > mtx-context     | main context file: C:/context/tex/texmf-context/t
> ex/context/base/mkiv/context.mkiv
> > mtx-context     | current version: 2017.02.19 17:14
> > ===
> >
> > I am trying to use the following context document which used to work
> fine before.
> >
> > I have upgraded my complete computer so had to install everything again.
> >
> > When i ran the same file, it gave all kinds of linespacing issue, that
> is what i think the issue might be.
> >
> > here is the code :
> >
> > =======
> > \showgrid
> > \mainlanguage[arabic]
> > \setupalign[r2l]
> > \righttoleft
> > \definefontfeature
> > [arabic]
> > [mode=node,language=dflt,script=arab,
> > init=yes,
> > medi=yes,
> > fina=yes,
> > isol=yes,
> > liga=yes,
> > dlig=yes,
> > rlig=yes,
> > tlig=yes,
> > calt=yes,
> > trep=yes,
> > clig=yes,
> > mark=yes,
> > mkmk=yes,
> > kern=yes,
> > curs=yes,
> > mset=yes
> > ]
> >
> > \starttypescript [serif] [arabic]
> > \setups[font:fallback:serif]
> > \definefontsynonym [Arabic-Regular] [file:arabtype.ttf] [features=arabic]
> > \definefontsynonym [Arabic-Bold] [file:Scheherazade-Bold.ttf]
> [features=arabic]
> > \stoptypescript
> >
> > \starttypescript [serif] [arabic] [name]
> > \definefontsynonym [Serif][Arabic-Regular] [features=arabic]
> > \definefontsynonym [SerifBold][Arabic-Bold][features=arabic]
> > \stoptypescript
> >
> > \starttypescript [Arabic]
> > \definetypeface [Arabic] [rm] [serif] [arabic] [default]
> > \stoptypescript
> >
> > \setuppapersize[A4]
> > \setuplayout[
> > grid=min,
> > backspace=46.666mm, width=140.00mm,
> > topspace=33.000mm, height=198.000mm,
> > header=12.9mm, footer=9mm,
> > location=middle,
> > ]
> >
> >
> > \setupbodyfont[Arabic,20pt]
> > \setupinterlinespace[line=32pt]
> > \setupwhitespace[line]
> >
> >
> >
> > \def\TextBig{\switchtobodyfont[Arabic-Regular, rm, 62pt]}
> > \def\TextNormal{\switchtobodyfont[Arabic-Regular, rm, 24pt]}
> > \def\TextSmall{\switchtobodyfont[Arabic-Regular, rm, 18pt]}
> > \def\TextSmaller{\switchtobodyfont[Arabic-Regular, rm, 14pt]}
> > \def\TextSmallSans{\switchtobodyfont[Arabic-Regular, ss, 12pt]}
> >
> >
> > \setuphead[chapter][
> > header=empty,
> > alternative=middle,
> > page=right,
> > grid=max,
> > number=no,
> > numbercommand=\groupedcommand{}{\blank[2*big]},
> > after={\blank[2*medium]},
> > ]
> >
> >
> >
> >
> > \starttext
> > \startfrontmatter
> >
> > \startstandardmakeup[
> > align=r2l,
> > doublesided=no,
> > headerstate=none]
> >
> > \startalignment[middle]
> > \blank[11*small]
> > {\switchtobodyfont[62pt] فتح القوي المتين}\par
> > \blank[7*small]
> > {\switchtobodyfont[24pt] في شرح الأربعين وتتمَّة الخمسين}\par
> > {\switchtobodyfont[18pt] النووي وابن رجب}
> > \vfill
> >
> > {\TextSmall تأليف}\par
> > {\TextSmall عبد المحسن بن حمد العباد البدر}
> > \stopalignment
> >
> > \stopstandardmakeup
> >
> >
> >
> >
> > \completecontent
> >
> >
> > \stopfrontmatter
> >
> >
> > \startbodymatter
> >
> >
> > \startchapter[
> > title={مقدمة}]
> > \stopchapter
> >
> >
> >  الحمد لله مجزل العَطاء ومسبغ النِّعم، وأشهد أن لا إله إلاَّ الله وحده
> لا شريك له ذو الفضل والإحسان والجود والكرم، وأشهد أنَّ محمداً عبده ورسوله
> سيِّد العرب والعجم، المخصوص من ربِّه بجوامع الكلم، اللَّهمَّ صلِّ وسلِّم
> وبارك عليه وعلى آله أهل المكارم والشِّيَم، وعلى أصحابه مصابيح الدُّجَى
> والظُّلَم، الذين أكرمهم الله فجعلهم خير أمَّة هي خير الأمم، وعلى كل مَن جاء
> بعدهم مقتفياً آثارهم، وقد خلا قلبُه من الغلِّ للمؤمنين وسلِم.\par
> >
> >
> > أمَّا بعد، فإنَّ من الموضوعات التي ألَّف فيها العلماء في حديث رسول الله
> أحاديث الأربعين، وهي جمع أربعين حديثاً من أحاديث رسول الله ؛ لحديث ورد في
> فضل حفظ أربعين حديثاً من أحاديث رسول الله ، ذكر النووي في مقدمة الأربعين له
> وروده عن تسعة من أصحاب رسول الله سمَّاهم، وقال: (( واتَّفق الحفاظ على أنَّه
> حديث ضعيف وإن كثُرت طرقُه ))، وذكر أنَّ اعتمادَه في تأليف الأربعين ليس
> عليه، بل على أحاديث أخرى، مثل قوله : (( ليبلِّغ الشاهد منكم الغائب ))،
> وقوله: (( نضَّر الله امرءاً سمع مقالتي فوعاها )) الحديث، وذكر ثلاثة عشر من
> العلماء ألَّفوا في الأربعين، أولهم عبد الله بن المبارك، وآخرهم أبو بكر
> البيهقي، وقال بعد ذكرهم: (( وخلائق لا يُحصون من المتقدِّمين والمتأخرين ))،
> وقال: (( ثم مِن العلماء مَن جمع الأربعين في أصول الدِّين، وبعضهم في الفروع،
> وبعضهم في الجهاد، وبعضهم في الزهد، وبعضهم في الآداب، وبعضهم في الخطب،
> وكلُّها مقاصد صالحة رضي الله تعالى عن قاصديها، وقد رأيتُ جمع أربعين أهم من
> هذا كلِّه، وهي أربعون حديثاً مشتملة على جميع ذلك، وكلُّ حديث منها قاعدة
> عظيمة من قواعد الدِّين، قد وصفه العلماء بأنَّ مدارَ الإسلام عليه، أو هو نصف
> الإسلام أو ثلثه أو نحو ذلك، ثم التزمتُ في هذه الأربعين أن تكون صحيحة،
> ومعظمها في صحيحي البخاري ومسلم، وأذكرها محذوفة الأسانيد ليسهل حفظها ويعم
> الانتفاع بها إن شاء الله ... وينبغي لكلِّ راغب في الآخرة أن يعرف هذه
> الأحاديث لِمَا اشتملت عليه من المهمَّات، واحتوت عليه من التنبيه على جميع
> الطاعات، وذلك ظاهر لِمَن تدبَّره )).\par
> >
> > والأحاديث التي جمعها النووي ـ رحمه الله ـ اثنان وأربعون حديثاً، قد أطلق
> عليها أربعين تغليباً مع حذف الكسر الزائد، وقد رُزق هذا الكتاب للنووي مع
> كتابه (( رياض الصالحين )) القبول عند الناس، وحصل اشتهارهما والعناية بهما،
> وأوَّلُ كتاب ينقدح في الأذهان يُرشَد المبتدئون في الحديث إليه هذه الأربعون
> للإمام النووي رحمه الله، وقد زاد ابن رجب الحنبلي ـ رحمه الله ـ عليها ثمانية
> أحاديث من جوامع الكلم، فأكمل بها العدَّة خمسين، وشرحها بكتاب سَمَّاه: ((
> جامع العلوم والحكم في شرح خمسين حديثاً من جوامع الكلم ))، وقد كثرت شروح
> الأربعين للإمام النووي، وفيها المختصر والمطوَّل، وأوسع شروحها شرح ابن رجب
> الحنبلي رحمه الله، وقد رأيتُ شرح هذه الأربعين مع زيادة ابن رجب شرحاً
> متوسِّطاً قريباً من الاختصار، يشتمل شرح كلِّ حديث على فقرات، وفي ختامه ذكر
> شيء مِمَّا يُستفاد من الحديث، وقد استفدت في هذا الشرح من شروح النووي وابن
> دقيق العيد وابن رجب وابن عثيمين للأربعين، ومن فتح الباري لابن حجر
> العسقلاني، وسمَّيتُه: فتح القوي المتين في شرح الأربعين وتتمَّة الخمسين
> للنووي وابن رجب رحمهما الله، والمتين من أسماء الله، قال الله عزَّ وجلَّ في
> سورة الذاريات:\par
> >
> >
> >
> >
> > \stopbodymatter
> > \stoptext
> > =================
> >
> > I have attached a snapshot of the issue as well.
> >
> > I have no idea how to solve this issue, i have tried different fonts,
> such as sheherazade, traditional arabic, arabic typsetting etc. but all
> have this issue.
> > <test.png>__________________________________________________
> _________________________________
> > 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/list
> info/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 13292 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2017-02-20 10:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20  5:46 Ibn Saeed
2017-02-20  7:42 ` Otared Kavian
2017-02-20  9:43   ` Hans Hagen
2017-02-20  9:55     ` Ibn Saeed
2017-02-20 10:41       ` Hans Hagen
2017-02-20 18:52         ` Ibn Saeed
2017-02-20 10:02   ` Ibn Saeed [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=CAEvnCTCvZetQyoEGbUtjpFNx3vG_AhNPhxwoX6Lh1W70CxrY_Q@mail.gmail.com \
    --to=ibnsaeed@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).