RMDocument

The EPUB 3 Multiple Renditions Rendition Mapping Document.

class yael.rmdocument.RMDocument(internal_path=None, obj=None, string=None)[source]

Build the EPUB 3 Multiple Renditions Rendition Mapping Document or parse it from obj or string.

add_location(location)[source]

Add the given Rendition Mapping Location to this document.

Parameters:location (yael.rmlocation.RMLocation) – the location to be added
locations

The Rendition Mapping Location objects in this document.

Return type:list of yael.rmlocation.RMLocation
v_epub_type

The value of the epub:type attribute.

Return type:str