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: [9fans] use of plumber for new rule
Date: Wed, 19 Oct 2022 09:24:25 -0400	[thread overview]
Message-ID: <16661858650.19CAe129.83221@composer.9fans.topicbox.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]

Hello all,

I am trying to implement a rule that will display dvi files in plumber.  There are currently two rules that cover dvi files.  Neither will allow for rendered displaying via a mouse 3 click in acme.  This does work for ps and pdf files, so I would like to change it to allow for dvi's as well.  My thought is to pass this through a pipe from dvips to page.  I have built and installed kertex thanks to Thierry Laronde.  In a terminal all I have to call is kertex/dvips <filename.dvi> | page.  Unfortunately the logic escapes me on how to do this properly with the plumber.  

I have the following blocks that pertain to the implementation of pdf / ps viewing.

type    is      text
data    matches '[a-zA-Z¡-�0-9_\-.,/]+'
data    matches '([a-zA-Z¡-�0-9_\-.,/]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC|epub|EPUB|cb[tz]|CB[TZ])'
arg     isfile  $0
plumb   to      postscript
plumb   start   page -w $file

type    is      text
data    matches '[a-zA-Z¡-�0-9_\-.,/]+'
data    matches '([a-zA-Z¡-�0-9_\-.,/]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC|epub|EPUB|cb[tz]|CB[TZ])'
arg     isfile  $0
plumb   to      postscript
plumb   start   page -w $file

dst     is      image
plumb   to      image
plumb   client  page -wi

dst     is      postscript
arg     isfile  $data
plumb   start   page -w $data

These were the settings set by the system.  I have hacked around with them, but can't seem to get a solution and I am sadly not versed  enough with plumb(6).   Does anyone have a hint or idea on how I might accomplish my goal?  Reading man plumb pages as I await a reply.

Thanks in advance,

Chris Gorman









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

[-- Attachment #2: Type: text/html, Size: 3074 bytes --]

             reply	other threads:[~2022-10-19 13:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 13:24 Chris Gorman [this message]
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

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=16661858650.19CAe129.83221@composer.9fans.topicbox.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).