From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84734 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Re: Code Called Twice? Date: Fri, 11 Oct 2013 09:39:17 -0700 Message-ID: References: <20131011072742.GG18324@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381509563 19900 80.91.229.3 (11 Oct 2013 16:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2013 16:39:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 11 18:39:25 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VUfkL-0001J1-7Y for gctc-ntg-context-518@m.gmane.org; Fri, 11 Oct 2013 18:39:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9274C101EA; Fri, 11 Oct 2013 18:36:48 +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 LAQHzOr3CR9X; Fri, 11 Oct 2013 18:36:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 27562101DE; Fri, 11 Oct 2013 18:36:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 853F7101DE for ; Fri, 11 Oct 2013 18:36:45 +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 vX3QVSJtr03z for ; Fri, 11 Oct 2013 18:36:44 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 8DAC210193 for ; Fri, 11 Oct 2013 18:36:44 +0200 (CEST) Original-Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9BGdIrg013571 for ; Fri, 11 Oct 2013 18:39:19 +0200 Original-Received: by mail-ie0-f176.google.com with SMTP id u16so1379418iet.35 for ; Fri, 11 Oct 2013 09:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=x/wRtSfO2OlS8aHnROcLBBidOXIs/C9MkclYuIi1YHA=; b=MRwTeDW3EgRA1zG6eYZJ5jjRMBO8ZbNIXCtPy/5pxejGX+Kwa6z8eDr7Mo+//6OC2Q rUvFy6fhhl98JOeN7NY3pIQ8UVdXXKVAjCm45DADFbrspEC19M2DwhiFMHeFtbIeBXbA PADqSdLh+T8ctZlychMK50k4ySNxDimvbkgv18wNnGVuaBNZMwJxLhr143gu48AH2KCp 0LewaX2KzK1sGHYg7SfRiBE0yibI8fRD7hIeC1dP061lnjuavKOOIJgbifCdEeb7US0I XcPgx/xpK0bFXeB6SIoNPzz65G//lmCQEE52cSq5ercREBv6Ol5NrIfAwbdLhTZQQGhz 8raA== X-Received: by 10.50.108.71 with SMTP id hi7mr3318985igb.59.1381509557677; Fri, 11 Oct 2013 09:39:17 -0700 (PDT) Original-Received: by 10.42.6.203 with HTTP; Fri, 11 Oct 2013 09:39:17 -0700 (PDT) In-Reply-To: <20131011072742.GG18324@homerow> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::230; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KzQDjhm - 7b7149c17a53 - 20131011 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:84734 Archived-At: Hi, > typeset using TeX. After it's typeset MP picks it up in a second > run. That also explains why the spacing between words is correct (I didn't think MP could typeset text). > Maintain a vector with the last two elements to check against. An interesting approach; I used a Boolean flag as per this thread: http://www.ntg.nl/pipermail/ntg-context/2011/056078.html Works as expected. Thank you for the all help! ___________________________________________________________________________________ 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 ___________________________________________________________________________________