View Single Post
Old 06-29-2020, 08:17 AM   #4
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by vermillion6 View Post
"I suppose you are creating an EPUB2."
Is the epub3 a better solution for embedded fonts?
No. Regarding the ability to use embedded fonts, it doesn't matter if 2 or 3.
But, if you use EPUB3, you don't need this XML file. You just have to edit the OPF file, like this:

Code:
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="isbn-id" prefix="ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/ a11y: http://www.idpf.org/epub/vocab/package/a11y/#" xml:lang="pt-BR">
    <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
        <meta property="ibooks:specified-fonts">true</meta>
        ...
Remember to add both the prefix and the meta property

Quote:
Originally Posted by vermillion6 View Post
"...just add the attached file to the META-INF folder of your EPUB file."
This folder only contains a single file: container.xml

"This folder is the same where your OPF file is located."
the only opf file I could locate is in the main folder, not in the meta-inf one: content.opf
Sorry. My mistake. Is the same folder where the "container.xml" is located.

Quote:
Originally Posted by vermillion6 View Post
Would I have to unzip the epub file, then add the file you're suggesting and then rezip the files in epub form?
or just insert the attached file in calibre?
No need to unzip. Just add it via calibre.
thiago.eec is offline   Reply With Quote