Jason Milkins
Jason Milkins
of course, `(or )` until non `nil`, much neater! thanks.
- [x] Rename the `fileurl-prefix` `themename:fileurl-prefix`
@sabof - which build/version have you had success with external images? I can only get untouched externals to work with webkit based Emacs-mac-port. I can use data-uri scheme for png...
I've had to include them as base64 for librsvg to render them... Perhaps I'm doing something wrong.
Of course I can also include them as xmlgen, but that's a pain in the back.
> FWIW, you can still store images in separate files, you'll just have to include them manually. Maybe you could show me how.
Make a data uri ``` (concat "data:image/svg+xml;base64," (ocodo-smt:string-from-file (concat ocodo-steps-aqua:images "steps-aqua.svg.base64")))) ``` https://github.com/ocodo/ocodo-svg-modelines/blob/master/ocodo-steps-aqua-smt.el#L26-L29 Then use it with `(image :xlink:href uri)` e.g. ``` (image :x -50 :y 0 :height 26 :width...
I could base64 the file on the fly, but no.
With Emacs mac port, I don't need to do this, I can use `file:///` as the url. librsvg is supposed to work with externals, but the support isn't complete.
What should work is `data:image/svg+xml;utf8,` but librsvg doesn't render the image properly. (Emacs mac port / WebKit works with this too, as well as `file:/// ...` In a nutshell, librsvg...