Hi John-Mark

I notice there are still a few CONTENT_SVGs hanging around in my
platform code, so it won't compile immediately.  Unless there's an
easier way I guess I need to add some magic to check the MIME type of
the content and then do a reverse lookup to check if it is SVG?  (I
handle SVGs differently in a few places so they end up on the
clipboard or export as DR2D (vector) instead of ILBM (bitmap))

Something like content_type_name(mimetype) which returns an arbitrary
type string (human-readable filetype) could be useful for doing
reverse lookups, or simple filetyping for file extensions etc on saves
for platforms that need that.

I see the RISC OS code has its own little MIME to RISC OS type code
that performs this function, but something that converts known NetSurf
MIME types to more complex types in the core would be useful for all
the front ends I think.

Chris

Reply via email to