I would like to requets an addition of the MIME types: application/xml-dtd (replaces text/x-dtd!) application/xml-external-parsed-entity text/xml-external-parsed-entity (maybe an alias for the application/ type?) The latter would help me to fix an issue detecting .ent files as chemical/x-pdb. The RfC is here with the necessary information: http://www.ietf.org/rfc/rfc3023.txt (seems to be the latest and not obsoleted by some newer RfC)
Patch? Test files?
Please expect them in May (too busy atm).
Created attachment 16077 [details] [review] patch for freedesktop.org.xml.in - application/xml-dtd added in place of text/x-dtd, that is left as alias - application/xml-external-parsed-entity is new, and brings the text/ version as alias; application/ as mimetype and text/ as alias was done to be more like the other XML-related mimetypes - application/xml-external-parsed-entity has no *.xml glob, could be ambiguous - application/xml-dtd has no *.mod glob, could be ambiguous
Comment on attachment 16077 [details] [review] patch for freedesktop.org.xml.in >+ <mime-type type="application/xml-external-parsed-entity"> >+ <sub-class-of type="text/plain"/> It's a sub-class of the XML mime-type, not text/plain. >+ <_comment>XML external parsed entity</_comment> Not a great name for the mime-type... >+ <acronym>XML</acronym> >+ <expanded-acronym>eXtensible Markup Language</expanded-acronym> >+ <glob pattern="*.ent"/>
Created attachment 16079 [details] sample testcase Sample of application/xml-external-parsed-entity, found in my Debian system as: /usr/share/sgml/entities/sgml-iso-entities-8879.1986/ISOcyr1.ent
Created attachment 16080 [details] [review] updated patch (+ test list) The test is marked as expected failing as it is detected as text/html. Though, the mimetype seem to work nicely, as tested with kmimetypefinder (KDE 4) and thunar.
* freedesktop.org.xml.in: * tests/ISOcyr1.ent: * tests/list: Patch from Pino Toscano <pino@kde.org> to add XML entities support, and fix the DTD mime-type to be the one in the RFC (Closes: #14085)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.