Bug 32769 - Add Mobipocket ebook format
Summary: Add Mobipocket ebook format
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 10:15 UTC by Jakub Stachowski
Modified: 2011-01-15 09:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Mimetype definition (1.61 KB, patch)
2011-01-01 10:15 UTC, Jakub Stachowski
Details | Splinter Review
Testcase (7.46 KB, application/octet-stream)
2011-01-01 10:16 UTC, Jakub Stachowski
Details
Subtype for Amazon Kindle ebook (962 bytes, patch)
2011-01-15 09:45 UTC, Jakub Stachowski
Details | Splinter Review

Description Jakub Stachowski 2011-01-01 10:15:16 UTC
Created attachment 41555 [details] [review]
Mimetype definition

Please add mime type for Mobipocket ebooks (for example used by Kindle). Attached are patch for mime database and test case.
Comment 1 Jakub Stachowski 2011-01-01 10:16:54 UTC
Created attachment 41556 [details]
Testcase

Test mobipocket file. Should be put into tests/ subdirectory.
Comment 2 Pino Toscano 2011-01-15 08:48:35 UTC
If you could also add the binary file to the git formatted patch, it could simplify a bit.
Note I removed the azw extension (which I could not find in official documentations), and lowered the "TEXtREAd" match priority to 30, so should conflict a bit less with application/x-aportisdoc.

commit 8fdb907b7b2ddda702cc4317b65cea8e24787d3e
Author: Jakub Stachowski <qbast@go2.pl>
Date:   Sat Jan 15 17:40:39 2011 +0100

    Add application/x-mobipocket-ebook.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=32769
Comment 3 Jakub Stachowski 2011-01-15 09:11:46 UTC
AZW may be not in official documentation, but Kindle uses it. Kindle books are normal mobipocket files, so I think this extension should be included.
Comment 4 Pino Toscano 2011-01-15 09:26:43 UTC
(In reply to comment #3)
> AZW may be not in official documentation, but Kindle uses it. Kindle books are
> normal mobipocket files, so I think this extension should be included.

I see; although it seems Kindle ebooks are slightly different mobi documents.
Maybe a separate mimetype, having the mobi mime as base, could avoid ambiguity between these two formats?
Comment 5 Jakub Stachowski 2011-01-15 09:45:15 UTC
Created attachment 42081 [details] [review]
Subtype for Amazon Kindle ebook

Apache mimetype database shows application/vnd.amazon.ebook as proper mimetype for AZW files. Attached is a patch that adds it as subtype of mobipocket. I don't have any Kindle ebook for testcase though.


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.