* [9fans] pic @ 2011-05-23 22:56 Steve Simon 2011-05-23 23:05 ` Skip Tavakkolian ` (4 more replies) 0 siblings, 5 replies; 16+ messages in thread From: Steve Simon @ 2011-05-23 22:56 UTC (permalink / raw) To: 9fans Hi, I would like to try to get something running which would allow me to draw pic documents in a WYSIWYG style I have a load of rather complex drawings to do. The obvious candidates (it seems to me) are: art (from the 2nd edition), though Andrey did stirling work porting it to the draw model years ago I honestly don't feel it up to the job - perhaps my lack of stamina? cip/xcip - this is part of the blit distribution and xcip is avaialable on the net these days. I have a vague memory that someone got this to run on a modern OS - plan9/X11 perhaps? anyone know more? picasso - this would be x11 only and was in the later DWB distributions but I seen no sign of any source for it anywhere. anyone have the code which I could copy? xfig + transfig - feels a bit like a patch on a patch and, being modern unix code would (no doubt) include configure hell... MS windows + visio, print to a file and include it as postscript into my troff doc - feels like gining in. Thnaks for any help/advice. -Steve ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-23 22:56 [9fans] pic Steve Simon @ 2011-05-23 23:05 ` Skip Tavakkolian 2011-05-23 23:19 ` Venkatesh Srinivas 2011-05-24 1:19 ` Iruatã Souza ` (3 subsequent siblings) 4 siblings, 1 reply; 16+ messages in thread From: Skip Tavakkolian @ 2011-05-23 23:05 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs; +Cc: 9fans Google docs; no contest. -Skip On May 23, 2011, at 3:56 PM, "Steve Simon" <steve@quintile.net> wrote: > Hi, > > I would like to try to get something running which > would allow me to draw pic documents in a WYSIWYG style > I have a load of rather complex drawings to do. > > The obvious candidates (it seems to me) are: > > art (from the 2nd edition), though Andrey did stirling work > porting it to the draw model years ago I honestly don't feel it > up to the job - perhaps my lack of stamina? > > cip/xcip - this is part of the blit distribution and xcip is > avaialable on the net these days. I have a vague memory that > someone got this to run on a modern OS - plan9/X11 perhaps? > anyone know more? > > picasso - this would be x11 only and was in the later DWB > distributions but I seen no sign of any source for it anywhere. > anyone have the code which I could copy? > > xfig + transfig - feels a bit like a patch on a patch and, being > modern unix code would (no doubt) include configure hell... > > MS windows + visio, print to a file and include it as postscript > into my troff doc - feels like gining in. > > Thnaks for any help/advice. > > -Steve > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-23 23:05 ` Skip Tavakkolian @ 2011-05-23 23:19 ` Venkatesh Srinivas 0 siblings, 0 replies; 16+ messages in thread From: Venkatesh Srinivas @ 2011-05-23 23:19 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs I use xcip on a modern Unix; http://plan9.bell-labs.com/sources/contrib/vsrinivas/xcip-modern.jpg There is a tarball in my contrib, xcip.tar; it is a copy of 1995-era xcip, made to build on recent linux systems. It needs Plan9port to build (9's lex and yacc, iirc). -- vs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-23 22:56 [9fans] pic Steve Simon 2011-05-23 23:05 ` Skip Tavakkolian @ 2011-05-24 1:19 ` Iruatã Souza 2011-05-24 2:26 ` Anthony Sorace ` (2 subsequent siblings) 4 siblings, 0 replies; 16+ messages in thread From: Iruatã Souza @ 2011-05-24 1:19 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Mon, May 23, 2011 at 7:56 PM, Steve Simon <steve@quintile.net> wrote: > Hi, > > I would like to try to get something running which > would allow me to draw pic documents in a WYSIWYG style > I have a load of rather complex drawings to do. > > The obvious candidates (it seems to me) are: > > art (from the 2nd edition), though Andrey did stirling work > porting it to the draw model years ago I honestly don't feel it > up to the job - perhaps my lack of stamina? > > cip/xcip - this is part of the blit distribution and xcip is > avaialable on the net these days. I have a vague memory that > someone got this to run on a modern OS - plan9/X11 perhaps? > anyone know more? > > picasso - this would be x11 only and was in the later DWB > distributions but I seen no sign of any source for it anywhere. > anyone have the code which I could copy? > > xfig + transfig - feels a bit like a patch on a patch and, being > modern unix code would (no doubt) include configure hell... > > MS windows + visio, print to a file and include it as postscript > into my troff doc - feels like gining in. > > Thnaks for any help/advice. > > -Steve > > http://figr.org/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-23 22:56 [9fans] pic Steve Simon 2011-05-23 23:05 ` Skip Tavakkolian 2011-05-24 1:19 ` Iruatã Souza @ 2011-05-24 2:26 ` Anthony Sorace 2011-05-24 16:11 ` Anthony Sorace 2011-05-24 2:53 ` Russ Cox 2011-05-24 5:03 ` tlaronde 4 siblings, 1 reply; 16+ messages in thread From: Anthony Sorace @ 2011-05-24 2:26 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 350 bytes --] On May 23, 2011, at 18:56, Steve Simon wrote: > xfig + transfig - feels a bit like a patch on a patch and, being > modern unix code would (no doubt) include configure hell... geoff had a version of xfig running on 3ed years ago. i can try to dig it up if you want to go that route. i didn't use it much, but it did the job when needed. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 201 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-24 2:26 ` Anthony Sorace @ 2011-05-24 16:11 ` Anthony Sorace 0 siblings, 0 replies; 16+ messages in thread From: Anthony Sorace @ 2011-05-24 16:11 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 272 bytes --] > geoff had a version of xfig... wow, my memory sucks. i'm now pretty sure that (1) this was actually xpic, not xfig, and more importantly, (2) i think we were running this on a solaris box in the lab and only displaying locally to the old plan9 x11. sorry a [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 210 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-23 22:56 [9fans] pic Steve Simon ` (2 preceding siblings ...) 2011-05-24 2:26 ` Anthony Sorace @ 2011-05-24 2:53 ` Russ Cox 2011-05-24 15:32 ` roger peppe 2011-05-24 5:03 ` tlaronde 4 siblings, 1 reply; 16+ messages in thread From: Russ Cox @ 2011-05-24 2:53 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > I would like to try to get something running which > would allow me to draw pic documents in a WYSIWYG style > I have a load of rather complex drawings to do. If you will never have to edit them, whiteboard + digital camera. Otherwise, I've found that it is always worth the time to program the drawings (pic macros, postscript functions, metapost, whatever), because then editing them is possible. Russ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-24 2:53 ` Russ Cox @ 2011-05-24 15:32 ` roger peppe 2011-05-24 15:48 ` simon softnet 2011-05-24 16:22 ` Russ Cox 0 siblings, 2 replies; 16+ messages in thread From: roger peppe @ 2011-05-24 15:32 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On 24 May 2011 03:53, Russ Cox <rsc@swtch.com> wrote: >> I would like to try to get something running which >> would allow me to draw pic documents in a WYSIWYG style >> I have a load of rather complex drawings to do. > > If you will never have to edit them, whiteboard + digital camera. > > Otherwise, I've found that it is always worth the time to > program the drawings (pic macros, postscript functions, > metapost, whatever), because then editing them is possible. out of interest, which of these do you use yourself by preference? for example for this diagram: http://2.bp.blogspot.com/_ZnVhQ3NyEx0/S4NfiL9UgZI/AAAAAAAAAB0/mW2hZr-Ay5k/s400/gorace4.png getting those curves right can't be that easy if you're working out the parameters manually, and doing the collision avoidance programmatically can't be too easy either... ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-24 15:32 ` roger peppe @ 2011-05-24 15:48 ` simon softnet 2011-05-24 16:22 ` Russ Cox 1 sibling, 0 replies; 16+ messages in thread From: simon softnet @ 2011-05-24 15:48 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 1018 bytes --] dformat is your friend - for this diagram On Tue, May 24, 2011 at 5:32 PM, roger peppe <rogpeppe@gmail.com> wrote: > On 24 May 2011 03:53, Russ Cox <rsc@swtch.com> wrote: > >> I would like to try to get something running which > >> would allow me to draw pic documents in a WYSIWYG style > >> I have a load of rather complex drawings to do. > > > > If you will never have to edit them, whiteboard + digital camera. > > > > Otherwise, I've found that it is always worth the time to > > program the drawings (pic macros, postscript functions, > > metapost, whatever), because then editing them is possible. > > out of interest, which of these do you use yourself by preference? > for example for this diagram: > > > http://2.bp.blogspot.com/_ZnVhQ3NyEx0/S4NfiL9UgZI/AAAAAAAAAB0/mW2hZr-Ay5k/s400/gorace4.png > > getting those curves right can't be that easy if you're working > out the parameters manually, and doing the collision avoidance > programmatically can't be too easy either... > > [-- Attachment #2: Type: text/html, Size: 1542 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-24 15:32 ` roger peppe 2011-05-24 15:48 ` simon softnet @ 2011-05-24 16:22 ` Russ Cox 1 sibling, 0 replies; 16+ messages in thread From: Russ Cox @ 2011-05-24 16:22 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs >> Otherwise, I've found that it is always worth the time to >> program the drawings (pic macros, postscript functions, >> metapost, whatever), because then editing them is possible. > > out of interest, which of these do you use yourself by preference? I don't think I have one that I would say I prefer, but they're all preferable to using a WYSIWYG editor and then having to go back and change all the diagrams in the same way. > http://2.bp.blogspot.com/_ZnVhQ3NyEx0/S4NfiL9UgZI/AAAAAAAAAB0/mW2hZr-Ay5k/s400/gorace4.png > > getting those curves right can't be that easy if you're working > out the parameters manually, and doing the collision avoidance > programmatically can't be too easy either... This was pic, with copy-and-paste but only around 60 lines. It's a one-off. .sp .PS .fp 5 CW LucidaSansCW83 texty=0.015 dx=0.3 dy=0.3 "\X'PS 4 setlinewidth'" "\f5" rx=0.015 boxwid=0.4 boxht=0.15 IP: [ Box: box ht 3*boxht line from 0.333<Box.sw,Box.nw> to 0.333<Box.se,Box.ne> line from 0.667<Box.sw,Box.nw> to 0.667<Box.se,Box.ne> Ptr: circle fill rad 0.01 at 0.167<Box.n,Box.s> "0" at 0.5<Box.n,Box.s> "7" at 0.833<Box.n,Box.s> "\s-2\fIptr \fP\s+2" rjust at 0.833<Box.sw,Box.nw>-(rx,texty) "\s-2\fIoff \fP\s+2" rjust at 0.5<Box.sw,Box.nw>-(rx,texty) "\s-2\fIlen \fP\s+2" rjust at 0.167<Box.sw,Box.nw>-(rx,texty) ] JP: [ Box: box ht 3*boxht line from 0.333<Box.sw,Box.nw> to 0.333<Box.se,Box.ne> line from 0.667<Box.sw,Box.nw> to 0.667<Box.se,Box.ne> Ptr: circle fill rad 0.01 at 0.167<Box.n,Box.s> "1" at 0.5<Box.n,Box.s> "2" at 0.833<Box.n,Box.s> "\s-2\fIptr \fP\s+2" rjust at 0.833<Box.sw,Box.nw>-(rx,texty) "\s-2\fIoff \fP\s+2" rjust at 0.5<Box.sw,Box.nw>-(rx,texty) "\s-2\fIlen \fP\s+2" rjust at 0.167<Box.sw,Box.nw>-(rx,texty) ] with .n at IP.s + (0, -0.5) I: [ Box: box ht 2*boxht invis "\X'PS 0.8 0.3 0.3 setrgbcolor 20 setlinewidth'" at Box box ht 2*boxht at Box "\X'PS 0 0 0 setrgbcolor 4 setlinewidth'" at Box box ht 2*boxht at Box line from Box.w to Box.e "\s-2\fIbase \fP\s+2" rjust at 0.25<Box.nw,Box.sw>-(rx,texty) "\s-2\fIcap \fP\s+2" rjust at 0.75<Box.nw,Box.sw>-(rx,texty) Base: circle fill rad 0.01 at 0.25<Box.n,Box.s> BaseData: "[1, 2, 3, 4, 5, 6, 7]" ljust at 0.25<Box.ne,Box.se>+(dx*2/3,0) "7" at 0.5<Box,Box.s>-(0,texty) line -> from Base to BaseData.w ] with .nw at IP.ne + (0.5,-0.25) spline -> from IP.Ptr to I.Box.nw+(-0.2,0.2) to I.Box.nw spline -> from JP.Ptr to JP.Ptr+(0.75,0) to I.Box.nw-(0.5,0.1) to I.Box.nw "x := []int{1,2,3,4,5,6,7}" ljust "" at IP.Box.nw "" "[]int" ljust at IP.Box.sw "y := x[1:3]" ljust "" at JP.Box.nw "" "[]int" ljust at JP.Box.sw .PE Steve said a load of complex diagrams, though, and for that I think it's more important to be able to go back and fix things. The diagrams in the regexp articles are also pic but with macros for drawing each kind of node. A: [ circa(b, 0, 0, , "\v'-0.02i'\*(q8", ) box invis ht 0.15 wid 0 ] B: [ circa(b, 0, 0, , "\v'-0.02i'\*(q9", ) box invis ht 0.15 wid 0 ] with .n at A.s-(0,dy) S: [ circ(0, "", "\v'-0.02i'\*(q6,\*(q7", "") ] at 0.5<A.w,B.w>-(dx,0) SS: [ circa(a,1,0,"\*(q1,", "\v'-0.05i'\*(q2, \*(q3", ) circa(b,1,0,,"\v'-0.02i'\*(q4,\*(q5",) ] with .e at S.w F: [ final(0,,"\v'-0.02i'\*(qA", ) ] at 0.5<A.e,B.e> start(SS) spline -> from S.n up (dd-r) then right (dd-r) then to A.w spline -> from S.s down (dd-r) then right (dd-r) then to B.w spline -> from B.e-(dx,0) right (dx-dd+r) then right (dd-r) then to F.s spline -> from A.e-(dx,0) right (dx-dd+r) then right (dd-r) then to F.n "\f(CWa\fP" "" at A.w-(dx/2,0) "\f(CWb\fP" "" at B.w-(dx/2,0) The diagrams in this paper were all hand-written PostScript. http://publications.csail.mit.edu/lcs/pubs/pdf/MIT-LCS-TM-650.pdf %!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 105 80 %%DocumentNeededFonts: Times-Italic Helvetica-Bold %%Pages: 1 %%EndComments @include osdi2-ex.inc 10 I 10 30 translate /skew 2 def timecaption gsave 10 -10 moveto 70 -10 70 -30 arcstart 10 -30 arccont arcfinish lightgray fill grestore 0 20 moveto (A) cshow right 4 timeline square arrowdown right square right square right square 0 0 moveto (B) cshow right 4 timeline right square right square arrowdown right square 0 -20 moveto (C) cshow right 4 timeline right right right square %%Trailer %%EOF ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2011-05-23 22:56 [9fans] pic Steve Simon ` (3 preceding siblings ...) 2011-05-24 2:53 ` Russ Cox @ 2011-05-24 5:03 ` tlaronde 4 siblings, 0 replies; 16+ messages in thread From: tlaronde @ 2011-05-24 5:03 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Mon, May 23, 2011 at 11:56:28PM +0100, Steve Simon wrote: > Hi, > > I would like to try to get something running which > would allow me to draw pic documents in a WYSIWYG style > I have a load of rather complex drawings to do. MetaPost. I found finally easier to program than to try to get exactly what I want with a graphical interface. To see it with kerTeX : tex mproof <fig>.[1-9]* and then dvips to have a "book" with all the figures. (mproof is part of John Hobby's MetaPost.) -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C ^ permalink raw reply [flat|nested] 16+ messages in thread
* [9fans] pic @ 2003-10-13 19:48 Skip Tavakkolian 2003-10-13 20:12 ` Russ Cox 2003-10-15 5:51 ` Charles Forsyth 0 siblings, 2 replies; 16+ messages in thread From: Skip Tavakkolian @ 2003-10-13 19:48 UTC (permalink / raw) To: 9fans Is pic out of sync with its man page? Also there doesn't seem to be any target for tpic. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2003-10-13 19:48 Skip Tavakkolian @ 2003-10-13 20:12 ` Russ Cox 2003-10-15 5:51 ` Charles Forsyth 1 sibling, 0 replies; 16+ messages in thread From: Russ Cox @ 2003-10-13 20:12 UTC (permalink / raw) To: 9fans > Is pic out of sync with its man page? Probably. > Also there doesn't seem to be any target for tpic. Tpic builds in /sys/src/cmd/tex/tpic. I forgot the binary when I built the tex distribution. Russ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2003-10-13 19:48 Skip Tavakkolian 2003-10-13 20:12 ` Russ Cox @ 2003-10-15 5:51 ` Charles Forsyth 2003-10-15 7:31 ` Skip Tavakkolian 1 sibling, 1 reply; 16+ messages in thread From: Charles Forsyth @ 2003-10-15 5:51 UTC (permalink / raw) To: 9fans >>Also there doesn't seem to be any >>target for tpic. cd /sys/src/cmd/tex/tpic; mk install what was the problem with pic? ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2003-10-15 5:51 ` Charles Forsyth @ 2003-10-15 7:31 ` Skip Tavakkolian 2003-10-16 22:03 ` Charles Forsyth 0 siblings, 1 reply; 16+ messages in thread From: Skip Tavakkolian @ 2003-10-15 7:31 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 635 bytes --] >>>Also there doesn't seem to be any >>>target for tpic. > > cd /sys/src/cmd/tex/tpic; mk install > > what was the problem with pic? Thanks; Russ also hinted at that. I was mostly fighting myself. It's been a while since I pic'ed. I did have a couple of suicides with tpic on some bad input. I didn't investigate, but I can try to investigate it when I have some time. The man page for pic includes two identical examples; I'm not smart enough to know if that is on purpose ☺ FYI, I was building a pic that shows the steady-state process/data flow in srvold9p. I've attached in case somebody is interested. [-- Attachment #2.1: Type: text/plain, Size: 312 bytes --] The following attachment had content that we can't prove to be harmless. To avoid possible automatic execution, we changed the content headers. The original header was: Content-Disposition: attachment; filename=srvold9p.pic Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit [-- Attachment #2.2: srvold9p.pic.suspect --] [-- Type: application/octet-stream, Size: 809 bytes --] .PS S: [ circle "srvold9p" "[serve]" dotted move A: circle "srvold9p" "[serve]" move circle "srvold9p" "[serve]" dotted ] box ht 0.5*boxht wid S.wid with .s at S.n+0,0.5 "/mnt/term" dashed line from last box.s to S.A.n <-> "9P2000" R: [ boxht=boxht*.5 box "rendez tag 0" dotted move B: box "rendez tag 1" move box "rendez tag n" dotted ] with .n at S.s+0,-0.5 arrow from R.B.n to S.A.s X: [ D: circle "srvold9p" "[demux]" arrow <- F: circle "srvold9p" "[fcall]" ] with .nw at R.se+0.5,-0.5 spline from X.D.w left 2 then up to R.B.s -> Y: [ G: circle "drawterm" ] with .sw at X.ne+0.5,0.5 spline from S.A.ne right up then right 3 then down 1.25 then right to Y.G.nw -> spline from Y.G.sw left 0.25 then down 0.75 to X.F.e -> "9P1" at Y.G.w-0.25,0.0 .PE ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [9fans] pic 2003-10-15 7:31 ` Skip Tavakkolian @ 2003-10-16 22:03 ` Charles Forsyth 0 siblings, 0 replies; 16+ messages in thread From: Charles Forsyth @ 2003-10-16 22:03 UTC (permalink / raw) To: 9fans >>The man page for pic includes two identical examples; I'm not smart >>enough to know if that is on purpose ☺ i think that's because the second example is .PS/.PE input for pic but it doesn't work well in troff -N (nroff). try man -t 1 pic | page -w to get something closer to the intended effect. ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2011-05-24 16:22 UTC | newest] Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-05-23 22:56 [9fans] pic Steve Simon 2011-05-23 23:05 ` Skip Tavakkolian 2011-05-23 23:19 ` Venkatesh Srinivas 2011-05-24 1:19 ` Iruatã Souza 2011-05-24 2:26 ` Anthony Sorace 2011-05-24 16:11 ` Anthony Sorace 2011-05-24 2:53 ` Russ Cox 2011-05-24 15:32 ` roger peppe 2011-05-24 15:48 ` simon softnet 2011-05-24 16:22 ` Russ Cox 2011-05-24 5:03 ` tlaronde -- strict thread matches above, loose matches on Subject: below -- 2003-10-13 19:48 Skip Tavakkolian 2003-10-13 20:12 ` Russ Cox 2003-10-15 5:51 ` Charles Forsyth 2003-10-15 7:31 ` Skip Tavakkolian 2003-10-16 22:03 ` Charles Forsyth
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).