Bug 114940 - Missing patterns in mime type x-latex
Summary: Missing patterns in mime type x-latex
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-23 15:29 UTC by Thomas Braun
Modified: 2008-06-11 13:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Braun 2005-10-23 15:29:40 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Unlisted Binary Package

Hi,

The current Pattern String of the mime-type x-latex contains only "*.latex;*.tex;".
Accoring to http://www.tex.ac.uk/cgi-bin/texfaq2html?label=dtx also *.dtx files and *.ins are latex-files, and should therefore belong to x-latex. Because they have to be processed using latex <filename.dtx>, *.ins files are some kind of latex installation files.

Solution:

Replace in /usr/share/mimelnk/text/x-latex.desktop:

Patterns=*.latex;*.tex;  with  Patterns=*.latex;*.dtx;*.ins;*.tex;

Thanks

Thomas Braun

(In my eyes this is not a wishlist bug, but I don't mind downgrading)
Comment 1 Nicolas Goutte 2005-10-23 20:20:28 UTC
But the reference that you give seems to tell that they are another kind of Latex files, which even need special processings.

So this would need another mimetype probably.

(Changing this into a wish, as it seems not to be standard Latex anymore.)

Have a nice day!
Comment 2 Thomas Braun 2005-10-23 21:17:18 UTC
Hmm but you have to process them the same way than "normal" latex-files (see citation).
But if it is no big thing to add a new mime type like "text/x-latex-doc" that would probably be best.

[Citing http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages]
In the doc system, the user manual and documented package code is in the .dtx file, and the .ins file contains LaTeX instructions on what code should be extracted from the .dtx file. To unpack a doc package <pack>, do the following:

    * Run latex on pack.ins. This will generate one or more files (normally a pack.sty file but there may be others depending on the particular package).
    * Run latex on pack.dtx as a start to getting the user manual and possibly a commented version of the package code.
    * Run latex again on pack.dtx, which should resolve any references and generate a Table of Contents if it was called for.
    * LaTeX may have said "No file pack.ind"; this is the source for the command index; if you want the index, process the raw material with:
      makeindex -s gind.ist pack
      and run LaTeX again.
    * Print and read pack.dvi 
Comment 3 Nicolas Goutte 2005-10-25 09:49:38 UTC
Any way, I forgot that KDE is now following the freedesktop.org mimetype database, in order to be able to use it directly one day. So I suppose that quick change is not in.
Comment 4 Thomas Braun 2005-10-28 14:02:07 UTC
Should I ask there for changes or additional mime types ?
Comment 5 Nicolas Goutte 2005-10-28 14:28:54 UTC
On Friday 28 October 2005 14:02, Thomas Braun wrote:
> Should I ask there for changes or additional mime types ?


If you can, I thing that it would be the best.

Have a nice day!
Comment 6 Thomas Braun 2006-08-27 13:14:12 UTC
Hello,

I reported the bug at freedesktop.org and now it got fixed (see https://bugs.freedesktop.org/show_bug.cgi?id=6235).

So as soon as you sync the kde mime type database, this bug can be closed.

Thanks
Thomas Braun
Comment 7 Pino Toscano 2008-06-11 13:37:09 UTC
KDE 3.5 is frozen for such addition, and KDE 4 uses the shared-mime-info database that includes this MIME type.