ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* "Trial typesetting" in ConTeXt / lua ?
@ 2015-11-14 10:16 josephcanedo
  2015-11-17  8:15 ` josephcanedo
  0 siblings, 1 reply; 11+ messages in thread
From: josephcanedo @ 2015-11-14 10:16 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 755 bytes --]

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).


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

[-- Attachment #1.2: Type: text/html, Size: 2044 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-11-19 20:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-14 10:16 "Trial typesetting" in ConTeXt / lua ? josephcanedo
2015-11-17  8:15 ` josephcanedo
2015-11-17 22:09   ` josephcanedo
2015-11-18  1:46   ` Hans Hagen
2015-11-18 20:49     ` josephcanedo
2015-11-18 21:22       ` Hans Hagen
2015-11-18 21:36         ` josephcanedo
2015-11-19 16:16           ` josephcanedo
2015-11-19 19:11             ` Hans Hagen
2015-11-19 19:26               ` josephcanedo
2015-11-19 20:36                 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).