You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Olle Jonsson (Jira)" <ji...@apache.org> on 2021/09/22 10:31:00 UTC

[jira] [Comment Edited] (TIKA-3559) Add MIME type for .webmanifest files

    [ https://issues.apache.org/jira/browse/TIKA-3559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418514#comment-17418514 ] 

Olle Jonsson edited comment on TIKA-3559 at 9/22/21, 10:30 AM:
---------------------------------------------------------------

[~nick] Hi! Yes, I amended the Description here with one.

I found another, and the JSON Schema.


was (Author: olleolleolle):
[~nick] Hi! Yes, I amended the Description here with one.

> Add MIME type for .webmanifest files
> ------------------------------------
>
>                 Key: TIKA-3559
>                 URL: https://issues.apache.org/jira/browse/TIKA-3559
>             Project: Tika
>          Issue Type: New Feature
>            Reporter: Olle Jonsson
>            Priority: Minor
>
> Hello!
> This issue is a proposal to add the MIME type for [Web Manifest|https://www.w3.org/TR/appmanifest/].
> * [Description of the new MIME type in the W3 "Web Application Manifest" editor's draft.|https://www.w3.org/TR/appmanifest/#media-type-registration]
> * [Example of usage in the MDN article on Web Manifest|https://developer.mozilla.org/en-US/docs/Web/Manifest#deploying_a_manifest_with_the_link_tag]
> * [JSON Schema for it|https://w3c.github.io/manifest/#json-schema]
> *Example implementation*: What it could look like the XML in the Tika project: 
> {code:xml}
>     <mime-type type="application/manifest+json">
>       <_comment>Web Application Manifest file</_comment>
>       <sub-class-of type="application/json"/>
>       <glob pattern="*.webmanifest"/>
>     </mime-type>
>  
> {code}
> I was looking through https://github.com/apache/tika/blob/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml and could not find any such mention.
>  
> *Example Web Manifest* file from the MDN page:
> It contains related_applications, marked at-risk - https://w3c.github.io/manifest/#related_applications-member
> {code:json}
> {
>   "name": "HackerWeb",
>   "short_name": "HackerWeb",
>   "start_url": ".",
>   "display": "standalone",
>   "background_color": "#fff",
>   "description": "A readable Hacker News app.",
>   "icons": [{
>     "src": "images/touch/homescreen48.png",
>     "sizes": "48x48",
>     "type": "image/png"
>   }, {
>     "src": "images/touch/homescreen72.png",
>     "sizes": "72x72",
>     "type": "image/png"
>   }, {
>     "src": "images/touch/homescreen96.png",
>     "sizes": "96x96",
>     "type": "image/png"
>   }, {
>     "src": "images/touch/homescreen144.png",
>     "sizes": "144x144",
>     "type": "image/png"
>   }, {
>     "src": "images/touch/homescreen168.png",
>     "sizes": "168x168",
>     "type": "image/png"
>   }, {
>     "src": "images/touch/homescreen192.png",
>     "sizes": "192x192",
>     "type": "image/png"
>   }],
>   "related_applications": [{
>     "platform": "play",
>     "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb"
>   }]
> }
> {code}
> *Example manifest* from the spec:
> {code:json}
> {
>   "lang": "en",
>   "dir": "ltr",
>   "name": "Super Racer 3000",
>   "short_name": "Racer3K",
>   "icons": [{
>     "src": "icon/lowres.webp",
>     "sizes": "64x64",
>     "type": "image/webp"
>   }, {
>     "src": "icon/lowres.png",
>     "sizes": "64x64"
>   }, {
>     "src": "icon/hd_hi",
>     "sizes": "128x128"
>   }],
>   "scope": "/",
>   "start_url": "/start.html",
>   "display": "fullscreen",
>   "orientation": "landscape",
>   "theme_color": "aliceblue",
>   "background_color": "red"
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)