SVGExporter
SVGExporterをSqueak3.9用に直してみました。http://squeaksource.blueplane.jp/SVGExporter.html(SqueakSourceJ)
経由でMonticello Browserからインストールできます。ちょっと現在解説ページがなくなってしまったのでその下書きを兼ねて書いておきます。
SVGExporterとは
Squeakには印刷機能としてPS出力(Postscript)しかありませんでした。そこでその属性を保持しつつファイルとして保存するためにSVG(Scalable Vector Graphics)形式に変換するものを作りました。SVGExporterではMorphicを画像として格納するのではなく、極力Vector/Text情報として保存するので、SVG Viewerなどで拡大してもジャギーが出ず、高精度に閲覧・描画が可能となっています。
インストール後
SqueakSourceJからインストールしたパッケージではメニューから操作できません。以下のようにMorph>>addCopyItemsTo:を修正してください。修正はclipSVG,printSVGToFileを含む行を追加します。
addCopyItemsTo: aMenu "Add copy-like items to the halo menu" | subMenu | subMenu _ MenuMorph new defaultTarget: self. subMenu add: 'copy to paste buffer' translated action: #copyToPasteBuffer:. subMenu add: 'copy text' translated action: #clipText. subMenu add: 'copy Postscript' translated action: #clipPostscript. subMenu add: 'print Postscript to file...' translated target: self selector: #printPSToFile. subMenu add: 'copy SVG' translated action: #clipSVG. subMenu add: 'print SVG to file...' translated target: self selector: #printSVGToFile. aMenu add: 'copy & print...' translated subMenu: subMenu