Functions

utils_get_prop (node, prop)

utils_get_text_elements (node)

utils_replace_resources (content, path)

Details

Gepub.utils_get_prop(node, prop)
Parameters:
Returns:

a string with the property contained in prop

Return type:

str

Gepub.utils_get_text_elements(node)
Parameters:

node (libxml2.Node) – an libxml2.Node

Returns:

the text elements of node.

Return type:

[Gepub.TextChunk]

Gepub.utils_replace_resources(content, path)
Parameters:
Returns:

a new GLib.Bytes containing the updated XML data

Return type:

GLib.Bytes

Replacing epub media paths, for css, image and svg files, to be able to provide these files to webkit from the epub file.