Re: [NTG-context] issue with Public Sans

2021-05-04 Thread Hans Hagen

On 5/4/2021 4:58 PM, Pablo Rodriguez wrote:

On 5/4/21 9:51 AM, denis.ma...@ub.unibe.ch wrote:

Hi Pablo
[...]
Confirmed here.

I've also tried with --luatex, but that doesn't find the font at all.
(Do I have to update the font database for luatex separately?)


Many thanks for the confirmation, Denis,

--luatex has no problems with the font.

So, it might be a problem with LMTX.

Many thanks for your help,


it has to to do with 2000 units; luatex probably forces that to 1000

-
  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] issue with Public Sans

2021-05-04 Thread Pablo Rodriguez
On 5/4/21 9:51 AM, denis.ma...@ub.unibe.ch wrote:
> Hi Pablo
> [...]
> Confirmed here.
>
> I've also tried with --luatex, but that doesn't find the font at all.
> (Do I have to update the font database for luatex separately?)

Many thanks for the confirmation, Denis,

--luatex has no problems with the font.

So, it might be a problem with LMTX.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] conditionally add \vfill before section if at end of page

2021-05-04 Thread denis.maier
Hi,

I'm still playing/struggling with vertical glue to have pages of a constant 
height. The following settings give reasonable results:

=
\setuppapersize[A5][A5]

\setupalign[line]
\setuptolerance[vertical,stretch]
\setupinterlinespace[
stretch=0.001,
shrink=0.001,
]

\showframe

\starttext

\section{Section}
\input knuth\par
\input knuth\par
\input knuth\par
\input ward
\input ward
\input ward
%\vfill % can a \vfill be added automatically here?


\section{Section}
\input knuth\par

% here we don't have a \vfill as this is on the middle of the page
\section{Section}
\input knuth\par

\stoptext
==

However, I don't want the stretching if the next page starts with a section 
heading. Is there any way to add a \vfill on a page immediately before a 
section heading? \doifatpageborder \doifatpagestart or something similar ?

Thanks for you help,
Denis
___
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] issue with Public Sans

2021-05-04 Thread denis.maier
Hi Pablo

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Pablo
> Rodriguez
> Gesendet: Samstag, 1. Mai 2021 13:00
> An: mailing list for ConTeXt users 
> Betreff: [NTG-context] issue with Public Sans
> 
> Dear listt,
> 
> I have problems with current latest (from 2021.04.29 23:09) to get proper
> character spacing using Public Sans
> (https://public-sans.digital.gov/):
> 
>   \definefontfamily[mainface][rm]
>   [Public Sans]
>   \setupbodyfont[mainface]
>   \starttext
>   \doloopoverlist{\rm,\it,\bf,\bi}
> {\startpar\recursestring\input zapf\stoppar}
>   \stoptext
> 
> Could anyone confirm this? I wonder whether the typeface itself is missing
> something.

Confirmed here.

I've also tried with --luatex, but that doesn't find the font at all. (Do I 
have to update the font database for luatex separately?)

Denis
___
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] Syriac (Estrangelo Edessa) query

2021-05-04 Thread Hans Hagen

On 5/3/2021 8:07 PM, Alan Bowen wrote:

I am trying to set text in the Syriac font Estrangelo Edessa.

Right now, I have the following (taken for the wiki):

\definefontfeature[semitic-complete]
[mode=node,analyze=yes,language=dflt,ccmp=yes,
autoscript=position,autolanguage=position,
init=yes,medi=yes,fina=yes,isol=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes]
\definefontfeature[arabic]
[semitic-complete]
[script=arab]
\definefontfeature[syriac]
[arabic]
[fin2=yes, fin3=yes, med2=yes]
\definefallbackfamily[mainface][rm][estrangeloedessa]
[range={syriac},
features=syriac]

\definefontfamily[mainface][rm][STIX Two Text]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
features={default, f:oldstyle}]

\setupbodyfont[mainface, 20pt]
\starttext

Hello world!

{
\setupalign[r2l]
ܐܝܟ  ܟܝܢܐ  ܕܐܐܪܣ  ܡܲܥܕܢܘܬܗܘܢ  ܘܡܲܥܒܿܕܝܢ  ܩܪܒ̈ܐ  ܘܚܣܡܐ  ܠܗܠܝܢ
}
\stoptext

Though the file compiles, the Syriac text does not look the same as the 
  source text (Estrangelo Edessa unicode). See attachment.


Any guidance in fixing this will be gladly received.

Alan

Disclaimer: I do not know Syriac.

me neither

\definefontfeature
  [syriac]
  [syriac]
  [language=dflt,script=syrc]

\starttext

{\definedfont[file:estre.ttf*syriac]\righttoleft ܐܝܟ  ܟܝܢܐ  ܕܐܐܪܣ 
ܡܲܥܕܢܘܬܗܘܢ  ܘܡܲܥܒܿܕܝܢ  ܩܪܒ̈ܐ  ܘܚܣܡܐ  ܠܗܠܝܢ}


\stoptext

we need to add a script key ... probably also in font-pre.*

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
___