Permalink
Browse files

fix p indents, remove empty li items, complete README

  • Loading branch information...
1 parent 56c2ab2 commit abd47210592883fa962c182c28ff4219cf22aee0 Tim Camper committed Jan 10, 2010
View
18 README
@@ -1,6 +1,22 @@
Slight reformatting of the pages at http://mitpress.mit.edu/sicp/full-text/book/book.html
-wget -r http://mitpress.mit.edu/sicp/full-text/book/book.html
+1 - I got the source:
+ wget -r http://mitpress.mit.edu/sicp/full-text/book/book.html
+
+2 - used hpricot to:
+ - remove 'navigation' divs
+ - insert <mbp:pagebreak /> tags at the top of each html body ( this keeps lines from getting split )
+
+3 - removed cover page 'book.html' since there's already a cover image
+
+4 - set text-indent: 0 for <p> tags, since kindle indents about 1em by default, which deformatted the code snips (<p><tt> is used instead of <pre>)
+
+5 - set height="2em" on div tags in 'References' section (kindle doesn't support the CSS for controlling this)
+
+6 - added jump table to top of index
+
+7 - built opf and ncx with ruby. toc.ncx allows 'nav points' for the 5-way kindle knob to get you from chapter to chapter
+
TODO: fix image at Figure 1.1, the tree diagram. (comes out darkened for some reason)
TODO: read the damn book!
View
@@ -75,4 +75,5 @@ background-color: pink;
color: gray;
}
-
+p { text-indent: 0}
+p.indent { text-indent: 1em}
View
@@ -763,8 +763,6 @@
three most frequently used are these:</p>
<ul>
- <li style="list-style: none"><a name="%_idx_446"></a><a name="%_idx_448"></a><a name="%_idx_450"></a><a name="%_idx_452"></a></li>
-
<li>
<tt>(and &lt;<em>e<sub>1</sub></em>&gt; <tt>...</tt>
&lt;<em>e<sub><em>n</em></sub></em>&gt;)</tt>
View
@@ -68,8 +68,6 @@
selectors are available as procedures:</p>
<ul>
- <li style="list-style: none"><a name="%_idx_1300"></a></li>
-
<li>
<tt>(make-rat &lt;<em>n</em>&gt; &lt;<em>d</em>&gt;)</tt>
returns the rational number whose numerator is the integer
View
@@ -676,8 +676,6 @@
operation-and-type table: <a name="%_idx_2436"></a></p>
<ul>
- <li style="list-style: none"><a name="%_idx_2438"></a></li>
-
<li>
<tt>(put &lt;<em>op</em>&gt; &lt;<em>type</em>&gt;
&lt;<em>item</em>&gt;)</tt><br />
View
@@ -933,8 +933,6 @@
following operations for manipulating environments:</p>
<ul>
- <li style="list-style: none"><a name="%_idx_4456"></a></li>
-
<li><tt>(lookup-variable-value &lt;<em>var</em>&gt;
&lt;<em>env</em>&gt;)</tt><br />
returns the value that is bound to the symbol
View
@@ -85,8 +85,6 @@
procedures for manipulating vectors:</p>
<ul>
- <li style="list-style: none"><a name="%_idx_5844"></a><a name="%_idx_5846"></a></li>
-
<li>
<tt>(vector-ref &lt;<em>vector</em>&gt;
&lt;<em>n</em>&gt;)</tt> returns the <em>n</em>th element of
@@ -112,8 +110,7 @@
<p><a name="%_sec_Temp_746"></a></p>
- <h4><a href="book-Z-H-4.html#%_toc_%_sec_Temp_746">Representing
- Lisp data</a></h4>
+ <h4><a href="book-Z-H-4.html#%_toc_%_sec_Temp_746">Representing Lisp data</a></h4>
<p><a name="%_idx_5852"></a><a name="%_idx_5854"></a> We can use
vectors to implement the basic pair structures required for a
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -8,7 +8,7 @@
<dc:description>Structure and Interpretation of Computer Programs, 2nd edition</dc:description>
<dc:subject>Electronic Digital Computers -- Programming</dc:subject>
<dc:publisher>The MIT Press</dc:publisher>
- <dc:date>2010-01-09</dc:date>
+ <dc:date>2010-01-10</dc:date>
<x-metadata>
<output encoding="utf-8" content-type="text/x-oeb1-document"></output>
<EmbeddedCover>cover.jpg</EmbeddedCover>
View
@@ -1,7 +1,7 @@
require 'rubygems'
require 'hpricot'
-$LOCAL_ROOT = "../book/content"
+$LOCAL_ROOT = "../content"
#$LOCAL_ROOT = "../book/mit_contents"
$TOC = "book-Z-H-4.html"
View
BIN sicp.mobi
Binary file not shown.

0 comments on commit abd4721

Please sign in to comment.