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

Hudson commented on TIKA-3559:
------------------------------

SUCCESS: Integrated in Jenkins build Tika » tika-main-jdk8 #356 (See 
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk8/356/])
TIKA-3559: Add MIME type for .webmanifest files (#453) (github: 
[https://github.com/apache/tika/commit/92b11f986feea50ae7390e46034d725921dcc700])
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml


> 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]
> * ["Add a Web App Manifest" article|https://web.dev/add-manifest/] with 
> examples
> *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.20.1#820001)

Reply via email to