![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 5/7/2013 10:11 PM, Hans Hagen wrote:
On 5/4/2013 6:59 PM, Wolfgang Schuster wrote:
Am 04.05.2013 um 09:21 schrieb Aditya Mahajan
: On 2013-05-03, at 7:36 PM, "Meer, H. van der"
wrote: Seems finally solved (sigh). I cleaned out all files loading typescripts on the fly. - typescript macros ending in ] at the end of a line have now ]% at the end of the line - empty lines have been removed for clarity - all files now have \endinput at the end.
The files changed fit in a 54KB zip and I can send them if Hans/Wolfgang/.. wants to incorporate them in the next beta.
I haven't followed this thread in detail, but an alternative is to redefine \starttypescript etc. to use a different catcode regime so that new lines and spaces are ignores (similar to \starttexdefinition, etc)
A better method is to ignore the endlinechar when typescript files are loaded.
\newcount\savedendlinechar
\starttext
Line 1\crlf \savedendlinechar\endlinechar \endlinechar\minusone \switchtobodyfont[pagella] \endlinechar\savedendlinechar Line 2
\stoptext
in fact, that should happen automatically but maybe i messed up something
(1) i adapted \loadfoundtypescriptfile (order of things, more robust) (2) i adapted type-imp-pagella (had series of two defs per line which introduced the spaces) ----------------------------------------------------------------- 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 -----------------------------------------------------------------