Re: [NTG-context] just some questions

2015-11-18 Thread Carlos
Sorry, perhaps with the stable version this issue will get resolved.

Thank you for the warm welcome. :)

___
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] "Trial typesetting" in ConTeXt / lua ?

2015-11-18 Thread josephcanedo
> are you sure that you defined that font and that it's the current font?

I’ll double check my code and may I send you a MWE if I can still not see the 
ligatures and stuff. I’ll try also with new beta (have not installed yet)  just 
in case.


> just put stuff in vboxes and loop over that; at the tex end with calls to lua



Not sure I follow what you mean, sorry about this. I am quite a newbie in 
ConTeXt and in TeX more generally.


Thanks


Joseph





From: Hans Hagen
Sent: ‎Wednesday‎, ‎November‎ ‎18‎, ‎2015 ‎10‎:‎22‎ ‎PM
To: ntg-context@ntg.nl





On 11/18/2015 9:49 PM, josephcan...@gmail.com wrote:
> Hi Hans
>
> First of all, thanks a lot for replying.
>
> I tried your suggestion and it does not seem to work at least for fancy
> features in EB Garamond (historical liguratures and other features).
> I also tried to pass the hbox to tex.linebreak() and got assertion
> failure in luatex.

are you sure that you defined that font and that it's the current font?

> Is there any code snippet available to show the full process in lua code
> (I mean up to shipping the result nodes to the page) ?

no ... thousands of lines spread over many files

> To give some background, I’d like to compute a parshape for some
> paragraphs for which I’d like some special shape. I thought that one
> idea was to build up the lua nodes from text (which has some occasional
> words with  smaller or different font style), compute the width of text
> to figure out a first guess for parshape and then iterate on linebreak
> with different parshape settings to refine the first guess.

just put stuff in vboxes and loop over that; at the tex end with calls 
to lua

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
__
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] "Trial typesetting" in ConTeXt / lua ?

2015-11-18 Thread Hans Hagen

On 11/18/2015 9:49 PM, josephcan...@gmail.com wrote:

Hi Hans

First of all, thanks a lot for replying.

I tried your suggestion and it does not seem to work at least for fancy
features in EB Garamond (historical liguratures and other features).
I also tried to pass the hbox to tex.linebreak() and got assertion
failure in luatex.


are you sure that you defined that font and that it's the current font?


Is there any code snippet available to show the full process in lua code
(I mean up to shipping the result nodes to the page) ?


no ... thousands of lines spread over many files


To give some background, I’d like to compute a parshape for some
paragraphs for which I’d like some special shape. I thought that one
idea was to build up the lua nodes from text (which has some occasional
words with  smaller or different font style), compute the width of text
to figure out a first guess for parshape and then iterate on linebreak
with different parshape settings to refine the first guess.


just put stuff in vboxes and loop over that; at the tex end with calls 
to lua


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
___

Re: [NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-18 Thread josephcanedo
Hi Hans


First of all, thanks a lot for replying.


I tried your suggestion and it does not seem to work at least for fancy 
features in EB Garamond (historical liguratures and other features).

I also tried to pass the hbox to tex.linebreak() and got assertion failure in 
luatex. 


Is there any code snippet available to show the full process in lua code (I 
mean up to shipping the result nodes to the page) ?


To give some background, I’d like to compute a parshape for some paragraphs for 
which I’d like some special shape. I thought that one idea was to build up the 
lua nodes from text (which has some occasional words with  smaller or different 
font style), compute the width of text to figure out a first guess for parshape 
and then iterate on linebreak with different parshape settings to refine the 
first guess.


Thanks a lot,


Best regards


Joseph





From: Hans Hagen
Sent: ‎Wednesday‎, ‎November‎ ‎18‎, ‎2015 ‎2‎:‎46‎ ‎AM
To: ntg-context@ntg.nl





On 11/17/2015 9:15 AM, josephcan...@gmail.com wrote:
> Hello,
>
> I was wondering if someone could have some hints on this question,
> anyway, I found the function mknodes() from luaTeX wiki and
> nodes.handlers.characters(head) function in ConTeXt (as it seems that
> node.ligaturing(head) and node.kerning(head) do not seem to do anything).
>
> It seems to work fine (ligatures and font features) expect the kerning.
> Does someone know how to perform the kerning as well ?

I'm not sure if i understand your issue.

traditional ligaturing and kerning is applied when a node list has fonts 
using basemode

\starttext

\startluacode

 local hbox = nodes.typesetters.hpack("Hello World!")

 context("%p",hbox.width)

 nodes.flush_list(hbox)

\stopluacode

\stoptext


> Best regards
>
> Joseph Canedo
>
> *From:* josephcan...@gmail.com 
> *Sent:* ‎Saturday‎, ‎November‎ ‎14‎, ‎2015 ‎11‎:‎16‎ ‎AM
> *To:* ntg-context@ntg.nl 
>
> Dear all,
>
> Is it possible in ConTeXt within lua code to do “trial typesetting” (not
> sure that’s best name for what I would like to achieve) ? By this I mean
> store some input (with text and macros) in some buffer and do what
> ConTeXt does normally (parsing, create nodes …) but instead of shipping
> the nodes to line breaking algorithm and to the page output, only
> retrieve the nodes and after discard them. This is to get an estimate of
> the total text width within a paragraph (to calculate some shape on the
> paragraph).

you can assemble a list of characters and then do an hpack on them

> I browsed the lua code from http://source.contextgarden.net/
> 
>  but
> I do not dare to use too low level lua functionality.
>
> Many thanks for any hint (even a pointer to lua function).
>
> Best regards
>
> Joseph Canedo
>
>
>
>
> ___
> 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
> ___
>


-- 

-
   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
__
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] [OT] What is TACO?

2015-11-18 Thread luigi scarso
https://github.com/Microsoft/TACO

"...TACO makes it crazy-easy to setup your dev environment so you can begin
coding immediately."

Sorry, I  was not able to resist.

-- 
luigi
___
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] just some questions

2015-11-18 Thread Carlos

Hello list.

I just have a pairof questions. Could someone point me to the fonts'
script used by mtxrun?

back in, let's see.. 2011, Mojca replied to Vladimir Lomov, with:

> If TEXMFSYSVAR is writable, the cache goes to TEXMFSYSVAR. If it is
> not, the cache goes to TEXMFVAR. The idea behind this is that
> installer updates the cache when new packages are added, while users
> can still generate their own cache.

And yes, I even removed the cache file, since it generates itself,
correct? 

I just can't figure out why this problem occurs with the files packed for
ubuntu texlive, and I'm almost sure of not having duplicate files, unless I
probably missed them, of course! 

I think I tried all the options available. 

I know mtxrun script is implemented there as well (in ubuntu texlive).

I tried with separate installations first, and finally settled with texlive
full, but it made no difference. 

I know it works in x64 for example, but for some reason, it refuses to
follow the exemplary behavior in an i386. (Most of the modules fail or
wouldn't find types). 

And why would ubuntu maintainers have anything to do with it? It's
probably my own misconfiguration. But what could be the cause?

Thank you in advance, for your time. :)

Bye bye
Carlos








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