There was an error in the mimemap format in the config exemple

This commit is contained in:
dockes 2009-12-17 20:23:09 +00:00
parent 10580efaf4
commit 4f7fed589f

View File

@ -3419,27 +3419,25 @@ skippedPaths = ~/somedir/∗.txt
<para>You need two entries in the configuration files for this <para>You need two entries in the configuration files for this
to work:</para> to work:</para>
<itemizedlist> <itemizedlist>
<listitem><para>In <filename>$RECOLL_CONFDIR/mimemap</filename> <listitem><para>In <filename>$RECOLL_CONFDIR/mimemap</filename>
(typically <filename>~/.recoll/mimemap</filename>), add the (typically <filename>~/.recoll/mimemap</filename>), add the
following line:</para> following line:<programlisting>
<programlisting> .blob = application/x-blobapp
application/x-blobapp = .blob </programlisting>
</programlisting> Note that the mime type is made up here, and you could
<para>Note that the mime type is made up here, and you could
call it <replaceable>diesel/oil</replaceable> just the call it <replaceable>diesel/oil</replaceable> just the
same.</para> same.</para>
</listitem> </listitem>
<listitem><para>In <listitem><para>In <filename>$RECOLL_CONFDIR/mimeview</filename>
<filename>$RECOLL_CONFDIR/mimeview</filename> under the under the <literal>[view]</literal> section, add:</para>
<literal>[view]</literal> section:</para>
<programlisting> <programlisting>
application/x-blobapp = blobviewer %f application/x-blobapp = blobviewer %f
</programlisting> </programlisting>
<para>We are supposing
<para>We are supposing that that <replaceable>blobviewer</replaceable> wants a file
<replaceable>blobviewer</replaceable> wants a file name name parameter here, you would use <literal>%u</literal> if
parameter here, you would use <literal>%u</literal> if
it liked URLs better.</para> it liked URLs better.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
@ -3448,7 +3446,9 @@ skippedPaths = ~/somedir/&lowast;.txt
&RCL; to display a mime type which it already knows, you &RCL; to display a mime type which it already knows, you
would just need to edit <filename>mimeview</filename>. The would just need to edit <filename>mimeview</filename>. The
entries you add in your personal file override those in the entries you add in your personal file override those in the
central configuration, which you do not need to alter</para> central configuration, which you do not need to
alter. <filename>mimeview</filename> can also be modified
from the Gui.</para>
</sect3> </sect3>
@ -3462,42 +3462,37 @@ skippedPaths = ~/somedir/&lowast;.txt
easy. You need to perform the above alteration, and also to easy. You need to perform the above alteration, and also to
add data to the <filename>mimeconf</filename> file add data to the <filename>mimeconf</filename> file
(typically in <filename>~/.recoll/mimeconf</filename>):</para> (typically in <filename>~/.recoll/mimeconf</filename>):</para>
<itemizedlist> <itemizedlist>
<listitem><para>Under the <literal>[index]</literal> <listitem><para>Under the <literal>[index]</literal>
section, add the following line (more about the section, add the following line (more about the
<replaceable>rclblob</replaceable> indexing script later):</para> <replaceable>rclblob</replaceable> indexing script
<programlisting> later):<programlisting>
application/x-blobapp = exec rclblob application/x-blobapp = exec rclblob
</programlisting> </programlisting></para>
<para></para>
</listitem> </listitem>
<listitem><para>Under the <literal>[icons]</literal> <listitem><para>Under the <literal>[icons]</literal>
section, you should choose an icon to be displayed for the section, you should choose an icon to be displayed for the
files inside the result lists. Icons are normally 64x64 files inside the result lists. Icons are normally 64x64
pixels PNG files which live in pixels PNG files which live in
<filename>/usr/[local/]share/recoll/images</filename>. <filename>/usr/[local/]share/recoll/images</filename>.</para>
</para>
</listitem> </listitem>
<listitem><para>Under the <literal>[categories]</literal> <listitem><para>Under the <literal>[categories]</literal>
section, you should add the mime type where it makes sense section, you should add the mime type where it makes sense
(you can also create a category). Categories may be used (you can also create a category). Categories may be used
for filtering in advanced search.</para> for filtering in advanced search.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>The <replaceable>rclblob</replaceable> filter should <para>The <replaceable>rclblob</replaceable> filter should
be an executable program or script which exists inside be an executable program or script which exists inside
<filename>/usr/[local/]share/recoll/filters</filename>. It <filename>/usr/[local/]share/recoll/filters</filename>. It
will be given a file name as argument and should output the will be given a file name as argument and should output the
text contents on the standard output.</para> text or html contents on the standard output.</para>
<para>The <link linkend="rcl.program.filters">filter <para>The <link linkend="rcl.program.filters">filter
programming</link> section describes in more detail how to programming</link> section describes in more detail how
write a filter.</para> to write a filter.</para>
</sect3> </sect3>
</sect2> </sect2>