[OS X TeX] Spotlight
Eric van der Oord
eric.vanderoord at gmail.com
Tue May 21 10:19:21 EDT 2013
Hi all,
I use TexLive 2010-64 and TeXShop 3.16.
Here is what I get :
[new-host-9:~] ericvand% mdimport -d3 /Users/ericvand/Dropbox/Trav-Ret/Analyse-1/2012/Ana1-v9c/Ch1-S1c.tex
(Debug) Import: file:/Users/ericvand/Dropbox/Trav-Ret/Analyse-1/2012/Ana1-v9c/Ch1-S1c.tex plugin:file://localhost/Library/Spotlight/TeX.mdimporter/ /Library/Spotlight/TeX.mdimporter
2013-05-21 16:02:57.891 mdimport[3451:303] Error loading /Library/Spotlight/TeX.mdimporter/Contents/MacOS/TeX: dlopen(/Library/Spotlight/TeX.mdimporter/Contents/MacOS/TeX, 262): no suitable image found. Did find:
/Library/Spotlight/TeX.mdimporter/Contents/MacOS/TeX: mach-o, but wrong architecture
2013-05-21 16:02:57.892 mdimport[3451:303] Cannot find function pointer MetadataImporterPluginFactory for factory 9A6ED835-BB4C-43D1-A16D-7C799B2AA622 in CFBundle/CFPlugIn 0x7fa450e1d740 </Library/Spotlight/TeX.mdimporter> (bundle, not loaded)
(Error) Import: Could not create instance for plugIn 'file://localhost/Library/Spotlight/TeX.mdimporter/'
(Error) Import: BAD IMPORTER ~~~~~~~~~~~~~~~~~~ file://localhost/Library/Spotlight/TeX.mdimporter/
2013-05-21 16:02:57.892 mdimport[3451:303] Imported '/Users/ericvand/Dropbox/Trav-Ret/Analyse-1/2012/Ana1-v9c/Ch1-S1c.tex' of type 'edu.uo.texshop.tex' with plugIn /Library/Spotlight/TeX.mdimporter.
2013-05-21 16:02:57.893 mdimport[3451:303] Attributes: {
"_kMDItemFinderLabel" = 0;
"_kMDItemStaticInterestScore" = "0.5";
"com_apple_metadata_modtime" = 386006838;
kMDItemContentCreationDate = "2012-03-02 12:16:10 +0000";
kMDItemContentModificationDate = "2013-03-26 16:07:18 +0000";
kMDItemContentType = "edu.uo.texshop.tex";
kMDItemContentTypeTree = (
"edu.uo.texshop.tex",
"public.text",
"public.data",
"public.item",
"public.content",
"public.plain-text"
);
kMDItemDateAdded = "2013-05-11 15:55:36 +0000";
kMDItemDisplayName = {
"" = "Ch1-S1c.tex";
};
kMDItemKind = {
"" = "TeX File";
en = "TeX File";
};
kMDItemLogicalSize = 56118;
kMDItemPhysicalSize = 57344;
}
I see the words 'Error', 'Bad', 'Wrong'... Is this serious or a formal complain ?
Best Regards
Eric
Le 21 mai 2013 à 15:51, Richard Koch <koch at math.uoregon.edu> a écrit :
>
> On May 21, 2013, at 3:30 AM, Eric van der Oord <eric.vanderoord at gmail.com> wrote:
>
>> Hi all,
>>
>> To return to the original problem, can we ask Spotlight to index a .tex file encoded in Mac Roman?
>>
>
> I looked (briefly) at the code for the mdimporter inside TeXShop, which was
> written by Norm Gail with minor modifications by Max Horn. I won't have time
> to look more until at least next week.
>
> The code tries to read the text to be indexed in UTF-8. If the returned string
> is empty (which means the text isn't in UTF-8), it opens it in ISO-Latin1.
> And if this string is empty, then it opens it in Mac OS Roman. And if that
> string is empty, then the code gives up.
>
> Maybe I'm wrong, but I think that any file will open in ISO-Latin1, even if
> it was written in a different encoding. So I suspect that the Mac OS Roman
> step won't be reached. However, ISO-Latin1 is ASCII + extra stuff
> so most Mac OS Roman files will index fine.
>
> There is a routine in the NSString class which tries to guess the encoding
> of a file, so perhaps it would be best to try UTF-8 and upon failure use that
> routine to guess the encoding.
>
> Dick
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the MacOSX-TeX
mailing list