Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Ibn Saeed
​Thank you Hans,

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

​

On Mon, Feb 20, 2017 at 2:41 PM, Hans Hagen  wrote:

> d={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
___

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Hans Hagen

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

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Ibn Saeed
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 :

> 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  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
> >
> >
> > أمَّا بعد، فإنَّ من الموضوعات التي ألَّف فيها العلماء في حديث رسول الله
> أحاديث الأربعين، وهي جمع أربعين حديثاً من أحاديث رسول الله ؛ لحديث ورد في
> فضل حفظ أربعين حديثاً من أحاديث رسول الله ، ذكر النووي في مقدمة الأربعين له
> وروده عن تسعة من أصحاب رسول الله سمَّاهم، وقال: (( واتَّفق الحفاظ على أنَّه
> حديث ضعيف وإن كثُرت طرقُه ))، وذكر أنَّ اعتمادَه في تأليف الأربعين ليس
> عليه، بل على أحاديث أخرى، مثل قوله : (( ليبلِّغ الشاهد منكم الغائب ))،
> وقوله: (( نضَّر الله امرءاً سمع مقالتي فوعاها )) الحديث، وذكر ثلاثة عشر من
> العلماء ألَّفوا في الأربعين، أولهم عبد الله بن المبارك، وآخرهم أبو بكر
> البيهقي، وقال بعد ذكرهم: (( وخلائق لا يُحصون من المتقدِّمين 

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Ibn Saeed
​Which part of code are you referring to, Hans ?​



On Mon, Feb 20, 2017 at 1:43 PM, Hans Hagen  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
___

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-20 Thread Hans Hagen

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
___

Re: [NTG-context] LineSpacing Issue in Arabic Fonts

2017-02-19 Thread Otared Kavian
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  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
> 
> 
> أمَّا بعد، فإنَّ من الموضوعات التي ألَّف فيها العلماء في حديث رسول الله 
> أحاديث الأربعين، وهي جمع أربعين حديثاً من أحاديث رسول الله ؛ لحديث ورد في فضل 
> حفظ أربعين حديثاً من أحاديث رسول الله ، ذكر النووي في مقدمة الأربعين له وروده 
> عن تسعة من أصحاب رسول الله سمَّاهم، وقال: (( واتَّفق الحفاظ على أنَّه حديث 
> ضعيف وإن كثُرت طرقُه ))، وذكر أنَّ اعتمادَه في تأليف الأربعين ليس عليه، بل 
> على أحاديث أخرى، مثل قوله : (( ليبلِّغ الشاهد منكم الغائب ))، وقوله: (( نضَّر 
> الله امرءاً سمع مقالتي فوعاها )) الحديث، وذكر ثلاثة عشر من العلماء ألَّفوا في 
> الأربعين، أولهم عبد الله بن المبارك، وآخرهم أبو بكر البيهقي، وقال بعد ذكرهم: 
> (( وخلائق لا يُحصون من المتقدِّمين والمتأخرين ))، وقال: (( ثم مِن العلماء مَن 
> جمع الأربعين في أصول الدِّين، وبعضهم في الفروع، وبعضهم في الجهاد، وبعضهم في 
> الزهد، وبعضهم في الآداب، وبعضهم في الخطب، وكلُّها مقاصد صالحة رضي الله تعالى 
> عن قاصديها، وقد رأيتُ جمع أربعين أهم من هذا كلِّه، وهي أربعون حديثاً مشتملة 
> على جميع ذلك، وكلُّ حديث منها قاعدة عظيمة من قواعد الدِّين، قد وصفه العلماء 
> بأنَّ مدارَ الإسلام عليه،