Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Hans Hagen

On 8/21/2016 8:01 PM, Wolfgang Schuster wrote:

Mohammad Hossein Bateni 
21. August 2016 um 17:49
remaking the format produced no change but removing those files from
the cache did solve the problem.

Hans, can you add a option (e.g. mtxrun --script fonts --clear) to
delete the font cache.


mtxrun --script cache


-
  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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Wolfgang Schuster

Mohammad Hossein Bateni 
21. August 2016 um 17:49
remaking the format produced no change but removing those files from 
the cache did solve the problem.
Hans, can you add a option (e.g. mtxrun --script fonts --clear) to 
delete the font cache.


Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
awesome!  thanks, Wolfgang!

On Sun, Aug 21, 2016 at 12:17 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Mohammad Hossein Bateni 
> 21. August 2016 um 18:06
> While \definefontfamily method works, I can't get the \definedfont method
> to work.
>
>
> \setupalign[r2l]
> % this works
>
> %\definefontfamily[mainfont][rm][KFGQPC Uthman Taha
> Naskh][features=arabic]
>
> %\setupbodyfont[mainfont]
>
>
> \starttext
>
> \definedfont[KFGQPCUthmanTahaNaskh*arabic]
>
> سلام
>
> \stoptext
>
> When you don’t set a method ConTeXt looks for a file with the given name
> which is equal to
>
> \definedfont[file:uthmantn1wer10*arabic] ...
>
> where I told ConTeXt to use the file method, another method which can be
> used is the name
> method which can be used like this
>
> \definedfont[name:kfgqpcuthmantahanaskh*arabic] ...
>
> Wolfgang
>
> 
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Wolfgang Schuster

Mohammad Hossein Bateni 
21. August 2016 um 18:06
While \definefontfamily method works, I can't get the \definedfont 
method to work.



\setupalign[r2l]
% this works

%\definefontfamily[mainfont][rm][KFGQPC Uthman Taha 
Naskh][features=arabic]


%\setupbodyfont[mainfont]


\starttext

\definedfont[KFGQPCUthmanTahaNaskh*arabic]

سلام

\stoptext

When you don’t set a method ConTeXt looks for a file with the given name 
which is equal to


\definedfont[file:uthmantn1wer10*arabic] ...

where I told ConTeXt to use the file method, another method which can be 
used is the name

method which can be used like this

\definedfont[name:kfgqpcuthmantahanaskh*arabic] ...

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
While \definefontfamily method works, I can't get the \definedfont method
to work.


\setupalign[r2l]
% this works

%\definefontfamily[mainfont][rm][KFGQPC Uthman Taha Naskh][features=arabic]

%\setupbodyfont[mainfont]


\starttext

\definedfont[KFGQPCUthmanTahaNaskh*arabic]

سلام

\stoptext



It complains that the font is not found.

fonts   > defining > font with asked name 'KFGQPCUthmanTahaNaskh'
is not found using lookup 'file'
fonts   > defining > unknown font 'KFGQPCUthmanTahaNaskh', loading
aborted
fonts   > defining > unable to define 'KFGQPCUthmanTahaNaskh' as
'thedefinedfont--0'

On Sun, Aug 21, 2016 at 11:49 AM, Mohammad Hossein Bateni 
wrote:

> remaking the format produced no change but removing those files from the
> cache did solve the problem.
>
> thanks a lot!
>
> On Sun, Aug 21, 2016 at 9:59 AM, Wolfgang Schuster <
> schuster.wolfg...@gmail.com> wrote:
>
>> Mohammad Hossein Bateni 
>> 21. August 2016 um 12:53
>> Hello,
>>
>> The code snippet at the end used to work a few months ago when I reported
>> a rendering bug.  But now the font does not load and I see the following
>> error.  (It's not an issue with simplefonts because
>> \definedfont[KFGQPCUthmanTahaNaskh*arabic] does not work either.  the
>> font is published here
>> 
>> .
>>
>> Remake the format (context --make en) or delete the font entries
>> (uthmantn1-ver10.tma|tmc) in the cache 
>> ($TEXMF/texmf-cache/luatex-cache/context//fonts/otl/).
>> Please try both suggestions and report which of them helped.
>>
>> BTW: The simplefonts module has been replaced with the \definefontfamily
>> command (different syntax but included in the core).
>>
>>  begin example
>> \definefontfamily[testfont][rm][KFGQPC Uthman Taha
>> Naskh][features=arabic]
>>
>> \setupbodyfont[testfont]
>>
>> \starttext
>> ...
>> \stoptext
>>  end example
>>
>> Wolfgang
>>
>> 
>> ___
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
remaking the format produced no change but removing those files from the
cache did solve the problem.

thanks a lot!

On Sun, Aug 21, 2016 at 9:59 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Mohammad Hossein Bateni 
> 21. August 2016 um 12:53
> Hello,
>
> The code snippet at the end used to work a few months ago when I reported
> a rendering bug.  But now the font does not load and I see the following
> error.  (It's not an issue with simplefonts because 
> \definedfont[KFGQPCUthmanTahaNaskh*arabic]
> does not work either.  the font is published here
> 
> .
>
> Remake the format (context --make en) or delete the font entries
> (uthmantn1-ver10.tma|tmc) in the cache ($TEXMF/texmf-cache/luatex-
> cache/context//fonts/otl/). Please try both suggestions and report
> which of them helped.
>
> BTW: The simplefonts module has been replaced with the \definefontfamily
> command (different syntax but included in the core).
>
>  begin example
> \definefontfamily[testfont][rm][KFGQPC Uthman Taha Naskh][features=arabic]
>
> \setupbodyfont[testfont]
>
> \starttext
> ...
> \stoptext
>  end example
>
> Wolfgang
>
> 
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Wolfgang Schuster

Mohammad Hossein Bateni 
21. August 2016 um 12:53
Hello,

The code snippet at the end used to work a few months ago when I 
reported a rendering bug.  But now the font does not load and I see 
the following error.  (It's not an issue with simplefonts because 
\definedfont[KFGQPCUthmanTahaNaskh*arabic] does not work either.  the 
font is published here 
.
Remake the format (context --make en) or delete the font entries 
(uthmantn1-ver10.tma|tmc) in the cache 
($TEXMF/texmf-cache/luatex-cache/context//fonts/otl/). Please try 
both suggestions and report which of them helped.


BTW: The simplefonts module has been replaced with the \definefontfamily 
command (different syntax but included in the core).


 begin example
\definefontfamily[testfont][rm][KFGQPC Uthman Taha Naskh][features=arabic]

\setupbodyfont[testfont]

\starttext
...
\stoptext
 end example

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Hans Hagen

On 8/21/2016 12:53 PM, Mohammad Hossein Bateni wrote:

Hello,

The code snippet at the end used to work a few months ago when I
reported a rendering bug.  But now the font does not load and I see the
following error.  (It's not an issue with simplefonts because
\definedfont[KFGQPCUthmanTahaNaskh*arabic] does not work either.  the
font is published here
.


no error here



close source> 3 > 4 >
/Users/bateni/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv

lua error   > lua error on line 4 in file /private/tmp/test-q.tex:

...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: bad
argument #2 to '__div' (invalid replacement value)
stack traceback:
[C]: in function '__div'
...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: in
function 'splitter'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in
function 'addfeature'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in
function 'enhancer'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1269: in
function 'enhance'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1291: in
function 'apply'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:246: in
function 'load'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:538: in
function 'otftotfm'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:566: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:565>
(...tail calls...)
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:304: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:492: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:418: in
function 'read'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1172: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1059>
(...tail calls...)

 1 \setuppapersize[A5]
 2
 3 \usemodule[simplefonts]
 4 >>  \setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
 5 \setcharacterstripping[1]
 6 \setupinterlinespace[line=7ex]
 7
 8 \setupdirections[bidi=on,method=one]
 9 \setupalign[r2l]
10
11
12 \starttext
13
14 \tfb


Thanks,
~MHB
On Sat, Apr 30, 2016 at 1:06 PM, Hans Hagen > wrote:

On 4/29/2016 12:00 PM, Mohammad Hossein Bateni wrote:

Actually the MWE may help:

\usemodule[simplefonts]
\setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
\setcharacterstripping[1]

\setupdirections[bidi=on,method=one]
\setupalign[r2l]

\starttext
\tfb

الْحَمْدُ

\stoptext


i made a fix but as i'm on a very slow line i'm not sure when an
update is on the garden

Hans


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

___




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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!


[NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
Hello,

The code snippet at the end used to work a few months ago when I reported a
rendering bug.  But now the font does not load and I see the following
error.  (It's not an issue with simplefonts because
\definedfont[KFGQPCUthmanTahaNaskh*arabic] does not work either.  the font
is published here

.


close source> 3 > 4 >
/Users/bateni/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv

lua error   > lua error on line 4 in file /private/tmp/test-q.tex:

...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: bad
argument #2 to '__div' (invalid replacement value)
stack traceback:
[C]: in function '__div'
...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: in
function 'splitter'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in
function 'addfeature'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in
function 'enhancer'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1269: in
function 'enhance'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1291: in
function 'apply'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:246: in
function 'load'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:538: in
function 'otftotfm'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:566: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:565>
(...tail calls...)
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:304: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:492: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:418: in
function 'read'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1172: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1059>
(...tail calls...)

 1 \setuppapersize[A5]
 2
 3 \usemodule[simplefonts]
 4 >>  \setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
 5 \setcharacterstripping[1]
 6 \setupinterlinespace[line=7ex]
 7
 8 \setupdirections[bidi=on,method=one]
 9 \setupalign[r2l]
10
11
12 \starttext
13
14 \tfb


Thanks,
~MHB
On Sat, Apr 30, 2016 at 1:06 PM, Hans Hagen  wrote:

> On 4/29/2016 12:00 PM, Mohammad Hossein Bateni wrote:
>
>> Actually the MWE may help:
>>
>> \usemodule[simplefonts]
>> \setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
>> \setcharacterstripping[1]
>>
>> \setupdirections[bidi=on,method=one]
>> \setupalign[r2l]
>>
>> \starttext
>> \tfb
>>
>> الْحَمْدُ
>>
>> \stoptext
>>
>
> i made a fix but as i'm on a very slow line i'm not sure when an update is
> on the garden
>
> Hans
>
>
> -
>   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 to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___