From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82297 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: extra line after switchtobodyfont Date: Fri, 3 May 2013 11:40:17 +0000 Message-ID: References: <6E8C04A1-A021-43C9-AF3C-708F3F46A378@uva.nl> <88028BA1-030E-4283-9679-D5ACE3E50F8F@uva.nl> <1CABF059-27E5-4025-ADCE-768AFF363BC6@gmail.com> <758AC4DD-17D4-4367-8F62-881240B22536@uva.nl> <05F640D1-3776-48FA-BBD9-95BA99812649@gmail.com> <17C6830E-0E52-4775-B34E-00157E110BF5@uva.nl> <117D312B-EBF9-4771-8AB7-195114E9B4E9@gmail.com> <7DF6795D-D2FD-428F-B13E-7274EDDDAC1A@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0273439771==" X-Trace: ger.gmane.org 1367581238 31764 80.91.229.3 (3 May 2013 11:40:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 May 2013 11:40:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 03 13:40:39 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UYELu-0005jC-Sf for gctc-ntg-context-518@m.gmane.org; Fri, 03 May 2013 13:40:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A1AE101E5; Fri, 3 May 2013 13:40:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id siUCGp2ih1Ou; Fri, 3 May 2013 13:40:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2176E101E7; Fri, 3 May 2013 13:40:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56657101E7 for ; Fri, 3 May 2013 13:40:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L0+GN+jWDeU2 for ; Fri, 3 May 2013 13:40:32 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id E76C4101E5 for ; Fri, 3 May 2013 13:40:21 +0200 (CEST) Original-Received: from HUB02.uva.nl (hub02.uva.nl [146.50.108.231]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r43BeIC6018735 for ; Fri, 3 May 2013 13:40:21 +0200 Original-Received: from MBX02.uva.nl ([169.254.2.121]) by HUB02.uva.nl ([2002:9232:6ce7::9232:6ce7]) with mapi id 14.02.0342.003; Fri, 3 May 2013 13:40:18 +0200 Thread-Topic: [NTG-context] extra line after switchtobodyfont Thread-Index: AQHOR3p04ongLincgEieeILJ5lfyRJjy8NCAgAAClYCAABraAIAAEzIAgAAKlQCAAAl2AA== In-Reply-To: <7DF6795D-D2FD-428F-B13E-7274EDDDAC1A@uva.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.231; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJvnEjln - 130c561ba0e8 - 20130503 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82297 Archived-At: --===============0273439771== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DA9DC11B9F354E06AB781BE4B894D45Auvanl_" --_000_DA9DC11B9F354E06AB781BE4B894D45Auvanl_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable This might be interesting. The example I gave before was now typeset with t= ype-imp-euler.mkiv cannibalized to \endinput in the very first line. Then t= here are no spurious spaces and 5 executions of the recursive loop from \t_= font_typescripts. Thus, even though in type-imp-euler.mkiv all empty lines were removed, all = intermediate spaces removed, all macros ended in ]% en texgyre not loaded, = there is still spurious space. From the log I see that there are requests f= or [mono][modern] etc. In order to locate these I have reduced the euler file to one define: \starttypescript[euler]% \definetypeface[euler][\s!mm][\s!math][euler][\s!default]% \quittypescriptscanning \stoptypescript Now I get one or possibly two spurious spaces. But I cannot easily find wh= ich typescript file is involved. Do you know this? Exerpt from the log: ++++++++ > fonts > request: [euler] [] [] fonts > auto load typescript file 1: [euler] fonts > request: [euler] [] [] (/Users/hansm/TeX/texmf/tex/context/base/type-imp-euler.mkiv) fonts > match: [euler] fonts > define: [euler] [mm] [math] [euler] fonts > request: [math] [euler] [name] fonts > auto load typescript file 2: [euler] fonts > request: [math] [euler] [name] fonts > request: [math] [default] [size] fonts > match: [math] [default] [size] fonts > defining > font with asked name 'unknown' is not found us= ing lookup 'file' fonts > defining > unknown font 'unknown', loading aborted fonts > defining > unable to define 'unknown' as 'euler-10pt-mm-m= b--3' fonts > defining > font with asked name 'unknown' is not found us= ing lookup 'file' fonts > defining > unknown font 'unknown', loading aborted fonts > defining > unable to define 'unknown' as 'euler-10pt-mm-m= b--2' fonts > defining > font with asked name 'unknown' is not found us= ing lookup 'file' fonts > defining > unknown font 'unknown', loading aborted fonts > defining > unable to define 'unknown' as 'euler-10pt-mm-m= b--1' -------- > By the way. Is it correct that alone \definetypeface, \definefontsynonym, \= starttypescriptcollection must be closed by ]% while for example \starttype= script[] seems to do no harm? Hans van der Meer On 3 May 2013, at 1:06 PM, "Meer, H. van der" > wrote: On 3 May 2013, at 12:28 PM, Wolfgang Schuster > wrote: Do you mean the missing % after \doifsomething etc.? These lines don=92t ne= ed a % because TeX gobbles the spaces between the arguments. I wasn't aware of that, but will remember. Any idea how further? More from \loadfontgoodies[lm]? To what file does tha= t resolve? The commands loads lm.lfg The somewhat simpleminded idea of adding \ignorespaces at the end of the \d= efinetypeface macro and friends, will not work I am afraid. Is there a possibilty to remove all whitespace from the tokens in \t_font_t= ypescripts or prevent them from entering? Perhaps in the lua end? Or is it possible to assign to all whitespace characters (space, tab, newli= ne) a category code 9 when reading/processing the typescript definitions? Hans van der Meer --_000_DA9DC11B9F354E06AB781BE4B894D45Auvanl_ Content-Type: text/html; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable This might be interesting. The example I gave before was now typeset with t= ype-imp-euler.mkiv cannibalized to \endinput in the very first line. Then t= here are no spurious spaces and 5 executions of the recursive loop from&nbs= p;\t_font_typescripts.
Thus, even though in type-imp-euler.mkiv all empty lines were rem= oved, all intermediate spaces removed, all macros ended in ]% en texgyre no= t loaded, there is still spurious space. From the log I see that there are = requests for [mono][modern] etc.

In order to locate these I have reduced the euler file to one define:<= /div>
\starttypescript[euler]%
\definetypeface[euler][\s!mm][\s!math][euler][\s!default]%
\quittypescriptscanning
\stoptypescript

Now I get one  or possibly two spurious spaces. But I cannot easi= ly find which typescript file is involved. Do you know this? Exerpt from th= e log:

+= 3;++++++        > 
fonts &n= bsp;         > request: [euler] [] []
fonts &n= bsp;         > auto load typescript file 1: [euler]<= /div>
fonts &n= bsp;         > request: [euler] [] []
(/Users/= hansm/TeX/texmf/tex/context/base/type-imp-euler.mkiv)
fonts &n= bsp;         > match: [euler]
fonts &n= bsp;         > define: [euler] [mm] [math] [euler]
fonts &n= bsp;         > request: [math] [euler] [name]
fonts &n= bsp;         > auto load typescript file 2: [euler]<= /div>
fonts &n= bsp;         > request: [math] [euler] [name]
fonts &n= bsp;         > request: [math] [default] [size]
fonts &n= bsp;         > match: [math] [default] [size]
fonts &n= bsp;         > defining > font with asked name 'u= nknown' is not found using lookup 'file'
fonts &n= bsp;         > defining > unknown font 'unknown',= loading aborted
fonts &n= bsp;         > defining > unable to define 'unkno= wn' as 'euler-10pt-mm-mb--3'
fonts &n= bsp;         > defining > font with asked name 'u= nknown' is not found using lookup 'file'
fonts &n= bsp;         > defining > unknown font 'unknown',= loading aborted
fonts &n= bsp;         > defining > unable to define 'unkno= wn' as 'euler-10pt-mm-mb--2'
fonts &n= bsp;         > defining > font with asked name 'u= nknown' is not found using lookup 'file'
fonts &n= bsp;         > defining > unknown font 'unknown',= loading aborted
fonts &n= bsp;         > defining > unable to define 'unkno= wn' as 'euler-10pt-mm-mb--1'
--------=         > 


By the way. Is it correct that alone \definetypeface, \defin= efontsynonym, \starttypescriptcollection must be closed by ]% while for exa= mple \starttypescript[] seems to do no harm?
 
Hans van der Meer



On 3 May 2013, at 1:06 PM, "Meer, H. van der" <H.vanderMeer@uva.nl> wrote:


On 3 May 2013, at 12:28 PM, Wolfgang Schuster <schuster.wolfgang@gmail.com>
wrote:
Do you mean the missing % after \doifsomething et= c.? These lines don=92t need a % because TeX gobbles the spaces between the= arguments.

I wasn't aware of that, but will remember.

Any idea how further? More from \loadfontgoodies[= lm]? To what file does that resolve?

The commands loads lm.lfg


The somewhat simpleminded idea of adding \ignorespaces at the end of the \d= efinetypeface macro and friends, will not work I am afraid.
Is there a possibilty to remove all whitespace from the tokens in \t_font_t= ypescripts or prevent them from entering? Perhaps in the lua end?
Or is it possible to assign to all whitespace characters (space, tab, newli= ne) a category code 9 when reading/processing the typescript definitions?
Hans van der Meer



--_000_DA9DC11B9F354E06AB781BE4B894D45Auvanl_-- --===============0273439771== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0273439771==--