<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Installation</title><link>https://sourceforge.net/p/scdict/wiki/Installation/</link><description>Recent changes to Installation</description><atom:link href="https://sourceforge.net/p/scdict/wiki/Installation/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 12 Sep 2014 10:31:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/scdict/wiki/Installation/feed" rel="self" type="application/rss+xml"/><item><title>Installation modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -4,8 +4,20 @@
 General
 -------

+You need CLISP or SBCL to compile this software.  CLISP produces smaller binaries.
+
+To compile with CLISP and install:
+
     make
     make install
+    make clean
+    
+To compile with SBCL and install:
+
+    make lisp=sbcl
+    make install
+    make clean
+    

 You can modify the installation directories by providing a `prefix` as follows

@@ -28,14 +40,14 @@

 SCDICT can also be used as a Lisp library in a Lisp environment.

-Currently CLISP and SBCL are supported.
+It has been tested with CLISP and SBCL.

-The Lisp code is collected in the `src` directory.  SCDICT depends on a few standard libraries contained in the `lisp-dependencies` directory; however, the dependencies can be installed independently.
+The Lisp code is collected in the `lisp` directory.

-The main loop is started by the function SCDICT.INTERFACE:MAIN which accepts a plist of parameters as parsed by apply-argv.  For example,
+The entry point is the function SCDICT:MAIN which accepts a list of command line arguments.

-    scdict.interface:main('(:quiet :initial-dictionary "mydict"))
+    scdict:main('("dictionary" "install" "-r" "my-file.scdict"))

 is equivalent to

-    scdict -quiet -initial-dictionary mydict
+    scdict dictionary install -r my-file.scdict
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Fri, 12 Sep 2014 10:31:32 -0000</pubDate><guid>https://sourceforge.netf8fef75846b6e208bc40cca077a5e50227660956</guid></item><item><title>Installation modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -0,0 +1,41 @@
+Installation
+============
+
+General
+-------
+
+    make
+    make install
+
+You can modify the installation directories by providing a `prefix` as follows
+
+    make install prefix=/my/prefix
+
+By default `prefix` is set to `/usr/local`.
+
+Uninstall:
+
+    make uninstall
+
+or
+
+    make uninstall prefix=/my/prefix
+
+SCDICT keeps user-specific files in the `~/.scdict` directory.  These directories are unaffected by uninstallation.
+
+Using from Lisp environment
+---------------------------
+
+SCDICT can also be used as a Lisp library in a Lisp environment.
+
+Currently CLISP and SBCL are supported.
+
+The Lisp code is collected in the `src` directory.  SCDICT depends on a few standard libraries contained in the `lisp-dependencies` directory; however, the dependencies can be installed independently.
+
+The main loop is started by the function SCDICT.INTERFACE:MAIN which accepts a plist of parameters as parsed by apply-argv.  For example,
+
+    scdict.interface:main('(:quiet :initial-dictionary "mydict"))
+
+is equivalent to
+
+    scdict -quiet -initial-dictionary mydict
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Thu, 13 Feb 2014 13:01:03 -0000</pubDate><guid>https://sourceforge.net55a7ebb84ee627934e688c05c8e6725f5f636ee8</guid></item><item><title>Installation modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Installation/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Wed, 05 Feb 2014 17:27:39 -0000</pubDate><guid>https://sourceforge.netd8c8a7bcefbdf72771416e17e42c78878cd42b8f</guid></item><item><title>Set-up modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Set-up/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,79 +0,0 @@
-In order to actually use SCDICT you must set up certain things in your configuration file ~/.scdict/scdictrc.lisp.
-
-## Basic setup ##
-
-The configuration file uses Lisp-like syntax.
-
-First and foremost, you should set up default viewers for your formats of dictionaries.
-
-### Defining viewer ###
-
-In order to set a default viewer, you first define one.  To do so you use the following syntax:
-
-    (defviewer  ( )  )
-
-Here
-
-* `` is any sequence of letters (typically lowercase with hyphens
-as separators; in what follows such sequences are referenced to as *symbols*);
-
-* `` is a symbol standing for variable file name;
-
-* `` is a symbol standing for variable page number;
-
-* `` is a string delimited by double quotes possibly including
-sequences `~A`.  More generally, it can be an arbitrary Common Lisp format
-string.  Note that inside strings literal double quotes and backslashes must be
-escaped with a backslash;
-
-* `` are several symbols (one for each `~A`) used for
-substitution into the format string.
-
-### Example: djview4 ###
-
-Say, you want to use djview4 as your default DjVu viewer.
-A possible command to open a file at a given page would be
- 
-    djview -page= ""
-
-(see `man djview` for more options).  Note that you should quote the file name
-as it may contain spaces.  In your scdictrc.lisp you use write as follows:
-
-    (defviewer default-djvu-viewer (f p) "djview -page=~A \"~A\"" p f)
-
-Here `defviewer` means that we are defining a new viewer and
-`default-djvu-viewer` is its name (you could choose another one to your
-liking).  Next, as we mentioned, we specify two symbols `f` and `p` that will
-stand for the file name and page number.  You could chose any two letters
-(identifiers) you like, but the first letter in parentheses after the viewer's
-name will always stand for the file name, while the second one will stand for
-the page.  Next we see our command in the form of a format string.  The string
-has two gaps for the page number and the file name which are both represented
-by ~A. After the string we supply the values to fill in the gaps in the order
-the gaps occur, i. e. first the page number, then the file name.  Notice once
-again that the format string (as any string) is delimited by double quotes and
-you must escape literal double quotes with backslashes.
-
-### Example: mupdf ###
-Here is another example for mupdf:
-
-    (defviewer my-favourite-pdf-viewer (file page)
-      "mupdf \"~A\" ~A" file page)
-
-Here the syntax is simpler and can be written in the form
-    
-    mupdf  
-
-We have used the variable names `file` and `page` instead of just f and p.
-
-Observe that you can split Lisp code between multiple lines (anyway, computer
-reads it by parentheses) and it it customary (though not absolutely necessary)
-to indent the body of a macro by two spaces.  Further, observe that Lisp code
-is typically written in lower case with hyphens as separators (rather than e.
-g. underscores).  Of course, a dedicated text editor makes formatting code much
-easier, but if you are not going to code that much, you can have pretty rc
-files even without it.
-
-## Advanced setup ##
-
-The configuration file uses a DSL built on top of Common Lisp.  You have no direct access to the whole of Common Lisp, so chances are high that you won't mess things up a lot.  However, you do have indirect access to the language, so you can hack if you feel like to.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Wed, 05 Feb 2014 17:27:14 -0000</pubDate><guid>https://sourceforge.net808ef1d101ad0ef6f49b6db5363e077bf8a3c3d2</guid></item><item><title>Set-up modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Set-up/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -70,11 +70,9 @@
 reads it by parentheses) and it it customary (though not absolutely necessary)
 to indent the body of a macro by two spaces.  Further, observe that Lisp code
 is typically written in lower case with hyphens as separators (rather than e.
-g. underscores).  Of course, a dedicated text editor makes formatting the code
-much easier, but if you are not going to code that much, you can have pretty
-rc files even without it.
-
-
+g. underscores).  Of course, a dedicated text editor makes formatting code much
+easier, but if you are not going to code that much, you can have pretty rc
+files even without it.

 ## Advanced setup ##

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Wed, 05 Feb 2014 17:20:33 -0000</pubDate><guid>https://sourceforge.net53bd6a06885a134af7d9c691acce68d019148f8d</guid></item><item><title>Set-up modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Set-up/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -29,7 +29,7 @@
 * `` are several symbols (one for each `~A`) used for
 substitution into the format string.

-### Example ###
+### Example: djview4 ###

 Say, you want to use djview4 as your default DjVu viewer.
 A possible command to open a file at a given page would be
@@ -54,7 +54,7 @@
 again that the format string (as any string) is delimited by double quotes and
 you must escape literal double quotes with backslashes.

-### Example ###
+### Example: mupdf ###
 Here is another example for mupdf:

     (defviewer my-favourite-pdf-viewer (file page)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Wed, 05 Feb 2014 17:19:33 -0000</pubDate><guid>https://sourceforge.net7f2ae403c889e8571bd2a5c30082bf2cf32acdb2</guid></item><item><title>Set-up modified by Quasus</title><link>https://sourceforge.net/p/scdict/wiki/Set-up/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In order to actually use SCDICT you must set up certain things in your configuration file ~/.scdict/scdictrc.lisp.&lt;/p&gt;
&lt;h2 id="basic-setup"&gt;Basic setup&lt;/h2&gt;
&lt;p&gt;The configuration file uses Lisp-like syntax.&lt;/p&gt;
&lt;p&gt;First and foremost, you should set up default viewers for your formats of dictionaries.&lt;/p&gt;
&lt;h3 id="defining-viewer"&gt;Defining viewer&lt;/h3&gt;
&lt;p&gt;In order to set a default viewer, you first define one.  To do so you use the following syntax:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;defviewer&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;viewer&lt;/span&gt;&lt;span class="na"&gt;-name&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;file&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="na"&gt;-string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="na"&gt;-arguments&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Here&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;viewer-name&amp;gt;&lt;/code&gt; is any sequence of letters (typically lowercase with hyphens&lt;br /&gt;
as separators; in what follows such sequences are referenced to as &lt;em&gt;symbols&lt;/em&gt;);&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;file&amp;gt;&lt;/code&gt; is a symbol standing for variable file name;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;page&amp;gt;&lt;/code&gt; is a symbol standing for variable page number;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;format-string&amp;gt;&lt;/code&gt; is a string delimited by double quotes possibly including&lt;br /&gt;
sequences &lt;code&gt;~A&lt;/code&gt;.  More generally, it can be an arbitrary Common Lisp format&lt;br /&gt;
string.  Note that inside strings literal double quotes and backslashes must be&lt;br /&gt;
escaped with a backslash;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;format-arguments&amp;gt;&lt;/code&gt; are several symbols (one for each &lt;code&gt;~A&lt;/code&gt;) used for&lt;br /&gt;
substitution into the format string.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="example"&gt;Example&lt;/h3&gt;
&lt;p&gt;Say, you want to use djview4 as your default DjVu viewer.&lt;br /&gt;
A possible command to open a file at a given page would be&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;djview&lt;/span&gt; &lt;span class="na"&gt;-page&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;&amp;lt;file&amp;gt;&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;(see &lt;code&gt;man djview&lt;/code&gt; for more options).  Note that you should quote the file name&lt;br /&gt;
as it may contain spaces.  In your scdictrc.lisp you use write as follows:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;defviewer&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;djvu&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;viewer&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;djview -page=~A &lt;/span&gt;&lt;span class="se"&gt;\&amp;quot;&lt;/span&gt;&lt;span class="s"&gt;~A&lt;/span&gt;&lt;span class="se"&gt;\&amp;quot;&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Here &lt;code&gt;defviewer&lt;/code&gt; means that we are defining a new viewer and&lt;br /&gt;
&lt;code&gt;default-djvu-viewer&lt;/code&gt; is its name (you could choose another one to your&lt;br /&gt;
liking).  Next, as we mentioned, we specify two symbols &lt;code&gt;f&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt; that will&lt;br /&gt;
stand for the file name and page number.  You could chose any two letters&lt;br /&gt;
(identifiers) you like, but the first letter in parentheses after the viewer's&lt;br /&gt;
name will always stand for the file name, while the second one will stand for&lt;br /&gt;
the page.  Next we see our command in the form of a format string.  The string&lt;br /&gt;
has two gaps for the page number and the file name which are both represented&lt;br /&gt;
by ~A. After the string we supply the values to fill in the gaps in the order&lt;br /&gt;
the gaps occur, i. e. first the page number, then the file name.  Notice once&lt;br /&gt;
again that the format string (as any string) is delimited by double quotes and&lt;br /&gt;
you must escape literal double quotes with backslashes.&lt;/p&gt;
&lt;h3 id="example_1"&gt;Example&lt;/h3&gt;
&lt;p&gt;Here is another example for mupdf:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;defviewer&lt;/span&gt; &lt;span class="n"&gt;my&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;favourite&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;viewer&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="s"&gt;&amp;quot;mupdf &lt;/span&gt;&lt;span class="se"&gt;\&amp;quot;&lt;/span&gt;&lt;span class="s"&gt;~A&lt;/span&gt;&lt;span class="se"&gt;\&amp;quot;&lt;/span&gt;&lt;span class="s"&gt; ~A&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Here the syntax is simpler and can be written in the form&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;mupdf&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;file&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;We have used the variable names &lt;code&gt;file&lt;/code&gt; and &lt;code&gt;page&lt;/code&gt; instead of just f and p.&lt;/p&gt;
&lt;p&gt;Observe that you can split Lisp code between multiple lines (anyway, computer&lt;br /&gt;
reads it by parentheses) and it it customary (though not absolutely necessary)&lt;br /&gt;
to indent the body of a macro by two spaces.  Further, observe that Lisp code&lt;br /&gt;
is typically written in lower case with hyphens as separators (rather than e.&lt;br /&gt;
g. underscores).  Of course, a dedicated text editor makes formatting the code&lt;br /&gt;
much easier, but if you are not going to code that much, you can have pretty&lt;br /&gt;
rc files even without it.&lt;/p&gt;
&lt;h2 id="advanced-setup"&gt;Advanced setup&lt;/h2&gt;
&lt;p&gt;The configuration file uses a DSL built on top of Common Lisp.  You have no direct access to the whole of Common Lisp, so chances are high that you won't mess things up a lot.  However, you do have indirect access to the language, so you can hack if you feel like to.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Quasus</dc:creator><pubDate>Wed, 05 Feb 2014 17:18:45 -0000</pubDate><guid>https://sourceforge.netf6c1e4a642ca70b5cfbfd331b1d0877afddc57a4</guid></item></channel></rss>