Manual de usuario de calibre, Publicación 2.73.0
' device _ collections ', ' lpath ', ' size ', ' mime ',
# Ordered list of strings # Unicode, / separated # In bytes # Mimetype of the book file being represented
])
CALIBRE _ METADATA _ FIELDS = frozenset([ ' application _ id ', # An application id, currently set to the db _ id. ' db _ id ', # the calibre primary key of the item. ' formats ',
# list of formats( extensions) for this book # a dict of user category names, where the value is a list of item names # from the book that are in that category ' user _ categories ', # a dict of author to an associated hyperlink ' author _ link _ map ',
)
]
ALL _ METADATA _ FIELDS = SOCIAL _ METADATA _ FIELDS. union( PUBLICATION _ METADATA _ FIELDS). union( BOOK _ STRUCTURE _ FIELDS). union( USER _ METADATA _ FIELDS). union( DEVICE _ METADATA _ FIELDS). union( CALIBRE _ METADATA _ FIELDS)
# All fields except custom fields
STANDARD _ METADATA _ FIELDS = SOCIAL _ METADATA _ FIELDS. union( PUBLICATION _ METADATA _ FIELDS). union( BOOK _ STRUCTURE _ FIELDS). union( DEVICE _ METADATA _ FIELDS). union( CALIBRE _ METADATA _ FIELDS)
# Metadata fields that smart update must do special processing to copy.
SC _ FIELDS _ NOT _ COPIED = frozenset([' title ', ' title _ sort ', ' authors ', ' author _ sort ', ' author _ sort _ map ', ' cover _ data ', ' tags ', ' languages ', ' identifiers '])
# Metadata fields that smart update should copy only if the source is not None SC _ FIELDS _ COPY _ NOT _ NULL = frozenset([' lpath ', ' size ', ' comments ', ' thumbnail '])
# Metadata fields that smart update should copy without special handling
SC _ COPYABLE _ FIELDS = SOCIAL _ METADATA _ FIELDS. union( PUBLICATION _ METADATA _ FIELDS). union( BOOK _ STRUCTURE _ FIELDS). union( DEVICE _ METADATA _ FIELDS). union( CALIBRE _ METADATA _ FIELDS)- \ SC _ FIELDS _ NOT _ COPIED. union( SC _ FIELDS _ COPY _ NOT _ NULL)
SERIALIZABLE _ FIELDS = SOCIAL _ METADATA _ FIELDS. union( USER _ METADATA _ FIELDS). union( PUBLICATION _ METADATA _ FIELDS). union( CALIBRE _ METADATA _ FIELDS). union( DEVICE _ METADATA _ FIELDS)- \ frozenset([' device _ collections ', ' formats ',
1.9. Cursillos 173