epubcheck-standalone-cli 0.0.0-oidc-bootstrap → 5.3.0-build2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +37 -0
- package/README.md +112 -0
- package/dist/archive.d.ts +25 -0
- package/dist/archive.js +340 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +855 -0
- package/dist/help-text.d.ts +1 -0
- package/dist/help-text.js +12 -0
- package/dist/list-checks-data.d.ts +1 -0
- package/dist/list-checks-data.js +11 -0
- package/dist/list-checks-locale-data.d.ts +1 -0
- package/dist/list-checks-locale-data.js +22 -0
- package/dist/locale-messages.d.ts +3 -0
- package/dist/locale-messages.js +346 -0
- package/dist/messages.d.ts +93 -0
- package/dist/messages.js +136 -0
- package/package.json +64 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HELP_OUTPUT: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-cli-data.ts from the official epubcheck
|
|
2
|
+
// CLI `--help` output. Do not edit by hand; re-run `npm run generate:cli-data`
|
|
3
|
+
// after an epubcheck upgrade.
|
|
4
|
+
//
|
|
5
|
+
// HELP_OUTPUT is the VERBATIM text `epubcheck --help` / `-h` prints to stdout
|
|
6
|
+
// (source: com/adobe/epubcheck/util/messages.properties key `help_text`, plus
|
|
7
|
+
// the trailing newline outWriter.println adds), kept as exact bytes so the CLI
|
|
8
|
+
// is byte-identical to the real tool. The ONLY substitution is the version in
|
|
9
|
+
// the header line, interpolated from the library's EPUBCHECK_VERSION so an
|
|
10
|
+
// epubcheck upgrade regenerates it with no hand-edit here.
|
|
11
|
+
import { EPUBCHECK_VERSION } from "epubcheck-standalone";
|
|
12
|
+
export const HELP_OUTPUT = `EPUBCheck v${EPUBCHECK_VERSION}\n\nWhen running this tool, the first argument should be the name (with the path)\nof the file to check.\n\nTo specify a validation profile (to run checks against a specific EPUB 3 profile\nor extension specification), use the -profile option:\n\nValidation profiles supported:\n--profile default = the default validation profile\n--profile dict = validates against the EPUB Dictionaries and Glossaries specification\n--profile edupub = validates against the EDUPUB Profile\n--profile idx = validates against the EPUB Indexes specification\n--profile preview = validates against the EPUB Previews specification\n\nIf checking a non-epub file, the epub version of the file must\nbe specified using -v and the type of the file using -mode.\nThe default version is: 3.0.\n\nModes and versions supported:\n--mode opf -v 2.0\n--mode opf -v 3.0\n--mode xhtml -v 2.0\n--mode xhtml -v 3.0\n--mode svg -v 2.0\n--mode svg -v 3.0\n--mode nav -v 3.0\n--mode mo -v 3.0 = for Media Overlays validation\n--mode exp = for expanded EPUB archives\n\nThis tool also accepts the following options:\n--save = saves the epub created from the expanded epub\n--out <file> = output an assessment XML document file (use - to output to console)\n--xmp <file> = output an assessment XMP document file (use - to output to console)\n--json <file> = output an assessment JSON document file (use - to output to console)\n-m <file> = same as --mode\n-p <profile> = same as --profile\n-o <file> = same as --out\n-x <file> = same as --xmp\n-j <file> = same as --json\n--failonwarnings = By default, the tool returns a 1 if errors are found in the file or 0 if no errors\n are found. Using --failonwarnings will cause the process to exit with a status of\n 1 if either warnings or errors are present and 0 only when there are no errors or warnings.\n-q, --quiet = no message on console, except errors, only in the output\n-f, --fatal = include only fatal errors in the output\n-e, --error = include only error and fatal severity messages in ouput\n-w, --warn = include fatal, error, and warn severity messages in output\n-u, --usage = include ePub feature usage information in output\n (default is OFF); if enabled, usage information will\n always be included in the output file\n--locale <locale> = output localized messages according to the provided IETF BCP 47 language tag string.\n\n-l, --listChecks [<file>] = list message ids and severity levels to the custom message file named <file>\n or the console\n-c, --customMessages [<file>] = override message severity levels as defined in the custom message file named <file>\n\n--version = displays the EPUBCheck version\n\n-h, -? or --help = displays this help message\n\n`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LIST_CHECKS_TSV = "ID\tSeverity\tMessage\tSuggestion\nINF-001\tINFO\tRule %1$s is under review and its severity may change in a future release. See the discussion at %2$s\t\nACC-001\tSUPPRESSED\t\t\nACC-002\tSUPPRESSED\t\t\nACC-003\tSUPPRESSED\t\t\nACC-004\tSUPPRESSED\tHtml \"a\" element must have text.\t\nACC-005\tSUPPRESSED\tTable heading cells should be identified by \"th\" elements for accessibility.\t\nACC-006\tSUPPRESSED\tTables should include a \"thead\" element for accessibility.\t\nACC-007\tSUPPRESSED\tContent Documents do not use \"epub:type\" attributes for semantic inflection.\t\nACC-008\tSUPPRESSED\t\t\nACC-009\tUSAGE\tMathML should either have an \"alttext\" attribute or \"annotation-xml\" child element.\t\nACC-010\tSUPPRESSED\t\t\nACC-011\tUSAGE\tSVG hyperlink has no accessible name\t\nACC-012\tSUPPRESSED\tTable elements should include a caption element.\t\nACC-013\tSUPPRESSED\t\t\nACC-014\tSUPPRESSED\t\t\nACC-015\tSUPPRESSED\t\t\nACC-016\tSUPPRESSED\t\t\nACC-017\tSUPPRESSED\t\t\nCHK-001\tERROR\tThe custom message overrides file was not found.\t\nCHK-002\tERROR\tUnrecognized custom message id %1$s encountered in message overrides file \"%2$s\".\t\nCHK-003\tERROR\tUnrecognized custom message severity \"%1$s\" encountered in message overrides file \"%2$s\".\t\nCHK-004\tERROR\tThe custom message contains too many parameters in message overrides file \"%1$s\".\t\nCHK-005\tERROR\tThe custom suggestion contains too many parameters in message overrides file \"%1$s\".\t\nCHK-006\tERROR\tUnable to parse the custom format parameter in message overrides file \"%1$s\".\t\nCHK-007\tERROR\tError encountered while processing custom message file \"%1$s\": \"%2$s\".\t\nCHK-008\tERROR\tError encountered while processing an item \"%1$s\"; skip other checks for the item.\t\nCSS-001\tERROR\tThe \"%1$s\" property must not be included in an EPUB Style Sheet.\t\nCSS-002\tERROR\tEmpty or NULL reference found.\t\nCSS-003\tWARNING\tCSS document is encoded in UTF-16. It should be encoded in UTF-8 instead.\t\nCSS-004\tERROR\tCSS documents must be encoded in UTF-8, detected %1$s;\t\nCSS-005\tUSAGE\tConflicting alternate style tags found: %1$s.\t\nCSS-006\tUSAGE\tCSS selector specifies fixed position.\t\nCSS-007\tINFO\tFont-face reference \"%1$s\" refers to non-standard font type \"%2$s\".\t\nCSS-008\tERROR\tAn error occurred while parsing the CSS: %1$s.\t\nCSS-009\tSUPPRESSED\t\t\nCSS-010\tSUPPRESSED\t\t\nCSS-011\tSUPPRESSED\t\t\nCSS-012\tSUPPRESSED\t\t\nCSS-013\tSUPPRESSED\t\t\nCSS-015\tERROR\tAlternative style sheets must have a title.\t\nCSS-016\tSUPPRESSED\t\t\nCSS-017\tSUPPRESSED\t\t\nCSS-019\tWARNING\tCSS font-face declaration has no attributes.\t\nCSS-020\tSUPPRESSED\t\t\nCSS-021\tSUPPRESSED\t\t\nCSS-022\tSUPPRESSED\t\t\nCSS-023\tSUPPRESSED\t\t\nCSS-024\tSUPPRESSED\t\t\nCSS-025\tSUPPRESSED\t\t\nCSS-028\tUSAGE\tUse of Font-face declaration.\t\nCSS-029\tUSAGE\tFound CSS class name \"%1$s\" but no \"%2$s\" property was declared in the package document.\t\nCSS-030\tERROR\tThe package document declares media overlays styling class names but no CSS was found in the content document.\t\nHTM-001\tERROR\tAny publication resource that is an XML-based media type must be a valid XML 1.0 document. XML version found: %1$s.\t\nHTM-002\tWARNING\tThe installed xml parser doesn\u2019t support xml version verification. Xml files must be a valid XML 1.0 document.\t\nHTM-003\tERROR\tExternal entities are not allowed in EPUB v3 documents. External entity declaration found: %1$s.\t\nHTM-004\tERROR\tIrregular DOCTYPE: found \"%1$s\", expected \"%2$s\".\t\nHTM-005\tUSAGE\tAn external reference was found.\t\nHTM-006\tSUPPRESSED\t\t\nHTM-007\tWARNING\tEmpty or whitespace-only value of attribute ssml:ph.\t\nHTM-008\tSUPPRESSED\t\t\nHTM-009\tERROR\tThe DOCTYPE provided is obsolete or irregular and can be removed.\t\nHTM-010\tUSAGE\tNamespace \"%1$s\" is unusual for the prefix \"epub\".\t\nHTM-011\tERROR\tEntity is undeclared.\tDefine the entity or use the numbered entity instead.\nHTM-012\tSUPPRESSED\t\t\nHTM-013\tSUPPRESSED\t\t\nHTM-014\tSUPPRESSED\t\t\nHTM-014a\tSUPPRESSED\t\t\nHTM-015\tSUPPRESSED\t\t\nHTM-016\tSUPPRESSED\t\t\nHTM-017\tSUPPRESSED\t\t\nHTM-018\tSUPPRESSED\t\t\nHTM-019\tSUPPRESSED\t\t\nHTM-020\tSUPPRESSED\t\t\nHTM-021\tSUPPRESSED\t\t\nHTM-022\tSUPPRESSED\t\t\nHTM-023\tSUPPRESSED\t\t\nHTM-024\tSUPPRESSED\t\t\nHTM-025\tWARNING\tNon-registered URI scheme type found in href.\t\nHTM-027\tSUPPRESSED\t\t\nHTM-028\tSUPPRESSED\t\t\nHTM-029\tSUPPRESSED\t\t\nHTM-033\tSUPPRESSED\t\t\nHTM-036\tSUPPRESSED\t\t\nHTM-038\tSUPPRESSED\t\t\nHTM-044\tUSAGE\tNamespace uri \"%1$s\" was included but not used.\tRemove unused Namespace URIs.\nHTM-045\tUSAGE\tEncountered empty href.\tEmpty hrefs are valid self-references. These should be validated to ensure that this is the desired intent.\nHTM-046\tERROR\tFixed layout document has no \"viewport\" meta element.\t\nHTM-047\tERROR\tViewport metadata \"%1$s\" has a syntax error\t\nHTM-048\tERROR\tSVG Fixed-Layout Documents must have a \"viewBox\" attribute (on the outermost \"svg\" element).\t\nHTM-049\tSUPPRESSED\t\t\nHTM-050\tSUPPRESSED\t\t\nHTM-051\tWARNING\tFound Microdata semantic enrichments but no RDFa. EDUPUB recommends using RDFa Lite.\t\nHTM-052\tERROR\tThe property \"region-based\" is only allowed on nav elements in Data Navigation Documents.\t\nHTM_053\tSUPPRESSED\t\t\nHTM_054\tERROR\tCustom attribute namespace (\"%1$s\") must not include the string \"%2$s\" in its domain.\t\nHTM_055\tUSAGE\tThe \"%1$s\" element should not be used (discouraged construct)\t\nHTM_056\tERROR\tViewport metadata has no \"%1$s\" dimension (both \"width\" and \"height\" properties are required)\t\nHTM_057\tERROR\tViewport \"%1$s\" value must be a positive number or the keyword \"device-%1$s\"\t\nHTM_058\tERROR\tHTML documents must be encoded in UTF-8, but UTF-16 was detected.\t\nHTM_059\tERROR\tViewport \"%1$s\" property must not be defined more than once, but found values [%2$s].\t\nHTM_060a\tUSAGE\tEPUB reading systems must ignore secondary viewport meta elements in fixed-layout documents; viewport declaration \"%1$s\" will be ignored. \t\nHTM_060b\tUSAGE\tEPUB reading systems must ignore viewport meta elements in reflowable documents; viewport declaration \"%1$s\" will be ignored.\t\nHTM_061\tERROR\t\"%1$s\" is not a valid custom data attribute (it must have at least one character after the hyphen, be XML-compatible, and not contain ASCII uppercase letters).\t\nMED-001\tSUPPRESSED\t\t\nMED-002\tSUPPRESSED\t\t\nMED-003\tERROR\tPicture \"img\" elements must reference core media type resources, but found resource \"%1$s\" of type \"%2$s\".\t\nMED-004\tERROR\tImage file header may be corrupted.\t\nMED-005\tERROR\tMedia Overlay audio reference %1$s to non-standard audio type %2$s found.\t\nMED_006\tSUPPRESSED\t\t\nMED_007\tERROR\tPicture \"source\" elements must define a \"type\" attribute when they reference foreign resources; found resource \"%1$s\" of type \"%2$s\".\t\nMED-008\tERROR\tThe time specified in the clipBegin attribute must not be after clipEnd.\t\nMED-009\tERROR\tThe time specified in the clipBegin attribute must not be the same as clipEnd.\t\nMED_010\tERROR\tEPUB Content Documents referenced from a Media Overlay must specify the \"media-overlay\" attribute.\t\nMED_011\tERROR\tEPUB Content Document referenced from multiple Media Overlay Documents.\t\nMED_012\tERROR\tThe \"media-overlay\" attribute does not match the ID of the Media Overlay that refers to this document.\t\nMED_013\tERROR\tMedia Overlay Document referenced from the \"media-overlay\" attribute does not contain a reference to this Content Document.\t\nMED_014\tERROR\tMedia overlay audio file URLs must not have a fragment, but found '#%1$s'. \t\nMED_015\tUSAGE\tMedia overlay text references must be in reading order. Text target \"%1$s\" is before the previous link target in %2$s order.\t\nMED_016\tWARNING\tMedia Overlays total duration should be the sum of the durations of all Media Overlays documents.\t\nMED_017\tWARNING\tURL fragment should indicate an element ID, but found '#%1$s'.\t\nMED_018\tWARNING\tURL fragment should be an SVG fragment identifier, but found '#%1$s'.\t\nNAV-001\tERROR\tThe nav file is not supported for EPUB v2.\t\nNAV-002\tSUPPRESSED\t\t\nNAV-003\tERROR\tThe Navigation Document must have a page list when content document(s) contain page breaks (epub:type=\"pagebreak\").\t\nNAV-004\tUSAGE\tThe Navigation Document should contain the full document heading hierarchy in EDUPUB.\t\nNAV-005\tUSAGE\tContent documents contain \"audio\" elements but the Navigation Document does not have a listing of audio clips (epub:type=\"loa\").\t\nNAV-006\tUSAGE\tContent documents contain \"figure\" elements but the Navigation Document does not have a listing of figures (epub:type=\"loi\").\t\nNAV-007\tUSAGE\tContent documents contain \"table\" elements but the Navigation Document does not have a listing of tables (epub:type=\"lot\").\t\nNAV-008\tUSAGE\tContent documents contain \"video\" elements but the Navigation Document does not have a listing of video clips (epub:type=\"lov\").\t\nNAV-009\tERROR\tRegion-based navigation links must point to Fixed-Layout Documents.\t\nNAV-010\tERROR\t\"%1$s\" nav must not link to remote resources; found link to \"%2$s\".\t\nNAV-011\tWARNING\t\"%1$s\" nav must be in reading order; link target \"%2$s\" is before the previous link\u2019s target in %3$s order.\t\nNCX-001\tERROR\tNCX identifier (\"%1$s\") does not match OPF identifier (\"%2$s\").\t\nNCX-002\tSUPPRESSED\t\t\nNCX-003\tSUPPRESSED\t\t\nNCX-004\tUSAGE\tNCX identifier (\"dtb:uid\" metadata) should not contain leading or trailing whitespace.\t\nNCX-005\tSUPPRESSED\t\t\nNCX-006\tUSAGE\tEmpty \"text\" label in the NCX document\t\nOPF-001\tERROR\tThere was an error when parsing the EPUB version: %1$s.\t\nOPF-002\tFATAL\tThe OPF file \"%1$s\" was not found in the EPUB.\t\nOPF-003\tUSAGE\tItem \"%1$s\" exists in the EPUB, but is not declared in the OPF manifest.\t\nOPF-004\tWARNING\tInvalid prefix declaration: leading or trailing whitespace is not allowed.\t\nOPF-004a\tERROR\tInvalid prefix declaration: found empty prefix.\t\nOPF-004b\tERROR\tInvalid prefix \"%1$s\": must be a valid non-colonized name (aka \"NCName\").\t\nOPF-004c\tERROR\tInvalid prefix declaration: prefix \"%1$s\" must be immediately followed by a colon character (\":\").\t\nOPF-004d\tERROR\tInvalid prefix declaration: prefix \"%1$s\" must be separated by its URI with a space.\t\nOPF-004e\tWARNING\tInvalid prefix declaration: found illegal whitespace between prefix and URI.\t\nOPF-004f\tWARNING\tInvalid prefix declaration: found illegal whitespace between prefix mappings.\t\nOPF-005\tERROR\tInvalid prefix declaration: URI for prefix \"%1$s\" doesn\u2019t exist.\t\nOPF-006\tERROR\tInvalid prefix declaration: URI \"%1$s\" is not a valid URI.\t\nOPF-007\tWARNING\tRe-declaration of reserved prefix \"%1$s\".\t\nOPF-007a\tERROR\tInvalid prefix mapping: prefix \"_\" must not be declared.\t\nOPF-007b\tERROR\tInvalid prefix mapping: default vocabulary \"%1$s\" must not be re-declared.\t\nOPF-007c\tERROR\tInvalid prefix mapping: a prefix to the Dublin Core /elements/1.1/ namespace must not be declared\t\nOPF-008\tSUPPRESSED\t\t\nOPF-009\tSUPPRESSED\t\t\nOPF-010\tERROR\tError resolving reference: \"%1$s\".\t\nOPF-011\tERROR\titemref can\u2019t have both page-spread-right and page-spread-left properties.\t\nOPF-012\tERROR\tItem property \"%1$s\" is not defined for media type \"%2$s\".\t\nOPF-013\tWARNING\tResource \"%1$s\" is declared with MIME type \"%2$s\" in content, but has MIME type \"%3$s\" in the package document.\t\nOPF-014\tERROR\tThe property \"%1$s\" should be declared in the OPF file.\t\nOPF-015\tERROR\tThe property \"%1$s\" should not be declared in the OPF file.\t\nOPF-016\tERROR\tThe element \"rootfile\" is missing its required attribute \"full-path\".\t\nOPF-017\tERROR\tThe attribute \"full-path\" on element \"rootfile\" must not be empty.\t\nOPF-018\tWARNING\tThe \"remote-resources\" property was declared in the Package Document, but no reference to remote resources has been found.\t\nOPF-018b\tUSAGE\tThe \"remote-resources\" property was declared in the Package Document, but no reference to remote resources has been found; please check scripted content to make sure the property is legit. \t\nOPF-019\tSUPPRESSED\t\t\nOPF-020\tSUPPRESSED\t\t\nOPF-021\tWARNING\tUse of non-registered URI scheme type in href: \"%1$s\".\t\nOPF-025\tERROR\tProperty value list \"%1$s\" is not allowed, only one value must be specified.\t\nOPF-026\tERROR\tFound malformed property value: \"%1$s\".\t\nOPF-027\tERROR\tUndefined property: \"%1$s\".\t\nOPF-028\tERROR\tUndeclared prefix: \"%1$s\".\t\nOPF-029\tERROR\tThe file \"%1$s\" does not appear to match the media type %2$s, as specified in the OPF file.\t\nOPF-030\tERROR\tThe unique-identifier \"%1$s\" was not found.\t\nOPF-031\tERROR\tFile listed in reference element in guide was not declared in OPF manifest: %1$s.\t\nOPF-032\tERROR\tGuide references \"%1$s\" which is not a valid \"OPS Content Document\".\t\nOPF-033\tERROR\tThe spine contains no linear resources.\t\nOPF-034\tERROR\tThe spine contains multiple references to the manifest item with id \"%1$s\".\t\nOPF-035\tWARNING\tMedia type \"text/html\" is not appropriate for XHTML/OPS.\tUse \"application/xhtml+xml\" instead.\nOPF-036\tUSAGE\tVideo type \"%1$s\" might not be supported by reading systems\tUse \"video/mp4\", \"video/h264\" or \"video/webm\" instead.\nOPF-037\tWARNING\tFound deprecated media-type \"%1$s\".\t\nOPF-038\tWARNING\tMedia type \"%1$s\" is not appropriate for an OEBPS 1.2 context; Use \"text/x-oeb1-document\" instead.\t\nOPF-039\tWARNING\tMedia-type \"%1$s\" is not appropriate in an OEBPS 1.2 context. Use \"text/x-oeb1-css\" instead.\t\nOPF-040\tERROR\tFallback item with id \"%1$s\" could not be found.\t\nOPF-041\tERROR\tFallback-style item with id \"%1$s\" could not be found.\t\nOPF-042\tERROR\t\"%1$s\" is not a permissible spine media-type.\t\nOPF-043\tERROR\tSpine item with non-standard media-type \"%1$s\" has no fallback.\t\nOPF-044\tERROR\tSpine item with non-standard media-type \"%1$s\" has no EPUB content document fallback.\t\nOPF-045\tERROR\tEncountered circular reference in fallback chain.\t\nOPF-046\tSUPPRESSED\t\t\nOPF-047\tUSAGE\tOPF file is using OEBPS 1.2 syntax allowing backwards compatibility.\t\nOPF-048\tERROR\tPackage tag is missing its required unique-identifier attribute and value.\t\nOPF-049\tERROR\tItem id \"%1$s\" was not found in the manifest.\t\nOPF-050\tERROR\tTOC attribute references resource with non-NCX mime type; \"application/x-dtbncx+xml\" is expected.\t\nOPF-051\tSUPPRESSED\tImage dimensions exceed recommended size.\t\nOPF-052\tERROR\tRole value \"%1$s\" is not valid.\t\nOPF-053\tWARNING\tDate value \"%1$s\" does not follow recommended syntax as per http://www.w3.org/TR/NOTE-datetime:%2$s.\t\nOPF-054\tERROR\tDate value \"%1$s\" is not valid as per http://www.w3.org/TR/NOTE-datetime:%2$s.\t\nOPF-055\tWARNING\t%1$s tag is empty.\t\nOPF-056\tSUPPRESSED\t\t\nOPF-057\tSUPPRESSED\tImage file length exceeds recommended size.\t\nOPF-058\tSUPPRESSED\t\t\nOPF-059\tSUPPRESSED\t\t\nOPF-060\tERROR\tDuplicate entry in the ZIP file: \"%1$s\" (file names must be unique after Unicode canonical normalization and full case folding).\t\nOPF-062\tUSAGE\tFound Adobe page-map attribute on spine element in opf file.\t\nOPF-063\tWARNING\tReferenced Adobe page-map item \"%1$s\" was not found in the manifest.\t\nOPF-064\tINFO\tOPF declares type \"%1$s\", validating using profile \"%2$s\".\t\nOPF-065\tERROR\tInvalid metadata declaration, probably due to a cycle in \"refines\" metadata.\t\nOPF-066\tERROR\tMissing \"dc:source\" or \"source-of\" pagination metadata. The pagination source must be identified using the \"dc:source\" and \"source-of\" properties when the content includes page break markers.\t\nOPF-067\tERROR\tThe resource \"%1$s\" must not be listed both as a \"link\" element in the package metadata and as a manifest item.\t\nOPF-068\tSUPPRESSED\t\t\nOPF-069\tSUPPRESSED\t\t\nOPF-070\tWARNING\tCustom collection role \"%1$s\" is an invalid URL.\t\nOPF-071\tERROR\tIndex collections must only contain resources pointing to XHTML Content Documents.\t\nOPF-072\tUSAGE\tMetadata element \"%1$s\" is empty.\t\nOPF-073\tERROR\tExternal identifiers must not appear in the document type declaration.\t\nOPF-074\tERROR\tPackage resource \"%1$s\" is declared in several manifest item.\t\nOPF-075\tERROR\tPreview collections must only point to EPUB Content Documents.\t\nOPF-076\tERROR\tThe URI of preview collections link elements must not include EPUB canonical fragment identifiers.\t\nOPF-077\tWARNING\tA Data Navigation Document should not be included in the spine.\t\nOPF-078\tERROR\tAn EPUB Dictionary must contain at least one Content Document with dictionary content (epub:type \"dictionary\").\t\nOPF-079\tWARNING\tDictionary content was found (epub:type \"dictionary\"), the Package Document should declare the dc:type \"dictionary\".\t\nOPF-080\tWARNING\tA Search Key Map document file name should have the extension \".xml\".\t\nOPF-081\tERROR\tResource \"%1$s\" (referenced from an EPUB Dictionary collection) was not found.\t\nOPF-082\tERROR\tFound an EPUB Dictionary collection containing more than one Search Key Map Document.\t\nOPF-083\tERROR\tFound an EPUB Dictionary collection containing no Search Key Map Document.\t\nOPF-084\tERROR\tFound an EPUB Dictionary collection containing resource \"%1$s\" which is neither a Search Key Map Document nor an XHTML Content Document.\t\nOPF-085\tWARNING\t\"dc:identifier\" value \"%1$s\" is marked as a UUID, but is an invalid UUID.\t\nOPF-086\tWARNING\tProperty \"%1$s\" is deprecated. Consider using %2$s instead.\t\nOPF-086b\tUSAGE\tepub:type value \"%1$s\" is deprecated. Consider using %2$s instead.\t\nOPF-087\tUSAGE\tepub:type value \"%1$s\" is not allowed on documents of type \"%2$s\".\t\nOPF-088\tUSAGE\tUnrecognized epub:type value \"%1$s\".\t\nOPF-089\tERROR\tThe \"alternate\" link rel keyword cannot be paired with other keywords.\t\nOPF-090\tUSAGE\tIt is encouraged to use MIME media type \"%1$s\" instead of \"%2$s\".\t\nOPF-091\tERROR\tThe item href URL must not have a fragment identifier.\t\nOPF-092\tERROR\tLanguage tag \"%1$s\" is not well-formed: %2$s\t\nOPF-093\tERROR\tThe \"media-type\" attribute is required for linked resources located in the EPUB container\t\nOPF-094\tERROR\tThe \"media-type\" attribute is required for \"%1$s\" links.\t\nOPF-095\tERROR\tThe \"media-type\" attribute of \"voicing\" links must be an audio MIME type, but found \"%1$s\".\t\nOPF-096\tERROR\tNon-linear content must be reachable, but found no hyperlink to \"%1$s\".\t\nOPF-096b\tUSAGE\tNo hyperlink was found to non-linear document \"%1$s\", please check that it can be reached from scripted content.\t\nOPF-097\tUSAGE\tResource \"%1$s\" is listed in the manifest, but no reference to it was found in content documents.\t\nOPF-098\tERROR\tThe \"href\" attribute must reference resources, not elements in the package document, but found URL \"%1$s\".\t\nOPF-099\tERROR\tThe manifest must not list the package document.\t\nPKG-001\tWARNING\tValidating the EPUB against version %1$s but detected version %2$s.\t\nPKG-003\tERROR\tUnable to read EPUB file header. This is likely a corrupted EPUB file.\t\nPKG-004\tFATAL\tCorrupted EPUB ZIP header.\t\nPKG-005\tERROR\tThe mimetype file has an extra field of length %1$s. The use of the extra field feature of the ZIP format is not permitted for the mimetype file.\t\nPKG-006\tERROR\tMimetype file entry is missing or is not the first file in the archive.\t\nPKG-007\tERROR\tMimetype file should only contain the string \"application/epub+zip\" and should not be compressed.\t\nPKG-008\tFATAL\tUnable to read file \"%1$s\".\t\nPKG-009\tERROR\tThe file name \"%1$s\" contains characters that are not allowed in OCF file names: %2$s.\t\nPKG-010\tWARNING\tThe file name \"%1$s\" contains spaces, which may create interoperability issues with older reading systems.\t\nPKG-011\tERROR\tThe file name \"%1$s\" is not allowed to end with \".\".\t\nPKG-012\tUSAGE\tThe file name \"%1$s\" contains non-ASCII characters, which might create interoperability issues with older reading systems.\t\nPKG-013\tERROR\tThe EPUB file includes multiple OPS renditions.\t\nPKG-014\tWARNING\tThe EPUB contains empty directory \"%1$s\".\t\nPKG-015\tFATAL\tUnable to read EPUB contents: %1$s\t\nPKG-016\tWARNING\tUse only lowercase characters for the EPUB file extension for maximum compatibility.\tFor maximum compatibility, use \".epub\".\nPKG-017\tWARNING\tUncommon EPUB file extension.\tFor maximum compatibility, use \".epub\".\nPKG-018\tFATAL\tThe EPUB file could not be found.\t\nPKG-020\tERROR\tOPF file \"%1$s\" could not be found.\t\nPKG-021\tERROR\tCorrupted image file encountered.\t\nPKG-022\tWARNING\tWrong file extension for image. The image is a \"%1$s\" file but has the file extension \"%2$s\".\t\nPKG-023\tUSAGE\tValidating the EPUB against version 2.0, default validation profile will be used.\t\nPKG-024\tUSAGE\tUncommon EPUB file extension.\tFor maximum compatibility, use \".epub\".\nPKG-025\tERROR\tPublication resource must not be located in the META-INF directory\t\nPKG-026\tERROR\tObfuscated resource must be a Font Core Media Type (was declared as \"%1$s\" in \"%2$s\").\t\nPKG-027\tFATAL\tCould not extract EPUB ZIP content, probably due to file names not encoded in UTF-8. \t\nRSC-001\tERROR\tFile \"%1$s\" could not be found.\t\nRSC-002\tFATAL\tRequired META-INF/container.xml resource could not be found.\t\nRSC-003\tERROR\tNo rootfile tag with media type \"application/oebps-package+xml\" was found in the container.\t\nRSC-004\tINFO\tFile \"%1$s\" is encrypted, its content will not be checked.\t\nRSC-005\tERROR\tError while parsing file: %1$s\t\nRSC-006\tERROR\tRemote resource reference is not allowed in this context; resource \"%1$s\" must be located in the EPUB container.\t\nRSC-006b\tUSAGE\tResource \"%1$s\" is located outside the EPUB Container; please check the resource is retrieved in scripted content. \t\nRSC-007\tERROR\tReferenced resource \"%1$s\" could not be found in the EPUB.\t\nRSC-007w\tWARNING\tReferenced resource \"%1$s\" could not be found in the EPUB.\t\nRSC-008\tERROR\tReferenced resource \"%1$s\" is not declared in the OPF manifest.\t\nRSC-009\tWARNING\tA non-SVG image resource should not be defined with a fragment identifier.\t\nRSC-010\tERROR\tReference to non-standard resource type found.\t\nRSC-011\tERROR\tFound a reference to a resource that is not a spine item.\t\nRSC-012\tERROR\tFragment identifier is not defined.\t\nRSC-013\tERROR\tFragment identifier is used in a reference to a stylesheet resource.\t\nRSC-014\tERROR\tFragment identifier defines an incompatible resource type.\t\nRSC-015\tERROR\tA fragment identifier is required for svg use tag references.\t\nRSC-016\tFATAL\tFatal Error while parsing file: %1$s\t\nRSC-017\tWARNING\tWarning while parsing file: %1$s\t\nRSC-018\tSUPPRESSED\t\t\nRSC-019\tWARNING\tEPUBs with Multiple Renditions should contain a META-INF/metadata.xml file.\t\nRSC-020\tERROR\t\"%1$s\" is not a valid URL (%2$s)\t\nRSC-021\tERROR\tA Search Key Map Document must point to Content Documents (\"%1$s\" was not found in the spine).\t\nRSC-022\tINFO\tCannot check image details (requires Java version 7 or higher).\t\nRSC-023\tSUPPRESSED\t\t\nRSC-024\tUSAGE\tInformative parsing warning: %1$s\t\nRSC-025\tUSAGE\tInformative parsing error: %1$s\t\nRSC-026\tERROR\tURL \"%1$s\" leaks outside the container (it is not a valid-relative-ocf-URL-with-fragment string)\t\nRSC-027\tWARNING\tXML document is encoded in UTF-16. It should be encoded in UTF-8 instead.\t\nRSC-028\tERROR\tXML documents must be encoded in UTF-8, but %1$s was detected.\t\nRSC-029\tERROR\tData URL is not allowed in this context.\t\nRSC-030\tERROR\tFile URLs are not allowed in EPUB, but found \"%1$s\".\t\nRSC-031\tWARNING\tRemote resource references should use HTTPS, but found \"%1$s\".\t\nRSC-032\tERROR\tFallback must be provided for foreign resources, but found none for resource \"%1$s\" of type \"%2$s\".\t\nRSC-033\tERROR\tRelative URL strings must not have a query component, but found one in \"%1$s\".\t\nSCP-001\tSUPPRESSED\t\t\nSCP-002\tSUPPRESSED\t\t\nSCP-003\tSUPPRESSED\t\t\nSCP-004\tSUPPRESSED\t\t\nSCP-005\tSUPPRESSED\t\t\nSCP-006\tSUPPRESSED\t\t\nSCP-007\tSUPPRESSED\t\t\nSCP-008\tSUPPRESSED\t\t\nSCP-009\tSUPPRESSED\t\t\nSCP-010\tSUPPRESSED\t\t\n";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-cli-data.ts from the official epubcheck
|
|
2
|
+
// CLI `--listChecks` output. Do not edit by hand; re-run
|
|
3
|
+
// `npm run generate:cli-data` after an epubcheck upgrade.
|
|
4
|
+
//
|
|
5
|
+
// LIST_CHECKS_TSV is the VERBATIM message dictionary `epubcheck --listChecks`
|
|
6
|
+
// prints (default/English locale): a tab-separated table of every message id,
|
|
7
|
+
// its default severity, message template, and suggestion (source:
|
|
8
|
+
// com.adobe.epubcheck.tool.MessageDictionaryDumper over the default
|
|
9
|
+
// MessageBundle). It is static per epubcheck version, embedded here to
|
|
10
|
+
// reproduce --listChecks byte-for-byte without the JVM.
|
|
11
|
+
export const LIST_CHECKS_TSV = "ID\tSeverity\tMessage\tSuggestion\nINF-001\tINFO\tRule %1$s is under review and its severity may change in a future release. See the discussion at %2$s\t\nACC-001\tSUPPRESSED\t\t\nACC-002\tSUPPRESSED\t\t\nACC-003\tSUPPRESSED\t\t\nACC-004\tSUPPRESSED\tHtml \"a\" element must have text.\t\nACC-005\tSUPPRESSED\tTable heading cells should be identified by \"th\" elements for accessibility.\t\nACC-006\tSUPPRESSED\tTables should include a \"thead\" element for accessibility.\t\nACC-007\tSUPPRESSED\tContent Documents do not use \"epub:type\" attributes for semantic inflection.\t\nACC-008\tSUPPRESSED\t\t\nACC-009\tUSAGE\tMathML should either have an \"alttext\" attribute or \"annotation-xml\" child element.\t\nACC-010\tSUPPRESSED\t\t\nACC-011\tUSAGE\tSVG hyperlink has no accessible name\t\nACC-012\tSUPPRESSED\tTable elements should include a caption element.\t\nACC-013\tSUPPRESSED\t\t\nACC-014\tSUPPRESSED\t\t\nACC-015\tSUPPRESSED\t\t\nACC-016\tSUPPRESSED\t\t\nACC-017\tSUPPRESSED\t\t\nCHK-001\tERROR\tThe custom message overrides file was not found.\t\nCHK-002\tERROR\tUnrecognized custom message id %1$s encountered in message overrides file \"%2$s\".\t\nCHK-003\tERROR\tUnrecognized custom message severity \"%1$s\" encountered in message overrides file \"%2$s\".\t\nCHK-004\tERROR\tThe custom message contains too many parameters in message overrides file \"%1$s\".\t\nCHK-005\tERROR\tThe custom suggestion contains too many parameters in message overrides file \"%1$s\".\t\nCHK-006\tERROR\tUnable to parse the custom format parameter in message overrides file \"%1$s\".\t\nCHK-007\tERROR\tError encountered while processing custom message file \"%1$s\": \"%2$s\".\t\nCHK-008\tERROR\tError encountered while processing an item \"%1$s\"; skip other checks for the item.\t\nCSS-001\tERROR\tThe \"%1$s\" property must not be included in an EPUB Style Sheet.\t\nCSS-002\tERROR\tEmpty or NULL reference found.\t\nCSS-003\tWARNING\tCSS document is encoded in UTF-16. It should be encoded in UTF-8 instead.\t\nCSS-004\tERROR\tCSS documents must be encoded in UTF-8, detected %1$s;\t\nCSS-005\tUSAGE\tConflicting alternate style tags found: %1$s.\t\nCSS-006\tUSAGE\tCSS selector specifies fixed position.\t\nCSS-007\tINFO\tFont-face reference \"%1$s\" refers to non-standard font type \"%2$s\".\t\nCSS-008\tERROR\tAn error occurred while parsing the CSS: %1$s.\t\nCSS-009\tSUPPRESSED\t\t\nCSS-010\tSUPPRESSED\t\t\nCSS-011\tSUPPRESSED\t\t\nCSS-012\tSUPPRESSED\t\t\nCSS-013\tSUPPRESSED\t\t\nCSS-015\tERROR\tAlternative style sheets must have a title.\t\nCSS-016\tSUPPRESSED\t\t\nCSS-017\tSUPPRESSED\t\t\nCSS-019\tWARNING\tCSS font-face declaration has no attributes.\t\nCSS-020\tSUPPRESSED\t\t\nCSS-021\tSUPPRESSED\t\t\nCSS-022\tSUPPRESSED\t\t\nCSS-023\tSUPPRESSED\t\t\nCSS-024\tSUPPRESSED\t\t\nCSS-025\tSUPPRESSED\t\t\nCSS-028\tUSAGE\tUse of Font-face declaration.\t\nCSS-029\tUSAGE\tFound CSS class name \"%1$s\" but no \"%2$s\" property was declared in the package document.\t\nCSS-030\tERROR\tThe package document declares media overlays styling class names but no CSS was found in the content document.\t\nHTM-001\tERROR\tAny publication resource that is an XML-based media type must be a valid XML 1.0 document. XML version found: %1$s.\t\nHTM-002\tWARNING\tThe installed xml parser doesn’t support xml version verification. Xml files must be a valid XML 1.0 document.\t\nHTM-003\tERROR\tExternal entities are not allowed in EPUB v3 documents. External entity declaration found: %1$s.\t\nHTM-004\tERROR\tIrregular DOCTYPE: found \"%1$s\", expected \"%2$s\".\t\nHTM-005\tUSAGE\tAn external reference was found.\t\nHTM-006\tSUPPRESSED\t\t\nHTM-007\tWARNING\tEmpty or whitespace-only value of attribute ssml:ph.\t\nHTM-008\tSUPPRESSED\t\t\nHTM-009\tERROR\tThe DOCTYPE provided is obsolete or irregular and can be removed.\t\nHTM-010\tUSAGE\tNamespace \"%1$s\" is unusual for the prefix \"epub\".\t\nHTM-011\tERROR\tEntity is undeclared.\tDefine the entity or use the numbered entity instead.\nHTM-012\tSUPPRESSED\t\t\nHTM-013\tSUPPRESSED\t\t\nHTM-014\tSUPPRESSED\t\t\nHTM-014a\tSUPPRESSED\t\t\nHTM-015\tSUPPRESSED\t\t\nHTM-016\tSUPPRESSED\t\t\nHTM-017\tSUPPRESSED\t\t\nHTM-018\tSUPPRESSED\t\t\nHTM-019\tSUPPRESSED\t\t\nHTM-020\tSUPPRESSED\t\t\nHTM-021\tSUPPRESSED\t\t\nHTM-022\tSUPPRESSED\t\t\nHTM-023\tSUPPRESSED\t\t\nHTM-024\tSUPPRESSED\t\t\nHTM-025\tWARNING\tNon-registered URI scheme type found in href.\t\nHTM-027\tSUPPRESSED\t\t\nHTM-028\tSUPPRESSED\t\t\nHTM-029\tSUPPRESSED\t\t\nHTM-033\tSUPPRESSED\t\t\nHTM-036\tSUPPRESSED\t\t\nHTM-038\tSUPPRESSED\t\t\nHTM-044\tUSAGE\tNamespace uri \"%1$s\" was included but not used.\tRemove unused Namespace URIs.\nHTM-045\tUSAGE\tEncountered empty href.\tEmpty hrefs are valid self-references. These should be validated to ensure that this is the desired intent.\nHTM-046\tERROR\tFixed layout document has no \"viewport\" meta element.\t\nHTM-047\tERROR\tViewport metadata \"%1$s\" has a syntax error\t\nHTM-048\tERROR\tSVG Fixed-Layout Documents must have a \"viewBox\" attribute (on the outermost \"svg\" element).\t\nHTM-049\tSUPPRESSED\t\t\nHTM-050\tSUPPRESSED\t\t\nHTM-051\tWARNING\tFound Microdata semantic enrichments but no RDFa. EDUPUB recommends using RDFa Lite.\t\nHTM-052\tERROR\tThe property \"region-based\" is only allowed on nav elements in Data Navigation Documents.\t\nHTM_053\tSUPPRESSED\t\t\nHTM_054\tERROR\tCustom attribute namespace (\"%1$s\") must not include the string \"%2$s\" in its domain.\t\nHTM_055\tUSAGE\tThe \"%1$s\" element should not be used (discouraged construct)\t\nHTM_056\tERROR\tViewport metadata has no \"%1$s\" dimension (both \"width\" and \"height\" properties are required)\t\nHTM_057\tERROR\tViewport \"%1$s\" value must be a positive number or the keyword \"device-%1$s\"\t\nHTM_058\tERROR\tHTML documents must be encoded in UTF-8, but UTF-16 was detected.\t\nHTM_059\tERROR\tViewport \"%1$s\" property must not be defined more than once, but found values [%2$s].\t\nHTM_060a\tUSAGE\tEPUB reading systems must ignore secondary viewport meta elements in fixed-layout documents; viewport declaration \"%1$s\" will be ignored. \t\nHTM_060b\tUSAGE\tEPUB reading systems must ignore viewport meta elements in reflowable documents; viewport declaration \"%1$s\" will be ignored.\t\nHTM_061\tERROR\t\"%1$s\" is not a valid custom data attribute (it must have at least one character after the hyphen, be XML-compatible, and not contain ASCII uppercase letters).\t\nMED-001\tSUPPRESSED\t\t\nMED-002\tSUPPRESSED\t\t\nMED-003\tERROR\tPicture \"img\" elements must reference core media type resources, but found resource \"%1$s\" of type \"%2$s\".\t\nMED-004\tERROR\tImage file header may be corrupted.\t\nMED-005\tERROR\tMedia Overlay audio reference %1$s to non-standard audio type %2$s found.\t\nMED_006\tSUPPRESSED\t\t\nMED_007\tERROR\tPicture \"source\" elements must define a \"type\" attribute when they reference foreign resources; found resource \"%1$s\" of type \"%2$s\".\t\nMED-008\tERROR\tThe time specified in the clipBegin attribute must not be after clipEnd.\t\nMED-009\tERROR\tThe time specified in the clipBegin attribute must not be the same as clipEnd.\t\nMED_010\tERROR\tEPUB Content Documents referenced from a Media Overlay must specify the \"media-overlay\" attribute.\t\nMED_011\tERROR\tEPUB Content Document referenced from multiple Media Overlay Documents.\t\nMED_012\tERROR\tThe \"media-overlay\" attribute does not match the ID of the Media Overlay that refers to this document.\t\nMED_013\tERROR\tMedia Overlay Document referenced from the \"media-overlay\" attribute does not contain a reference to this Content Document.\t\nMED_014\tERROR\tMedia overlay audio file URLs must not have a fragment, but found '#%1$s'. \t\nMED_015\tUSAGE\tMedia overlay text references must be in reading order. Text target \"%1$s\" is before the previous link target in %2$s order.\t\nMED_016\tWARNING\tMedia Overlays total duration should be the sum of the durations of all Media Overlays documents.\t\nMED_017\tWARNING\tURL fragment should indicate an element ID, but found '#%1$s'.\t\nMED_018\tWARNING\tURL fragment should be an SVG fragment identifier, but found '#%1$s'.\t\nNAV-001\tERROR\tThe nav file is not supported for EPUB v2.\t\nNAV-002\tSUPPRESSED\t\t\nNAV-003\tERROR\tThe Navigation Document must have a page list when content document(s) contain page breaks (epub:type=\"pagebreak\").\t\nNAV-004\tUSAGE\tThe Navigation Document should contain the full document heading hierarchy in EDUPUB.\t\nNAV-005\tUSAGE\tContent documents contain \"audio\" elements but the Navigation Document does not have a listing of audio clips (epub:type=\"loa\").\t\nNAV-006\tUSAGE\tContent documents contain \"figure\" elements but the Navigation Document does not have a listing of figures (epub:type=\"loi\").\t\nNAV-007\tUSAGE\tContent documents contain \"table\" elements but the Navigation Document does not have a listing of tables (epub:type=\"lot\").\t\nNAV-008\tUSAGE\tContent documents contain \"video\" elements but the Navigation Document does not have a listing of video clips (epub:type=\"lov\").\t\nNAV-009\tERROR\tRegion-based navigation links must point to Fixed-Layout Documents.\t\nNAV-010\tERROR\t\"%1$s\" nav must not link to remote resources; found link to \"%2$s\".\t\nNAV-011\tWARNING\t\"%1$s\" nav must be in reading order; link target \"%2$s\" is before the previous link’s target in %3$s order.\t\nNCX-001\tERROR\tNCX identifier (\"%1$s\") does not match OPF identifier (\"%2$s\").\t\nNCX-002\tSUPPRESSED\t\t\nNCX-003\tSUPPRESSED\t\t\nNCX-004\tUSAGE\tNCX identifier (\"dtb:uid\" metadata) should not contain leading or trailing whitespace.\t\nNCX-005\tSUPPRESSED\t\t\nNCX-006\tUSAGE\tEmpty \"text\" label in the NCX document\t\nOPF-001\tERROR\tThere was an error when parsing the EPUB version: %1$s.\t\nOPF-002\tFATAL\tThe OPF file \"%1$s\" was not found in the EPUB.\t\nOPF-003\tUSAGE\tItem \"%1$s\" exists in the EPUB, but is not declared in the OPF manifest.\t\nOPF-004\tWARNING\tInvalid prefix declaration: leading or trailing whitespace is not allowed.\t\nOPF-004a\tERROR\tInvalid prefix declaration: found empty prefix.\t\nOPF-004b\tERROR\tInvalid prefix \"%1$s\": must be a valid non-colonized name (aka \"NCName\").\t\nOPF-004c\tERROR\tInvalid prefix declaration: prefix \"%1$s\" must be immediately followed by a colon character (\":\").\t\nOPF-004d\tERROR\tInvalid prefix declaration: prefix \"%1$s\" must be separated by its URI with a space.\t\nOPF-004e\tWARNING\tInvalid prefix declaration: found illegal whitespace between prefix and URI.\t\nOPF-004f\tWARNING\tInvalid prefix declaration: found illegal whitespace between prefix mappings.\t\nOPF-005\tERROR\tInvalid prefix declaration: URI for prefix \"%1$s\" doesn’t exist.\t\nOPF-006\tERROR\tInvalid prefix declaration: URI \"%1$s\" is not a valid URI.\t\nOPF-007\tWARNING\tRe-declaration of reserved prefix \"%1$s\".\t\nOPF-007a\tERROR\tInvalid prefix mapping: prefix \"_\" must not be declared.\t\nOPF-007b\tERROR\tInvalid prefix mapping: default vocabulary \"%1$s\" must not be re-declared.\t\nOPF-007c\tERROR\tInvalid prefix mapping: a prefix to the Dublin Core /elements/1.1/ namespace must not be declared\t\nOPF-008\tSUPPRESSED\t\t\nOPF-009\tSUPPRESSED\t\t\nOPF-010\tERROR\tError resolving reference: \"%1$s\".\t\nOPF-011\tERROR\titemref can’t have both page-spread-right and page-spread-left properties.\t\nOPF-012\tERROR\tItem property \"%1$s\" is not defined for media type \"%2$s\".\t\nOPF-013\tWARNING\tResource \"%1$s\" is declared with MIME type \"%2$s\" in content, but has MIME type \"%3$s\" in the package document.\t\nOPF-014\tERROR\tThe property \"%1$s\" should be declared in the OPF file.\t\nOPF-015\tERROR\tThe property \"%1$s\" should not be declared in the OPF file.\t\nOPF-016\tERROR\tThe element \"rootfile\" is missing its required attribute \"full-path\".\t\nOPF-017\tERROR\tThe attribute \"full-path\" on element \"rootfile\" must not be empty.\t\nOPF-018\tWARNING\tThe \"remote-resources\" property was declared in the Package Document, but no reference to remote resources has been found.\t\nOPF-018b\tUSAGE\tThe \"remote-resources\" property was declared in the Package Document, but no reference to remote resources has been found; please check scripted content to make sure the property is legit. \t\nOPF-019\tSUPPRESSED\t\t\nOPF-020\tSUPPRESSED\t\t\nOPF-021\tWARNING\tUse of non-registered URI scheme type in href: \"%1$s\".\t\nOPF-025\tERROR\tProperty value list \"%1$s\" is not allowed, only one value must be specified.\t\nOPF-026\tERROR\tFound malformed property value: \"%1$s\".\t\nOPF-027\tERROR\tUndefined property: \"%1$s\".\t\nOPF-028\tERROR\tUndeclared prefix: \"%1$s\".\t\nOPF-029\tERROR\tThe file \"%1$s\" does not appear to match the media type %2$s, as specified in the OPF file.\t\nOPF-030\tERROR\tThe unique-identifier \"%1$s\" was not found.\t\nOPF-031\tERROR\tFile listed in reference element in guide was not declared in OPF manifest: %1$s.\t\nOPF-032\tERROR\tGuide references \"%1$s\" which is not a valid \"OPS Content Document\".\t\nOPF-033\tERROR\tThe spine contains no linear resources.\t\nOPF-034\tERROR\tThe spine contains multiple references to the manifest item with id \"%1$s\".\t\nOPF-035\tWARNING\tMedia type \"text/html\" is not appropriate for XHTML/OPS.\tUse \"application/xhtml+xml\" instead.\nOPF-036\tUSAGE\tVideo type \"%1$s\" might not be supported by reading systems\tUse \"video/mp4\", \"video/h264\" or \"video/webm\" instead.\nOPF-037\tWARNING\tFound deprecated media-type \"%1$s\".\t\nOPF-038\tWARNING\tMedia type \"%1$s\" is not appropriate for an OEBPS 1.2 context; Use \"text/x-oeb1-document\" instead.\t\nOPF-039\tWARNING\tMedia-type \"%1$s\" is not appropriate in an OEBPS 1.2 context. Use \"text/x-oeb1-css\" instead.\t\nOPF-040\tERROR\tFallback item with id \"%1$s\" could not be found.\t\nOPF-041\tERROR\tFallback-style item with id \"%1$s\" could not be found.\t\nOPF-042\tERROR\t\"%1$s\" is not a permissible spine media-type.\t\nOPF-043\tERROR\tSpine item with non-standard media-type \"%1$s\" has no fallback.\t\nOPF-044\tERROR\tSpine item with non-standard media-type \"%1$s\" has no EPUB content document fallback.\t\nOPF-045\tERROR\tEncountered circular reference in fallback chain.\t\nOPF-046\tSUPPRESSED\t\t\nOPF-047\tUSAGE\tOPF file is using OEBPS 1.2 syntax allowing backwards compatibility.\t\nOPF-048\tERROR\tPackage tag is missing its required unique-identifier attribute and value.\t\nOPF-049\tERROR\tItem id \"%1$s\" was not found in the manifest.\t\nOPF-050\tERROR\tTOC attribute references resource with non-NCX mime type; \"application/x-dtbncx+xml\" is expected.\t\nOPF-051\tSUPPRESSED\tImage dimensions exceed recommended size.\t\nOPF-052\tERROR\tRole value \"%1$s\" is not valid.\t\nOPF-053\tWARNING\tDate value \"%1$s\" does not follow recommended syntax as per http://www.w3.org/TR/NOTE-datetime:%2$s.\t\nOPF-054\tERROR\tDate value \"%1$s\" is not valid as per http://www.w3.org/TR/NOTE-datetime:%2$s.\t\nOPF-055\tWARNING\t%1$s tag is empty.\t\nOPF-056\tSUPPRESSED\t\t\nOPF-057\tSUPPRESSED\tImage file length exceeds recommended size.\t\nOPF-058\tSUPPRESSED\t\t\nOPF-059\tSUPPRESSED\t\t\nOPF-060\tERROR\tDuplicate entry in the ZIP file: \"%1$s\" (file names must be unique after Unicode canonical normalization and full case folding).\t\nOPF-062\tUSAGE\tFound Adobe page-map attribute on spine element in opf file.\t\nOPF-063\tWARNING\tReferenced Adobe page-map item \"%1$s\" was not found in the manifest.\t\nOPF-064\tINFO\tOPF declares type \"%1$s\", validating using profile \"%2$s\".\t\nOPF-065\tERROR\tInvalid metadata declaration, probably due to a cycle in \"refines\" metadata.\t\nOPF-066\tERROR\tMissing \"dc:source\" or \"source-of\" pagination metadata. The pagination source must be identified using the \"dc:source\" and \"source-of\" properties when the content includes page break markers.\t\nOPF-067\tERROR\tThe resource \"%1$s\" must not be listed both as a \"link\" element in the package metadata and as a manifest item.\t\nOPF-068\tSUPPRESSED\t\t\nOPF-069\tSUPPRESSED\t\t\nOPF-070\tWARNING\tCustom collection role \"%1$s\" is an invalid URL.\t\nOPF-071\tERROR\tIndex collections must only contain resources pointing to XHTML Content Documents.\t\nOPF-072\tUSAGE\tMetadata element \"%1$s\" is empty.\t\nOPF-073\tERROR\tExternal identifiers must not appear in the document type declaration.\t\nOPF-074\tERROR\tPackage resource \"%1$s\" is declared in several manifest item.\t\nOPF-075\tERROR\tPreview collections must only point to EPUB Content Documents.\t\nOPF-076\tERROR\tThe URI of preview collections link elements must not include EPUB canonical fragment identifiers.\t\nOPF-077\tWARNING\tA Data Navigation Document should not be included in the spine.\t\nOPF-078\tERROR\tAn EPUB Dictionary must contain at least one Content Document with dictionary content (epub:type \"dictionary\").\t\nOPF-079\tWARNING\tDictionary content was found (epub:type \"dictionary\"), the Package Document should declare the dc:type \"dictionary\".\t\nOPF-080\tWARNING\tA Search Key Map document file name should have the extension \".xml\".\t\nOPF-081\tERROR\tResource \"%1$s\" (referenced from an EPUB Dictionary collection) was not found.\t\nOPF-082\tERROR\tFound an EPUB Dictionary collection containing more than one Search Key Map Document.\t\nOPF-083\tERROR\tFound an EPUB Dictionary collection containing no Search Key Map Document.\t\nOPF-084\tERROR\tFound an EPUB Dictionary collection containing resource \"%1$s\" which is neither a Search Key Map Document nor an XHTML Content Document.\t\nOPF-085\tWARNING\t\"dc:identifier\" value \"%1$s\" is marked as a UUID, but is an invalid UUID.\t\nOPF-086\tWARNING\tProperty \"%1$s\" is deprecated. Consider using %2$s instead.\t\nOPF-086b\tUSAGE\tepub:type value \"%1$s\" is deprecated. Consider using %2$s instead.\t\nOPF-087\tUSAGE\tepub:type value \"%1$s\" is not allowed on documents of type \"%2$s\".\t\nOPF-088\tUSAGE\tUnrecognized epub:type value \"%1$s\".\t\nOPF-089\tERROR\tThe \"alternate\" link rel keyword cannot be paired with other keywords.\t\nOPF-090\tUSAGE\tIt is encouraged to use MIME media type \"%1$s\" instead of \"%2$s\".\t\nOPF-091\tERROR\tThe item href URL must not have a fragment identifier.\t\nOPF-092\tERROR\tLanguage tag \"%1$s\" is not well-formed: %2$s\t\nOPF-093\tERROR\tThe \"media-type\" attribute is required for linked resources located in the EPUB container\t\nOPF-094\tERROR\tThe \"media-type\" attribute is required for \"%1$s\" links.\t\nOPF-095\tERROR\tThe \"media-type\" attribute of \"voicing\" links must be an audio MIME type, but found \"%1$s\".\t\nOPF-096\tERROR\tNon-linear content must be reachable, but found no hyperlink to \"%1$s\".\t\nOPF-096b\tUSAGE\tNo hyperlink was found to non-linear document \"%1$s\", please check that it can be reached from scripted content.\t\nOPF-097\tUSAGE\tResource \"%1$s\" is listed in the manifest, but no reference to it was found in content documents.\t\nOPF-098\tERROR\tThe \"href\" attribute must reference resources, not elements in the package document, but found URL \"%1$s\".\t\nOPF-099\tERROR\tThe manifest must not list the package document.\t\nPKG-001\tWARNING\tValidating the EPUB against version %1$s but detected version %2$s.\t\nPKG-003\tERROR\tUnable to read EPUB file header. This is likely a corrupted EPUB file.\t\nPKG-004\tFATAL\tCorrupted EPUB ZIP header.\t\nPKG-005\tERROR\tThe mimetype file has an extra field of length %1$s. The use of the extra field feature of the ZIP format is not permitted for the mimetype file.\t\nPKG-006\tERROR\tMimetype file entry is missing or is not the first file in the archive.\t\nPKG-007\tERROR\tMimetype file should only contain the string \"application/epub+zip\" and should not be compressed.\t\nPKG-008\tFATAL\tUnable to read file \"%1$s\".\t\nPKG-009\tERROR\tThe file name \"%1$s\" contains characters that are not allowed in OCF file names: %2$s.\t\nPKG-010\tWARNING\tThe file name \"%1$s\" contains spaces, which may create interoperability issues with older reading systems.\t\nPKG-011\tERROR\tThe file name \"%1$s\" is not allowed to end with \".\".\t\nPKG-012\tUSAGE\tThe file name \"%1$s\" contains non-ASCII characters, which might create interoperability issues with older reading systems.\t\nPKG-013\tERROR\tThe EPUB file includes multiple OPS renditions.\t\nPKG-014\tWARNING\tThe EPUB contains empty directory \"%1$s\".\t\nPKG-015\tFATAL\tUnable to read EPUB contents: %1$s\t\nPKG-016\tWARNING\tUse only lowercase characters for the EPUB file extension for maximum compatibility.\tFor maximum compatibility, use \".epub\".\nPKG-017\tWARNING\tUncommon EPUB file extension.\tFor maximum compatibility, use \".epub\".\nPKG-018\tFATAL\tThe EPUB file could not be found.\t\nPKG-020\tERROR\tOPF file \"%1$s\" could not be found.\t\nPKG-021\tERROR\tCorrupted image file encountered.\t\nPKG-022\tWARNING\tWrong file extension for image. The image is a \"%1$s\" file but has the file extension \"%2$s\".\t\nPKG-023\tUSAGE\tValidating the EPUB against version 2.0, default validation profile will be used.\t\nPKG-024\tUSAGE\tUncommon EPUB file extension.\tFor maximum compatibility, use \".epub\".\nPKG-025\tERROR\tPublication resource must not be located in the META-INF directory\t\nPKG-026\tERROR\tObfuscated resource must be a Font Core Media Type (was declared as \"%1$s\" in \"%2$s\").\t\nPKG-027\tFATAL\tCould not extract EPUB ZIP content, probably due to file names not encoded in UTF-8. \t\nRSC-001\tERROR\tFile \"%1$s\" could not be found.\t\nRSC-002\tFATAL\tRequired META-INF/container.xml resource could not be found.\t\nRSC-003\tERROR\tNo rootfile tag with media type \"application/oebps-package+xml\" was found in the container.\t\nRSC-004\tINFO\tFile \"%1$s\" is encrypted, its content will not be checked.\t\nRSC-005\tERROR\tError while parsing file: %1$s\t\nRSC-006\tERROR\tRemote resource reference is not allowed in this context; resource \"%1$s\" must be located in the EPUB container.\t\nRSC-006b\tUSAGE\tResource \"%1$s\" is located outside the EPUB Container; please check the resource is retrieved in scripted content. \t\nRSC-007\tERROR\tReferenced resource \"%1$s\" could not be found in the EPUB.\t\nRSC-007w\tWARNING\tReferenced resource \"%1$s\" could not be found in the EPUB.\t\nRSC-008\tERROR\tReferenced resource \"%1$s\" is not declared in the OPF manifest.\t\nRSC-009\tWARNING\tA non-SVG image resource should not be defined with a fragment identifier.\t\nRSC-010\tERROR\tReference to non-standard resource type found.\t\nRSC-011\tERROR\tFound a reference to a resource that is not a spine item.\t\nRSC-012\tERROR\tFragment identifier is not defined.\t\nRSC-013\tERROR\tFragment identifier is used in a reference to a stylesheet resource.\t\nRSC-014\tERROR\tFragment identifier defines an incompatible resource type.\t\nRSC-015\tERROR\tA fragment identifier is required for svg use tag references.\t\nRSC-016\tFATAL\tFatal Error while parsing file: %1$s\t\nRSC-017\tWARNING\tWarning while parsing file: %1$s\t\nRSC-018\tSUPPRESSED\t\t\nRSC-019\tWARNING\tEPUBs with Multiple Renditions should contain a META-INF/metadata.xml file.\t\nRSC-020\tERROR\t\"%1$s\" is not a valid URL (%2$s)\t\nRSC-021\tERROR\tA Search Key Map Document must point to Content Documents (\"%1$s\" was not found in the spine).\t\nRSC-022\tINFO\tCannot check image details (requires Java version 7 or higher).\t\nRSC-023\tSUPPRESSED\t\t\nRSC-024\tUSAGE\tInformative parsing warning: %1$s\t\nRSC-025\tUSAGE\tInformative parsing error: %1$s\t\nRSC-026\tERROR\tURL \"%1$s\" leaks outside the container (it is not a valid-relative-ocf-URL-with-fragment string)\t\nRSC-027\tWARNING\tXML document is encoded in UTF-16. It should be encoded in UTF-8 instead.\t\nRSC-028\tERROR\tXML documents must be encoded in UTF-8, but %1$s was detected.\t\nRSC-029\tERROR\tData URL is not allowed in this context.\t\nRSC-030\tERROR\tFile URLs are not allowed in EPUB, but found \"%1$s\".\t\nRSC-031\tWARNING\tRemote resource references should use HTTPS, but found \"%1$s\".\t\nRSC-032\tERROR\tFallback must be provided for foreign resources, but found none for resource \"%1$s\" of type \"%2$s\".\t\nRSC-033\tERROR\tRelative URL strings must not have a query component, but found one in \"%1$s\".\t\nSCP-001\tSUPPRESSED\t\t\nSCP-002\tSUPPRESSED\t\t\nSCP-003\tSUPPRESSED\t\t\nSCP-004\tSUPPRESSED\t\t\nSCP-005\tSUPPRESSED\t\t\nSCP-006\tSUPPRESSED\t\t\nSCP-007\tSUPPRESSED\t\t\nSCP-008\tSUPPRESSED\t\t\nSCP-009\tSUPPRESSED\t\t\nSCP-010\tSUPPRESSED\t\t\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LIST_CHECKS_TSV_BY_LOCALE: Record<string, string>;
|