diff options
-rw-r--r-- | Makefile | 25 | ||||
-rw-r--r-- | README | 24 | ||||
-rw-r--r-- | TODO | 5 | ||||
-rw-r--r-- | doap.ttl | 28 | ||||
-rwxr-xr-x | getxbookgui.tcl | 4 | ||||
-rw-r--r-- | websummary.sh | 2 |
6 files changed, 45 insertions, 43 deletions
@@ -64,7 +64,8 @@ dist: # needs config.mk set up to build statically dist-static: $(BIN) mkdir -p $(NAME)-$(VERSION) - cp $(BIN) $(GUI) $(DOC) $(MAN) config.mk $(NAME)-$(VERSION) + sed '/^\tset cmd / i set cmdbin [file join ./ $$cmdbin]' < getxbookgui.tcl > $(NAME)-$(VERSION)/getxbookgui.tcl + cp $(BIN) $(DOC) $(MAN) config.mk $(NAME)-$(VERSION) sed 's/^install: all$$/install:/' < Makefile > $(NAME)-$(VERSION)/Makefile mkdir -p $(NAME)-$(VERSION)/icons cp icons/* $(NAME)-$(VERSION)/icons/ @@ -76,14 +77,15 @@ dist-static: $(BIN) echo $(NAME)-$(VERSION)-static.tar.bz2 $(NAME)-$(VERSION)-static.tar.bz2.sig getxbookgui.exe: getxbookgui.tcl - @echo STARPACK $@ - @sed 's/\/icons/\/..\/icons/;s/set cmd "/set cmd "tools\//' < getxbookgui.tcl > getxbookgui-win.tcl - @sdx qwrap getxbookgui-win.tcl getxbookgui - @sdx unwrap getxbookgui.kit - @cp -f getxbook.ico getxbookgui.vfs/tclkit.ico - @echo 'FileDescription "Book downloader"' > getxbookgui.vfs/tclkit.inf - @sdx wrap $@ -runtime $(W32TCLKIT) - @rm -r getxbookgui-win.tcl getxbookgui.kit getxbookgui.vfs + echo STARPACK $@ + sed 's/ icons/ .. icons/' < getxbookgui.tcl > getxbookgui-win.tcl + sed -i '/^\tset cmd / i set cmdbin [file join tools $$cmdbin]' getxbookgui-win.tcl + sdx qwrap getxbookgui-win.tcl getxbookgui + sdx unwrap getxbookgui.kit + cp -f getxbook.ico getxbookgui.vfs/tclkit.ico + echo 'FileDescription "Book downloader"' > getxbookgui.vfs/tclkit.inf + sdx wrap $@ -runtime $(W32TCLKIT) + rm -r getxbookgui-win.tcl getxbookgui.kit getxbookgui.vfs # needs config.mk set up to use mingw dist-win: $(BIN) $(GUI:.tcl=.exe) @@ -105,7 +107,8 @@ dist-win: $(BIN) $(GUI:.tcl=.exe) index.html: doap.ttl README echo making webpage - echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" > $@ + echo '<?xml version="1.0" encoding="UTF-8"?>' > $@ + echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" >> $@ echo '<link rel="alternate" type="text/turtle" title="rdf" href="doap.ttl" />' >> $@ echo '<style type="text/css">' >> $@ echo "body {font-family:sans-serif; width:38em; margin:auto; max-width:94%;}" >> $@ @@ -114,7 +117,7 @@ index.html: doap.ttl README echo "img {margin: auto; border: thin solid; display: block;}" >> $@ echo "</style></head><body>" >> $@ sed '5q' < README | smu >> $@ - echo "<p><img src="screenshot1.png" alt="screenshot"/></p>" >> $@ + echo '<p><img src="screenshot1.png" alt="screenshot"/></p>' >> $@ echo "<h2>download</h2>" >> $@ echo "[$(NAME) $(VERSION) source]($(NAME)-$(VERSION).tar.bz2) ([sig]($(NAME)-$(VERSION).tar.bz2.sig)) ($(RELDATE))" | smu >> $@ echo "[$(NAME) $(VERSION) linux static]($(NAME)-$(VERSION)-static.tar.bz2) ([sig]($(NAME)-$(VERSION)-static.tar.bz2.sig)) ($(RELDATE))" | smu >> $@ @@ -1,8 +1,8 @@ # getxbook getxbook is a collection of tools to download books from Google -Books' "Book Preview," Amazon's "Look Inside the Book" and Barnes -& Noble's "Book Viewer." +Books' "Book Preview" (getgbook), Amazon's "Look Inside the +Book" (getabook) and Barnes & Noble's "Book Viewer" (getbnbook). ## why @@ -33,18 +33,6 @@ You can easily use OCR software to get text versions of downloaded books, making them accessible to people who can't easily read from the page scans. -"I have sworn upon the altar of God eternal hostility against every -form of tyranny over the mind of man." - - *Thomas Jefferson* - -### further reading - -* Cohn, C & Hashimoto, K [The Case for Book Privacy Parity: Google Books and the Shift from Offline to Online Reading](http://hlpronline.com/2010/05/the-case-for-book-privacy-parity-google-books-and-the-shift-from-offline-to-online-reading/) Harvard Law & Policy Review (2010) -* Richards, N M [The Perils of Social Reading](http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2031307) Georgetown Law Journal, Vol. 101, No. 3 (2013) -* Fuchs, C [A Contribution to the Critique of the Political Economy of Google](http://www.uta.edu/huma/agger/fastcapitalism/8_1/fuchs8_1.html) Fast Capitalism 8.1 (2011) -* Jeanneney, J [Google and the Myth of Universal Knowledge](http://yanko.lib.ru/books/internet/google_and_the_myth_of_universal_knowledge-en-l.pdf) University of Chicago Press (2007) -* Schneier, B [The Eternal Value of Privacy](http://www.schneier.com/essay-114.html) Wired News (2006) - ## technical Each tool is written in around 200 lines of portable C code, with no @@ -53,3 +41,11 @@ Linux, BSDs, OSX and Windows. There is an optional graphical interface, built with Tcl/Tk. There are some simple scripts to create searchable PDF, DjVu, or plain text files from the downloaded pages, which use tesseract OCR software. + +## further reading + +* [The Case for Book Privacy Parity: Google Books and the Shift from Offline to Online Reading](http://hlpronline.com/2010/05/the-case-for-book-privacy-parity-google-books-and-the-shift-from-offline-to-online-reading/) by Cindy Cohn & Kathryn Hashimoto +* [The Perils of Social Reading](http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2031307) by Neil M. Richards +* [A Contribution to the Critique of the Political Economy of Google](http://www.uta.edu/huma/agger/fastcapitalism/8_1/fuchs8_1.html) by Christian Fuchs +* [Google and the Myth of Universal Knowledge](http://yanko.lib.ru/books/internet/google_and_the_myth_of_universal_knowledge-en-l.pdf) by Jean-Noël Jeanneney +* [The Eternal Value of Privacy](http://www.schneier.com/essay-114.html) by Bruce Schneier @@ -1,3 +1,6 @@ -use a better method than setting PATH in gui +looks like b&n changed their reader again. http://www.barnesandnoble.com/w/the-overlord-rising-ew-scott/1108151174?ean=9781612960791&itm=1& - doesn't work in chromium or surf (or thinks it won't) - firefox should work. branded 'nook for web' +writeup; also about safety +release 1.1 +create debian package & post to mentors list check whether windows build will still run the tools successfully if run from a shortcut elsewhere submit 'pad' file to websites http://padsites.asp-software.org/ @@ -1,13 +1,13 @@ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix doap: <http://usefulinc.com/ns/doap#>. @prefix foaf: <http://xmlns.com/foaf/0.1/>. -@prefix : <http://njw.me.uk/software/getxbook/#>. +@prefix : <http://njw.me.uk/getxbook/#>. :p a doap:Project; doap:name "getxbook"; doap:shortdesc "A collection of tools to download books from websites"; doap:description "getxbook is a collection of tools to download books from Websites. There are tools to download from Google Books' book preview, Amazon's look inside the book, and Barnes and Noble's book viewer. There is an optional GUI written in Tcl/Tk, and some shell scripts using OCR to create plain text or searchable PDFs and DjVus from the downloaded books."; - doap:homepage <http://njw.me.uk/software/getxbook/>; + doap:homepage <http://njw.me.uk/getxbook>; doap:repository :repo; doap:programming-language "C"; doap:license <http://www.isc.org/software/license>; @@ -24,55 +24,55 @@ :v01 a doap:Version; doap:revision "0.1"; doap:created "2011-03-27"; - doap:file-release <http://njw.me.uk/software/getgbook/getgbook-0.1.tar.bz2>. + doap:file-release <http://njw.me.uk/getgbook/getgbook-0.1.tar.bz2>. :v02 a doap:Version; doap:revision "0.2"; doap:created "2011-04-11"; - doap:file-release <http://njw.me.uk/software/getgbook/getgbook-0.2.tar.bz2>. + doap:file-release <http://njw.me.uk/getgbook/getgbook-0.2.tar.bz2>. :v03 a doap:Version; doap:revision "0.3"; doap:created "2011-08-07"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.3.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.3.tar.bz2>. :v04 a doap:Version; doap:revision "0.4"; doap:created "2011-09-08"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.4.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.4.tar.bz2>. :v05 a doap:Version; doap:revision "0.5"; doap:created "2011-09-29"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.5.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.5.tar.bz2>. :v06 a doap:Version; doap:revision "0.6"; doap:created "2011-11-19"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.6.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.6.tar.bz2>. :v061 a doap:Version; doap:revision "0.6.1"; doap:created "2011-11-22"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.6.1.tar.bz2>, - <http://njw.me.uk/software/getxbook/getxbook-0.6.1-win.zip>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.6.1.tar.bz2>, + <http://njw.me.uk/getxbook/getxbook-0.6.1-win.zip>. :v07 a doap:Version; doap:revision "0.7"; doap:created "2012-02-12"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.7.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.7.tar.bz2>. :v08 a doap:Version; doap:revision "0.8"; doap:created "2012-02-14"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.8.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.8.tar.bz2>. :v09 a doap:Version; doap:revision "0.9"; doap:created "2012-04-27"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-0.9.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-0.9.tar.bz2>. :v10 a doap:Version; doap:revision "1.0"; doap:created "2012-18-19"; - doap:file-release <http://njw.me.uk/software/getxbook/getxbook-1.0.tar.bz2>. + doap:file-release <http://njw.me.uk/getxbook/getxbook-1.0.tar.bz2>. diff --git a/getxbookgui.tcl b/getxbookgui.tcl index eb3c863..2cc9b96 100755 --- a/getxbookgui.tcl +++ b/getxbookgui.tcl @@ -12,7 +12,6 @@ set cmdselected 0 set dling 0 set manual 0 -set env(PATH) "[file dirname $::argv0]:$env(PATH)" set iconpath [file join [file dirname $::argv0] icons] proc updateStatus {chan} { @@ -46,7 +45,8 @@ proc go {} { if { [.input.id get] == "" } { return } - set cmd "[lindex [lindex $cmds $cmdselected] 0] [.input.id get]" + set cmdbin [lindex [lindex $cmds $cmdselected] 0] + set cmd "$cmdbin [.input.id get]" set dling 1 .dl configure -state disabled -text "Downloading" .input.id configure -state readonly diff --git a/websummary.sh b/websummary.sh index 1b9e22f..0db3177 100644 --- a/websummary.sh +++ b/websummary.sh @@ -44,6 +44,6 @@ roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '1d' \ - Maintainer: [$maint]($mainthome) - Language: $lang - License: [$license]($licenseuri) -- DOAP: [${home}doap.ttl](${home}doap.ttl) +- DOAP RDF: [${home}/doap.ttl](${home}/doap.ttl) _EOF_ done |