This commit is contained in:
Jean-Francois Dockes 2015-12-01 14:30:17 +01:00
parent 9762fffc23
commit 2a48efc22b

View file

@ -661,6 +661,18 @@ indexedmimetypes = application/pdf
<option>-c</option> option to <command>recoll</command> and <option>-c</option> option to <command>recoll</command> and
<command>recollindex</command>.</para> <command>recollindex</command>.</para>
<para>When working with the <command>recoll</command> index
configuration GUI, the configuration directory for which parameters
are modified is the one which was selected by
<envar>RECOLL_CONFDIR</envar> or the <option>-c</option> parameter,
and there is no way to switch configurations within the GUI.</para>
<para>Additional configuration directory (beyond
<filename>~/.recoll</filename>) must be created by hand
(<command>mkdir</command> or such), the GUI will not do it. This is
to avoid mistakenly creating additional directories when an
argument is mistyped.</para>
<para>A typical usage scenario for the multiple index feature <para>A typical usage scenario for the multiple index feature
would be for a system administrator to set up a central index would be for a system administrator to set up a central index
for shared data, that you choose to search or not in addition to for shared data, that you choose to search or not in addition to
@ -5190,13 +5202,14 @@ except:
the <guilabel>Index configuration</guilabel> dialog the <guilabel>Index configuration</guilabel> dialog
(<guilabel>Preferences</guilabel> menu). The GUI tool will try (<guilabel>Preferences</guilabel> menu). The GUI tool will try
to respect your formatting and comments as much as possible, to respect your formatting and comments as much as possible,
so it is quite possible to use both ways.</para> so it is quite possible to use both approaches on the same
configuration.</para>
<para>The most accurate documentation for the <para>The most accurate documentation for the
configuration parameters is given by comments inside the default configuration parameters is given by comments inside the default
files, and we will just give a general overview here.</para> files, and we will just give a general overview here.</para>
<para>By default, for each index, there are two sets of <para>For each index, there are at least two sets of
configuration files. System-wide configuration files are kept configuration files. System-wide configuration files are kept
in a directory named in a directory named
like <filename>/usr/[local/]share/recoll/examples</filename>, like <filename>/usr/[local/]share/recoll/examples</filename>,
@ -5204,6 +5217,16 @@ except:
index, a parallel set of files defines the customized index, a parallel set of files defines the customized
parameters.</para> parameters.</para>
<para>The default location of the customized configuration is the
<filename>.recoll</filename>
directory in your home. Most people will only use this
directory.</para>
<para>This location can be changed, or others can be added with the
<envar>RECOLL_CONFDIR</envar> environment variable or the
<option>-c</option> option parameter to <command>recoll</command> and
<command>recollindex</command>.</para>
<para>In addition (as of &RCL; version 1.19.7), it is possible <para>In addition (as of &RCL; version 1.19.7), it is possible
to specify two additional configuration directories which will to specify two additional configuration directories which will
be stacked before and after the user configuration be stacked before and after the user configuration
@ -5221,16 +5244,6 @@ except:
future: do not use colon characters inside the directory future: do not use colon characters inside the directory
paths.</para> paths.</para>
<para>The default location of the configuration is the
<filename>.recoll</filename>
directory in your home. Most people will only use this
directory.</para>
<para>This location can be changed, or others can be added with the
<envar>RECOLL_CONFDIR</envar> environment variable or the
<option>-c</option> option parameter to <command>recoll</command> and
<command>recollindex</command>.</para>
<para>If the <filename>.recoll</filename> directory does not <para>If the <filename>.recoll</filename> directory does not
exist when <command>recoll</command> or exist when <command>recoll</command> or
<command>recollindex</command> are started, it will be created <command>recollindex</command> are started, it will be created
@ -5244,7 +5257,6 @@ except:
<envar>RECOLL_CONFDIR</envar> were used (in the latter <envar>RECOLL_CONFDIR</envar> were used (in the latter
cases, you will have to create the directory).</para> cases, you will have to create the directory).</para>
<para>All configuration files share the same format. For <para>All configuration files share the same format. For
example, a short extract of the main configuration file might example, a short extract of the main configuration file might
look as follows:</para> look as follows:</para>
@ -5269,6 +5281,9 @@ except:
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>Long lines can be broken by ending each incomplete part with
a backslash (<literal>\</literal>).</para>
<para>Depending on the type of configuration file, section <para>Depending on the type of configuration file, section
definitions either separate groups of parameters or allow definitions either separate groups of parameters or allow
redefining some parameters for a directory sub-tree. They stay redefining some parameters for a directory sub-tree. They stay
@ -5283,15 +5298,31 @@ except:
character (~) is expanded to the name of the user's home character (~) is expanded to the name of the user's home
directory, as a shell would do.</para> directory, as a shell would do.</para>
<para>White space is used for separation inside lists. <para>Some parameters are lists of strings. White space is used for
List elements with embedded spaces can be quoted using separation. List elements with embedded spaces can be quoted using
double-quotes.</para> double-quotes. Double quotes inside these elements can be escaped
with a backslash.</para>
<para>No value inside a configuration file can contain a newline
character. Long lines can be continued by escaping the
physical newline with backslash, even inside quoted strings.</para>
<programlisting>
astringlist = "some string \
with spaces"
thesame = "some string with spaces"
</programlisting>
<para>Parameters which are not part of string lists can't be
quoted, and leading and trailing space characters are
stripped before the value is used.</para>
<formalpara> <formalpara>
<title>Encoding issues</title> <title>Encoding issues</title>
<para>Most of the configuration parameters are plain ASCII. Two <para>Most of the configuration parameters are plain ASCII. Two
particular sets of values may cause encoding issues:</para> particular sets of values may cause encoding issues:</para>
</formalpara> </formalpara>
<para> <para>
<itemizedlist> <itemizedlist>
<listitem><para>File path parameters may contain non-ascii <listitem><para>File path parameters may contain non-ascii