After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540000 - Wrongly identifies LaTeX file as Matlab
Wrongly identifies LaTeX file as Matlab
Status: RESOLVED NOTGNOME
Product: beagle
Classification: Other
Component: General
0.3.x
Other All
: Normal normal
: ---
Assigned To: Beagle Bugs
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2008-06-24 17:10 UTC by Tobias Wolf
Modified: 2008-11-22 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tobias Wolf 2008-06-24 17:10:15 UTC
Please describe the problem:
I always wondered why only my PDF files show up in searches but not my .tex files.

Steps to reproduce:
1. First lines of .tex file are comments (symbol is %; similar to matlab)
2. Let it indexed with beagle-extract-content
3. "No filter for text/x-matlab"
3a. but "file" magic says  "LaTeX 2e document text"



Actual results:


Expected results:
If there is no parser for matlab, but there is one for LaTeX, please give LateX precedence.

Does this happen every time?


Other information:
Example: 

% vi:fileencoding=latin1
\documentclass{acticle}
\begin{document}
\end{document}
Comment 1 Tobias Wolf 2008-06-24 17:16:10 UTC
Relatedly: If you say that this is possible I will open a new bug about it.

Can we detect encoding from either the lines

     % vi:fileencoding=latin1
or
     \usepackage[latin1]{inputenc}

My umlauts are garbled otherwise
Comment 2 Debajyoti Bera 2008-06-29 02:45:17 UTC
Mimetype detection is done using the freedesktop.org specification and reference implementation shared-mime-info/xdgmime. That is beyond the scope of beagle. I am sorry.

Detecting the encoding from the file is tricky but a valid bug. If you want, you can change the summary to "detecting file encoding of latex files". In that case, also attach a sample latex file which can be used for testing. Thanks.
Comment 3 Debajyoti Bera 2008-11-22 19:59:30 UTC
No response in last several months. As explained in #2, the original problem in beyond our scope. Closing. If you want us to handle the secondary problem, please reopen and do as suggested in #2.