XML technologies / ePUB / Open Container Format / Paths and filenames
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
OCF file and path names cannot be chosen freely. Every file and path in the abstract container is subject to these restrictions:
Filenames must be encoded in UTF-8, usually handled by the operating system, and may be at most 255 bytes long.
Full paths must not exceed 65,535 bytes.
The following characters are prohibited, even if some operating systems allow them: the ePUB must be readable independently of the operating system.
Character name
Character
ASCII code (hex)
Slash
/
0x2FDouble quotation mark
"
0x22Asterisk
*
0x2AFinal period (allowed inside the filename)
.
0x3AColon
:
0x3CLess-than sign
<
0x3CGreater-than sign
>
0x3EQuestion mark
?
0x3FBackslash
\
0x5C
Table: Forbidden characters in OCF file and path names
Filenames are case-sensitive: the file
package.opfis not the same asPACKAGE.OPF.
Existing Unicode normalization rules also apply, especially for accented characters. Ensure filenames within a directory remain unique after normalization.
To avoid surprises in practice with German-language texts, omit German special characters and use lowercase filenames from the outset.
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top