Created
May 23, 2012 16:04
-
-
Save sillygwailo/2776116 to your computer and use it in GitHub Desktop.
Fixing Packt Publishing ePub files to show the author name in readers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. mkdir 987654321 | |
2. mv 98765432321.epub 987654321/ | |
3. cd 987654321/ | |
4. unzip 987654321.epub # or whatever the ePub filename is | |
5. edit OEBPS/content.opf in a text editor | |
6. replace | |
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf" opf:file-as=""/> | |
with | |
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf" opf:file-as="Lastname, Firstname">Firstname Lastname</dc:creator> | |
7. zip -r 987654321-new.epub # or whatever filename you want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment