Logo Search packages:      
Sourcecode: calibre version File versions

calibre::ebooks::oeb::base Namespace Reference


Detailed Description

Basic support for manipulating OEB 1.x/2.0 content and metadata.


Functions

def CALIBRE
def DC
def DCTERMS
def iterlinks
def make_links_absolute
def NCX
def OPF
def resolve_base_href
def rewrite_links
def SVG
def XHTML
def XLINK
def XML
def XSI

Variables

string __copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
string __docformat__ = 'restructuredtext en'
string __license__ = 'GPL v3'
tuple _archive_re = re.compile(r'[^ ]+')
tuple _css_import_re = re.compile(r'@import "(.*?)"')
tuple _css_url_re = re.compile(r'url\((.*?)\)', re.I)
string BINARY_MIME = 'application/octet-stream'
string CALIBRE_NS = 'http://calibre.kovidgoyal.net/2009/metadata'
tuple COLLAPSE_RE = re.compile(r'[ \t\r\n\v]+')
list CSS_MIME = types_map['.css']
string DC09_NS = 'http://purl.org/metadata/dublin_core'
string DC10_NS = 'http://purl.org/dc/elements/1.0/'
string DC11_NS = 'http://purl.org/dc/elements/1.1/'
tuple DC_NSES = set([DC09_NS, DC10_NS, DC11_NS])
string DCTERMS_NS = 'http://purl.org/dc/terms/'
tuple ENTITY_RE = re.compile(r'&([a-zA-Z_:][a-zA-Z0-9.-_:]+);')
list EPUB_MIME = types_map['.epub']
list GIF_MIME = types_map['.gif']
list JPEG_MIME = types_map['.jpeg']
string MBP_NS = 'http://www.mobipocket.com'
string MS_COVER_TYPE = 'other.ms-coverimage-standard'
list NCX_MIME = types_map['.ncx']
string NCX_NS = 'http://www.daisy.org/z3986/2005/ncx/'
string OEB_CSS_MIME = 'text/x-oeb1-css'
string OEB_DOC_MIME = 'text/x-oeb1-document'
string OEB_DOC_NS = 'http://openebook.org/namespaces/oeb-document/1.0/'
tuple OEB_DOCS
tuple OEB_IMAGES = set([GIF_MIME, JPEG_MIME, PNG_MIME, SVG_MIME])
tuple OEB_RASTER_IMAGES = set([GIF_MIME, JPEG_MIME, PNG_MIME])
tuple OEB_STYLES = set([CSS_MIME, OEB_CSS_MIME, 'text/x-oeb-css'])
string OPENTYPE_MIME = 'application/x-font-opentype'
string OPF1_NS = 'http://openebook.org/namespaces/oeb-package/1.0/'
dictionary OPF1_NSMAP = {'dc': DC11_NS, 'oebpackage': OPF1_NS}
string OPF2_NS = 'http://www.idpf.org/2007/opf'
dictionary OPF2_NSMAP
list OPF_MIME = types_map['.opf']
tuple OPF_NSES = set([OPF1_NS, OPF2_NS])
string PAGE_MAP_MIME = 'application/oebps-page-map+xml'
list PNG_MIME = types_map['.png']
tuple PREFIXNAME_RE = re.compile(r'^[^:]+[:][^:]+')
tuple QNAME_RE = re.compile(r'^[{][^{}]+[}][^{}]+$')
string RE_NS = 'http://exslt.org/regular-expressions'
list SVG_MIME = types_map['.svg']
string SVG_NS = 'http://www.w3.org/2000/svg'
string XHTML_CSS_NAMESPACE = u'@namespace "%s";\n'
list XHTML_MIME = types_map['.xhtml']
string XHTML_NS = 'http://www.w3.org/1999/xhtml'
string XLINK_NS = 'http://www.w3.org/1999/xlink'
string XML_NS = 'http://www.w3.org/XML/1998/namespace'
tuple XMLDECL_RE = re.compile(r'^\s*<[?]xml.*?[?]>')
dictionary XPNSMAP
string XSI_NS = 'http://www.w3.org/2001/XMLSchema-instance'


Generated by  Doxygen 1.6.0   Back to index