Functions¶
|
|
|
|
|
Details¶
- Gepub.utils_get_prop(node, prop)¶
- Parameters:
node (
libxml2.Node
) – anlibxml2.Node
prop (
str
) – a property
- Returns:
a string with the property contained in prop
- Return type:
- Gepub.utils_get_text_elements(node)¶
- Parameters:
node (
libxml2.Node
) – anlibxml2.Node
- Returns:
the text elements of node.
- Return type:
- Gepub.utils_replace_resources(content, path)¶
- Parameters:
content (
GLib.Bytes
) – aGLib.Bytes
containing the XML datapath (
str
) – The path to replace
- Returns:
a new
GLib.Bytes
containing the updated XML data- Return type:
Replacing epub media paths, for css, image and svg files, to be able to provide these files to webkit from the epub file.