home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / openloo / 3751 < prev    next >
Encoding:
Text File  |  1992-09-08  |  4.7 KB  |  108 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ufo!Aig.Jpl.Nasa.Gov!rouquett
  3. From: rouquett@Aig.Jpl.Nasa.Gov (Nicolas Rouquette)
  4. Subject: Re: ToolTalk, PageView, Filemgr
  5. Message-ID: <1992Sep7.174743.12974@jpl-devvax.jpl.nasa.gov>
  6. Sender: usenet@jpl-devvax.jpl.nasa.gov (For NNTP so rrn will be able to post)
  7. Nntp-Posting-Host: ai-cyclops
  8. Reply-To: rouquett@aig.jpl.nasa.gov
  9. Organization: NASA/Jet Propulsion Laboratory
  10. References: <1992Sep4.174242.18954@jpl-devvax.jpl.nasa.gov> <9480@emory.mathcs.emory.edu> <1992Sep6.225229.5472@sq.sq.com>
  11. Date: Mon, 7 Sep 1992 17:47:43 GMT
  12. Lines: 94
  13.  
  14. In article <1992Sep6.225229.5472@sq.sq.com>, lee@sq.sq.com (Liam R. E. Quin) writes:
  15. |> km@mathcs.emory.edu writes:
  16. |> > rouquett@Aig.Jpl.Nasa.Gov (Nicolas Rouquette) writes:
  17. |> >>
  18. |> >>With 'strings pageview' I can tell that the program can respond
  19. |> >>to a tooltalk protocol. Does anyone know what message format needs to be
  20. |> >>broadcasted for a pageview to accept it and display a postscript file?
  21. |> 
  22. |> I don't know...
  23.  
  24. Since then, I fiddled around with ttmon (a point & click interface
  25. to watch and send tt messages), ttsession (in trace mode allows one
  26. to see all the tt traffic in terms of messages sent, matched, delivered...)
  27. and whatever tooltalk demo I could find. Looking at 
  28. ${OPENWINHOME}/lib/cetables/cetables.ascii, one can find some useful
  29. information about the classes of messages the sun deskset tools use:
  30.  
  31. (
  32.         (TYPE_NAME,type-id,<audio-file>)
  33.     (TYPE_OPEN_TT,tt,<audiotool>)
  34.     (TYPE_ICON,icon-file,<$OPENWINHOME/include/images/SunAudio_Alt_glyph.icon>)
  35.     (TYPE_ICON_MASK,icon-file,<$OPENWINHOME/include/images/Generic_Doc_glyph_mask.icon>)
  36.     (TYPE_FILE_TEMPLATE,string,<audio%t.au>)
  37.     (TYPE_COMPRESSION_METHOD, compress-id, <adpcm-compress>)
  38.     (TYPE_OPEN,call,<audiotool $FILE>)
  39.     (TYPE_PRINT,call,<>)
  40.    )
  41.  
  42.  
  43. Apparently, this means that whenever this file classification is used by the
  44. filemgr, audio files are sent to the audiotool via tooltalk. Besides the fact
  45. that Sun apparently doesn't document how the deskset tools use tooltalk (and the
  46. classification engine as well) this is not yet sufficient to determine the adequate
  47. tooltalk protocol.
  48.  
  49. Thanks to the trace mode of ttsession(1) it seems that the TYPE_OPEN_TT line
  50. describes how tooltalk is used. I watched the protocol used for coloredit and tried
  51. to use ttmon to duplicate it for pageview. Apparently, the classing engine recognizes 
  52. 'launch' but I coudn't pass the locale, display depth and color type as arguments for
  53. the message to really launch pageview. I also tried to start pageview and send load-like 
  54. messages without success. 
  55.  
  56. |> 
  57. |> >As it sits, pageview is less flexible than suntroff since it can only
  58. |> >take a file (or a drop) as input.
  59. |> 
  60. I woudn't be surprised if it recognized an undocumented tooltalk message to load a ps file. 
  61.  
  62. |> You can also do
  63. |>     programs | that | generate -PostScript | pageview -
  64. |> to get pageview to read stdin.
  65. |> You can't edit the postScript for some reason, but you can still Print.
  66. |> 
  67. |> >What I
  68. |> >really want is an application that brings up a textedit window, with a
  69. |> >button that runs the window contents through a specified pipeline, and
  70. |> >uses tooltalk to bring up (or reuse) a pageview to rasterize the
  71. |> >output. No temp files, no multiple clicks, just one click to update the
  72. |> >preview.
  73. |> 
  74. |> Hmm, the old xvps demo did this for simple PostScript.
  75. |> 
  76. Well, this brings the point that if is really too much pain to find out how
  77. to tooltalk pageview into loading a ps file, the solution may be to embed a simple
  78. tooltalk protocol into a wrapper on xvps or ghostscript. In fact, Sun's better half
  79. had the good idea to include a tooltalk version of textedit (See ${OPENWINHOME}/share/srfc/tooltalk).
  80.  
  81. |> >If there was a program that would take its stdin, use tooltalk to 
  82. |> >bring up (or reuse) a pageview, triggering the rasterize, you could
  83. |> >approximate this with editor side mapping/macros.
  84. |> >
  85. That's exactly what I'd like to get: a simple shell program that somehow
  86. asks the ps previewer to load a file. That program could be invoked 
  87. as an extra from textedit, an open method for filemgr, or a preview command
  88. for the (la)tex mode of emacs.
  89.  
  90. |> 
  91. |> The help viewer also takes ToolTalk messages, I think, as that seems to be
  92. |> how AnswerBook controls it.  It might be worth looking at.
  93. |> 
  94. Yep. I haven't looked at it yet.
  95.  
  96. |> Lee
  97. |> 
  98. |> -- 
  99. |> Liam Quin, lee@sq.com, SoftQuad, Toronto, 416 239-4801; the barefoot programmer
  100. |>   lq-text (Unix text retrieval package) mailing list: lq-text-request@sq.com
  101. |>   latest released version: 1.10; ftp: ftp.cs.toronto.edu in directory: pub
  102. |>   If Adultery is for Adults, is Juvenal for Juveniles?
  103.  
  104. -- 
  105. ----------Nicolas Rouquette----------rouquett@aig.jpl.nasa.gov
  106.     Artificial Intelligence Group
  107.       Jet Propulsion Laboratory
  108.