View Single Post
Old 02-11-2014, 08:11 AM   #1
Evert
Junior Member
Evert began at the beginning.
 
Evert's Avatar
 
Posts: 2
Karma: 10
Join Date: Feb 2013
Device: Sony PRS-300
Post Output profile for the Kindle Fire HDX

Shamelessly copied from the 'Kindle Fire' profile, and modified the things I'm sure of


Code:
class KindleFireHDX7Output(KindleDXOutput):

    name = 'Kindle Fire HDX 7'
    short_name = 'kindle_fire_hdx_7'
    description = _('This profile is intended for the Amazon Kindle Fire HDX 7.')

    screen_size               = (1200, 1920)
    dpi                       = 323.0
    comic_screen_size = (1200, 1920)

    @classmethod
    def tags_to_string(cls, tags):
        # The idiotic fire doesn't obey the color:white directive
        from xml.sax.saxutils import escape
        return escape(', '.join(tags))

class KindleFireHDX89Output(KindleDXOutput):

    name = 'Kindle Fire HDX 8.9'
    short_name = 'kindle_fire_hdx_8_9'
    description = _('This profile is intended for the Amazon Kindle Fire HDX 8.9.')

    screen_size               = (1600, 2560)
    dpi                       = 339.0
    comic_screen_size = (1600, 2560)

    @classmethod
    def tags_to_string(cls, tags):
        # The idiotic fire doesn't obey the color:white directive
        from xml.sax.saxutils import escape
        return escape(', '.join(tags))
Evert is offline   Reply With Quote