Minor edits
[dc-seal.git] / seal-installation.htm
blobdcb5d60b585ad0b4f18a113eb14f429308200133
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
5 <head>
8 <title>Using Seal under Windows</title>
9 <link rel="stylesheet" type="text/css" href="css/general.css" />
10 <link href="css/articles.css" rel="stylesheet" type="text/css" />
11 <style>
12 tt {font-size: 0.9em; color: #030; font-family: "lucida console","bitstream vera sans mono", monospace}
13 .first {margin-top:1em; }
14 pre {font-size: 0.9em; color: #030;}
15 </style>
16 </head>
18 <body>
19 <div id="content">
21 <h1>Using Seal under Windows</h1>
22 <p class="first">Seal is written in the programming language <em>Ruby</em>, and converts through the type-setting environment <em>LaTeX</em>, so in order to use it, you need to have these installed.</p>
23 <p>Under Windows, this involves some steps that may seem complicated to the average point-and-click user, but it&rsquo;s not really difficult. Below is first a quick-install routine, then a more detailed walkthrough. </p>
26 <h3>Quick install</h3>
27 <ol>
28 <li>Download and install <a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl">Ruby</a> and <a href="http://www.miktex.org/Default.aspx">MikTeX.</a> </li>
29 <li>Download and unpack dylanchords <a href="http://dylanchords.info">[1]</a> <a href="http://dylanchords.brokenbricks.com">[2]</a> and <a href="http://www.math.tu-dresden.de/~kuettler/seal/">Seal.</a></li>
30 <li>Browse to wherever you unpacked Seal. </li>
31 <li>Run <tt>ruby seal-convert &#060;path\to\dylanchords&#062;</tt></li>
32 <li>Run <tt>ruby seal-tex --pdf</tt> to get pdf output; follow instructions along the way.
33 </li>
34 <li>Go to the subdirectory <tt>book</tt>, where you will find <tt>mbpbook.pdf</tt></li>
35 </ol>
37 <h2>Detailed instructions</h2>
38 <h3> 1. Preparations</h3>
39 <p class="first">1. Both Ruby and MikTeX are freely available. Ruby from</p>
40 <p class="first"><a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl">http://rubyinstaller.rubyforge.org/wiki/wiki.pl</a> </p>
41 <p>(<a href="http://rubyforge.org/frs/download.php/4174/ruby182-15.exe">direct link to the installer</a>),</p>
42 <p class="first">and MikTeX, the Windows version of LaTeX, from</p>
43 <p class="first"> <a href="http://www.miktex.org/Default.aspx">http://www.miktex.org/Default.aspx </a></p>
44 <p>(<a href="http://sourceforge.net/project/downloading.php?groupname=miktex&filename=basic-miktex-2.5-beta-8.exe&use_mirror=voxel">direct link</a>). </p>
45 <p class="first">These are fairly big downloads, but it&rsquo;s worth it&hellip; </p>
46 <p class="first">Once you&rsquo;ve got them home, both Ruby and MikTex are one-click installers (well, you may have to double-click, but I count that as one), so click on the exe-files, choose a destination (you can for instance accept the suggestions), and sit back and wait.</p>
47 <p>You will be presented with some alternatives about what to install. E.g., if you don&rsquo;t think you are ever going to look into programming with Ruby, you may unselect the documentation during the installation. One thing you should <em>not</em> unselect, however, is SciTE, a superb text editor which comes bundled with Ruby.</p>
49 <p class="first">2. Then you need something to feed the Seal with: a recent copy of the chords.zip file of dylanchords, available from <a href="http://dylanchords.nfshost.com">dylanchords.nfshost.com</a> or <a href="http://dylanchords.brokenbricks.com">dylanchords.brokenbricks.com</a></p>
51 <p class="first"> 3. Oh yes, and you need Seal itself. The seal package is available from <a href="http://www.math.tu-dresden.de/~kuettler/seal/">http://www.math.tu-dresden.de/~kuettler/seal/</a></p>
53 <p class="first">4. Unpack these, using the zip handler of your choice (I can recommend <a href="http://www.ghisler.com/">Total Commander</a>, the file manager par excellence, which also handles zip files, but any zip-utility will do &ndash; even the one that comes with Windows), to wherever you want it. The following instructions use c:\dylanchords\, but you can put it wherever you want. </p>
54 <p> Unpack chords.zip, e.g. to c:\dylanchords</p>
55 <p> Unpack seal-current.zip. If you unzip it to c:\dylanchords, it will unpack itself to the subdirectory seal-snapshot-&lt;x&gt; where &lt;x&gt; is the current version number of Seal.</p>
58 <h3>2. Running Seal</h3>
59 <p class="first">When the preparations are done, you are ready to run Seal itself.</p>
60 <p class="first">1. Open a console. The easiest way is to press the Win-key + R (for &ldquo;run&rdquo;), then type <tt>cmd</tt> + Enter in the windows that pops up.</p>
61 <p class="first"> 2. Navigate to the directory where you put seal, e.g., at the prompt, type:</p>
62 <pre class="quote">cd c:\dylanchords\seal-snapshot-&lt;x&gt; </pre>
63 <p class="first">(tip: you don&rsquo;t have to type it all: write a couple of letters and press TAB until the correct directory comes up, etc)</p>
64 <p class="first"> 3. then type &ldquo;ruby seal-convert&rdquo; followed by the path to dylanchords. Ex:</p>
65 <pre class="quote">ruby seal-convert c:\dylanchords</pre>
66 <p class="first"> or, if you unpacked seal in c:\dylanchords\seal-current, you can do</p>
67 <pre class="quote">ruby seal-convert .. </pre>
68 <p class="first">(&ldquo;..&rdquo; means &ldquo;parent directory&rdquo;)</p>
69 <p class="first"> If ruby is correctly installed, and you&rsquo;ve typed everything correctly, you should now see a lot of messages scroll by as seal converts all the html files into LaTeX files. Some of the messages may be warnings, but you can disregard that.</p>
70 <p class="first"> 4. When seal-convert is done, type</p>
71 <pre class="quote">ruby seal-tex --pdf</pre>
72 <p class="first"> This will gather all the single .tex files into one single file, mbpbook.tex, and then convert that to a pdf file.</p>
73 <p class="first"> MikTeX, even though it&rsquo;s a huge download, is only the bare bones of LaTeX. Seal uses some extra packages which are not part of the basic installation. The first time you run seal-tex, MikTeX will stop when it finds a missing package, and ask you to install it. This should proceed automatically &ndash; all you need to do is to click &ldquo;install&rdquo; when you are asked.</p>
74 <p> Again, you will see a lot of messages rolling by. Some of these are complaints about overfull and underfull boxes (nothing about all the <em>wonder</em>ful boxes you will get, though, which proves that computer programs care more about numbers than about aesthetics, alternatively that computer programs belong in the pre-Kantian world, where beauty was defined in terms of numbers). Again, these can be disregarded. </p>
75 <p class="first"> 5. If you&rsquo;ve done everything correctly, your pdf file, called mbpbook.pdf, should be ready for you. All the output files end up in the subdirectory &ldquo;book&rdquo; (unless you specify a different directory), so you will find it at<tt> c:\dylanchords\seal-snapshot-&lt;x&gt;\book\mbpbook.pdf</tt> </p>
76 <p class="first"> 6. Pick up your guitar, tune it, clear your throat and your mind, go to a random page, play and enjoy.</p>
79 <h3>Further Options</h3>
80 <p class="first">The method described above is what you would do if you simply want a pdf file of the whole thing as quickly as possible. There are some other options available.</p>
81 <p class="first">1. <tt>seal-convert</tt> has the following, general usage description:</p>
82 <pre>Usage: ruby seal-convert [options] source [destination]</pre>
83 <p class="first">The options can be any of the following (or nothing at all):</p>
84 <pre>-f, --[no-]force Overwrite existing directories
85 -i, --[no-]interactive Ask before overwriting
86 -v, --[no-]verbose Write out what is going on
87 -q, --[no-]quiet Don&rsquo;t write what is going on
88 </pre>
89 <p class="first">The source is the path to wherever you have put the dylanchords files, and the destination is where you want the result. If this is left empty, the output will go to a subdirectory <tt>book</tt> in the seal folder. </p>
90 <p>A sample run with all the places filled, may look like:</p>
91 <pre>ruby seal-convert -iv c:\dylanchords c:\great_stuff\seal</pre>
93 <p class="first">2. <tt>seal-tex</tt> has the following usage:</p>
94 <pre>Usage: ruby seal-tex [options] [directory]</pre>
95 <p class="first">and the following options:</p>
96 <pre>
97 --pdf Create PDF output instead of PostScript
98 -v, --[no-]verbose Write out what is going on
99 -q, --[no-]quiet Don't write what is going on
100 -h, --help Show this message
101 --copyright Show copyright (revised BSD License)</pre>
102 <p class="first">If run without any arguments, <tt>ruby seal-tex</tt> will generate a postscript file, which is the format of choice in the LaTeX/Linux world. </p>
104 <p class="first">3. Which files are included in the book, is determined by two files in the <tt>data</tt> subdirectory: <tt>albums.yaml</tt> and <tt>songs.yaml</tt>. If you just want some albums in your book, comment out the ones you don&rsquo;t want (put a # in front of them), and run <tt>ruby seal-convert</tt> and <tt>ruby seal-tex -pdf</tt> again. If you also specify a different output folder, you won&rsquo;t overwrite the main book. E.g., you can comment out everything except <em>Knocked out Loaded</em> in <tt>albums.yaml</tt> and do:</p>
105 <pre>ruby seal-convert c:\dylanchords c:\dylanchords\torch-ballads</pre>
107 <p class="first">4. Seal is open-source, which means that you can open all the files in the seal folders and see what they&rsquo;re doing. You can also change them if you&rsquo;re confident enough about your programming skills. </p>
108 </div>
109 <script type="text/javascript">
110 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
111 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
112 </script>
113 <script type="text/javascript">
114 try {
115 var pageTracker = _gat._getTracker("UA-7570468-2");
116 pageTracker._trackPageview();
117 } catch(err) {}</script>
118 </body>
119 </html>