[Debian-in-workers] NMU needed for TL2012: latx-sanskrit

Norbert Preining preining at logic.at
Wed Mar 7 08:03:58 UTC 2012


Hi Kartik

On Mi, 07 Mär 2012, Kartik Mistry wrote:
> We've "itrans" package which also depends on tex-common, should we
> also rebuild+upload with tex-common v3?

Oh yes, I took a look at it, and it is seriously messed up ;-)
Or I misunderstand the whole package ...

* Why do you install *anything* into	
	/usr/share/texmf-telxive
  ??? This is not the right place. You should install into /usr/share/texmf!
  If you do that with tex-common v3 bad sthings will happen, as the
  map file sippetes are stored according to the location where the map files
  are, and if you don't o it right it might out bad.

* Then the install path of map file is wrong, it should be under
	texmf/fonts/map/dvips/
  and not directly
	texmf/map

* debian/updmap.cfg mentions
	Map /usr/share/texmf-texlive/fonts/map/dvips/itrans/itrans.map
  that should NOT contain the full path, simply
	Map itrans.map
  
some more things I don't remember.

I think the problem is that the itrans program and maybe some other
needs to search for fonts, and does that by hard coded path, which
is evil.

Why not add a bit of code to make it use the kpathsea library?
I loked a bit through the code and it seems that only tfm and afm files have
to be found, namely in
font.c:fillup_font: (for afm)
               /* fill in PostScript Metrics */
                fmfp = search_fopen(ienv, fmfname, "r", NULL);
                if (!fmfp) {
                    fprintf(stderr, "font.c::Error: could not open %s for reading (afm)\n", fmfname);
                    errflg++; break;
                }
                S_fillup_afm(fmfp, font);

and for tfm
font.c:fillup_font: 
               /* fill in TFM Metrics (width only) */
                fmfp = search_fopen(ienv, fmfname, READBIN_MODE, NULL);
                if (!fmfp) {
                    fprintf(stderr, "font.c::Error: could not open %s for reading (tfm)\n", fmfname);
                    errflg++; break;
                }
                S_fillup_tfm(fmfp, font);

That could be easily handled by KP_find_file ...

Anyway, if you prefer NOT to go this way, I still recommend to use 
the search paths as given above.

Then, your itrans.sh script also sets strange values. THat 
*should*not*be*necessary. dvips *can find all its fonts, if they
are placed in the proper sub directory (see above, you have to use fonts/enc
and fonts/map etc!).

-----------------------

Bottom line: Simply rebuilding will not work, because there are several
things that have to be chagend.

 Let me know if I can be of any help.

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
SKIBBEREEN (n.)
The noise made by a sunburned thighs leaving plastic chair.
			--- Douglas Adams, The Meaning of Liff



More information about the Debian-in-workers mailing list