Metas

Required Metadatas

class epubaker.metas.Identifier(text)

identifier

id

xml attributie: id

scheme

xml attribute: opf:scheme

class epubaker.metas.Language(text)

https://tools.ietf.org/html/rfc5646

example: en-US

id

xml attributie: id

class epubaker.metas.Title(text)

title of Book

alt_script

xml attribute: opf:alt-script

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

file_as

xml attribute: opf:file-as

id

xml attributie: id

lang

xml attribute: xml:lang

Option Metadatas

class epubaker.metas.Contributor(text)

contributor

alt_script

xml attribute: opf:alt-script

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

file_as

xml attribute: opf:file-as

id

xml attributie: id

lang

xml attribute: xml:lang

role

xml attribute: opf:role

class epubaker.metas.Coverage(text)

coverage

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

lang

xml attribute: xml:lang

class epubaker.metas.Creator(text)

creator

alt_script

xml attribute: opf:alt-script

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

file_as

xml attribute: opf:file-as

id

xml attributie: id

lang

xml attribute: xml:lang

role

xml attribute: opf:role

class epubaker.metas.Date(text)

date

id

xml attributie: id

class epubaker.metas.Description(text)

description

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

id

xml attributie: id

lang

xml attribute: xml:lang

class epubaker.metas.Format(text)

format

id

xml attributie: id

class epubaker.metas.Publisher(text)

publisher

alt_script

xml attribute: opf:alt-script

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

file_as

xml attribute: opf:file-as

id

xml attributie: id

lang

xml attribute: xml:lang

class epubaker.metas.Relation(text)

relation

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

id

xml attributie: id

lang

xml attribute: xml:lang

class epubaker.metas.Rights(text)

rights

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

id

xml attributie: id

lang

xml attribute: xml:lang

class epubaker.metas.Source(text)

source

id

xml attributie: id

class epubaker.metas.Subject(text)

subject

authority

xml attribute: authority

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

id

xml attributie: id

lang

xml attribute: xml:lang

class epubaker.metas.Type(text)

type

id

xml attributie: id

Only for Epub3

epubaker.metas.get_dcterm(name)

get a term class by term name

class epubaker.metas.Meta3(property_, text)

meta for Epub3.metadata

alt_script

xml attribute: opf:alt-script

dir

“ltr” (left-to-right) or “rtl” (right-to-left)

xml attribute: dir

file_as

xml attribute: opf:file-as

id

xml attributie: id

lang

xml attribute: xml:lang

property

xml attribute: property

scheme

xml attribute: opf:scheme

Only for Epub2

class epubaker.metas.Meta2(name, content)

meta for Epub2.metadata

class epubaker.metas.Cover(filepath)

cover for Epub2.metadata