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.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10648 invoked from network); 7 Sep 2023 17:37:43 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 7 Sep 2023 17:37:43 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A0A3B482EA8 for ; Thu, 7 Sep 2023 19:36:03 +0200 (CEST) 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 r-iWrWVqRmFt for ; Thu, 7 Sep 2023 19:36:02 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D3428482ED7 for ; Thu, 7 Sep 2023 19:35:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E2369482D45 for ; Thu, 7 Sep 2023 19:35:02 +0200 (CEST) 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 uzshjP2QsuFV for ; Thu, 7 Sep 2023 19:35:02 +0200 (CEST) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.18]) (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 7E36F482CF0 for ; Thu, 7 Sep 2023 19:35:02 +0200 (CEST) Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4RhRFy2hNBzGM for ; Thu, 7 Sep 2023 17:35:02 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4RhRFx4ltMz2xS0 for ; Thu, 7 Sep 2023 17:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1694108102; bh=fu5wNpT1LiXoOf4KVS2T5lxryKQWj6aizCUwmn0cuLc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=EEr6BzQxgaUC1kbO1P7HaozGbwJuXOx1/ZRL4QdSRyFA6ntqI+VW3+gbAm1TJ0uGA oADShnZPfkRgL6Ud3fSNGZSX2OSohXwix0zyr/XAAQl1UGczq29uf3seEMt9vNH7rj KE2c2ToNE/Bjlun1kT84w5Owrjue6CwKTCixwVPo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1694108101; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qeZKBpnY2tWO89EsvFN82GtT4eB/Xf59cVATYun6gxY=; b=AwydZNzafSilZJHkY8AhpjxZNHnGINnLPts+rRKiK+h+v5kfRU5S7KJGp1Fp+068hojbsT jywOX94pdi4Znf90zWpzcWjWmU0I9escfAS3zDQTEwFr851uOAogYiZGpgVm5QNvchCnC/ phADavfXEQNXusyzWEg5PLEM9+b0E/Q= ARC-Seal: i=1; s=default; d=freedom.nl; t=1694108101; a=rsa-sha256; cv=none; b=RlKykOylsWO99LwAaml3IW2hjFzztgrad12mUgIaCuhqGm6z0+Qit06f12ysDZwsDh08RF TR+8vSRoclIEvFyMsi+oJNFCS3H5mO1C02vaFVdxCuO5kw7lxNCbcepxHEWnC24ejWxt0M n+Y1AmfPcYnjI703GPKEuy1uoPdGi1s= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: Date: Thu, 7 Sep 2023 19:34:58 +0200 MIME-Version: 1.0 Content-Language: en-US To: ntg-context@ntg.nl References: X-Soverin-Authenticated: true In-Reply-To: Message-ID-Hash: GJTG3QWXEFXLBIGM5PUZMFP7GOKG33SH X-Message-ID-Hash: GJTG3QWXEFXLBIGM5PUZMFP7GOKG33SH X-MailFrom: j.hagen@freedom.nl 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] Re: # verbatim typesetting List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: > Dear List, > > The MWE below gives a pdf with two #'s instead of only one. Why is that? > > \starttext > > \startluacode > context.type("#") > \stopluacode > > \stoptext because by default tex loves to duplicate hashes when it serializes token lists as this seems to be "the month of the duplicate hashes" i looked it what we did so far can also work here and i sort of managed although there might be more cases (when im done with this we probably "have it the other way around" which could mean adapting some code in the tex-lua context system that actually depends on duplication or where we work around it and no longer need to) the complication is mostly in moving token lists around, them beign serialized and deserialized etc but i guesa at some point we'll get there (original tex doesn't really have this problem because there serialization hashes will triggere errors in cases where they are not permitted anyway) no upload as i need to test more Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________