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-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 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 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 mailto:pra...@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
___

[NTG-context] description questions

2017-02-20 Thread Csikos Bela
Dear context users:

I am experimenting with descriptions and I couldn't find in the documentation
the following:

1. What is the default value of width option? It seems that default width uses 
the
longest head + some distance for every head in a descriptions list. Neither
width=fit nor width=broad,distance=dimension results in the same.

2. In the same document how can I reset to the default options of a defined
description list? For example:

\definedescription[defa]

\defa{head}  % deafult options are used

\setupdescription[defa][width=broad,distance=1cm] 
\defa{head}  % above options are used

Now I would like to use again the default options, how can I?

I tried:
\setupdescription[defa][] 
\defa{head}  

But still the previously set options are used, they haven't been reset.

Thank you in advance,

bcsikos

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

[NTG-context] Suddenly, my font is not used any longer

2017-02-20 Thread Nicola

Hello everyone,
I am re-typesetting a mkiv document that uses system fonts for text and
math (through \definefontfamily). Suddenly, it renders Latin Roman for
the text. May it be a cache corruption problem? I recall that there's
a command to clear the font cache, but I cannot remember which.


Nicola

___
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] description questions

2017-02-20 Thread Aditya Mahajan

I am experimenting with descriptions and I couldn't find in the documentation
the following:

1. What is the default value of width option? It seems that default width uses 
the
longest head + some distance for every head in a descriptions list. Neither
width=fit nor width=broad,distance=dimension results in the same.


Some information is given here: http://www.ntg.nl/maps/36/09.pdf
Enumerations and descriptions share a lot of settings.


2. In the same document how can I reset to the default options of a defined
description list? For example:

\definedescription[defa]

\defa{head}  % deafult options are used

\setupdescription[defa][width=broad,distance=1cm] 
\defa{head}  % above options are used


But still the previously set options are used, they haven't been reset.


There is no way to reset options in ConTeXt. The canonical way to do this 
is:


\definedescription[defa]
\definedescription[defb][defa][width=broad, distance=1cm]

\startdefa ... \stopdefa

\startdefb ... \stopdefb

(Untested): This should also work:

\startdefa[width=broad, distance=1cm] ... \stopdefa

Aditya
___
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] Suddenly, my font is not used any longer

2017-02-20 Thread Aditya Mahajan

On Mon, 20 Feb 2017, Nicola wrote:


Hello everyone,
I am re-typesetting a mkiv document that uses system fonts for text and
math (through \definefontfamily). Suddenly, it renders Latin Roman for
the text. May it be a cache corruption problem? I recall that there's
a command to clear the font cache, but I cannot remember which.


mtxrun --script fonts --reload --force

Aditya
___
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] Suddenly, my font is not used any longer

2017-02-20 Thread Mica Semrick
If you think it is a system problem and not a context one, then:

fc-cache -fv

-m

On February 20, 2017 8:24:07 AM PST, Nicola  wrote:
>Hello everyone,
>I am re-typesetting a mkiv document that uses system fonts for text and
>math (through \definefontfamily). Suddenly, it renders Latin Roman for
>the text. May it be a cache corruption problem? I recall that there's
>a command to clear the font cache, but I cannot remember which.
>
>
>Nicola
>
>___
>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
___

Re: [NTG-context] Suddenly, my font is not used any longer

2017-02-20 Thread Aditya Mahajan

On Mon, 20 Feb 2017, Mica Semrick wrote:


If you think it is a system problem and not a context one, then:

fc-cache -fv


ConTeXt MkIV does not use fc-cache.

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

[NTG-context] Underful with \startalignment[flushright]

2017-02-20 Thread josephcanedo
Dear list,

Could not find any hint on this list on this (minor) problem.
When compiling the following simple MWE :

\starttext
\startalignment[flushright]
Foo.
\stopalignment
\stoptext

I get an underful hbox message :

Underfull \hbox (badness 1) in paragraph at lines 4--5
 []\3>modern-designsize-12pt-rm-tf-0--0 Foo.

Is there a simple way to avoid the underful message (other than adding a \hfil 
before the text) ? 

\starttext
\startalignment[flushright]
\hfil Foo.
\stopalignment
\stoptext


Many thanks 

Best regards

Joseph Canedo

___
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] Underful with \startalignment[flushright]

2017-02-20 Thread Aditya Mahajan

On Mon, 20 Feb 2017, josephcan...@gmail.com wrote:


Dear list,

Could not find any hint on this list on this (minor) problem.
When compiling the following simple MWE :

\starttext
\startalignment[flushright]
Foo.
\stopalignment
\stoptext

I get an underful hbox message :

Underfull \hbox (badness 1) in paragraph at lines 4--5
[]\3>modern-designsize-12pt-rm-tf-0--0 Foo.

Is there a simple way to avoid the underful message (other than adding a \hfil 
before the text) ?


\dontcomplain

You could also use \rightline{Foo}.

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