View Single Post
Old 11-09-2015, 12:05 PM   #6
nylnook
Junior Member
nylnook began at the beginning.
 
nylnook's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2015
Device: none
Smile

I just tested it out...

Googling around, I ended up with this little script (called edit.sh):

----------
#!/bin/sh

mkdir edit
mv "$1" edit
cd edit
unzip "$1"
CONTENT='\t\t<meta property="rendition:layout">pre-paginated</meta>\n\t\t<meta name="original-resolution" content="584x754"/>'
sed -i '/<\/metadata>/i\'"$CONTENT" content.opf
zip -r "$1" .
mv "$1" ..
cd ..
rm -r edit
----------

and surprisingly, it seem to work ! Not sure it's really solid...
Thanks a lot for showing me the way eschwartz !
nylnook is offline   Reply With Quote