[NTG-context] [fontloader] positioning of diacritics

2014-12-14 Thread Philipp Gesang
Good morning!

This report by Github user SverreStausland has been lingering on
the Luaotfload tracker for a while: There appears to be a
difference between how certain faces of the Libertine family
handle the placement of diacritics.

With Version 5.1.2 of the family [0], the "RZI" version
(fullname: “Linux Libertine O Semibold Italic”) shows a different
behavior than its “RZ” companion (“Linux Libertine O Semibold”).
Short demonstration in Context:

\definefontfeature [ourfeats] [default] [mode=node]

\starttext
  \start \definedfont [file:LinLibertine_RI.otf*ourfeats]  V\char"0306 \stop
  \start \definedfont [file:LinLibertine_RZI.otf*ourfeats] V\char"0306 \stop
\stoptext

Note the misaligned combining breve above the latter. An
equivalent test for Plain [1] shows that the correct position
information is there somewhere in the font, since the Xetex
engine typesets it correctly.

Best regards,
Philipp

[0] MD5 hashes of the files:

4bfd3481c1486f5d1ea13304981df7a6  LinLibertine_RZI.otf
153765bd2b29d6026fb2fa0b198a4995  LinLibertine_RZ.otf

[1] https://bitbucket.org/phg/lua-la-tex-tests/src/tip/pln-diacritics-1.tex



pgpn9cMzY_R_j.pgp
Description: PGP signature
___
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] PSTricks in Context

2014-12-14 Thread context context
Could someone tell me how to install and use PSTricks in Context

Many Thanks
Jeroen
___
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] [fontloader] crash in font-otf.lua / actions["reorganize glyph anchors"]

2014-12-14 Thread Philipp Gesang
Hi Hans,

this bug was reported a while ago by user Thérèse on
tex.stackexchange.com [1]. The font “Eadui.ttf” [2] causes the
fontloader to access a nil value because the “Anchor-1” table is
sparse (nil at index 3). Test file for Context:

https://bitbucket.org/phg/lua-la-tex-tests/src/tip/cnt-eadui.tex

Patch attached, though I suspect it covers only the symptoms.

Philipp

[1] http://tex.stackexchange.com/q/195481/14066
[2] Download at http://openfontlibrary.org/font/eadui

diff --git a/tex/context/base/font-otf.lua b/tex/context/base/font-otf.lua
index 302d8ea..de392a9 100644
--- a/tex/context/base/font-otf.lua
+++ b/tex/context/base/font-otf.lua
@@ -2010,7 +2010,11 @@ actions["reorganize glyph anchors"] = function(data,filename,raw) -- when we rep
 for tag, specification in next, data do
 for i=1,#specification do
 local si = specification[i]
-specification[i] = { si.x or 0, si.y or 0 }
+if si then
+  specification[i] = { si.x or 0, si.y or 0 }
+else
+  specification[i] = {  }
+end
 end
 end
 else


pgp7OErflgPnc.pgp
Description: PGP signature
___
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] [fontloader] node injector / december 3 sync

2014-12-14 Thread Hans Hagen

On 12/14/2014 2:45 PM, Philipp Gesang wrote:

Hi Hans,

from the huge changeset two weeks ago:

  +texio.write_nl("The font code has been brought in sync with the context 
version of 2014.12.01 so")
  +texio.write_nl("if things don't work out as expected the interfacing needs to 
be checked. When")

-- Message received ;) First off, thanks for bringing the
fontloader into sync again. So far I haven’t noticed any
obviously broken features.

However, something is off with the node injector. We have a bug
reported by Hironori Kitagawa that occurs with the ``palt``
feature in node mode:

 http://tug.org/pipermail/luatex/2014-November/004976.html

Importing the shiny new font injector into the merged fontloader
fixes the issue. FWIW here are test files

 https://bitbucket.org/phg/lua-la-tex-tests/src/tip/cnt-features-12-palt.tex
 https://bitbucket.org/phg/lua-la-tex-tests/src/tip/pln-features-12-palt.tex

The Context version runs fine whereas the plain one does so only
after my “fix”. The same is true for Context itself: replace
font-inj.lua with node-inj.lua in the format to reproduce the
issue. Is there a fix to the fontloader, perhaps only temporarily
until the revised injector becomes ready?


not really as the new injector does more ... also, the new code is kind 
of beta so it might not be a good idea to use that in latex already ... 
i'm still working on some issues with disc nodes and fonts that have 
ligatures that are not ligatures


so, i'd first like to do more tests here; of course you can use the new 
injector if you want ... (i'm not touching generic now while messing 
with the context variant)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] [fontloader] node injector / december 3 sync

2014-12-14 Thread Philipp Gesang
Hi Hans,

from the huge changeset two weeks ago:

 +texio.write_nl("The font code has been brought in sync with the context 
version of 2014.12.01 so")
 +texio.write_nl("if things don't work out as expected the interfacing 
needs to be checked. When")

-- Message received ;) First off, thanks for bringing the
fontloader into sync again. So far I haven’t noticed any
obviously broken features.

However, something is off with the node injector. We have a bug
reported by Hironori Kitagawa that occurs with the ``palt``
feature in node mode:

http://tug.org/pipermail/luatex/2014-November/004976.html

Importing the shiny new font injector into the merged fontloader
fixes the issue. FWIW here are test files

https://bitbucket.org/phg/lua-la-tex-tests/src/tip/cnt-features-12-palt.tex
https://bitbucket.org/phg/lua-la-tex-tests/src/tip/pln-features-12-palt.tex

The Context version runs fine whereas the plain one does so only
after my “fix”. The same is true for Context itself: replace
font-inj.lua with node-inj.lua in the format to reproduce the
issue. Is there a fix to the fontloader, perhaps only temporarily
until the revised injector becomes ready?

Best,
Philipp




pgpsX1oE9sEkr.pgp
Description: PGP signature
___
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] help with command definition

2014-12-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A7,landscape]
\def\slide#1{\startstandardmakeup#1\stopstandardmakeup}

\def\codeslide#1{\startstandardmakeup
\starttyping#1\stoptyping\stopstandardmakeup}

\starttext

\startstandardmakeup
\ConTeXt
\stopstandardmakeup

\slide{\ConTeXt}

\slide{\starttyping\ConTeXt\stoptyping}

\codeslide{\ConTeXt}

\startstandardmakeup
\starttyping
\ConTeXt
\stoptyping
\stopstandardmakeup

\stoptext

And two questions:

Why the third makeup gives such verbose output?

Why does \codeslide not work?

I guess this may be related to expansion, but I must confess that I
don’t know what expansion really is.

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