[OS X TeX] status of Spotlight indexing of .tex files?
George Gratzer
gratzer at ms.umanitoba.ca
Mon Dec 19 12:33:55 EST 2005
How about .cls and .sty extensions?
GG
On Dec 19, 2005, at 11:15 AM, Norm Gall wrote:
>
> On 13-Dec-05, at 12:38 PM, Maarten Sneep wrote:
>
>> On 13 Dec 2005, at 12:01, Timothy Larkin wrote:
>>
>>> I wrote a Spotlight importer that knows about .tex files.
>>>
>>> If a couple of hardy souls are interested in torture testing it,
>>> please let me know off-list. If it passes, I can make it
>>> generally available.
>>>
>>> I wrote into the logic a couple of personal preferences. All
>>> control words are ignored, as are numbers. For me this is good,
>>> but perhaps this view is not generally shared?
>>
>> Please get in touch with the other developers working on spotlight
>> importers for tex files. There is a lot of movement in this area,
>> with your importer basically being the third to pop up here. A UTI
>> has just been agreed upon, and the last thing we need is multiple
>> importers working against each other.
>>
>> I'm sure Norm Gall & Adam Maxwell will respond as well, but please
>> get in touch to coordinate things, to avoid making the lives of
>> your collective user group very miserable indeed.
>
> Ok. I suppose that I am the man with respect to the importer.
>
> I have re-written the importer this morning and have set the UTI to
> org.tug.tex, it recognises .tex, .latex, and .texi extensions. It
> is independent of any editor (as far as I can tell so far) and I
> will be testing it for the next few days to make sure I haven't
> made a mess of things.
>
> Here is the mdimport output:
>
> [gall at ludwig gall] $ mdimport -d3 Desktop/foo.tex
> 2005-12-19 10:07:55.029 mdimport[399] Attributes of file '/Users/
> gall/Desktop/foo.tex' before import: {
> "_kMDItemImporterCrashed" = <null>;
> "com_apple_metadata_modtime" = 156704847;
> kMDItemContentCreationDate = 2005-12-19 10:03:00 -0700;
> kMDItemContentModificationDate = 2005-12-19 10:07:27 -0700;
> kMDItemContentType = "org.tug.tex";
> kMDItemContentTypeTree = ("org.tug.tex", "public.text",
> "public.data", "public.item", "public.content");
> kMDItemDisplayName = {"" = "foo.tex"; };
> kMDItemKind = {"" = "LaTeX Source File"; };
> }
> 2005-12-19 10:07:55.030 mdimport[399] Import '/Users/gall/Desktop/
> foo.tex' type 'org.tug.tex' using 'file://localhost/Users/gall/
> Library/Spotlight/LaTeX.mdimporter/'
> 2005-12-19 10:07:55.032 mdimport[399] Sending attributes of '/Users/
> gall/Desktop/foo.tex' to server. Attributes: '{
> "_kMDItemImporterCrashed" = <null>;
> "com_apple_metadata_modtime" = 156704847;
> kMDItemAuthors = ("Norman Gall");
> kMDItemContentCreationDate = 2005-12-19 10:03:00 -0700;
> kMDItemContentModificationDate = 2005-12-19 10:07:27 -0700;
> kMDItemContentType = "org.tug.tex";
> kMDItemContentTypeTree = ("org.tug.tex", "public.text",
> "public.data", "public.item", "public.content");
> kMDItemDisplayName = {"" = "foo.tex"; };
> kMDItemKind = {"" = "LaTeX Source File"; };
> kMDItemTextContent = "\\documentclass[11pt]{article}\n\n\
> \usepackage{amsfonts}\n\\usepackage{graphicx}\n\n\\title{Brief
> Article}\n\n\\author{Norman Gall}\n\n\\date{\\today}\n\n\\begin
> {document}\n\\maketitle\n\nThis is a whole bunch of text.\n\n\
> \bibliographystyle{}\n\\bibliography{}\n\\end{document}\n \n\n%%%
> Local Variables: \n%%% mode: latex\n%%% TeX-master: t\n%%% End: \n";
> kMDItemTitle = "Brief Article";
> }'
>
> I think I'm going to rename some things (tex.mdimporter, perhaps)
> but I'd like to know what extensions people use to mark their files.
>
> I hope that this will be helpful,
> n
>
> --
> Frisbeetarianism is the belief that when you die, your soul goes up
> on the roof
> and gets stuck.
> George Carlin
>
>
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list