Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #26 from t-sullivan/master
Browse files Browse the repository at this point in the history
Add support for popular e-readers, consolidate existing formats
  • Loading branch information
FooSoft committed Aug 14, 2016
2 parents d691061 + 03a46c6 commit d9a78e3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 21 deletions.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,31 @@ dist
*.mngl
*.cbz
*.bat
.idea/

*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
2 changes: 1 addition & 1 deletion mangle/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def natural_key(string_):


class Book(object):
DefaultDevice = 'Kindle Paperwhite'
DefaultDevice = 'Kindle Paperwhite 3/Voyage/Oasis'
DefaultOutputFormat = 'CBZ only'
DefaultOverwrite = True
DefaultImageFlags = ImageFlags.Orient | ImageFlags.Resize | ImageFlags.Quantize
Expand Down
21 changes: 11 additions & 10 deletions mangle/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,17 @@ class KindleData:

Profiles = {
'Kindle 1': ((600, 800), Palette4),
'Kindle 2': ((600, 800), Palette15a),
'Kindle 3': ((600, 800), Palette15a),
'Kindle 4': ((600, 800), Palette15b),
'Kindle 5': ((600, 800), Palette15b),
'Kindle DX': ((824, 1200), Palette15a),
'Kindle DXG': ((824, 1200), Palette15a),
'Kindle Touch': ((600, 800), Palette15a),
'Kindle Paperwhite': ((758, 1024), Palette15b), # resolution given in manual, see http://kindle.s3.amazonaws.com/Kindle_Paperwhite_Users_Guide.pdf
'Kindle Paperwhite 3': ((1072, 1448), Palette15b),
'KoBo Aura H2o': ((1080, 1430), Palette15a), # resolution from http://www.fnac.com/Liseuse-Numerique-Kobo-by-Fnac-Kobo-Aura-H2O-Noir/a7745120/w-4
'Kindle 2/3/Touch': ((600, 800), Palette15a),
'Kindle 4 & 5': ((600, 800), Palette15b),
'Kindle DX/DXG': ((824, 1200), Palette15a),
'Kindle Paperwhite 1 & 2': ((758, 1024), Palette15b),
'Kindle Paperwhite 3/Voyage/Oasis': ((1072, 1448), Palette15b),
'Kobo Mini/Touch': ((600, 800), Palette15b),
'Kobo Glo': ((768, 1024), Palette15b),
'Kobo Glo HD': ((1072, 1448), Palette15b),
'Kobo Aura': ((758, 1024), Palette15b),
'Kobo Aura HD': ((1080, 1440), Palette15b),
'Kobo Aura H2O': ((1080, 1430), Palette15a),
}


Expand Down
25 changes: 15 additions & 10 deletions mangle/ui/options.ui
Original file line number Diff line number Diff line change
Expand Up @@ -63,52 +63,57 @@
</item>
<item>
<property name="text">
<string>Kindle 2</string>
<string>Kindle 2/3/Touch</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle 3</string>
<string>Kindle 4 &amp; 5</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle 4</string>
<string>Kindle DX/DXG</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle 5</string>
<string>Kindle Paperwhite 1 &amp; 2</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle DX</string>
<string>Kindle Paperwhite 3/Voyage/Oasis</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle DXG</string>
<string>Kobo Mini/Touch</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle Touch</string>
<string>Kobo Glo</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle Paperwhite</string>
<string>Kobo Glo HD</string>
</property>
</item>
<item>
<property name="text">
<string>Kindle Paperwhite 3</string>
<string>Kobo Aura</string>
</property>
</item>
<item>
<property name="text">
<string>KoBo Aura H2o</string>
<string>Kobo Aura HD</string>
</property>
</item>
<item>
<property name="text">
<string>Kobo Aura H2O</string>
</property>
</item>
</widget>
Expand Down

0 comments on commit d9a78e3

Please sign in to comment.