[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context

On 3/3/2024 11:54 AM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following sample:

   \definefontfeature[wider][extend=2]

   \definefontfamily[mainface][rm][TeX Gyre Pagella]
 [features={default, quality, wider},
  it={style: regular, features:{default, slanted, quality}},
  bf={style: regular, features:{default, boldened-30}},
  bi={style: regular, features:{default, boldened-30, slanted}}]

   \setupbodyfont
 [mainface, 30pt]

   \starttext
   \startTEXpage[offset=1ex]
   a
   {\it a}\\
   {\bf a}
   {\bi a}
   \stopTEXpage
   \stoptext

With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted
for regular (but the other fonts cannot inherit the wider feature and
wider will not mix with boldened-30 [even when specified]).

For some reason, LMTX from current latest cannot get slanted and
boldened-30 (but it mixes the inherited wider feature in all fonts).

This began to behave differently in latest from 2024.01.08 11:23 (which
is my next version after the one from 2023.09.26 18:19).

Could anyone confirm the issue?
accumulating these effects is dependent on how the features that you use 
are defined


in luametatex we have a bit more advanced mechanism (also relates to 
compact mode) because th eengine is a bit more clever


just make sure that you don't add up features where one calcels the 
other, so use for instance:


\definefontfeature[wide] [extend=2]
\definefontfeature[wideslant][extend=2,slant=.2]
\definefontfeature[widebold] [extend=2,weight=.1]
\definefontfeature[wideboldslant][extend=2,weight=.1,slant=.2]

\definefontfamily[mainface][rm][TeX Gyre Pagella]
  [tf={style:regular,features:{default,quality,wide}},
   it={style:regular,features:{default,quality,wideslant}},
   bf={style:regular,features:{default,quality,widebold}},
   bi={style:regular,features:{default,quality,wideboldslant}}]

\setupbodyfont
  [mainface,30pt]

\starttext
\startTEXpage[offset=1ex]
a
{\it a}
{\bf a}
{\bi a}
\stopTEXpage
\stoptext



-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
Hi,

Aren’t environments used for setups (and not for textual content). Maybe a 
buffer may be what you want ?

https://wiki.contextgarden.net/Command/startbuffer

 

Best,

Denis

 

 

Von: Jeroen  
Gesendet: Montag, 4. März 2024 06:15
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Re: Local alternative to \input

 

With a single environment it seems to work, though when I expand it to 
multiple, it does not seem to work anymore

 

\starttext

SomeText \\
\environment aaa \\
SomeText \\
\environment bbb \\
SomeText \\

\startenvironment aaa
\samplefile{lorem}
\stopenvironment

\startenvironment bbb
\samplefile{tufte}
\stopenvironment

\stoptext

 

Op do 4 jan 2024 om 20:14 schreef Henning Hraban Ramm mailto:te...@fiee.net> >:

Am 04.01.24 um 18:00 schrieb Jeroen:
> I just would like to have a lot of mark-up for combined figures and 
> tables etc moved out of the way, similar to this. I am loosing the 
> general documetn flow because of all this markup. Would there be a 
> construction similar to this:
> 
> \starttext
> 
> \environment foo
> \environment bar
> 
> \startenvironment foo
> this is a lot of text
> \stopenvironment
> 
> \startenvironment bar
> and this is another piece of text
> \stopenvironment
> 
> \stoptext

An environment is a separate file.
\environment is like \input with a few more checks, e.g. it loads the 
file only once.

e.g.

-- file "env_foo.tex" --
\startenvironment env_foo
% settings
\stopenvironment
--


-- file document.tex --
\environment env_foo

\starttext
% whatever
\stoptext
--

Instead of the call within your document, you can also call

context --environment=env_foo.tex document

(Usually that makes only sense in XML workflows.)

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl   / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla

2024-03-04 Thread vm via ntg-context




On 04/03/2024 09:08, Hans Hagen via ntg-context wrote:
You're missing the fact that the font has an issue. I can add a 
workaround, assuming that (as often) issues become features.



A useful feature, if it not already exists, might be a tool to detect 
whether a font has issues. That can help isolate unexpected behavior.


.F
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla

2024-03-04 Thread Hans Hagen via ntg-context

On 3/2/2024 1:46 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following sample:

   \definefontfamily[mainface][rm][TeX Gyre Termes]
   \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}]
   \setupbodyfont[mainface]
   \starttext
   \scale[width=30em]{a}
   \scale[width=30em]{\cg }
   \stoptext

Using current latest from both MkIV and LMTX, I cannot scale the emoji flag.

Latest font release can be directly download from
https://github.com/mozilla/twemoji-colr/releases/latest/download/Twemoji.Mozilla.ttf.

Am I missing something to scale the glyph properly?
You're missing the fact that the font has an issue. I can add a 
workaround, assuming that (as often) issues become features.


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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___