[OS X TeX] .sty files listed as Kind STY and Asian characters

Adam R. Maxwell amaxwell at mac.com
Tue Sep 29 15:33:32 EDT 2020


Hi Murray,


With the lsregister output, redirect it to a temp file, e.g., /path/to/lsregister -dump >/tmp/lsreg.txt


and then scan through it with a text editor and judicious use of cmd-f to find what you're looking for. Search for the offending characters and hopefully you'll find where that's defined, and what application of plugin is responsible. The Launch Services database is basically the Mac OS equivalent of Windows' Registry, with the difference being that you can't edit it directly, you can only read it with brute force, and it's more fragile.


Pardon the top-post, but icloud webmail destroys proper quoting.


Adam

On September 29, 2020 at 7:59 AM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:


On 29 Sep2020, at 1:09 AM, Adam R. Maxwell via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:



On Sep 28, 2020, at 11:59 , Murray Eisenberg <murrayeisenberg at gmail.com> wrote:


I’m seeding that (on .cls, too, not just .sty) in any Finder window I open anywhere there is such a file. For example, in subfolders of my own Documents and in every subfolder of /usr/local/texlive/2020/texmf-dist/tex/latex that I open in Finder.


The first step is to run mdls on a .sty file in Terminal and see what it gives you for kMDItemKind and kMDItemContentType (I think those are the relevant ones).


Once you find the kMDItemContentType, you'll probably end up having to inspect the output of lsregister to see what application or plugin is defining it. I'd guess that whatever is defining it has a localization problem with the way types are defined. On Mojave the command is:


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump




I ran mdls on both memhfixc.sty and memoir.cls in /usr/local/texlive/2020/texmf-dist/tex/latex/memoir. Those are two from among _all_ .sty and .cls files that now show the two Japanese (?) characters in the Kind column of Finder list view. Output included:

               mdls memhfixc.sty
     kMDItemKind = "sty"
     kMDItemContentType = “org.tug.sty"

               mdls memoir.cls
 kMDItemKind = “cls"
     kMDItemContentType = "org.tug.cls"

I tried next "lsregister - dump”, but the output is huge, and I have no idea what to look for or do with the output. I tried piping to, e.g., “grep org.tug.sty” but get so many lines and no hint of what to do with that.

---
Murray Eisenberg              murrayeisenberg at gmail.com
503 King Farm Blvd #101        Home (240)-246-7240
Rockville, MD 20850-6667  Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200929/3cfceb60/attachment.htm>


More information about the MacOSX-TeX mailing list