ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LineSpacing Issue in Arabic Fonts
@ 2017-02-20  5:46 Ibn Saeed
  2017-02-20  7:42 ` Otared Kavian
  0 siblings, 1 reply; 7+ messages in thread
From: Ibn Saeed @ 2017-02-20  5:46 UTC (permalink / raw)
  To: ntg-context


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

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/
tex/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.

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

[-- Attachment #2: test.png --]
[-- Type: image/png, Size: 61037 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: LineSpacing Issue in Arabic Fonts
  2017-02-20  5:46 LineSpacing Issue in Arabic Fonts Ibn Saeed
@ 2017-02-20  7:42 ` Otared Kavian
  2017-02-20  9:43   ` Hans Hagen
  2017-02-20 10:02   ` Ibn Saeed
  0 siblings, 2 replies; 7+ messages in thread
From: Otared Kavian @ 2017-02-20  7:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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/tex/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/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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: LineSpacing Issue in Arabic Fonts
  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:02   ` Ibn Saeed
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2017-02-20  9:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/20/2017 8:42 AM, Otared Kavian wrote:
> 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.

it's actually a side effect of the possibility to combine methods and 
'min' is the only case where that fails .. i'll add a catch for that

for now, use {min,line}

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: LineSpacing Issue in Arabic Fonts
  2017-02-20  9:43   ` Hans Hagen
@ 2017-02-20  9:55     ` Ibn Saeed
  2017-02-20 10:41       ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Ibn Saeed @ 2017-02-20  9:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

​Which part of code are you referring to, Hans ?​



On Mon, Feb 20, 2017 at 1:43 PM, Hans Hagen <pragma@wxs.nl> wrote:

> for now, use {min,line}

[-- Attachment #1.2: Type: text/html, Size: 522 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: LineSpacing Issue in Arabic Fonts
  2017-02-20  7:42 ` Otared Kavian
  2017-02-20  9:43   ` Hans Hagen
@ 2017-02-20 10:02   ` Ibn Saeed
  1 sibling, 0 replies; 7+ messages in thread
From: Ibn Saeed @ 2017-02-20 10:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: LineSpacing Issue in Arabic Fonts
  2017-02-20  9:55     ` Ibn Saeed
@ 2017-02-20 10:41       ` Hans Hagen
  2017-02-20 18:52         ` Ibn Saeed
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2017-02-20 10:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/20/2017 10:55 AM, Ibn Saeed wrote:
> ​Which part of code are you referring to, Hans ?​
>

grid={min,line},

> On Mon, Feb 20, 2017 at 1:43 PM, Hans Hagen <pragma@wxs.nl
> <mailto:pragma@wxs.nl>> wrote:
>
>     for now, use {min,line}
>
>
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: LineSpacing Issue in Arabic Fonts
  2017-02-20 10:41       ` Hans Hagen
@ 2017-02-20 18:52         ` Ibn Saeed
  0 siblings, 0 replies; 7+ messages in thread
From: Ibn Saeed @ 2017-02-20 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

​Thank you Hans,

I replaced min, line with {both}. Its working fine.

​

On Mon, Feb 20, 2017 at 2:41 PM, Hans Hagen <pragma@wxs.nl> wrote:

> d={min,line},

[-- Attachment #1.2: Type: text/html, Size: 615 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-02-20 18:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20  5:46 LineSpacing Issue in Arabic Fonts 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 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).