[NTG-context] beta

2018-06-22 Thread Akira Kakuto
I get the same error after the update with 


\starttext
\externalfigure[A]
\stoptext

where A.pdf is in the current folder. I'm on windows 10.


Here it works OK:

LuaTeX, Version 1.09.0
Development id: 6822

Thanks,
Akira

___
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] Using goto in lua

2018-06-22 Thread Christoph Reller
On Fri, 22 Jun 2018 13:57:05 +0200 Wolfgang Schuster
 wrote:
>
> Hans gave a solution to this a while ago:
> https://mailman.ntg.nl/pipermail/ntg-context/2018/090833.html
>
> Wolfgang

Thank you Wolfgang for pointing me to this solution!

Cheers,
Christoph
___
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] bidi in footnotes

2018-06-22 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد 
22. Juni 2018 um 21:01
On Thu, 21 Jun 2018 08:36:52 -0600, Alan Braslau 
 wrote:



Many thanks. Is there (Hans? Wolfgang?) available somewhere

1. a complete list of these environments whose typographical settings 
are decoupled from the rest of the document?


The problem you mentioned isn’t limited to bidi but applies also to 
linbreaking for east asian languages (e.g. chinese) and fixing it makes 
sense.



The reason why you have to re-enable the functions is that certain 
environment disable a number of Lua attributes to avoid side effects, 
e.g. to change the footnote color when you change the text color at the 
page break.



One way to fix this is to make the attributes of the affected commands 
global which means they won’t be reseted, e.g. change the line 
(typo-dir.mkiv)


\definesystemattribute[directions][public]

to

\definesystemattribute[directions][public,global]


Another way is to re-enable the commands in footnotes etc.

\appendtoks
\ifcase\directionsbidimode \else
\setdirection[\number\directionsbidimode]%
\fi
\to \everybeforenoteinsert


There are three parts in context where attributes are disabled which 
affects bidi:


1. Note inserts which affects \footnote.

2. Margin data which affects \inmargin etc.

3. The output routine which affects header and footer lines.


2. a complete list of those typographical settings (bidi, whitespace, 
etc,) which are have to explicitly setup for such environments?



Whitespace etc. are unrelated to the problem above and can be changed 
with the normal setup-commands.



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] bidi in footnotes

2018-06-22 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 21 Jun 2018 08:36:52 -0600, Alan Braslau  
 wrote:



On Thu, 21 Jun 2018 06:20:45 -0600
Idris Samawi Hamid ادريس سماوي حامد  wrote:


Many thanks. Question: Is this use of setups now the "official" or
preferred way to handle footnote typography options? On the surface,
it appears to be overkill. For the declaration

\setupdirections[bidi=global]

shouldn't that mean that bidi is applied, well, globally?


The same holds for \setupalign[verytolerant], for example, that does
not get applied to a (figure,table) caption...

These environments (captions, footnotes, ...) inherit their settings
and then live independently.


Many thanks. Is there (Hans? Wolfgang?) available somewhere

1. a complete list of these environments whose typographical settings are  
decoupled from the rest of the document?


2. a complete list of those typographical settings (bidi, whitespace,  
etc,) which are have to explicitly setup for such environments?


If not, such lists should be compiled in lieu of trial and error -)

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] beta

2018-06-22 Thread Ulrike Fischer
Am Fri, 22 Jun 2018 17:30:46 +0200 schrieb Wolfgang Schuster:


>> ...est/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:1398:
>> image.ownerpassword can not be set
>> stack traceback:

> Do you get the same error message with the following minimal example:

I get the same error after the update with 

\starttext
 \externalfigure[A]
\stoptext

where A.pdf is in the current folder. I'm on windows 10.  

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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

2018-06-22 Thread Wolfgang Schuster



MF 
22. Juni 2018 um 17:46

Yes, of course, same error; BTW, the pdf i'm using is not password
protected.


I’m getting the same message as you when I try to insert pdf file 
created by context itself



 begin example
\starttext

\startbuffer
Can this file be loaded?
\stopbuffer

\typesetbuffer[scale=500]

\stoptext
 end example


or when I try to insert cow.pdf


 begin example
\setupexternalfigure[location=default]

\starttext
\externalfigure[cow]
\stoptext
 end example


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] beta

2018-06-22 Thread Ulrike Fischer
Am Fri, 22 Jun 2018 16:09:26 +0200 schrieb Hans Hagen:

> I uploaded a beta (with an seeindex fix).

I still get an error about a missing function registersplit when
using the new generic loader together with luaotfload. 

Looking at the code I can see that there is an "if context" switch
around the relevant part (around line 34058):

definers.makespecification=makespecification
if context then --<
  local splitter,splitspecifiers=nil,"" 
...

Removing this (and the "end" naturally) then it worked fine. 


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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

2018-06-22 Thread MF

> >  
> Do you get the same error message with the following minimal example:
> 
> \starttext
> \externalfigure[figure]
> \stoptext
> 

Yes, of course, same error; BTW, the pdf i'm using is not password
protected.
___
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] beta

2018-06-22 Thread Wolfgang Schuster



MF 
22. Juni 2018 um 16:36
Tested with my setup, which -- you know -- is quite complex.
This is the only error:

lua error > lua error on line 6 in file
/home/massi/context/latest/tex/texmf-
context/tex/context/base/mkiv/cont-yes.mkiv:

...est/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:1398:
image.ownerpassword can not be set
stack traceback:
[C]: in function 'img.new'
...est/tex/texmf-context/tex/context/base/mkiv/grph-
inc.lua:1398: in function <...est/tex/texmf-
context/tex/context/base/mkiv/grph-inc.lua:1364>
(...tail calls...)


The error is triggered by this line:

context(
"\\setlayer[layername]{\\externalfigure[figure.pdf][scale=900]}" )

Since it's a pdf figure, it should be linked to the new pdf library.


Do you get the same error message with the following minimal example:

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

Re: [NTG-context] beta

2018-06-22 Thread MF
Tested with my setup, which -- you know -- is quite complex.
This is the only error:

lua error   > lua error on line 6 in file
/home/massi/context/latest/tex/texmf-
context/tex/context/base/mkiv/cont-yes.mkiv:

...est/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:1398:
image.ownerpassword can not be set
stack traceback:
[C]: in function 'img.new'
...est/tex/texmf-context/tex/context/base/mkiv/grph-
inc.lua:1398: in function <...est/tex/texmf-
context/tex/context/base/mkiv/grph-inc.lua:1364>
(...tail calls...)


The error is triggered by this line:

context(
"\\setlayer[layername]{\\externalfigure[figure.pdf][scale=900]}" )

Since it's a pdf figure, it should be linked to the new pdf library.

Best wishes,
Massi
___
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] beta

2018-06-22 Thread Hans Hagen

Hi,

I uploaded a beta (with an seeindex fix). If you use betas for 
production, best save your current one as there are some changes deep 
down in the pdf inclusion. This relates to upcoming luatex using 
different pdf inclusion code in the backend (plus a new pdf library that 
replaces the current one).


I don't expect real problems but i might have touched some context code 
in the process with possible side effects. Nothing that can't be fixed 
easily.


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] Using goto in lua

2018-06-22 Thread Wolfgang Schuster
Hans gave a solution to this a while ago: 
https://mailman.ntg.nl/pipermail/ntg-context/2018/090833.html


Wolfgang

Christoph Reller 
22. Juni 2018 um 13:52
Hi,

As mentioned in cld-mkiv.pdf, the entire ConTeXt interface can be 
called from lua: This is great!


Unfortunately the ConTeXt command \goto is a little problematic 
because goto is a lua keyword. Therefore, the following leads to a lua 
error:


context.goto("text", { "label" })

I guess the only way to call goto from lua is

context(false, "\\goto{text}[label]")

Am I correct?

Cheers,

Christoph

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

[NTG-context] Using goto in lua

2018-06-22 Thread Christoph Reller
Hi,

As mentioned in cld-mkiv.pdf, the entire ConTeXt interface can be called
from lua: This is great!

Unfortunately the ConTeXt command \goto is a little problematic because
goto is a lua keyword. Therefore, the following leads to a lua error:

context.goto("text", { "label" })

I guess the only way to call goto from lua is

context(false, "\\goto{text}[label]")

Am I correct?

Cheers,

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