Re: [NTG-context] LMTX and my custom typescripts

2021-05-28 Thread Wolfgang Schuster

Michael Guravage schrieb am 28.05.2021 um 19:33:

A pox upon me for a clumsy lout!


You can also remove

    \usetypescriptfile[...]

from your document because \setupbodyfont loads the file itself when the 
typeface and the file have matching names.


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


Re: [NTG-context] LMTX and my custom typescripts

2021-05-28 Thread Michael Guravage
A pox upon me for a clumsy lout!


On Fri, May 28, 2021 at 6:54 PM Thomas A. Schmitz <
thomas.schm...@uni-bonn.de> wrote:

>
> > On 28. May 2021, at 18:40, Michael Guravage <
> gurav...@literatesolutions.com> wrote:
> >
> > Any encouragement in how to resolve this would be much appreciated.
> >
>
> Hi Michael,
>
> Try renaming it to type-imp-DollyPro.tex (and then of course
> \usetypescriptfile[type-imp-DollyPro]), that should help. This changed a
> couple of months ago and was announced on the list, so shame on you for not
> following our discussions religiously…
>
> Best
>
> Thomas
>
> ___
> 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] LMTX and my custom typescripts

2021-05-28 Thread Thomas A. Schmitz

> On 28. May 2021, at 18:40, Michael Guravage  
> wrote:
> 
> Any encouragement in how to resolve this would be much appreciated.
> 

Hi Michael,

Try renaming it to type-imp-DollyPro.tex (and then of course 
\usetypescriptfile[type-imp-DollyPro]), that should help. This changed a couple 
of months ago and was announced on the list, so shame on you for not following 
our discussions religiously…

Best

Thomas
___
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] LMTX and my custom typescripts

2021-05-28 Thread Michael Guravage
Yesterday I installed a new LMTX instance *ex nihilo*. Unfortunately, the
new instance will not load my typescripts. My several commercial fonts and
the typescripts I wrote for them reside in the texmf-project tree, along
with a style file that loads them. I load the style file in my source files
with the \environment command.

The files in texmf-project are properly indexed. I know this, because the
style file's name appears in the log, because I can list the fonts with mtxrun
--script fonts --list --files --all --pattern=Dolly*, and because he style
file evokes \showframe and \showgrid; the result of which I see in the
typeset results.

Regardless of whether a typescript files, e.g. type-DollyPro.tex, is in the
texmf-tree or in the same directory as the ConTeXt source file, evoking
\usetypescriptfile[type-DollyPro] fails. The log says:

fonts   > typescripts > unknown library 'DollyPro'
fonts   > typescripts > unknown library 'DollyPro'

However, including the typescripts in the ConTeXt source file succeeds;
which would seem to imply that my typescript definitions are correct.

Using an old instance: LMTX LuaTeX 2.03 20191227 + ConTeXt MkIV 2019.12.27
19:26, loading the typescript via the style file works as expected.

I regret that my mwe remains academic, since you need the Dolly font to run
it.

Any encouragement in how to resolve this would be much appreciated.

Cheers,

Michael

% \starttypescript [serif] [DollyPro]
%   \definefontsynonym [Regular]   [file:DollyPro-Regular.otf]
%   \definefontsynonym [Bold]  [file:DollyPro-Bold.otf]
%   \definefontsynonym [Italic][file:DollyPro-RegularItalic.otf]
%   \definefontsynonym [SmallCaps] [file:DollyPro-RegularSmallCaps.otf]
% \stoptypescript

% \starttypescript [serif] [DollyPro]
%   \setups[font:fallback:serif]
%   \definefontsynonym [Serif]   [Regular]   [features=default]
%   \definefontsynonym [SerifBold]   [Bold]  [features=default]
%   \definefontsynonym [SerifItalic] [Italic][features=default]
%   \definefontsynonym [SerifCaps]   [SmallCaps] [features=default]
% \stoptypescript

% \definefontfeature
%   [hz] [default]
%   [protrusion=quality, expansion=quality, mode=node, script=latn]

% \starttypescript[DollyPro]
%   \definetypeface [DollyPro] [rm] [serif] [DollyPro] [default] [features=hz]
% \stoptypescript

\usetypescriptfile[type-DollyPro]
\setupbodyfont[DollyPro]

\starttext
  \input tufte
\stoptext% Regular

\starttypescript [serif] [DollyPro]
  \definefontsynonym [Regular]   [file:DollyPro-Regular.otf]
  \definefontsynonym [Bold]  [file:DollyPro-Bold.otf]
  \definefontsynonym [Italic][file:DollyPro-RegularItalic.otf]
  \definefontsynonym [SmallCaps] [file:DollyPro-RegularSmallCaps.otf]
\stoptypescript

\starttypescript [serif] [DollyPro]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [Regular]   [features=default]
  \definefontsynonym [SerifBold]   [Bold]  [features=default]
  \definefontsynonym [SerifItalic] [Italic][features=default]
  \definefontsynonym [SerifCaps]   [SmallCaps] [features=default]
\stoptypescript

\definefontfeature
  [hz] [default]
  [protrusion=quality, expansion=quality, mode=node, script=latn]

\starttypescript[DollyPro]
  \definetypeface [DollyPro] [rm] [serif] [DollyPro] [default] [features=hz]
\stoptypescript

% finis
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
system  > 
system  > ConTeXt  ver: 2021.05.27 14:15 LMTX  fmt: 2021.5.28  int: english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname 'mwe', input './mwe', result 'mwe'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './mwe.tex'
fonts   > typescripts > unknown library 'DollyPro'
fonts   > typescripts > unknown library 'DollyPro'
fonts   > preloading latin modern fonts (third stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 2, order 3, name 'tufte.tex'
close source> level 2, order 3, name 'tufte.tex'
backend > xmp > using file '/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 1, order 3, name './mwe.tex'
system  > start used files
system  > text: mwe
system  > stop used files
system  > start used files
system  >1: filename=char-prv.lua filetype=tex format=tex foundname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/opt/_lmtx_/tex/texmf-context/tex/context/base/mkiv/char-prv