[OS X TeX] TeX.mdimporter
Jan Hegewald
rurapente at gmx.de
Tue Jan 3 19:27:33 CET 2006
Am 03.01.2006 um 19:12 schrieb Norm Gall:
>
> On 3-Jan-06, at 11:05 AM, Jan Hegewald wrote:
>
>> Hello,
>>
>> Am 03.01.2006 um 17:28 schrieb Norm Gall:
>>
>>>> If your umlauts are input directly as ü, it should work
>>
>> they are directly entered, TeXShop can find "Wellenhöhenänderung"
>> within the tex file.
>>
>>>> (depending on how TeX.mdimporter guesses your file's encoding; I
>>>> haven't seen the source). If you use \"u, it won't work;
>>
>> Sure (-;
>>
>>>> it's something that could be implemented, but would be too
>>>> inefficient for use in an mdimporter.
>>>
>>> Adam is right. TeX.mdimporter finds "Wellenhöhenänderung" in
>>> a .tex file fine when it is input "Wellenhöhenänderung".
>>
>> No, here it is not working.
>>
>>> I start guessing encoding with UTF-8, then ISO Latin-1. It picks
>>> up everything I use here.
>>
>> I converted the tex file from MacOSRoman to ISO Latin-1 with
>> Xcode, but nothing changed. Then I tried UTF-8 and this did work.
>> Converting back to ISO Latin-1 did also work this time. I am puzzled.
>
> Hmph.
No no, don´t get me wrong. It does work.
> Do an mdimport -d3 on the file that is supposed to have this string
> and send me the output by e-mail offlist.
As I already wrote: I can not send to you email address.
A simple test file only contains:
\documentclass[a4paper,ngerman,11pt,bibtotoc]{scrreprt}
Wellenhöhenänderung
\end{document}
and mdimport output is:
jan$ mdimport -d3 test.tex
2006-01-03 19:24:31.139 mdimport[4892] Attributes of file '/Users/jan/
textest/test.tex' before import: {
"_kMDItemImporterCrashed" = <null>;
"com_apple_metadata_modtime" = 158004091;
kMDItemContentCreationDate = 2005-07-26 09:52:51 +0200;
kMDItemContentModificationDate = 2006-01-03 19:01:31 +0100;
kMDItemContentType = "org.tug.tex";
kMDItemContentTypeTree = (
"org.tug.tex",
"public.text",
"public.data",
"public.item",
"com.apple.cocoa.path",
"com.apple.cocoa.string",
"public.content"
);
kMDItemDisplayName = {"" = "test.tex"; };
kMDItemKind = {"" = tex; };
}
2006-01-03 19:24:31.140 mdimport[4892] Import '/Users/jan/textest/
test.tex' type 'org.tug.tex' using 'file://localhost/Users/jan/
Library/Spotlight/TeX.mdimporter/'
2006-01-03 19:24:31.142 mdimport[4892] Sending attributes of '/Users/
jan/textest/test.tex' to server. Attributes: '{
"_kMDItemImporterCrashed" = <null>;
"com_apple_metadata_modtime" = 158004091;
kMDItemContentCreationDate = 2005-07-26 09:52:51 +0200;
kMDItemContentModificationDate = 2006-01-03 19:01:31 +0100;
kMDItemContentType = "org.tug.tex";
kMDItemContentTypeTree = (
"org.tug.tex",
"public.text",
"public.data",
"public.item",
"com.apple.cocoa.path",
"com.apple.cocoa.string",
"public.content"
);
kMDItemDisplayName = {"" = "test.tex"; };
kMDItemKind = {"" = tex; };
kMDItemTextContent = "\\documentclass[a4paper,ngerman,
11pt,bibtotoc]{scrreprt}\nWellenh\U00f6hen\U00e4nderung\n\\end
{document}";
}'
Thanks,
--Jan--------------------------- 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 macostex-archives
mailing list