9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Chris Gorman <chrisjohgorman@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] use of plumber for new rule
Date: Thu, 20 Oct 2022 21:10:43 -0400	[thread overview]
Message-ID: <CAHVeOW9NnhMEBFFDoy_+TGsaXzwq6AB4yoyJeMQ97-57nxwFBg@mail.gmail.com> (raw)
In-Reply-To: <CAHVeOW9jknoVrzxKsQTPWJr1CSArwjuukKMt-h9W5=tg6vQXeQ@mail.gmail.com>

Hi again Umbraticus,

Sorry for spamming you today.  But I wanted to let you know your
command works and I had made a typo implementing it.
>
> This solution has acme load up the dvi file to edit.  I want to
> display the image rendered by page, but after it has been passed
> through dvips.  So either
>
> plumb start window kertex/dvips $wdir/$0 '|' page
>
> or
>
> plumb start window kertex/dvips $wdir/$0 '|' page -w
>
> or
>
> plumb start window kertex/dvips $wdir/$0 '|' plumb -id image
>
> have this work for me.  The first one opens a small window, rather
> than the full page that is loaded once I have converted the file to a
> postscript file.  This can be adjusted to the full window rendering
> with the use of page -w, but I can see the initial window that dvips
> loaded in the background.  The plumb -id image solution loads up the
> initial window, runs dvips and then resizes the window with the output
> from the repiping.  Not too sure which solution is the ideal one, but
> it's currently working with the pipe to plumb -id.  I'm probably not
> explaining myself well enough.  I ideally want the result from
> running.
>
> kertex/dvips <filename.dvi> | page -w
>
> which I think I should get running 'plumb start rc -c 'kertex/dvips
> '$wdir'/'$0' | page -w', but for some reason it doesn't work. :(

The final plumb command became,

data     matches '([a-zA-Z¡-�0-9_\-.,/]+)\.(dvi|DVI)'
arg isfile $0
plumb start rc -c 'kertex/dvips -q '$wdir'/'$0' | page -w'

My only addition to what you suggested was to run dvips with -q to
suppress the stdout output.  Thanks for the help today.

Take care,

Chris

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-M89d36b357efea549a8b62c02
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

      reply	other threads:[~2022-10-21  1:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 13:24 Chris Gorman
2022-10-20  8:56 ` umbraticus
2022-10-20 13:18   ` Chris Gorman
2022-10-20 16:52     ` Chris Gorman
2022-10-20 17:00       ` umbraticus
2022-10-20 17:52         ` Chris Gorman
2022-10-21  1:10           ` Chris Gorman [this message]

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=CAHVeOW9NnhMEBFFDoy_+TGsaXzwq6AB4yoyJeMQ97-57nxwFBg@mail.gmail.com \
    --to=chrisjohgorman@gmail.com \
    --cc=9fans@9fans.net \
    /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).