The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Ralph Corderoy <ralph@inputplus.co.uk>
To: tuhs@tuhs.org
Subject: [TUHS] Re: pic's One-way Information Flow. (Was: SNOBOL and RATSNO)
Date: Thu, 11 Aug 2022 08:37:45 +0100	[thread overview]
Message-ID: <20220811073745.848C2218D8@orac.inputplus.co.uk> (raw)
In-Reply-To: <20220810180210.GZ21168@mcvoy.com>

Hi Larry,

> Also agree with the "box that fits this text" problem, pic really
> could use a sizeof("this text in the current font/point size/line
> spacing") that returns x,y.  But I don't see how to do that because
> pic doesn't have that info, pic would need to be able to ask troff
> what those are.

Rather than work out the coordinates of everything, could pic punt some
of that downstream to troff by producing expressions which rest on
variables set by troff to, say, the width of a diversion.  The order of
evaluation presented to troff would obviously have to be topological on
the dependencies which bars cycles.  It would add elasticity to a
drawing.

The other approach would be a multi-pass effort where pic initially
assumes unknown dimensions, like some text's width, but also outputs
troff which will store the actual width for input to pic on future runs.

-- 
Cheers, Ralph.

  parent reply	other threads:[~2022-08-11  7:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09 22:18 [TUHS] Re: SNOBOL and RATSNO Douglas McIlroy
2022-08-09 22:25 ` Larry McVoy
2022-08-10 15:05 ` arnold
2022-08-10 17:14   ` Larry McVoy
2022-08-10 17:37     ` arnold
2022-08-10 17:44       ` [TUHS] Re: SNOBOL and RATSNO [ really pic ] Jon Steinhart
2022-08-10 18:02         ` Larry McVoy
2022-08-10 18:04           ` Jon Steinhart
2022-08-10 18:13             ` [TUHS] Re: pic Michael Kjörling
2022-08-10 18:19             ` Dennis Boone
2022-08-10 18:24               ` Jon Steinhart
2022-08-11  0:10                 ` Dan Cross
2022-08-11 12:13                   ` arnold
2022-08-11 14:34                     ` Dan Cross
2022-08-12  1:52                       ` G. Branden Robinson
2022-08-12  6:46                         ` arnold
2022-08-12 20:49                           ` G. Branden Robinson
2022-08-11  7:37           ` Ralph Corderoy [this message]
2022-08-10 18:24       ` [TUHS] Re: SNOBOL and RATSNO joe mcguckin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220811073745.848C2218D8@orac.inputplus.co.uk \
    --to=ralph@inputplus.co.uk \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).