From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 7A4E121FF6 for ; Wed, 13 Nov 2024 15:15:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7F841484D5F for ; Wed, 13 Nov 2024 15:11:23 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type:from:from :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:references:content-language:mime-version :date:date:message-id:received:received:received:received :received:received:received; s=cgl; t=1731507083; x=1734099084; bh=R/POWjwydJ9H+obfl/2Ys/vX4FEUoQ0GJLijPbCvNfw=; b=aFx3YW0sLK5/ Ud4FnK548/wtdV3wlRo0mIjviXazvy8Kh0ZdVqytqQ3PLWdA7OjhXaecoSFztV1A mxZnwyZiA0sdkw6kQuJcVos6jgNmEfrelm+K/XpWFLmd3CCzrTa5THdyPLYfAaHj DoEUrs5W4jafDKPqZuwM1nH7rRsXXG4= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="vUIcl51G"; dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="vj+fzedx" 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 YlcvLVbcAdS9 for ; Wed, 13 Nov 2024 15:11:23 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AF3B748412E for ; Wed, 13 Nov 2024 15:10:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id ABCAE480564 for ; Wed, 13 Nov 2024 15:09:32 +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 2PVSEHxJbJ5W for ; Wed, 13 Nov 2024 15:09:32 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (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 2319548052B for ; Wed, 13 Nov 2024 15:09:32 +0100 (CET) Received: from smtp.freedom.nl (c04cst-smtp-frd01.int.sover.in [10.10.4.107]) (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 4XpQBz40RszGM for ; Wed, 13 Nov 2024 14:09:31 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4XpQBy5b3hz4r for ; Wed, 13 Nov 2024 14:09:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1731506971; bh=baqMpRBIvyMyOOBYKxi9vZW5BGa3e7Q2G9A2SLMYGmU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=vUIcl51GtAn1pDT5ywlxX47nYol6nyl5LsooQuI/3E5VEV7+CqF/xA/hggkldP2RS cLxje8WJ9JU7/VGFi+pqxYwS1NZ6ofYQ/qqe/6iA/hGruLNuuDkqeAf0wuoKtlrOUU Fg4QRj9Cvl30xibNSmloIhlFzSShxBkZ6YYktSTc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=soverin1; t=1731506971; h=from:from: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=ugNRYnKMxPn4OMg+Za9jzP4DStfRJXtlvO5364ibaVA=; b=vj+fzedxOonWR0wtOkbQDIennJwqN2dASgDydv0dZfmc4o0nMLAKasj2AyKWVfThG7YtP9 RTUALllfX8YCOeKBXJpZ3Ntw1ux3aO3atnSSHcUBVhLy+HGnfV9+5EUqMg4lrd8pAOAesc y/Soh9yaVWpclYqwp2daFDZrv0e+2KItbJV6OmLi/tUKCgCkfKq1OfrfK/JpuBOH0ObMKg Kq/T8pkFw9dRZb5So2CWjaeoi+syw5vNWO8jzNVnIA+jmncGAPCrH8045j9K4PfruOLEb+ bJ8yuMAEtDyG2zvq53EmgxFgRvauVvdj1My1UsfBR+AK/KwufDzKTk0Fv2jVcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1731506971; 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=ugNRYnKMxPn4OMg+Za9jzP4DStfRJXtlvO5364ibaVA=; b=ss3P3i+AIqRyLXBpLZG65BMnC/NnDzuZBQcmDna0G6d8OPCtygJKdJNSLlTnTcAOvwuxxn Bxv6x9NgCI0y2z2FXpTFWxN2aTzAIzIlQOeHJUC1drO9eOn5eGEOLvMG+q8K4kRyzUAppE ys5NMohUPWBfWuH4FzL9uIJ8Ce0Wkzk= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl ARC-Seal: i=1; s=default; d=freedom.nl; t=1731506971; a=rsa-sha256; cv=none; b=lLjjkw5HEe8dt/t7Ivwl6uQ+tpNScHS/d7djh39aafQ1MtT0QCcbtyoHcdQ0b/EQZNtF3S r/ytHQ/x891nzaT+HKEtpHkbklHz1VpcF9hkMyDOJGmlS0BbkMYEzb8cEGD40Z6WkHG1o8 bkFgYzZnFqIYPXO14fFy1RyeeNkmRW8= Message-ID: <1319ccfc-2fdb-48f1-829c-8e7b567ee10f@freedom.nl> Date: Wed, 13 Nov 2024 15:09:30 +0100 MIME-Version: 1.0 Content-Language: nl To: ntg-context@ntg.nl References: <20241113110318.2fbe58b6@homerow> In-Reply-To: <20241113110318.2fbe58b6@homerow> X-Spampanel-Class: ham Message-ID-Hash: MA2UGFYY5YMPRXA3OUEZUUDZFU5W6QP2 X-Message-ID-Hash: MA2UGFYY5YMPRXA3OUEZUUDZFU5W6QP2 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway). 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 11/13/2024 11:03 AM, Marco Patzer wrote: > On Mon, 11 Nov 2024 21:30:15 +0100 > Wolfgang Schuster wrote: > >> \unit{2 arcsecond} > > Arcseconds might print the correct glyph, but would be semantically > wrong. I believe the correct approach would be: > > \unit{2 inch} > > The question then remains how to configure \unit{2 inch} to produce > (depending on the requirements): > > 2 in or > 2" After 25 hours of discussion and 18 attempts the math team (whoever that is) has decided that this is good enough: \permanent\protected\def\fakeminute {\dontleavehmode \begingroup \doifelseitalic {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.2\scratchwidth \bgroup \glyphslant\plustwohundred \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode \egroup}% {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.1\scratchwidth \bgroup \glyphslant\plusfivehundred \glyph \s!xoffset -\scratchwidth\singlequoteasciicode \egroup}% \endgroup} \permanent\protected\def\fakesecond {\dontleavehmode \begingroup \doifelseitalic {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.7\scratchwidth \bgroup \glyphslant\plustwohundred \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode \glyph \s!xoffset -1.1\scratchwidth\singlequoteasciicode \egroup}% {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.6\scratchwidth \bgroup \glyphslant\plusfivehundred \glyph \s!xoffset -\scratchwidth\singlequoteasciicode \glyph \s!xoffset -1.5\scratchwidth\singlequoteasciicode \egroup}% \endgroup} \permanent\protected\def\minute{\iffontchar\font\textminute\textminute\else\fakeminute\fi} \permanent\protected\def\second{\iffontchar\font\textsecond\textsecond\else\fakesecond\fi} \aliased\let\inch\second ----------------------------------------------------------------- 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://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 ___________________________________________________________________________________