From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31318 invoked from network); 7 Dec 2023 18:28:06 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 7 Dec 2023 18:28:06 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 82989483F49 for ; Thu, 7 Dec 2023 19:24:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X5mfKJcOt7Kh for ; Thu, 7 Dec 2023 19:24:07 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 11F1F483D37 for ; Thu, 7 Dec 2023 19:23:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8F0BF483C7B for ; Thu, 7 Dec 2023 19:23:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8rjIs-13mxwJ for ; Thu, 7 Dec 2023 19:23:14 +0100 (CET) Received: from seout14.web-dns1.com (seout14.web-dns1.com [68.168.119.166]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 3E633483B84 for ; Thu, 7 Dec 2023 19:23:12 +0100 (CET) Received: from mailpro1.whc.ca ([51.79.16.13]) by se3.web-dns1.com with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBJ1h-005yXj-MZ for ntg-context@ntg.nl; Thu, 07 Dec 2023 13:23:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jdvb.ca; s=default; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender :Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jKsbQCuJGHBN/O1h6gLmrNmp57+SyI1TePG2XfHsQWQ=; b=uhZZVx3/qw5tHQSIhNMtOCAKk7 ce6rQEkm5MHtzhq5yq/Ul771aDkbowqc96vSRdyXzRaOyMXEdoUaVShAfGwhZ3HghZjky/ZJJvPoQ CN7IL1lT4DpQY880nn+B0SBLgCw2HD1lBCC15CLPfWJHKUIx0AnYHORB1jKfG3INeg9RBTkSJiKr6 9M15AzaLeis0VEnX6DfHoeFf6XaHxmcZKOaYXlV64Yh0S7n+w1lCk8ecoXaHFLN2kxSGz13fTCLAj 92CjFNqMgOla5PTerFwwZhsE60PCqPX8LZkkKLgu7REPgYrSWwp/z0aA4K+vJA+yC2PMmdheN6OqD vRtrRU4g==; Received: from [47.55.144.2] (port=35454 helo=x360) by mailpro1.whc.ca with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rBJ1a-00Ej6R-2F for ntg-context@ntg.nl; Thu, 07 Dec 2023 13:23:09 -0500 Received: by x360 (Postfix, from userid 1000) id 2EE0A1E0AD3; Thu, 7 Dec 2023 14:23:02 -0400 (AST) Date: Thu, 7 Dec 2023 14:23:02 -0400 From: Jim To: ntg-context@ntg.nl Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Microslop: Just say no X-Originating-IP: 51.79.16.13 X-SpamExperts-Domain: out.mailpro1.whc.ca X-SpamExperts-Username: 51.79.16.13 Authentication-Results: web-dns1.com; auth=pass smtp.auth=51.79.16.13@out.mailpro1.whc.ca X-SpamExperts-Outgoing-Class: unsure X-SpamExperts-Outgoing-Evidence: Combined (0.74) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+l7aWHtnWvB+UGKo5+wzw4PUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x+OkQ6e4TPVgvpcS1fNw4ZIpdOJ9Sgfu6rKL8kf6cp2Vcj zpk9qPd97qPOmF5ExUjilbHtbFYVmmyNP/jzd7CCzPgfBgZM0FjuQW6Y55dUiQZmnW/XN+tohdLu D74c7RLUIMwTX/CvUEM55+RnwH9cg8CBO1Snvm6qXHQp7O9kdVyTPc8vWxb47UCRBAjvbq8BGzKf EMfQP5IsMlZ0RJfO3ceUEtcBrRN3cOZEdcQPT+ZG1fUd+zsVv0CjT0c5StJuxHTyr20QCMWbZvJ/ 43O0YO/Ae1h1hLGGi4ebv387haIyTxfBkXia0fODtmvCePe9o1PoItNcDLylAM0FmDr5gO1wm8NE k1wbhGTfLxHk2mErPLbt0n54j3vHX4q9ucblgTl6fJxyntEfhZCKje4ZIikIfn4yKSMV12lQWi2L RJlKOaZVvWPNYKOkeGHVaNmpda9O3Jm3n4TasdFPGI49Ap/fepC1NisM+LESvgPZp60jiD6XqsJZ tjQxlyCdsewIT+OdvvcVHuc3/dNTf86WkKvh6KEat6haqat8Ve5HLoK9BmdR/hs1eilY5512vNUZ U/9HqfWQZiE3AkP7WzFvTMm+RdW/uBJnu3u5UnmMUAjc02b5jkFQobPtfIMRZKkf45ZSyy4dc2Mg P6Eqbf2YMR3EqJ9Y5oosudd3N5Sg6nZ/NG7yVbVITUmnPVcwl9lVRLmLS4N/Abf0lJm43gUbXPWl FdaGOH191uXjgjQN/WFpsZaZSrHKzi9a18qWWyBuSt2KGbzCxGga80a3XdQOkqPmIeW3IkXkaI0b vQblVXM6mCHEVkRugaawCPSl0iZvgRtea07paRiSLL2ShuV4mfeo0mGANbykyMXhXrMXF2RCocjQ L9Td+ZGFmhHYC7ptQrmVr+hFcAVxMUxHqhIhgeQKvt8SGOaF6j7hHdgTCw== X-Report-Abuse-To: spam@se1.web-dns1.com Message-ID-Hash: NHROGNPJ3QKX4WWRCWSNXMOVMNUOJ7ZT X-Message-ID-Hash: NHROGNPJ3QKX4WWRCWSNXMOVMNUOJ7ZT X-MailFrom: zlists+context@jdvb.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] mtx-synctex.lua question List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done end locate(-s, 0) if fi ~= 0 then tl = s ; goto done end locate( s, s) if fi ~= 0 then tl = s ; goto done end locate( s,-s) if fi ~= 0 then tl = s ; goto done end locate(-s, s) if fi ~= 0 then tl = s ; goto done end locate(-s,-s) if fi ~= 0 then tl = s ; goto done end end Is the omission of the locate(0, s) ... and locate(0, -s) ... cases intentional, or is that an oversight? If intentional, can someone explain the rationale to me? Thanks. Jim ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________