fiddling with styles

This commit is contained in:
Mark Pilgrim
2009-02-05 14:53:26 -05:00
parent 99f021ef7e
commit 6eab225ec6
6 changed files with 24 additions and 33 deletions
-11
View File
@@ -1,19 +1,8 @@
SecFilterEngine off
FileETag MTime Size
Header set Content-Style-Type "text/css"
Options -Indexes
DirectoryIndex index.html
AddType text/xsl .xslt
AddType application/xml .atom
AddType text/html .xo
AddType text/plain .txt
AddType text/plain .py
AddType video/mp4 .mp4
AddType application/x-srt .srt
AddType video/ogg .ogv
AddType image/x-icon .ico
AddType application/vnd.oasis.opendocument.presentation .odp
AddDefaultCharset utf-8
RemoveOutputFilter .js
SetEnvIfNoCase Request_URI \.js$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
+4 -4
View File
@@ -3,17 +3,17 @@
<head>
<meta charset="utf-8">
<title>Case study: porting chardet to Python 3 - Dive into Python 3</title>
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<script type="text/javascript" src="dip3.packed.js"></script>
<link rel="stylesheet" type="text/css" href="dip3.css">
<link rel="shortcut icon" href="data:">
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<style type="text/css">
body{counter-reset:h1 19}
</style>
<script type="text/javascript" src="dip3.js"></script>
</head>
<body>
<p class="skip"><a href="#divingin">skip to main content</a>
<form action="http://www.google.com/cse" id="search"><div><input type="hidden" name="cx" value="014021643941856155761:l5eihuescdw"><input type="hidden" name="ie" value="UTF-8">&nbsp;<input name="q" size="31">&nbsp;<input type="submit" name="sa" value="Search"></div><p>You are here: <a href="index.html">Dive Into Python 3</a> <span>&#8227;</span> <b>Chapter 20</b></p></form>
<h1>Case study: porting <code class="filename">chardet</code> to Python 3</h1>
<form action="http://www.google.com/cse" id="search"><div><input type="hidden" name="cx" value="014021643941856155761:l5eihuescdw"><input type="hidden" name="ie" value="UTF-8">&nbsp;<input name="q" size="31">&nbsp;<input type="submit" name="sa" value="Search"></div><p>You are here: <a href="index.html">Dive Into Python 3</a> <span>&#8227;</span></p> <h1>Case study: porting <code>chardet</code> to Python 3</h1></form>
<blockquote class="q">
<p><span>&#x275D;</span> Words, words. They&#8217;re all we have to go on. <span>&#x275E;</span><br>&mdash; <cite>Rosencrantz and Guildenstern are Dead</cite>
</blockquote>
+8 -8
View File
@@ -7,13 +7,12 @@ a:link{color:#1b67c9}
a:visited{color:darkorchid}
h1 a,h2 a,h3 a,#nav a{color:inherit !important}
abbr,acronym{letter-spacing:0.1em;text-transform:lowercase;font-variant:small-caps}
h1,h2,h3,p,ul,ol,#search{margin:1.75em 0}
h1,h2,h3,p,ul,ol,#search{margin:1.75em 0;font-size:medium}
h2,h3{clear:both}
form div{float:right}
li ol{margin:0}
h1,h2,h3{font-size:medium;clear:both}
h1{background:papayawhip;color:#000;width:100%;margin:0}
pre{white-space:pre-wrap;margin:2.154em 0;padding:0 0 0 2.154em;border-left:1px dotted}
pre,kbd,code,samp{font-family:Consolas,Inconsolata,Monaco,monospace;font-size:medium;line-height:2.154;word-spacing:0}
form p,form h1{display:inline}
pre{white-space:pre-wrap;padding-left:2.154em;line-height:1.75;border-left:1px dotted}
pre,kbd,code,samp{font-family:Consolas,Inconsolata,Monaco,monospace;font-size:medium;word-spacing:0}
pre a{padding:0.4375em 0;border:0}
pre a:hover{border:0}
.widgets,.widgets a{font-size:small}
@@ -21,6 +20,7 @@ pre a:hover{border:0}
kbd{font-weight:bold}
.prompt{color:#667}/*the neighbor of the beast*/
td pre{margin:0;padding:0;border:0}
li ol{margin:0 inherit}
.c{text-align:center;font-size:small}
p.fancy:first-letter{float:left;background:transparent;color:gainsboro;padding:0.11em 4px 0 0;font:normal 4em/0.68 serif}
blockquote.q{margin:auto;text-align:right;font-style:oblique}
@@ -36,11 +36,11 @@ span,tr + tr th:first-child{font-family:'Arial Unicode MS',sans-serif;font-style
.note{margin-left:4.94em}
.note span{display:block;float:left;font-size:xx-large;line-height:0.875em;margin:0 0.22em 0 -1.22em}
table.simple th{font-family:inherit !important}
.fr{width:100%;margin:2.154em 0;border:1px dotted}
.fr{width:100%;border:1px dotted}
.fr h4{margin-top:-1.2em;margin-left:-1em;width:8.5em;border:1px dotted;padding: 3px 3px 3px 13px;background:#fff;color:inherit;position:relative}
.hover{background:#eee !important;color:inherit !important;cursor:default !important}
body{counter-reset:h1}
h1:before{counter-increment:h1;content:counter(h1) ". "}
h1:before{counter-increment:h1;content:"Chapter " counter(h1) ". "}
h1{counter-reset:h2}
h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". "}
h2{counter-reset:h3}
+3 -1
View File
@@ -3,10 +3,12 @@
<head>
<meta charset="utf-8">
<title>Dive Into Python 3</title>
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<link rel="stylesheet" type="text/css" href="dip3.css">
<link rel="shortcut icon" href="data:">
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<style type="text/css">
body{counter-reset:h1 -1}
h1{background:papayawhip}
h2{margin-left:1.75em}
h3{margin-left:3.5em}
.appendix h1:before{content:""}
+4 -4
View File
@@ -3,19 +3,19 @@
<head>
<meta charset="utf-8">
<title>Porting code to Python 3 with 2to3 - Dive into Python 3</title>
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<script type="text/javascript" src="dip3.packed.js"></script>
<link rel="stylesheet" type="text/css" href="dip3.css">
<link rel="shortcut icon" href="data:">
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<style type="text/css">
h1:before{counter-increment:h1;content:"Appendix A. "}
h2:before{counter-increment:h2;content:"A." counter(h2) ". "}
h3:before{counter-increment:h3;content:"A." counter(h2) "." counter(h3) ". "}
</style>
<script type="text/javascript" src="dip3.js"></script>
</head>
<body>
<p class="skip"><a href="#divingin">skip to main content</a>
<form action="http://www.google.com/cse" id="search"><div><input type="hidden" name="cx" value="014021643941856155761:l5eihuescdw"><input type="hidden" name="ie" value="UTF-8">&nbsp;<input name="q" size="31">&nbsp;<input type="submit" name="sa" value="Search"></div><p>You are here: <a href="index.html">Dive Into Python 3</a> <span>&#8227;</span> <b>Appendix A</b></p></form>
<h1>Porting code to Python 3 with <code>2to3</code></h1>
<form action="http://www.google.com/cse" id="search"><div><input type="hidden" name="cx" value="014021643941856155761:l5eihuescdw"><input type="hidden" name="ie" value="UTF-8">&nbsp;<input name="q" size="31">&nbsp;<input type="submit" name="sa" value="Search"></div><p>You are here: <a href="index.html">Dive Into Python 3</a> <span>&#8227;</span></p> <h1>Porting code to Python 3 with <code>2to3</code></h1></form>
<blockquote class="q">
<p><span>&#x275D;</span> Life is pleasant. Death is peaceful. It&#8217;s the transition that&#8217;s troublesome. <span>&#x275E;</span><br>&mdash; Isaac Asimov (attributed)
</blockquote>
+5 -5
View File
@@ -3,17 +3,17 @@
<head>
<meta charset="utf-8">
<title>Your first Python program - Dive into Python 3</title>
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<script type="text/javascript" src="dip3.packed.js"></script>
<link rel="stylesheet" type="text/css" href="dip3.css">
<link rel="shortcut icon" href="data:">
<link rel="alternate" type="application/atom+xml" href="http://hg.diveintopython3.org/atom-log">
<style type="text/css">
body{counter-reset:h1 0}
</style>
<script type="text/javascript" src="dip3.packed.js"></script>
</head>
<body>
<p class="skip"><a href="#divingin">skip to main content</a>
<form action="http://www.google.com/cse" id="search"><div><input type="hidden" name="cx" value="014021643941856155761:l5eihuescdw"><input type="hidden" name="ie" value="UTF-8">&nbsp;<input name="q" size="31">&nbsp;<input type="submit" name="sa" value="Search"></div><p>You are here: <a href="index.html">Dive Into Python 3</a> <span>&#8227;</span> <b>1. Your first Python program</b></p></form>
<h1>Your first Python program</h1>
<form action="http://www.google.com/cse" id="search"><div><input type="hidden" name="cx" value="014021643941856155761:l5eihuescdw"><input type="hidden" name="ie" value="UTF-8">&nbsp;<input name="q" size="31">&nbsp;<input type="submit" name="sa" value="Search"></div><p>You are here: <a href="index.html">Dive Into Python 3</a> <span>&#8227;</span></p> <h1>Your first Python program</h1></form>
<blockquote class="q">
<p><span>&#x275D;</span> Don&#8217;t bury your burden in saintly silence. You have a problem? Great. Rejoice, dive in, and investigate. <span>&#x275E;</span><br>&mdash; <cite>Ven. Henepola Gunararatana</cite>
</blockquote>
@@ -239,7 +239,7 @@ if __name__ == "__main__":
<samp class="prompt">>>> </samp><kbd>humansize.__name__</kbd>
<samp>'humansize'</samp></pre>
<p>But you can also run the module directly as a standalone program, in which case <code>__name__</code> will be a special default value, <code>__main__</code>. Python will evaluate this <code>if</code> statement, find a true expression, and execute the <code>if</code> code block. In this case, to print two values.
<pre><samp class="prompt">c:\home\diveintopython3> </samp><kbd>c:\python30\python.exe humansize.py</kbd>
<pre class="screen"><samp class="prompt">c:\home\diveintopython3> </samp><kbd>c:\python30\python.exe humansize.py</kbd>
<samp>1.0 TB
931.3 GiB</samp></pre>
<p class="c">&copy; 2001-4, 2009 <span>&#x2133;</span>ark Pilgrim, <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">CC-BY-3.0</a>