9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] use of plumber for new rule
@ 2022-10-19 13:24 Chris Gorman
  2022-10-20  8:56 ` umbraticus
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Gorman @ 2022-10-19 13:24 UTC (permalink / raw)
  To: 9fans

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-21  1:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 13:24 [9fans] use of plumber for new rule 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 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).