Skip to content

Instantly share code, notes, and snippets.

@sillygwailo
Created May 23, 2012 16:04
Show Gist options
  • Save sillygwailo/2776116 to your computer and use it in GitHub Desktop.
Save sillygwailo/2776116 to your computer and use it in GitHub Desktop.
Fixing Packt Publishing ePub files to show the author name in readers
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