Re: [NTG-context] Garamond Premier Pro font goodies file

2016-05-03 Thread mf
Thank you Wolfgang,
now it works partially (see the first attachment): it uses different
optical sizes, but not always the right ones.

\definefontfamily [default] [rm] [GaramondPremierPro] [opticalsize=yes]
\setupbodyfont[default,12pt]
\starttext
\dostepwiserecurse {6} {22} {2} 
  {\switchtobodyfont[#1pt]
   \purefontname\font: \input ward
   \blank}
\stoptext

My garamondpremierpro.lfg is a modified version of ebgaramond.lfg.
While I was waiting for an answer to my mail, I made a modified version
of type-imp-ebgaramond.mkiv: type-imp-garamondpremierpro.mkiv (second
attachment).
Then I tried this:

\input type-imp-garamondpremierpro.mkiv
\setupbodyfont[GaramondPremierPro,12pt]
\starttext
\dostepwiserecurse {6} {22} {2} 
  {\switchtobodyfont[#1pt]
   \purefontname\font: \input ward
   \blank}
\stoptext

This works as expected (see third attachment): "GaramondPremierPro-
Capt" under 8.5pt, then "GaramondPremierPro" until 13pt, then
"GaramondPremierPro-Subh" until 21.5pt, then "GaramondPremierPro-Disp".

How can I make it work with \definefontfamily?
I prefer its simpler syntax to typescripts like "type-imp-
garamondpremierpro.mkiv".
I tried this:

\definefontfamily [default] [rm] [GaramondPremierPro]
[opticalsize=yes,goodies=GaramondPremierPro]
\setupbodyfont[default,12pt]
\starttext
\dostepwiserecurse {6} {22} {2} 
  {\switchtobodyfont[#1pt]
   \purefontname\font: \input ward
   \blank}
\stoptext

but it does not work as expected.
The file garamondpremierpro.lfg gets loaded, but its contents are
ignored when choosing the right optical size.

How can I tell ConTeXt to use the optical sizes defined in my goodies
file with \definefontfamily and without using type-imp-
garamondpremierpro.mkiv typescripts?

garamond-optical-sizes-ws.pdf
Description: Adobe PDF document
%D \module
%D   [   file=type-imp-ebgaramond,
%Dversion=2016.05.02,
%D  title=\CONTEXT\ Typescript Macros,
%D   subtitle=Garamond Premier Pro,
%D author=MF,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\definefontfeature
  [garamond-premier-pro-normal]
  [default]
  [onum=yes,liga=yes]
%  [mode=node,ccmp=yes,calt=yes,
%   liga=yes,dlig=yes,hlig=yes,
%   kern=yes,mark=yes,mkmk=yes,
%   onum=yes,pnum=yes,salt=yes,
%   script=latn]

\definefontfeature
  [garamond-premier-pro-smallcaps]
  [garamond-premier-pro-normal]
  [smcp=yes,c2sc=yes]

\starttypescriptcollection[GaramondPremierPro]

\starttypescript [serif] [GaramondPremierPro]
\loadfontgoodies[garamondpremierpro]
\setups[font:fallback:serif]
\definefontsynonym [Serif]   [file:GaramondPremierPro-Regular] [features=garamond-premier-pro-normal]
\definefontsynonym [SerifItalic] [file:GaramondPremierPro-Italic]  [features=garamond-premier-pro-normal]
\definefontsynonym [SerifBold]   [file:GaramondPremierPro-Bold][features=garamond-premier-pro-normal]
\definefontsynonym [SerifBoldItalic][file:GaramondPremierPro-BoldItalic][features=garamond-premier-pro-normal]
\definefontsynonym [SerifCaps]   [Serif]   [features=garamond-premier-pro-smallcaps]
\stoptypescript

\starttypescript[GaramondPremierPro]
\definetypeface [GaramondPremierPro] [rm] [serif] [GaramondPremierPro] [default] [designsize=auto]
\definetypeface [GaramondPremierPro] [tt] [mono]  [dejavu] [default]
\definetypeface [GaramondPremierPro] [mm] [math]  [bonum]  [default]
\stoptypescript

\stoptypescriptcollection


garamond-optical-sizes-mf.pdf
Description: Adobe PDF document
___
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] Handling Semi-Bold for Minion Pro in Context (LuaTeX)

2016-05-03 Thread Wolfgang Schuster

Antoine Cailliau 
3. Mai 2016 um 08:58

The \definefontfamily command is limited to the default
alternatives (tf, bf, it, sl, bi, bs ans sc).


Thanks for your answer, what shall I use to define non-default 
alternatives?
At the moment your only option is to write your own typescript for the 
fonts.


\definefontalternative[sb]
\definefontalternative[si]

\starttypescript [sans] [source-sans]
  \definebodyfont [default] [ss]
[tf=Sans sa 1,
 it=SansItalic   sa 1,
 sb=SansMedium   sa 1,
 si=SansMediumItalic sa 1,
 bf=SansBold sa 1,
 bi=SansBoldItalic   sa 1]
\stoptypescript

\starttypescript [sans] [source-sans]
\definefontsynonym [Sans] [file:SourceSansPro-Regular.otf]
\definefontsynonym [SansItalic]   [file:SourceSansPro-It.otf]
\definefontsynonym [SansMedium]   [file:SourceSansPro-Semibold.otf]
\definefontsynonym [SansMediumItalic] 
[file:SourceSansPro-SemiboldIt.otf]

\definefontsynonym [SansBold] [file:SourceSansPro-Bold.otf]
\definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
\stoptypescript

\definetypeface [source] [ss] [sans] [source-sans] [default] 
[features=default]

\definetypeface [source] [mm] [math] [xits][default]

\setupbodyfont[source]

\starttext

Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi 
BoldItalic}


\stoptext

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] Setting up TeXworks

2016-05-03 Thread Thomas Fehige

Am 03.05.2016 um 12:21 schrieb Mojca Miklavec:

On 3 May 2016 at 11:51, Thomas Fehige  wrote:

Am 29.04.2016 um 11:05 schrieb Wolfgang Schuster:

You need a newer context version.


OK, thank you, that helped. Everything is fine from the command line.

I seem to be overlooking something as to the setup of TeXworks, though. I
copied the programme calls from the tools.ini that came with the ConTeXt
standalone version into the present tools.ini that lives in my personal
TeXworks config folder. I also added /usr/local/context/bin to the "paths
for TeX and friends" in the TW preferences window.

Now TW starts the correct mtxrun, but the run crashes with, after a lot of
file searching:

mtxrun | unknown script 'context.lua' or 'mtx-context.lua'

Try to run (the correct) "mtxrun --generate" either from the command
line (or from TW just before you start ConTeXt if the command line
doesn't help).

That wasn't it. Below is the logfile. The command issued by TeXworks 
should be


mtxrun --autogenerate --script context my_extensions001.tex

A file "texmfcnf.lua" is found at three places:

/usr/share/texlive/texmf-dist/web2c/texmfcnf.lua (last modified: 
25/03/2016)

/usr/share/texmf/web2c/texmfcnf.lua (last modified: 25/03/2016)
/usr/local/context/tex/texmf/web2c/texmfcnf.lua (last modified: 
28.11.2012)


The last one is the one I installed this morning.

Cheers -- Thomas

 logfile --

mtxrun | forcing cache reload

resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/home/thomas/texmf/web2c' from specification 'home:texmf/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on weird path 
'/usr/local/context/bin' from specification 'selfautoloc:'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/bin/share/texmf-local/web2c' from specification 
'selfautoloc:/share/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/bin/share/texmf-dist/web2c' from specification 
'selfautoloc:/share/texmf-dist/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/bin/share/texmf/web2c' from specification 
'selfautoloc:/share/texmf/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/bin/texmf-local/web2c' from specification 
'selfautoloc:/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/bin/texmf-dist/web2c' from specification 
'selfautoloc:/texmf-dist/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/bin/texmf/web2c' from specification 
'selfautoloc:/texmf/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on weird path 
'/usr/local/context' from specification 'selfautodir:'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/share/texmf-local/web2c' from specification 
'selfautodir:/share/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/share/texmf-dist/web2c' from specification 
'selfautodir:/share/texmf-dist/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/share/texmf/web2c' from specification 
'selfautodir:/share/texmf/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/texmf-local/web2c' from specification 
'selfautodir:/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/texmf-dist/web2c' from specification 
'selfautodir:/texmf-dist/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/context/texmf/web2c' from specification 
'selfautodir:/texmf/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'$SELFAUTOGRANDPARENT/texmf-local/web2c' from specification 
'$SELFAUTOGRANDPARENT/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on weird path 
'/usr/local' from specification 'selfautoparent:'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/share/texmf-local/web2c' from specification 
'selfautoparent:/share/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/share/texmf-dist/web2c' from specification 
'selfautoparent:/share/texmf-dist/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/share/texmf/web2c' from specification 
'selfautoparent:/share/texmf/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 
'/usr/local/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'


resolvers | resolving | looking for 'texmfcnf.lua' on given path 

Re: [NTG-context] Setting up TeXworks

2016-05-03 Thread Mojca Miklavec
On 3 May 2016 at 11:51, Thomas Fehige  wrote:
> Am 29.04.2016 um 11:05 schrieb Wolfgang Schuster:
>
> You need a newer context version.
>
>
> OK, thank you, that helped. Everything is fine from the command line.
>
> I seem to be overlooking something as to the setup of TeXworks, though. I
> copied the programme calls from the tools.ini that came with the ConTeXt
> standalone version into the present tools.ini that lives in my personal
> TeXworks config folder. I also added /usr/local/context/bin to the "paths
> for TeX and friends" in the TW preferences window.
>
> Now TW starts the correct mtxrun, but the run crashes with, after a lot of
> file searching:
>
> mtxrun | unknown script 'context.lua' or 'mtx-context.lua'

Try to run (the correct) "mtxrun --generate" either from the command
line (or from TW just before you start ConTeXt if the command line
doesn't help).

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

[NTG-context] Setting up TeXworks

2016-05-03 Thread Thomas Fehige

Am 29.04.2016 um 11:05 schrieb Wolfgang Schuster:

You need a newer context version.


OK, thank you, that helped. Everything is fine from the command line.

I seem to be overlooking something as to the setup of TeXworks, though. 
I copied the programme calls from the _tools.ini_ that came with the 
ConTeXt standalone version into the present _tools.ini_ that lives in my 
personal TeXworks config folder. I also added _/usr/local/context/bin_ 
to the "paths for TeX and friends" in the TW preferences window.


Now TW starts the correct _mtxrun_, but the run crashes with, after a 
lot of file searching:


mtxrun | unknown script 'context.lua' or 'mtx-context.lua'


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

Re: [NTG-context] NEW : ConTeXt documentation in French (Wikibook)

2016-05-03 Thread Otared Kavian
Hi Jean-Pierre,

You ahve done a wonderful job, thanks for sharing.
I’ll look on a regular basis your wikibook and let you know if I find typos and 
examples to improve. 

Best regards: Otared K.

> On 03 May 2016, at 11:11, Jean-Pierre Delange  wrote:
> 
> Dear French ConTeXt users (and others),
> 
> I have started to compile ConTeXt documentation in French, gathered in a 
> Wikibook (Wikilivre) that you can find here :
> https://fr.wikibooks.org/wiki/ConTeXt.
> The whole documentation in this Wikibook is mostly given through French 
> translations of original English documentation, which is provided by ConTeXt 
> Garden wiki pages, Stack Exchange pages devoted to ConTeXt, and Bertrand 
> Lemasson website (http://lesfichesabebert.fr/index.php/FichesBebert/Context), 
> and by personnal tests made by me on both Linux/Windows systems.
> 
> This is a work in progress, and I need some help, first to correct the 
> several code examples I give in this Wikibook, second to provide some 
> examples of  ConTeXt "critic apparatus" (in the way you can find in LaTeX 
> code 'reledmac' there  — thanks to Maïeul Rouquette — 
> http://mirrors.ctan.org/macros/latex/contrib/reledmac/examples/1-criticalnotes.tex),
>  and third to give me some links where I can find ConTeXt up to date 
> documentation (especially about complex book project). Of course, you may 
> correct, improve and expand this project.
> 
> Thanks,
> JP Delange
> 
> 
> 
> 
> 
> 
> ___
> 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
___

[NTG-context] NEW : ConTeXt documentation in French (Wikibook)

2016-05-03 Thread Jean-Pierre Delange

Dear French ConTeXt users (and others),

I have started to compile ConTeXt documentation in French, gathered in a 
Wikibook (Wikilivre) that you can find here :

https://fr.wikibooks.org/wiki/ConTeXt.
The whole documentation in this Wikibook is mostly given through French 
translations of original English documentation, which is provided by 
ConTeXt Garden wiki pages, Stack Exchange pages devoted to ConTeXt, and 
Bertrand Lemasson website 
(http://lesfichesabebert.fr/index.php/FichesBebert/Context), and by 
personnal tests made by me on both Linux/Windows systems.


This is a work in progress, and I need some help, first to correct the 
several code examples I give in this Wikibook, second to provide some 
examples of  ConTeXt "critic apparatus" (in the way you can find in 
LaTeX code 'reledmac' there  — thanks to Maïeul Rouquette — 
http://mirrors.ctan.org/macros/latex/contrib/reledmac/examples/1-criticalnotes.tex), 
and third to give me some links where I can find ConTeXt up to date 
documentation (especially about complex book project). Of course, you 
may correct, improve and expand this project.


Thanks,
JP Delange






___
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] font features in math

2016-05-03 Thread jfbu

Le 3 mai 2016 à 00:13, Ulrike Fischer  a écrit :

> That's easy if one can select the fonts explicitly, but the question
> was triggered by the url package which internally switches to math. 

I have posted a (seemingly partial) patch to this problem of \url at 
http://tex.stackexchange.com/questions/264206/cant-get-oldstyle-figures-in-url-with-lualatex/307585#307585
___
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] Handling Semi-Bold for Minion Pro in Context (LuaTeX)

2016-05-03 Thread Antoine Cailliau
>
> The \definefontfamily command is limited to the default alternatives (tf,
> bf, it, sl, bi, bs ans sc).
>

Thanks for your answer, what shall I use to define non-default
alternatives?
___
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
___