[NTG-context] Error with Libertinus Semibold and new standalone beta

2017-07-15 Thread Rik Kabel
With the example below and the latest beta (2017.07.14 19:35), I get the 
following error whenever a bold face is requested:


   lua error   > lua error on line 44 in file
   C:/Users/rik/Desktop/test/prod_quotation.tex:
   ...ext/tex/texmf-context/tex/context/base/mkiv/font-ots.lua:5336:
   attempt to index local 'one' (a boolean value)

The typescript in the example is based on the delivered typescript with 
the replacement of bold fonts by semibold. This has worked in the past 
with no problems.


(Is there a way to accomplish this without replicating the whole of the 
typescript?)


   \starttypescript [serif] [libertinus]
\setups[font:fallback:serif]
\definefontsynonym [LibertinusSerif-Regular]
   [file:libertinusserif-regular]
\definefontsynonym [LibertinusSerif-Italic]
[file:libertinusserif-italic]
\definefontsynonym [LibertinusSerif-Slanted]
   [file:libertinusserif-italic]
   %   \definefontsynonym [LibertinusSerif-Bold]
   %  [file:libertinusserif-bold]
   %   \definefontsynonym [LibertinusSerif-BoldItalic]
   %  [file:libertinusserif-bolditalic]
   %   \definefontsynonym [LibertinusSerif-BoldSlanted]
   %  [file:libertinusserif-bolditalic]
\definefontsynonym [LibertinusSerif-Bold]
   [file:libertinusserif-semibold]
\definefontsynonym [LibertinusSerif-BoldItalic]
   [file:libertinusserif-semibolditalic]
\definefontsynonym [LibertinusSerif-BoldSlanted]
   [file:libertinusserif-semibolditalic]
   \stoptypescript
   \starttypescript [serif] [libertinus] [name]
\setups[font:fallback:serif]
\definefontsynonym [Serif]
[LibertinusSerif-Regular]
[features=default]
\definefontsynonym [SerifItalic]
[LibertinusSerif-Italic]
[features=default]
\definefontsynonym [SerifSlanted]
[LibertinusSerif-Slanted]
[features=default]
\definefontsynonym [SerifBold]
[LibertinusSerif-Bold]
[features=default]
\definefontsynonym [SerifBoldItalic]
[LibertinusSerif-BoldItalic]
[features=default]
\definefontsynonym [SerifBoldSlanted]
[LibertinusSerif-BoldSlanted]
[features=default]
\definefontsynonym [SerifCaps]
[LibertinusSerif-Regular]
[features=smallcaps]
   \stoptypescript
   \definetypeface[mainface][rm][serif][libertinus][default]
   \setupbodyfont [mainface]
   \starttext
Text
\bf bold text
   \stoptext

--
Rik

___
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] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Hans Hagen

On 7/15/2017 9:11 PM, Alan Braslau wrote:

On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen  wrote:


best play with textbackgrounds

\starttext

\starttextbackground
\dorecurse{10}{test\footnote{tufte}: \input tufte\par}
\stoptextbackground

\stoptext



I have found the following to be necessary when using textbackground,
especially when backgrounds cross page boundaries:

\setnewconstant\kindofpagetextareas\plusone
% partial page. HH: low level, no high level switch (yet)

Maybe Hans can explain this?
Because it's an option (with no parameter yet .. not sure where/how to 
configure it; for floats one can do it per float)


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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Alan Braslau
On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen  wrote:

> best play with textbackgrounds
> 
> \starttext
> 
> \starttextbackground
> \dorecurse{10}{test\footnote{tufte}: \input tufte\par}
> \stoptextbackground
> 
> \stoptext
> 

I have found the following to be necessary when using textbackground,
especially when backgrounds cross page boundaries:

\setnewconstant\kindofpagetextareas\plusone
% partial page. HH: low level, no high level switch (yet)

Maybe Hans can explain this?

Alan


___
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] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Pablo Rodriguez
On 07/15/2017 08:07 PM, Mathias Schickel wrote:
>> Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez:
>> [...]
>> Just in case I got you wrong: is your issue that the background also
>> covers the footnotes, such as in the first and second pages from:
>>
>>\automigrateinserts
>>\setuptextbackground[location=paragraph]
>>\starttext
>>\dorecurse{10}{\starttextbackground
>>test\footnote{tufte}: \input knuth\hfill
>>\stoptextbackground\blank}
>>\stoptext
> 
> What can be done that this does not happen? (Your example?) Here we
> have a minimal example, your own. ;-)
Report the bug so that Hans can fix it :-).

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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Mathias Schickel

> Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez :
> 
> On 07/14/2017 05:22 PM, Mathias Schickel wrote:
>> This indeed does the trick! Thank you very much! Maybe I will take
>> use of Hans’ suggestion about textbackgrounds, but as I remember I have
>> switched from those to backgrounds because they sometimes showed strange
>> behaviour at page breaks if formulas are involved (leaving far too much
>> space at the bottom of a page that could be used if I used backgrounds).
>> Maybe I will be able to write a minimal example showing this effect of
>> textbackgrounds.
>> 
>> However, I have met some issues using your solution, Aditya, with
>> \automigrateinserts. I got one text in background containing a footnote
>> that has been rendered onto the footnote. Of course this can only happen
>> if the backgrounded text appears at the bottom of a page. It is a little
>> hard to get a minimal example showing this. But I think everyone can
>> imagine what I mean.
> 
> Mathias,
> 
> it would be weird that body text ended up in a footnote, but without a
> source it will be much harder to fix the bug.

Indeed the text was written onto the text of the footnote, so both texts did 
overlap. Sadly I was not able to reproduce it, since meanwhile I did change my 
document a bit (and updated to the latest beta). But it was in combination with 
mathematical theorems (so I defined the background to highlight theorems), this 
means it was in combination with lists.

If I will run into a similar issue or will be able to reproduce it in a minimal 
example I will inform you. But in the latest test I did not get that behaviour 
even if a theorem was extended to the next page and footnotes had been at the 
first page of the theorem. So things worked fine.

> 
> Just in case I got you wrong: is your issue that the background also
> covers the footnotes, such as in the first and second pages from:
> 
>\automigrateinserts
>\setuptextbackground[location=paragraph]
>\starttext
>\dorecurse{10}{\starttextbackground
>test\footnote{tufte}: \input knuth\hfill
>\stoptextbackground\blank}
>\stoptext
> 
> Just in cas it helps,

What can be done that this does not happen? (Your example?) Here we have a 
minimal example, your own. ;-)

> 
> Pablo

Best Mathias


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

___
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] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Pablo Rodriguez
On 07/14/2017 05:22 PM, Mathias Schickel wrote:
> This indeed does the trick! Thank you very much! Maybe I will take
> use of Hans’ suggestion about textbackgrounds, but as I remember I have
> switched from those to backgrounds because they sometimes showed strange
> behaviour at page breaks if formulas are involved (leaving far too much
> space at the bottom of a page that could be used if I used backgrounds).
> Maybe I will be able to write a minimal example showing this effect of
> textbackgrounds.
> 
> However, I have met some issues using your solution, Aditya, with
> \automigrateinserts. I got one text in background containing a footnote
> that has been rendered onto the footnote. Of course this can only happen
> if the backgrounded text appears at the bottom of a page. It is a little
> hard to get a minimal example showing this. But I think everyone can
> imagine what I mean.

Mathias,

it would be weird that body text ended up in a footnote, but without a
source it will be much harder to fix the bug.

Just in case I got you wrong: is your issue that the background also
covers the footnotes, such as in the first and second pages from:

\automigrateinserts
\setuptextbackground[location=paragraph]
\starttext
\dorecurse{10}{\starttextbackground
test\footnote{tufte}: \input knuth\hfill
\stoptextbackground\blank}
\stoptext

Just in cas it helps,

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
___

Re: [NTG-context] generic font loader + luaotfload: 'nodepool' (a nil value)"

2017-07-15 Thread Hans Hagen

On 7/15/2017 12:56 AM, Ulrike Fischer wrote:

Am Fri, 14 Jul 2017 20:56:15 +0200 schrieb Hans Hagen:


And what I should do about the "return new_kern(kern)"?


local g = new("kern")
setfield(g,"kern",kern)


Ah. This here now worked

-- UF changed 2017-07-14
local newUF = node.direct.new

local kern_injector = function (fillup, kern)
  if fillup then
local g = newUF("glue")
setfield(g, "stretch", kern)
setfield(g, "stretch_order", 1)
return g
  end
local g = newUF("kern")
setfield(g,"kern",kern)
--   return g
end
-- /UF

Is is correct? (I'm wondering if there should be return value at the
end, it worked with and without and I have no idea if it makes a
difference).
the return probably has to be there because (i assume) that kern or glue 
is injected


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