Hi,
I've written a Python program to convert !Draw files to SVG. It's designed to be run from a modern computer (Mac/Win/Linux/etc), and can be used to batch convert Draw files.
Instructions and pretty pictures:
https://github.com/TobyLobster/DrawConversion
Yes I know there are other convertors out there, but most only run from RISC OS, and afaik all of them miss out some !Draw features.
I have taken some effort to make this the most complete and accurate convertor available. It converts ALL the standard object types, including paths, text, transformed text, text areas (with all the formatting commands implemented), sprites, transformed sprites, JPEG images.
I've written about what I learned about these formats while writing the convertor:
https://github.com/TobyLobster/DrawConv ... nsights.md
I have incidentally also documented all the glyphs available in the standard RISC OS fonts:
https://github.com/TobyLobster/DrawConv ... s/fonts.md
I hope some of this will be of interest/use to people.
Toby
Draw to SVG
- TobyLobster
- Posts: 622
- Joined: Sat Aug 31, 2019 7:58 am
- Contact:
Re: Draw to SVG
Nice work!
Incidentally, you link to my old Drawfile page instead of the repository, which does include a Drawfile to SVG convertor. It's not as complete as yours, but I thought I'd mention it.
Incidentally, you link to my old Drawfile page instead of the repository, which does include a Drawfile to SVG convertor. It's not as complete as yours, but I thought I'd mention it.
- TobyLobster
- Posts: 622
- Joined: Sat Aug 31, 2019 7:58 am
- Contact:
Re: Draw to SVG
Thanks David, and I've updated the link.
Re: Draw to SVG
There are quite a few Draw files that contain tags - for example:
TableMate files (type &BCF);
Equasor files (type &D91)
DiscCat files (type &1DF)
FamTree files (type &1E6)
RingBind files (type &1EB)
These load into Impression Publisher as a vector graphic but a CTRL-double click invokes OLE to edit the graphic in the creating app and then save it back into the document. A good description of the contents of a tagged file is given in WROCC Jan 2022 (RingBind) - see here for the draft that was submitted https://www.svrsig.org/Tagged.pdf
The first two have been 'in the wild' since 1993.
This is similar to files that contain '.csv' data but are (for example) typed as Anquet Export Format (.aef) (type &A6F)
TableMate files (type &BCF);
Equasor files (type &D91)
DiscCat files (type &1DF)
FamTree files (type &1E6)
RingBind files (type &1EB)
These load into Impression Publisher as a vector graphic but a CTRL-double click invokes OLE to edit the graphic in the creating app and then save it back into the document. A good description of the contents of a tagged file is given in WROCC Jan 2022 (RingBind) - see here for the draft that was submitted https://www.svrsig.org/Tagged.pdf
The first two have been 'in the wild' since 1993.
This is similar to files that contain '.csv' data but are (for example) typed as Anquet Export Format (.aef) (type &A6F)
- TobyLobster
- Posts: 622
- Joined: Sat Aug 31, 2019 7:58 am
- Contact:
Re: Draw to SVG
Thanks svrsig, interesting to see tagged objects have been used in the wild, and by quite a few different apps too!
Re: Draw to SVG
Also some PipeDream 4 Charts (since 1991) [Edit: not Fireworkz hybrid chart/documents (since a few years ago) - that uses custom object type]
Miserable old curmudgeon who still likes a bit of an ARM wrestle now and then. Pi 4, 3, ARMX6, SA Risc PC, A540, A440