From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115216 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Nedeljkovic via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Two minor questions Date: Tue, 7 Jun 2022 07:25:20 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8627068007056736263==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4511"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Nedeljkovic To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 07 07:26:20 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyRjQ-0000u4-3J for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Jun 2022 07:26:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 35031282FA4; Tue, 7 Jun 2022 07:25:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eL6017n6_LxI; Tue, 7 Jun 2022 07:25:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFA99282FBA; Tue, 7 Jun 2022 07:25:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1EA3A282FB8 for ; Tue, 7 Jun 2022 07:25:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DttGPi1L4ey4 for ; Tue, 7 Jun 2022 07:25:33 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.170; helo=mail-qt1-f170.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2FA4F282FA4 for ; Tue, 7 Jun 2022 07:25:33 +0200 (CEST) Original-Received: by mail-qt1-f170.google.com with SMTP id c8so11916573qtj.1 for ; Mon, 06 Jun 2022 22:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ma9Ilo5x7DUiH3QLLZmqEY8R0HXs5wQqR1wcEf5vjas=; b=gsdumoxcxBMESVOUzAR9aaDGMWaVHYBA7ubW6Yo7h8srl/YF/kaE5cZ1Luq3KLpq7C v3hm9742ut46i405TgcBCEXIB5tQdrc5Qn57r8eUq/4aCCvjqYt/9SLXgvsuurVZkWYn LS6FOGfr/nbjUdH0srI31hqthnuaC23lcEQL2vC7Uga4P4g0Ouf8kjY7W7b1t+V8xUv4 BcIlhCcLDpVeA5kFaK4vqVgWKRCGsJCm2BQk3meUlRb8W9Lz0NHNws/AXFssXwepAvP/ rDs6vQCTPIdGTG4ADFFM2dXqxdgk14ndHUzU4aMxgMUVRvK2uBfQZlxfSLqrDG2bQeoH PYUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ma9Ilo5x7DUiH3QLLZmqEY8R0HXs5wQqR1wcEf5vjas=; b=MVERhTuS5ScZxLmUgF0hDGq+jzIWOQeIXPlvwNLUtR36ARVwLlWYJjXiNvdMyHJNl8 h5Ks/XkIelbNCowK4U1e5SN+tAFRi6XXejre6XlVNf6FipHXMnzN9+F7Ez1C/0Y5lgqy FpcSnmd6tbxo9O7zrpTu8GNA8ccSbtnFOYaP/9m2yX6diyBNEw7lmJZLTqDz6mr/+D38 N6zo8GIS5JCMRn8RUOPZzvjSf4ppuHVFa9Ahh0QbMNJ+bKCu7XKBG6SpeGf7R7lTQ6Rd c9oeYwYACc8tXCdL5r7Ny7d+fyhM5q2N4POTJGHquN2yZN8HdLoiUZ7ey1wTFSFV8fpr odCA== X-Gm-Message-State: AOAM530gPD1ZFzxmoMlL/4anWHmz/F9cjuLttwc0AV8dPnxM+Ax0XEaL 1VSWAm7IBpKrRzjJdGJBJfFBj9tHNw9xR9shrMKSEWih X-Google-Smtp-Source: ABdhPJybZEvz6Tl4d7sp+BWsBVwdivQ3lC6dVqQeCSSPGWQxbs2iR9vpjt5c6k5/uBUoTuMVaCne/Y757y+5Hov57yM= X-Received: by 2002:a05:622a:2c7:b0:302:9e7a:81dd with SMTP id a7-20020a05622a02c700b003029e7a81ddmr21374944qtx.144.1654579531538; Mon, 06 Jun 2022 22:25:31 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:115216 Archived-At: --===============8627068007056736263== Content-Type: multipart/alternative; boundary="0000000000003ae2f305e0d4d18f" --0000000000003ae2f305e0d4d18f Content-Type: text/plain; charset="UTF-8" Thank you very much Wolfgang! But, there is still something weird going on with the font. I updated the files on Drive. Please see line 19, the last word "and". It is clearly out of alignment with the gid. I tested the alignment in MP and it should work, ie 2 characters are indeed one grid cell (semms from the fact that IBM Plex Mono was designed from a typewriter typeface where 12 characters are exactly 1 inch long). On Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> wrote: > > > Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07: > > Wolfgang, Aditya, thank you both very much! > > > > I have 2 more questions: > > > > Observe the files here: > > > https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing > > > > 1. I'd like to shift the text area down so that the red lines > > align with the blue lines (I think this amount is called depth). How > > would I do that? > > Quick and dirty: > > \setuplayout > [..., > topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax, > ...] > > > 2. The font is such that exactly 2 characters fit into the grid cell, > > but I see that towards the end of the line it gets out of sync with > > the grid. How would I ensure that all text rendered is strictly > > monospaced without any stretching/shrinking trickery? > > Change the text alignment: > > \setupalign[flushleft,broad] > > Wolfgang > > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --0000000000003ae2f305e0d4d18f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you very much Wolfgang! But, there is still somethin= g weird going on with the font. I updated the files on Drive. Please see li= ne 19, the last word "and". It is clearly out of alignment with t= he gid. I tested the alignment in MP and it should work, ie 2 characters ar= e indeed one grid cell (semms from the fact that IBM Plex Mono was designed= from a typewriter typeface where 12 characters are exactly 1 inch long).
On= Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">

Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:
> Wolfgang, Aditya, thank you both very much!
>
> I have 2 more questions:
>
> Observe the files here:
> https://d= rive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=3Dshari= ng
>
> 1. I'd like to shift the text area down so that the red lines
> align=C2=A0with the blue=C2=A0lines (I think this amount is called dep= th). How
> would I do that?

Quick and dirty:

\setuplayout
=C2=A0=C2=A0 [...,
=C2=A0=C2=A0=C2=A0 topspace=3D\dimexpr5\measured{base}+2bp+\strutdp\relax,<= br> =C2=A0=C2=A0=C2=A0 ...]

> 2. The font is such that exactly 2 characters fit into the grid cell, =
> but I see that towards the end of the line it gets out of sync with > the grid. How would I ensure that all text rendered is strictly
> monospaced without any stretching/shrinking trickery?

Change the text alignment:

\setupalign[flushleft,broad]

Wolfgang

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000003ae2f305e0d4d18f-- --===============8627068007056736263== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8627068007056736263==--