fimfic2epub/src/constants.js
2019-10-08 11:31:42 +02:00

41 lines
1 KiB
JavaScript

export const NS = {
OPF: 'http://www.idpf.org/2007/opf',
OPS: 'http://www.idpf.org/2007/ops',
DC: 'http://purl.org/dc/elements/1.1/',
DAISY: 'http://www.daisy.org/z3986/2005/ncx/',
XHTML: 'http://www.w3.org/1999/xhtml',
SVG: 'http://www.w3.org/2000/svg',
XLINK: 'http://www.w3.org/1999/xlink'
}
export const tidyOptions = {
indent: 'auto',
'numeric-entities': 'yes',
'output-xhtml': 'yes',
'alt-text': 'Image',
wrap: '0',
quiet: 'yes',
newline: 'LF',
'tidy-mark': 'no',
'show-body-only': 'auto'
}
export const containerXml = `<?xml version="1.0" encoding="UTF-8"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
<rootfiles>
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>
`
export const unicode = {
NO_BREAK_SPACE: '\u00a0',
WORD_JOINER: '\u2060',
HAIR_SPACE: '\u200a',
ZERO_WIDTH_SPACE: '\ufeff',
SHY_HYPHEN: '\u00ad'
}
export const youtubeKey = 'AIzaSyCF1taix0lTr7-e_XBZazIXfAr8IvxTJhA'