The package contains two approaches to render a Pillar document object to Morphic. 1. PRVisitor subclass: #PRMorphWriter 2. PRDocumentWriter subclass: #PRMorphWriter2 The class comment for PRDocumentWriter says I'm the superclass of all classes supposed to output a pier document to a text file. I have a canvas to which the subclasses can write to using dedicated brushes. I have a configuration which specifies some details about how to write text (e.g., end of line convention). Class PRRenderer has examples for both approaches PRRenderer example "1" PRRenderer example3 "2 -- using PRMorphWriter2" "(example2 is not working)" I assume to use PRDocumentWriter subclass: #PRMorphWriter2 is the way forward and PRMorphWriter can be removed. --Hannes On 8/25/17, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Feel free to enhance it. It was fun to hack the visitor and to flesh the renderer on the fly.
On Fri, Aug 25, 2017 at 3:48 PM, H. Hirzel <hannes.hirzel@gmail.com> wrote:
Stephane,
Thank you. The rendering seems to be very useful as is.
The screen shot shows what you get if you execute
PRMorphInterface new openWithSpec.
I will read the code in detail.
--Hannes