{"id":49,"date":"2013-03-30T12:21:34","date_gmt":"2013-03-30T11:21:34","guid":{"rendered":"http:\/\/localhost\/~johan\/wordpress\/?p=49"},"modified":"2021-03-23T22:20:02","modified_gmt":"2021-03-23T21:20:02","slug":"e-books","status":"publish","type":"post","link":"https:\/\/www.chaosgeordend.nl\/wordpress\/2013\/03\/30\/e-books\/","title":{"rendered":"E-Books"},"content":{"rendered":"<div id=\"entry_img\">\n<a href=\"https:\/\/calibre-ebook.com\"><img decoding=\"async\" alt=\"Calibre splash screen\" src=\"https:\/\/www.chaosgeordend.nl\/mt-blog-cg\/images\/Calibre.jpg\" \/><\/a>\n<\/div>\n<p>As more and more e-books become available, it is time to set up an ebook library. The first open source alternative found, <a href=\"https:\/\/calibre-ebook.com\/about\">Calibre<\/a>, turns out to be very useful and also does it connect to my (Kobo Glo) e-reader.<\/p>\n<p><!--more--><\/p>\n<p>A great advantage of a DRM free epub book is the ability to correct typo&#8217;s!<\/p>\n<p>This is my (diacritics and typo&#8217;s) <a href=\"https:\/\/www.chaosgeordend.nl\/documents\/Simulacra%20And%20Simulation%20patchfiles.zip\">patchfile<\/a> (ZIP 25kB) for Jean Luc Baudrillard&#8217;s <a href=\"https:\/\/www.epubbud.com\/book.php?g=N5RMU7SV\">Simulacra and Simulation<\/a>.<\/p>\n<p>The patchfiles were created with Unix diff:<\/p>\n<pre lang=\"shell\">\r\n$ cd ~\/Documents\/SAS\/text\r\n$ for i in *.xhtml ; do diff -BrupN $i  ..\/..\/SAS ORIGINAL\/text\/$i > $i.patch.txt; done;\r\n<\/pre>\n<p>Example script, used here to create the SAS epub after text correction:<\/p>\n<pre lang=\"shell\">\r\n#!\/bin\/bash\r\n#\r\n# create epub (zip) file from files in directory\r\n# <a href=\"https:\/\/www.webvivant.com\/zipping-epub-files.html\">https:\/\/www.webvivant.com\/zipping-epub-files.html<\/a>\r\n# 2013-03-23 JvO, new script\r\n#\r\n# destination file\r\nFILENAME=\"Simulacra And Simulation - Jean Baudrillard\"\r\nFILETYPE=\"epub\"\r\nzip -X \"${FILENAME}.${FILETYPE}\" mimetype\r\nzip -rg \"${FILENAME}.${FILETYPE}\" META-INF -x *.DS_Store\r\nzip -rg \"${FILENAME}.${FILETYPE}\" images -x *.DS_Store\r\nzip -rg \"${FILENAME}.${FILETYPE}\" toc.ncx -x *.DS_Store\r\nzip -rg \"${FILENAME}.${FILETYPE}\" text -x *.DS_Store\r\nzip -rg \"${FILENAME}.${FILETYPE}\" content.opf -x *.DS_Store\r\nzip -rg \"${FILENAME}.${FILETYPE}\" cover.html -x *.DS_Store\r\nzip -rg \"${FILENAME}.${FILETYPE}\" cover.jpg -x *.DS_Store\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>As more and more e-books become available, it is time to set up an ebook library. The first open source alternative found, Calibre, turns out to be very useful and also does it connect to my (Kobo Glo) e-reader.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,6],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-literatuurliterature","category-oss"],"_links":{"self":[{"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":4,"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":895,"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/posts\/49\/revisions\/895"}],"wp:attachment":[{"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chaosgeordend.nl\/wordpress\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}