-
Notifications
You must be signed in to change notification settings - Fork 3
Managing structured SVG (with external elements)
How can we safely construct SVGs with external links (for fonts, images, ornaments) to
- maintain good performance in the editor;
- guarantee faithful rendering in a browser and the printed page;
- safely store all elements in peyotl (as a "folderish" type);
- and keepall elements in other persistence stores, e.g. in a Jupyter notebook?
Should we stick to remote URLs (to web fonts, etc) in some of these use cases? Perhaps there's an explicit "bundling" step that would gather all resources in a single folder/resource. This should work, since it appears SVG will happily use relative URLs in all cases.
See related links here, esp. under "Handling external resources"
This might be auto-generated (on saves) and stored by convention, presumably in the main bundle folder.
This might be done to save space (unlikely), or to take advantage of changes to resources like PhyloPic. N.B. images can also be embedded directly in the SVG file, but this is almost certainly the Wrong Thing To Do.
Copyrighted web fonts? PhyloPic images? Copyrighted images?
I assume their priorities include fidelity and offline use. Again, maybe a PDF is the ultimate solution here.