From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115218 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 12:34:49 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0860352779342546650==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10402"; 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 12:35:49 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 1nyWYv-0002Pd-3J for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Jun 2022 12:35:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2DB1D64E; Tue, 7 Jun 2022 12:35:11 +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 VfK7_6mgkJ0s; Tue, 7 Jun 2022 12:35:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 60D9D282FC0; Tue, 7 Jun 2022 12:35:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 64275282FB7 for ; Tue, 7 Jun 2022 12:35:06 +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 enKT8xWjNEMs for ; Tue, 7 Jun 2022 12:35:04 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.175; helo=mail-qt1-f175.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 197C764E for ; Tue, 7 Jun 2022 12:35:04 +0200 (CEST) Original-Received: by mail-qt1-f175.google.com with SMTP id k4so5672724qth.8 for ; Tue, 07 Jun 2022 03:35:03 -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=Ml0sa5arkS0j7EW5A8QADDMHv6rnpA6nzwk/xSn2wdQ=; b=ZWgjQYmdFe/X8VTZ/M0eWXOKs0plJfit45gT8CFNddal9Jt5QqlEqeEgwNqX56kGoA gkkS81NVBxsv/MleeSt8vSxP6KpEQR2EZfa+8SlTxlvEv6rR3YKsWFbHKRLLlMa9r/yC zEHlGA4wIpmsLB3WEDaY+c/A+VDMTjQzRJO/9ndNgyXjrzhvnBhhnr6ZRhD4An2Dk3fJ KiF+WVtzmGbe1yugz9Ix0YdN2mgX485JMH6xtgdMcplpNH4hmvfFn/ErQtxv6/Pji3XJ nVJsedwN4gqfhmQ+HX86vp31A3lkiKgyEVXxVo70GGTVi1e540iEEh6iU7I9z2Xxv5ji O1pA== 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=Ml0sa5arkS0j7EW5A8QADDMHv6rnpA6nzwk/xSn2wdQ=; b=xyuMl/x5HYUqlgUPW5x11+Aboikt5PCZnYtcmF3v+vzDHsgVqy32zwLDedI5HlazEd r561mf2C/fJI05tKdjzVnYvr3rE65bpARNNJuJ5NafOf4p8Xaq0X3WzTLO8/EzJhwkC7 uYOqYsiyTpzCpdHpswDvztBj805Uvmda3W7NzLtILVdjT/HOtw7ABIRpXeP9YoIRz6Ol QJxtvmqX9akr3x+o050I65rv/2SsUS//npYhBL2dRPHL3KphS64+WMUmvEwKj2QdMu/3 p1XrQBOrukE4tZWsh+kX4iG90vH1nxd3jLod7odxZnan5LonxN2qEYMt/5vIDH4CzTqE 5DbA== X-Gm-Message-State: AOAM533+yJsFpqKTiSNmD8fQqCeg5Tby07W95Ou6ASoS/fUdEuxyn4rj zISDhV36bCSMnY3JtUrorjoxuIRWjJw7B4ePicQGIrDV2Ig= X-Google-Smtp-Source: ABdhPJxHboOgWA2F6iWe5xxRsJb9rcNnynm/SJYxFuV3PVocIphdsDMN/oc1r4SRVKf5W25lt28HhB64rmTHmaoGw7U= X-Received: by 2002:ac8:5f8f:0:b0:304:e15b:8dcc with SMTP id j15-20020ac85f8f000000b00304e15b8dccmr15990551qta.38.1654598100471; Tue, 07 Jun 2022 03:35:00 -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:115218 Archived-At: --===============0860352779342546650== Content-Type: multipart/alternative; boundary="00000000000006517805e0d9242f" --00000000000006517805e0d9242f Content-Type: text/plain; charset="UTF-8" I tried \setupspacing[fixed] but it didn't help. To prove that the font characters really are half a cell wide I added the line \emdash \dorecurse{39}{ \emdash}. Files on drive are updated. On Tue, Jun 7, 2022 at 7:25 AM Stefan Nedeljkovic wrote: > 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 >> >> ___________________________________________________________________________________ >> > --00000000000006517805e0d9242f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I tried=C2=A0\setupspacing[fixed] but it didn't help. = To prove that the font characters really are half a cell wide I added the l= ine=C2=A0\emdash \dorecurse{39}{ \emdash}. Files on drive are updated.
On Tu= e, Jun 7, 2022 at 7:25 AM Stefan Nedeljkovic <tsar.srb@gmail.com> wrote:
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 c= learly out of alignment with the gid. I tested the alignment in MP and it s= hould work, ie 2 characters are indeed one grid cell (semms from the fact t= hat IBM Plex Mono was designed from a typewriter typeface where 12 characte= rs are exactly 1 inch long).

On Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schu= ster 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://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
___________________________________________________________________________= ________
--00000000000006517805e0d9242f-- --===============0860352779342546650== 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== --===============0860352779342546650==--