On 30 July 2012 20:24, Wilhelm <[email protected]> wrote: > Am 30.07.2012 12:16, schrieb Lex Trotman: > >> On 30 July 2012 19:43, Wilhelm <[email protected]> wrote: >>> >>> Hi, >>> >>> just noticed, that the following doesn't work if generated with the >>> data-uri >>> option: >>> >>> >>> Test >>> ==== >>> WM >>> :Author Initials: WM >>> :lang: de >>> :doctype: book >>> :toc: >>> :icons: >>> :numbered: >>> >>> :iconsdir: images/icons >>> :imagesdir: images >>> >>> doesnt work: image:{imagesdir}/icons/up.svg["Download",height=22] >> >> >> Hi, >> >> Yes, the embedded data mimetype is derived from the file extension, >> which is fine for png, jpeg, gif, but the svg mime type is svg+xml >> which isn't the extension. It probably also would not work for jpg. > > > Is this wrong mapping considered an error in asciidoc?
Its more of a limitation of the method used to generate it. An alternative is to try let python guess the mimetype, it should do better. Until asciidoc is updated you can just use a custom xhtml11.conf as attached. Beware limited testing :) Cheers Lex @Stuart, see attachment, one more for the todo list :) -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
xhtml11.conf
Description: Binary data
