2011/5/13 Taco Hoekwater <[email protected]>: > > > > > On 13 mei 2011, at 16:30, Philipp Stephani <[email protected]> wrote: > >> Yes but this difference it the important one: "tex \edef\foo{\jobname} >> \input test" has never worked, and nobody expects it to work in LuaTeX; on >> the other hand, "latex \input test" has always worked, and everybody expects >> it to work with LuaTeX, too. > > I fully intend to remove this Cmdline-is-first-input-line feature from > metapost 2 (because it is extremely annoying to deal with with the new lib + > driver architecture of mp: I now have to make the executable driver parse the > commandline using string matching). > > Because of this, it makes perfect sense for me to do the same to luatex 1.0. > In fact, if I *ever* want to get rid of it, it has to be done before 1.0. > Iirc, even the texbook says something along the lines of 'you are lucky if it > works'. The argument to keep it seems to be that even though it is a truly > weird idea, it has been in use for a long time, so it should be kept forever. > To me, that is far from convincing. > The reasoning stems from the encoding mess. The %! line can specify the TCX table to be used for processing the file. While it may help, it may also be a source of confusion. For instance, I use UTF-8 locale. If I get the file by email with proper locale set in the sender's mail client, and I save it, my mail client will always convert it to UTF-8. If the original file encoding were different, the information in the %! will be wrong. IMHO this concept does not help portability unless you pay special attention when sharing files.
> Best wishes, > > Taco > > > -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz
