|
a/src/doc/user/usermanual.xml |
|
b/src/doc/user/usermanual.xml |
|
... |
|
... |
372 |
it has a way to read. This is sometimes not desirable, and
|
372 |
it has a way to read. This is sometimes not desirable, and
|
373 |
there are ways to either exclude some types, or on the
|
373 |
there are ways to either exclude some types, or on the
|
374 |
contrary to define a positive list of types to be
|
374 |
contrary to define a positive list of types to be
|
375 |
indexed. In the latter case, any type not in the list will
|
375 |
indexed. In the latter case, any type not in the list will
|
376 |
be ignored.</para>
|
376 |
be ignored.</para>
|
|
|
377 |
|
377 |
<para>Excluding types can be done by adding wildcard name
|
378 |
<para>Excluding types can be done by adding wildcard name
|
378 |
patterns to the <literal>skippedNames</literal> list, which
|
379 |
patterns to the <literal>skippedNames</literal> list, which
|
379 |
can be done from the GUI Index configuration menu. It is
|
380 |
can be done from the GUI Index configuration menu. For
|
380 |
also possible to exclude a mime type independantly of the
|
381 |
versions 1.20 and later, you can alternatively set the
|
381 |
file name by associating it with the
|
382 |
<literal>excludedmimetypes</literal> list in the
|
382 |
<filename>rclnull</filename> input handler. This can be done
|
383 |
configuration file. This can be redefined for
|
383 |
by editing the <link linkend="RCL.INSTALL.CONFIG.MIMECONF">
|
384 |
subdirectories.</para>
|
384 |
<filename>mimeconf</filename> configuration
|
|
|
385 |
file</link>.</para>
|
|
|
386 |
|
385 |
|
387 |
<para>In order to define a positive list, You need to edit the
|
386 |
<para>You can also define an exclusive list of MIME types to be indexed (no others will be indexed), by settting
|
388 |
<link linkend="RCL.INSTALL.CONFIG.RECOLLCONF">main
|
|
|
389 |
configuration file
|
|
|
390 |
(<filename>recoll.conf</filename>)</link> and set
|
|
|
391 |
the <literal>indexedmimetypes</literal> configuration
|
387 |
the <literal>indexedmimetypes</literal> configuration
|
392 |
variable. Example:<programlisting>
|
388 |
variable. Example:<programlisting>
|
393 |
indexedmimetypes = text/html application/pdf
|
389 |
indexedmimetypes = text/html application/pdf
|
394 |
</programlisting>
|
390 |
</programlisting>
|
395 |
It is possible to redefine this parameter for
|
391 |
It is possible to redefine this parameter for
|
|
... |
|
... |
397 |
[/path/to/my/dir]
|
393 |
[/path/to/my/dir]
|
398 |
indexedmimetypes = application/pdf
|
394 |
indexedmimetypes = application/pdf
|
399 |
</programlisting>
|
395 |
</programlisting>
|
400 |
(When using sections like this, don't forget that they remain
|
396 |
(When using sections like this, don't forget that they remain
|
401 |
in effect until the end of the file or another section
|
397 |
in effect until the end of the file or another section
|
402 |
indicator).
|
398 |
indicator).</para>
|
403 |
There is no GUI way to edit the parameter, because this
|
399 |
|
404 |
option runs contrary to &RCL; main goal which is to help you
|
400 |
<para>In order to set <literal>excludedmimetypes</literal>
|
405 |
find information, independantly of how it may be stored.
|
401 |
or <literal>indexedmimetypes</literal>, you need to edit the
|
|
|
402 |
<link linkend="RCL.INSTALL.CONFIG.RECOLLCONF">main
|
|
|
403 |
configuration file
|
|
|
404 |
(<filename>recoll.conf</filename>)</link>. I used to have
|
|
|
405 |
a bogus reason for this, but the really true truth is that
|
|
|
406 |
I was too lazy to extend the GUI for these relatively
|
|
|
407 |
rarely used parameters.
|
406 |
</para>
|
408 |
</para>
|
407 |
|
|
|
408 |
|
409 |
|
409 |
|
410 |
|
410 |
|
411 |
|
411 |
</sect2>
|
412 |
</sect2>
|
412 |
|
413 |
|
|
... |
|
... |
787 |
attributes, which are handled as such by &RCL;:
|
788 |
attributes, which are handled as such by &RCL;:
|
788 |
<variablelist>
|
789 |
<variablelist>
|
789 |
<varlistentry>
|
790 |
<varlistentry>
|
790 |
<term>mime_type</term>
|
791 |
<term>mime_type</term>
|
791 |
<listitem><para>If set, this overrides any other
|
792 |
<listitem><para>If set, this overrides any other
|
792 |
determination of the file mime type.</para></listitem>
|
793 |
determination of the file MIME type.</para></listitem>
|
793 |
</varlistentry>
|
794 |
</varlistentry>
|
794 |
<varlistentry>
|
795 |
<varlistentry>
|
795 |
<term>charset</term>
|
796 |
<term>charset</term>
|
796 |
<listitem>If set, this defines the file character set
|
797 |
<listitem>If set, this defines the file character set
|
797 |
(mostly useful for plain text files).</listitem>
|
798 |
(mostly useful for plain text files).</listitem>
|
|
... |
|
... |
1251 |
types (there is a short list of exceptions, see further). If you
|
1252 |
types (there is a short list of exceptions, see further). If you
|
1252 |
prefer to completely customize the choice of applications, you can
|
1253 |
prefer to completely customize the choice of applications, you can
|
1253 |
uncheck the <guilabel>Use desktop preferences</guilabel> option in
|
1254 |
uncheck the <guilabel>Use desktop preferences</guilabel> option in
|
1254 |
the GUI preferences dialog, and click the <guilabel>Choose editor
|
1255 |
the GUI preferences dialog, and click the <guilabel>Choose editor
|
1255 |
applications</guilabel> button to adjust the predefined &RCL;
|
1256 |
applications</guilabel> button to adjust the predefined &RCL;
|
1256 |
choices. The tool accepts multiple selections of mime types (e.g. to
|
1257 |
choices. The tool accepts multiple selections of MIME types (e.g. to
|
1257 |
set up the editor for the dozens of office file types).</para>
|
1258 |
set up the editor for the dozens of office file types).</para>
|
1258 |
|
1259 |
|
1259 |
<para>Even when <guilabel>Use desktop preferences</guilabel> is
|
1260 |
<para>Even when <guilabel>Use desktop preferences</guilabel> is
|
1260 |
checked, there is a small list of exceptions, for mime types where
|
1261 |
checked, there is a small list of exceptions, for MIME types where
|
1261 |
the &RCL; choice should override the desktop one. These are
|
1262 |
the &RCL; choice should override the desktop one. These are
|
1262 |
applications which are well integrated with &RCL;, especially
|
1263 |
applications which are well integrated with &RCL;, especially
|
1263 |
<application>evince</application> for viewing PDF and Postscript
|
1264 |
<application>evince</application> for viewing PDF and Postscript
|
1264 |
files because of its support for opening the document at a specific
|
1265 |
files because of its support for opening the document at a specific
|
1265 |
page and passing a search string as an argument. Of course, you can
|
1266 |
page and passing a search string as an argument. Of course, you can
|
|
... |
|
... |
1557 |
for, and permits specifying multiple clauses which are combined
|
1558 |
for, and permits specifying multiple clauses which are combined
|
1558 |
to build the search.</para>
|
1559 |
to build the search.</para>
|
1559 |
</listitem>
|
1560 |
</listitem>
|
1560 |
|
1561 |
|
1561 |
<listitem><para>The second tab lets filter the results according
|
1562 |
<listitem><para>The second tab lets filter the results according
|
1562 |
to file size, date of modification, mime type, or
|
1563 |
to file size, date of modification, MIME type, or
|
1563 |
location.</para>
|
1564 |
location.</para>
|
1564 |
</listitem>
|
1565 |
</listitem>
|
1565 |
|
1566 |
|
1566 |
</orderedlist>
|
1567 |
</orderedlist>
|
1567 |
|
1568 |
|
|
... |
|
... |
1654 |
<literal>g/G</literal>, <literal>t/T</literal> for 1E3, 1E6,
|
1655 |
<literal>g/G</literal>, <literal>t/T</literal> for 1E3, 1E6,
|
1655 |
1E9, 1E12 respectively.</para>
|
1656 |
1E9, 1E12 respectively.</para>
|
1656 |
</listitem>
|
1657 |
</listitem>
|
1657 |
|
1658 |
|
1658 |
<listitem>
|
1659 |
<listitem>
|
1659 |
<para>The next section allows filtering the results by their mime
|
1660 |
<para>The next section allows filtering the results by their MIME
|
1660 |
types, or mime categories (ie: media/text/message/etc.).</para>
|
1661 |
types, or MIME categories (ie: media/text/message/etc.).</para>
|
1661 |
<para>You can transfer the types between two boxes, to define
|
1662 |
<para>You can transfer the types between two boxes, to define
|
1662 |
which will be included or excluded by the search.</para>
|
1663 |
which will be included or excluded by the search.</para>
|
1663 |
<para>The state of the file type selection can be saved as
|
1664 |
<para>The state of the file type selection can be saved as
|
1664 |
the default (the file type filter will not be activated at
|
1665 |
the default (the file type filter will not be activated at
|
1665 |
program start-up, but the lists will be in the restored
|
1666 |
program start-up, but the lists will be in the restored
|
|
... |
|
... |
2176 |
in term use your desktop preferences to choose an appropriate
|
2177 |
in term use your desktop preferences to choose an appropriate
|
2177 |
application.</para>
|
2178 |
application.</para>
|
2178 |
</listitem>
|
2179 |
</listitem>
|
2179 |
|
2180 |
|
2180 |
<listitem><para><guilabel>Exceptions</guilabel>: when using the
|
2181 |
<listitem><para><guilabel>Exceptions</guilabel>: when using the
|
2181 |
desktop preferences for opening documents, these are mime types
|
2182 |
desktop preferences for opening documents, these are MIME types
|
2182 |
that will still be opened according to &RCL; preferences. This
|
2183 |
that will still be opened according to &RCL; preferences. This
|
2183 |
is useful for passing parameters like page numbers or search
|
2184 |
is useful for passing parameters like page numbers or search
|
2184 |
strings to applications that support them
|
2185 |
strings to applications that support them
|
2185 |
(e.g. <application>evince</application>). This cannot be done
|
2186 |
(e.g. <application>evince</application>). This cannot be done
|
2186 |
with <command>xdg-open</command> which only supports passing
|
2187 |
with <command>xdg-open</command> which only supports passing
|
|
... |
|
... |
2401 |
<formalpara><title>%A</title><para>Abstract</para></formalpara>
|
2402 |
<formalpara><title>%A</title><para>Abstract</para></formalpara>
|
2402 |
</listitem>
|
2403 |
</listitem>
|
2403 |
<listitem><formalpara><title>%D</title><para>Date</para></formalpara>
|
2404 |
<listitem><formalpara><title>%D</title><para>Date</para></formalpara>
|
2404 |
</listitem>
|
2405 |
</listitem>
|
2405 |
<listitem><formalpara><title>%I</title><para>Icon image
|
2406 |
<listitem><formalpara><title>%I</title><para>Icon image
|
2406 |
name. This is normally determined from the mime type. The
|
2407 |
name. This is normally determined from the MIME type. The
|
2407 |
associations are defined inside the
|
2408 |
associations are defined inside the
|
2408 |
<link linkend="RCL.INSTALL.CONFIG.MIMECONF">
|
2409 |
<link linkend="RCL.INSTALL.CONFIG.MIMECONF">
|
2409 |
<filename>mimeconf</filename> configuration file</link>.
|
2410 |
<filename>mimeconf</filename> configuration file</link>.
|
2410 |
If a thumbnail for the file is found at
|
2411 |
If a thumbnail for the file is found at
|
2411 |
the standard Freedesktop location, this will be displayed
|
2412 |
the standard Freedesktop location, this will be displayed
|
|
... |
|
... |
2415 |
any)</para></formalpara>
|
2416 |
any)</para></formalpara>
|
2416 |
</listitem>
|
2417 |
</listitem>
|
2417 |
<listitem><formalpara><title>%L</title><para>Precooked Preview,
|
2418 |
<listitem><formalpara><title>%L</title><para>Precooked Preview,
|
2418 |
Edit, and possibly Snippets links</para></formalpara>
|
2419 |
Edit, and possibly Snippets links</para></formalpara>
|
2419 |
</listitem>
|
2420 |
</listitem>
|
2420 |
<listitem><formalpara><title>%M</title><para>Mime
|
2421 |
<listitem><formalpara><title>%M</title><para>MIME
|
2421 |
type</para></formalpara>
|
2422 |
type</para></formalpara>
|
2422 |
</listitem>
|
2423 |
</listitem>
|
2423 |
<listitem><formalpara><title>%N</title><para>result Number inside
|
2424 |
<listitem><formalpara><title>%N</title><para>result Number inside
|
2424 |
the result page</para></formalpara>
|
2425 |
the result page</para></formalpara>
|
2425 |
</listitem>
|
2426 |
</listitem>
|
|
... |
|
... |
2920 |
p2y).</para>
|
2921 |
p2y).</para>
|
2921 |
</listitem>
|
2922 |
</listitem>
|
2922 |
|
2923 |
|
2923 |
<listitem><para><literal>mime</literal> or
|
2924 |
<listitem><para><literal>mime</literal> or
|
2924 |
<literal>format</literal> for specifying the
|
2925 |
<literal>format</literal> for specifying the
|
2925 |
mime type. This one is quite special because you can specify
|
2926 |
MIME type. This one is quite special because you can specify
|
2926 |
several values which will be OR'ed (the normal default for the
|
2927 |
several values which will be OR'ed (the normal default for the
|
2927 |
language is AND). Ex: <literal>mime:text/plain
|
2928 |
language is AND). Ex: <literal>mime:text/plain
|
2928 |
mime:text/html</literal>. Specifying an explicit boolean
|
2929 |
mime:text/html</literal>. Specifying an explicit boolean
|
2929 |
operator before a
|
2930 |
operator before a
|
2930 |
<literal>mime</literal> specification is not supported and
|
2931 |
<literal>mime</literal> specification is not supported and
|
|
... |
|
... |
2937 |
example.</para>
|
2938 |
example.</para>
|
2938 |
</listitem>
|
2939 |
</listitem>
|
2939 |
|
2940 |
|
2940 |
<listitem><para><literal>type</literal> or
|
2941 |
<listitem><para><literal>type</literal> or
|
2941 |
<literal>rclcat</literal> for specifying the category (as in
|
2942 |
<literal>rclcat</literal> for specifying the category (as in
|
2942 |
text/media/presentation/etc.). The classification of mime
|
2943 |
text/media/presentation/etc.). The classification of MIME
|
2943 |
types in categories is defined in the &RCL; configuration
|
2944 |
types in categories is defined in the &RCL; configuration
|
2944 |
(<filename>mimeconf</filename>), and can be modified or
|
2945 |
(<filename>mimeconf</filename>), and can be modified or
|
2945 |
extended. The default category names are those which permit
|
2946 |
extended. The default category names are those which permit
|
2946 |
filtering results in the main GUI screen. Categories are OR'ed
|
2947 |
filtering results in the main GUI screen. Categories are OR'ed
|
2947 |
like mime types above. This can't be negated with
|
2948 |
like MIME types above. This can't be negated with
|
2948 |
<literal>-</literal> either.</para>
|
2949 |
<literal>-</literal> either.</para>
|
2949 |
</listitem>
|
2950 |
</listitem>
|
2950 |
|
2951 |
|
2951 |
</itemizedlist>
|
2952 |
</itemizedlist>
|
2952 |
|
2953 |
|
|
... |
|
... |
3478 |
|
3479 |
|
3479 |
<sect2 id="RCL.PROGRAM.FILTERS.ASSOCIATION">
|
3480 |
<sect2 id="RCL.PROGRAM.FILTERS.ASSOCIATION">
|
3480 |
<title>Telling &RCL; about the handler</title>
|
3481 |
<title>Telling &RCL; about the handler</title>
|
3481 |
|
3482 |
|
3482 |
<para>There are two elements that link a file to the handler which
|
3483 |
<para>There are two elements that link a file to the handler which
|
3483 |
should process it: the association of file to mime type and the
|
3484 |
should process it: the association of file to MIME type and the
|
3484 |
association of a mime type with a handler.</para>
|
3485 |
association of a MIME type with a handler.</para>
|
3485 |
|
3486 |
|
3486 |
<para>The association of files to mime types is mostly based on
|
3487 |
<para>The association of files to MIME types is mostly based on
|
3487 |
name suffixes. The types are defined inside the
|
3488 |
name suffixes. The types are defined inside the
|
3488 |
<link linkend="RCL.INSTALL.CONFIG.MIMEMAP">
|
3489 |
<link linkend="RCL.INSTALL.CONFIG.MIMEMAP">
|
3489 |
<filename>mimemap</filename> file</link>. Example:
|
3490 |
<filename>mimemap</filename> file</link>. Example:
|
3490 |
<programlisting>
|
3491 |
<programlisting>
|
3491 |
|
3492 |
|
3492 |
.doc = application/msword
|
3493 |
.doc = application/msword
|
3493 |
</programlisting>
|
3494 |
</programlisting>
|
3494 |
If no suffix association is found for the file name, &RCL; will try
|
3495 |
If no suffix association is found for the file name, &RCL; will try
|
3495 |
to execute the <command>file -i</command> command to determine a
|
3496 |
to execute the <command>file -i</command> command to determine a
|
3496 |
mime type.</para>
|
3497 |
MIME type.</para>
|
3497 |
|
3498 |
|
3498 |
<para>The association of file types to handlers is performed in
|
3499 |
<para>The association of file types to handlers is performed in
|
3499 |
the <link linkend="RCL.INSTALL.CONFIG.MIMECONF">
|
3500 |
the <link linkend="RCL.INSTALL.CONFIG.MIMECONF">
|
3500 |
<filename>mimeconf</filename> file</link>. A sample will probably be
|
3501 |
<filename>mimeconf</filename> file</link>. A sample will probably be
|
3501 |
of better help than a long explanation:</para>
|
3502 |
of better help than a long explanation:</para>
|
|
... |
|
... |
5018 |
</varlistentry>
|
5019 |
</varlistentry>
|
5019 |
|
5020 |
|
5020 |
<varlistentry><term><varname>indexedmimetypes</varname></term>
|
5021 |
<varlistentry><term><varname>indexedmimetypes</varname></term>
|
5021 |
<listitem><para>&RCL; normally indexes any file which it
|
5022 |
<listitem><para>&RCL; normally indexes any file which it
|
5022 |
knows how to read. This list lets you restrict the indexed
|
5023 |
knows how to read. This list lets you restrict the indexed
|
5023 |
mime types to what you specify. If the variable is
|
5024 |
MIME types to what you specify. If the variable is
|
5024 |
unspecified or the list empty (the default), all supported
|
5025 |
unspecified or the list empty (the default), all supported
|
5025 |
types are processed. Can be redefined for subdirectories.</para>
|
5026 |
types are processed. Can be redefined for subdirectories.</para>
|
|
|
5027 |
</listitem>
|
|
|
5028 |
</varlistentry>
|
|
|
5029 |
|
|
|
5030 |
<varlistentry><term><varname>excludedmimetypes</varname></term>
|
|
|
5031 |
<listitem><para> This list lets you exclude some MIME types from
|
|
|
5032 |
indexing. Can be redefined for subdirectories.</para>
|
5026 |
</listitem>
|
5033 |
</listitem>
|
5027 |
</varlistentry>
|
5034 |
</varlistentry>
|
5028 |
|
5035 |
|
5029 |
<varlistentry><term><varname>compressedfilemaxkbs</varname></term>
|
5036 |
<varlistentry><term><varname>compressedfilemaxkbs</varname></term>
|
5030 |
<listitem><para>Size limit for compressed (.gz or .bz2)
|
5037 |
<listitem><para>Size limit for compressed (.gz or .bz2)
|
|
... |
|
... |
5062 |
|
5069 |
|
5063 |
<varlistentry><term><varname>indexallfilenames</varname></term>
|
5070 |
<varlistentry><term><varname>indexallfilenames</varname></term>
|
5064 |
<listitem><para>&RCL; indexes file names in a special
|
5071 |
<listitem><para>&RCL; indexes file names in a special
|
5065 |
section of the database to allow specific file names
|
5072 |
section of the database to allow specific file names
|
5066 |
searches using wild cards. This parameter decides if
|
5073 |
searches using wild cards. This parameter decides if
|
5067 |
file name indexing is performed only for files with mime
|
5074 |
file name indexing is performed only for files with MIME
|
5068 |
types that would qualify them for full text indexing, or
|
5075 |
types that would qualify them for full text indexing, or
|
5069 |
for all files inside the selected subtrees, independently of
|
5076 |
for all files inside the selected subtrees, independently of
|
5070 |
mime type.</para>
|
5077 |
MIME type.</para>
|
5071 |
</listitem>
|
5078 |
</listitem>
|
5072 |
</varlistentry>
|
5079 |
</varlistentry>
|
5073 |
|
5080 |
|
5074 |
<varlistentry><term><varname>usesystemfilecommand</varname></term>
|
5081 |
<varlistentry><term><varname>usesystemfilecommand</varname></term>
|
5075 |
<listitem><para>Decide if we use the
|
5082 |
<listitem><para>Decide if we use the
|
5076 |
<command>file</command> <option>-i</option> system command
|
5083 |
<command>file</command> <option>-i</option> system command
|
5077 |
as a final step for determining the mime type for a file
|
5084 |
as a final step for determining the MIME type for a file
|
5078 |
(the main procedure uses suffix associations as defined in
|
5085 |
(the main procedure uses suffix associations as defined in
|
5079 |
the <filename>mimemap</filename> file). This can be useful
|
5086 |
the <filename>mimemap</filename> file). This can be useful
|
5080 |
for files with suffix-less names, but it will also cause
|
5087 |
for files with suffix-less names, but it will also cause
|
5081 |
the indexing of many bogus "text" files.</para>
|
5088 |
the indexing of many bogus "text" files.</para>
|
5082 |
</listitem>
|
5089 |
</listitem>
|
|
... |
|
... |
5737 |
|
5744 |
|
5738 |
<sect2 id="RCL.INSTALL.CONFIG.MIMEMAP">
|
5745 |
<sect2 id="RCL.INSTALL.CONFIG.MIMEMAP">
|
5739 |
<title>The mimemap file</title>
|
5746 |
<title>The mimemap file</title>
|
5740 |
|
5747 |
|
5741 |
<para><filename>mimemap</filename> specifies the
|
5748 |
<para><filename>mimemap</filename> specifies the
|
5742 |
file name extension to mime type mappings.</para>
|
5749 |
file name extension to MIME type mappings.</para>
|
5743 |
|
5750 |
|
5744 |
<para>For file names without an extension, or with an unknown
|
5751 |
<para>For file names without an extension, or with an unknown
|
5745 |
one, the system's <command>file</command> <option>-i</option>
|
5752 |
one, the system's <command>file</command> <option>-i</option>
|
5746 |
command will be
|
5753 |
command will be
|
5747 |
executed to determine the mime type (this can be switched off
|
5754 |
executed to determine the MIME type (this can be switched off
|
5748 |
inside the main configuration file).</para>
|
5755 |
inside the main configuration file).</para>
|
5749 |
|
5756 |
|
5750 |
<para>The mappings can be specified on a per-subtree basis,
|
5757 |
<para>The mappings can be specified on a per-subtree basis,
|
5751 |
which may be useful in some cases. Example:
|
5758 |
which may be useful in some cases. Example:
|
5752 |
<application>gaim</application> logs have a
|
5759 |
<application>gaim</application> logs have a
|
|
... |
|
... |
5774 |
|
5781 |
|
5775 |
<sect2 id="RCL.INSTALL.CONFIG.MIMECONF">
|
5782 |
<sect2 id="RCL.INSTALL.CONFIG.MIMECONF">
|
5776 |
<title>The mimeconf file</title>
|
5783 |
<title>The mimeconf file</title>
|
5777 |
|
5784 |
|
5778 |
<para><filename>mimeconf</filename> specifies how the
|
5785 |
<para><filename>mimeconf</filename> specifies how the
|
5779 |
different mime types are handled for indexing, and which icons
|
5786 |
different MIME types are handled for indexing, and which icons
|
5780 |
are displayed in the <command>recoll</command> result lists.</para>
|
5787 |
are displayed in the <command>recoll</command> result lists.</para>
|
5781 |
|
5788 |
|
5782 |
<para>Changing the parameters in the [index] section is
|
5789 |
<para>Changing the parameters in the [index] section is
|
5783 |
probably not a good idea except if you are a &RCL;
|
5790 |
probably not a good idea except if you are a &RCL;
|
5784 |
developer.</para>
|
5791 |
developer.</para>
|
|
... |
|
... |
5811 |
<filename>mimeview</filename> entries will be ignored except the
|
5818 |
<filename>mimeview</filename> entries will be ignored except the
|
5812 |
one labelled <literal>application/x-all</literal> (which is set to
|
5819 |
one labelled <literal>application/x-all</literal> (which is set to
|
5813 |
use <command>xdg-open</command> by default).</para>
|
5820 |
use <command>xdg-open</command> by default).</para>
|
5814 |
|
5821 |
|
5815 |
<para>In this case, the <literal>xallexcepts</literal> top level
|
5822 |
<para>In this case, the <literal>xallexcepts</literal> top level
|
5816 |
variable defines a list of mime type exceptions which
|
5823 |
variable defines a list of MIME type exceptions which
|
5817 |
will be processed according to the local entries instead of being
|
5824 |
will be processed according to the local entries instead of being
|
5818 |
passed to the desktop. This is so that specific &RCL; options
|
5825 |
passed to the desktop. This is so that specific &RCL; options
|
5819 |
such as a page number or a search string can be passed to
|
5826 |
such as a page number or a search string can be passed to
|
5820 |
applications that support them, such as the
|
5827 |
applications that support them, such as the
|
5821 |
<application>evince</application> viewer.</para>
|
5828 |
<application>evince</application> viewer.</para>
|
|
... |
|
... |
5827 |
file.</para>
|
5834 |
file.</para>
|
5828 |
|
5835 |
|
5829 |
<para>All viewer definition entries must be placed under a
|
5836 |
<para>All viewer definition entries must be placed under a
|
5830 |
<literal>[view]</literal> section.</para>
|
5837 |
<literal>[view]</literal> section.</para>
|
5831 |
|
5838 |
|
5832 |
<para>The keys in the file are normally mime types. You can add an
|
5839 |
<para>The keys in the file are normally MIME types. You can add an
|
5833 |
application tag to specialize the choice for an area of the
|
5840 |
application tag to specialize the choice for an area of the
|
5834 |
filesystem (using a <varname>localfields</varname> specification
|
5841 |
filesystem (using a <varname>localfields</varname> specification
|
5835 |
in <filename>mimeconf</filename>). The syntax for the key is
|
5842 |
in <filename>mimeconf</filename>). The syntax for the key is
|
5836 |
<replaceable>mimetype</replaceable><literal>|</literal><replaceable>tag</replaceable></para>
|
5843 |
<replaceable>mimetype</replaceable><literal>|</literal><replaceable>tag</replaceable></para>
|
5837 |
|
5844 |
|
5838 |
<para>The <varname>nouncompforviewmts</varname> entry, (placed at
|
5845 |
<para>The <varname>nouncompforviewmts</varname> entry, (placed at
|
5839 |
the top level, outside of the <literal>[view]</literal> section),
|
5846 |
the top level, outside of the <literal>[view]</literal> section),
|
5840 |
holds a list of mime types that should not be uncompressed before
|
5847 |
holds a list of MIME types that should not be uncompressed before
|
5841 |
starting the viewer (if they are found compressed, ie:
|
5848 |
starting the viewer (if they are found compressed, ie:
|
5842 |
<replaceable>mydoc.doc.gz</replaceable>).</para>
|
5849 |
<replaceable>mydoc.doc.gz</replaceable>).</para>
|
5843 |
|
5850 |
|
5844 |
<para>The right side of each assignment holds a command to be
|
5851 |
<para>The right side of each assignment holds a command to be
|
5845 |
executed for opening the file. The following substitutions are
|
5852 |
executed for opening the file. The following substitutions are
|
|
... |
|
... |
5869 |
extract the subdocument, expecting the called application
|
5876 |
extract the subdocument, expecting the called application
|
5870 |
(possibly a script) to be able to handle it.</para></formalpara>
|
5877 |
(possibly a script) to be able to handle it.</para></formalpara>
|
5871 |
</listitem>
|
5878 |
</listitem>
|
5872 |
|
5879 |
|
5873 |
<listitem><formalpara><title>%M</title>
|
5880 |
<listitem><formalpara><title>%M</title>
|
5874 |
<para>Mime type</para></formalpara>
|
5881 |
<para>MIME type</para></formalpara>
|
5875 |
</listitem>
|
5882 |
</listitem>
|
5876 |
|
5883 |
|
5877 |
<listitem><formalpara><title>%p</title>
|
5884 |
<listitem><formalpara><title>%p</title>
|
5878 |
<para>Page index. Only significant for a subset of document
|
5885 |
<para>Page index. Only significant for a subset of document
|
5879 |
types, currently only PDF, Postscript and DVI files. Can be
|
5886 |
types, currently only PDF, Postscript and DVI files. Can be
|
|
... |
|
... |
5948 |
<listitem><para>In <filename>$RECOLL_CONFDIR/mimemap</filename>
|
5955 |
<listitem><para>In <filename>$RECOLL_CONFDIR/mimemap</filename>
|
5949 |
(typically <filename>~/.recoll/mimemap</filename>), add the
|
5956 |
(typically <filename>~/.recoll/mimemap</filename>), add the
|
5950 |
following line:<programlisting>
|
5957 |
following line:<programlisting>
|
5951 |
.blob = application/x-blobapp
|
5958 |
.blob = application/x-blobapp
|
5952 |
</programlisting>
|
5959 |
</programlisting>
|
5953 |
Note that the mime type is made up here, and you could
|
5960 |
Note that the MIME type is made up here, and you could
|
5954 |
call it <replaceable>diesel/oil</replaceable> just the
|
5961 |
call it <replaceable>diesel/oil</replaceable> just the
|
5955 |
same.</para>
|
5962 |
same.</para>
|
5956 |
</listitem>
|
5963 |
</listitem>
|
5957 |
<listitem><para>In <filename>$RECOLL_CONFDIR/mimeview</filename>
|
5964 |
<listitem><para>In <filename>$RECOLL_CONFDIR/mimeview</filename>
|
5958 |
under the <literal>[view]</literal> section, add:</para>
|
5965 |
under the <literal>[view]</literal> section, add:</para>
|
|
... |
|
... |
5965 |
it liked URLs better.</para>
|
5972 |
it liked URLs better.</para>
|
5966 |
</listitem>
|
5973 |
</listitem>
|
5967 |
</itemizedlist>
|
5974 |
</itemizedlist>
|
5968 |
|
5975 |
|
5969 |
<para>If you just wanted to change the application used by
|
5976 |
<para>If you just wanted to change the application used by
|
5970 |
&RCL; to display a mime type which it already knows, you
|
5977 |
&RCL; to display a MIME type which it already knows, you
|
5971 |
would just need to edit <filename>mimeview</filename>. The
|
5978 |
would just need to edit <filename>mimeview</filename>. The
|
5972 |
entries you add in your personal file override those in the
|
5979 |
entries you add in your personal file override those in the
|
5973 |
central configuration, which you do not need to
|
5980 |
central configuration, which you do not need to
|
5974 |
alter. <filename>mimeview</filename> can also be modified
|
5981 |
alter. <filename>mimeview</filename> can also be modified
|
5975 |
from the Gui.</para>
|
5982 |
from the Gui.</para>
|
|
... |
|
... |
5999 |
files inside the result lists. Icons are normally 64x64
|
6006 |
files inside the result lists. Icons are normally 64x64
|
6000 |
pixels PNG files which live in
|
6007 |
pixels PNG files which live in
|
6001 |
<filename>/usr/[local/]share/recoll/images</filename>.</para>
|
6008 |
<filename>/usr/[local/]share/recoll/images</filename>.</para>
|
6002 |
</listitem>
|
6009 |
</listitem>
|
6003 |
<listitem><para>Under the <literal>[categories]</literal>
|
6010 |
<listitem><para>Under the <literal>[categories]</literal>
|
6004 |
section, you should add the mime type where it makes sense
|
6011 |
section, you should add the MIME type where it makes sense
|
6005 |
(you can also create a category). Categories may be used
|
6012 |
(you can also create a category). Categories may be used
|
6006 |
for filtering in advanced search.</para>
|
6013 |
for filtering in advanced search.</para>
|
6007 |
</listitem>
|
6014 |
</listitem>
|
6008 |
</itemizedlist>
|
6015 |
</itemizedlist>
|
6009 |
|
6016 |
|