It would be nice if xetex supported \pdfmapline and \pdfmapfile from pdftex to do map file stuff at the document level. I realize it's not simple since the info has to get passed to the xdv file via specials or whatever, but, well, it's a wishlist item anyway.
FWIW, described in the pdftex manual in the "fonts" section, currently pages 24-25.
Already supported by DVIPDFMx, so a simple
\def\pdfmapfile#1{\special{pdf:mapfile #1}}
etc. should do the trick, do we really need this in the engine?I didn't know. That's great. I wish one of us would get around to documenting all the specials!
So now I wonder about adding \def's for \pdfmap{line,file}, or maybe \XeTeXmap{line,file} to xetex.ini. My only hesitation about using \pdf... is that generating a whatsit is different from being internally interpreted by the engine. For typical use it wouldn't matter, so maybe the compatibility of name is worth the small incompatibility of behavior. Or maybe not. What do you think?
I think defining them in
xetex.ini
would be fine. I would have gone with\map{line,file}
if LuaTeX used that, but since it kept thepdf
prefix here, I think we are better off doing the same for sake of compatibility.i added \pdfmapfile and \pdfmapline to xetex.ini and xelatex.ini in TeX Live, as discussed -- TL revision 34655. I guess this can be closed (sorry, I don't see how to do it, if I can.) Thanks.