Logo Search packages:      
Sourcecode: calibre version File versions

calibre::ebooks::lit::writer Namespace Reference


Detailed Description

Basic support for writing LIT files.


Classes

class  LitWriter
class  ReBinary

Functions

def decint
def invert_tag_map
def packguid
def preserve
def randbytes
def warn

Variables

list __all__ = ['LitWriter']
string __copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
string __license__ = 'GPL v3'
list ALL_MS_COVER_TYPES
int ATTR_NUMBER = 0xffff
 BLOCK_CAOL = \
 BLOCK_ITSF = \
int CCHUNK_SIZE = 0x0200
tuple COLLAPSE = re.compile(r'[ \t\r\n\v]+')
int DCHUNK_SIZE = 0x2000
string DESENCRYPT_GUID = "{67F6E4A2-60BF-11D3-8540-00C04F58C3CF}"
tuple FLAG_ATOM = (1 << 4)
tuple FLAG_BLOCK = (1 << 2)
tuple FLAG_CLOSING = (1 << 1)
tuple FLAG_CUSTOM = (1 << 15)
tuple FLAG_HEAD = (1 << 3)
tuple FLAG_OPENING = (1 << 0)
tuple HTML_MAP = invert_tag_map(maps.HTML_MAP)
tuple LIT_IMAGES = set(['image/png', 'image/jpeg', 'image/gif'])
string LIT_MAGIC = 'ITOLITLS'
 LIT_MIMES = OEB_DOCS|OEB_STYLES|LIT_IMAGES
string LITFILE_GUID = "{0A9007C1-4076-11D3-8789-0000F8105754}"
 LZXC_CONTROL = \
string LZXCOMPRESS_GUID = "{0A9007C6-4076-11D3-8789-0000F8105754}"
string MS_COVER_TYPE = 'other.ms-coverimage-standard'
 MSDES_CONTROL = \
tuple OPF_MAP = invert_tag_map(maps.OPF_MAP)
tuple PAGE_BREAKS = set(['always', 'left', 'right'])
string PIECE3_GUID = "{0A9007C3-4076-11D3-8789-0000F8105754}"
string PIECE4_GUID = "{0A9007C4-4076-11D3-8789-0000F8105754}"
int PIECE_SIZE = 16
int PRIMARY_SIZE = 40
int ROOT_OFFSET = 1284508585713721976
int ROOT_SIZE = 4165955342166943123
int SECONDARY_SIZE = 232
int ULL_NEG1 = 0xffffffffffffffff


Generated by  Doxygen 1.6.0   Back to index