Control: tags 988451 pending Hilmar Preuße wrote...
> Am 13.05.2021 um 11:49 teilte JCGoran mit: > > > Latex source files which start with `%!` (usually used to specify > > directives, > > as described here: https://tex.stackexchange.com/q/78101) are detected as > > `PostScript document text`, mime type `application/postscript`, rather than > > `text/x-tex` or similar. > > The following (valid) Latex code shows the problem: > > Same here for a TeX font metric file: > > hille@sid-amd64:/usr/share/texlive/texmf-dist/fonts/tfm/production/spectral$ > file > /usr/share/texlive/texmf-dist/fonts/tfm/production/spectral/Spectral-ExtraBoldItalic-lf-ly1.tfm > /usr/share/texlive/texmf-dist/fonts/tfm/production/spectral/Spectral-ExtraBoldItalic-lf-ly1.tfm: > PostScript document text > > The file too starts with "%!". According to [1] the magic byte for > Postscript is "%!PS". So the check is not strict enough to rule out false > positives. Thanks for taking care of this. One thing puzzles me a bit: The example Hilmar Preuße provided[1] gets reported as "TeX font metric data (TEX TYPEWRITER AND WINDOWS ANSI)" since commit df64f7de ("break up strength ties so that qsort output is deterministic"): commit df64f7de0f7ef65fb9634a57b6f894816293daeb Author: Christos Zoulas <chris...@zoulas.com> Date: Fri Apr 5 16:54:20 2024 +0000 ... which sounds a bit frightning but hopefully things are for the better now. Christoph [1] I found this as sha256 0fe9cdd270f64edf2268962448d18a87368a432ab563006ecd7948c2222d4582 /usr/share/texlive/texmf-dist/fonts/tfm/production/spectral/Spectral-ExtraBoldItalic-lf-ly1.tfm
signature.asc
Description: PGP signature