Robin Fairbairns wrote:
> Xavier Moch <[email protected]> wrote:
>
> > Thanks all !
> >
> > There are many advantages in using tex (or etex) rather than pdflatex
> > ; but as a consequence, I've got a question with TeX...
> >
> > Does anyone know whether it is possible to activate the "ansinew"
> > encoding with TeX (as a LaTeX command, \usepackage[ansinew]{inputenc}
> > will probably not work) ? In french, we keep having difficulties with
> > words like "Fl te". For some reasons, I'd rather write it "Fl te"
> > (ANSI-encoding) and not "Fl\^{u}te".
>
> that's not an ansi encoding,
Yes it is - û is just ANSI character 251.
> nor yet is it the slightly tweaked ansinew
> -- i would guess it's utf-8 (widnoze tends to use unicode nowadays, and
> most current unices can do so).
>
> \usepackage[utf8]{inputenc}
>
> may well deal with the problem -- it won't if the file contains a mixture
> of "old" (ansinew) stuff and "current" utf-8 -- but give it a try anyway.
Xavier was asking how to achieve this in Plain TeX!
Assuming you really do mean ANSI encoding (i.e. 8 bit) then you'll need to map
the characters you want as active characters to the Plain TeX equivalent
sequences (LaTeX's font/input encoding mechanisms do this behind the scenes).
For Flûte you'd say
\catcode`û=\active
\defû{\^{u}}
Flûte
\bye
(making sure that your text editor definitely saves an ANSI, not UTF-8 or other
Unicode file - Windows Notepad can definitely do that for you). I don't know if
someone has come up with wrappers for LaTeX's input encodings in Plain TeX but
if you look in tex/latex/base/ansinew.def then you will see all of the mappings
for characters defined there and you could come up with a macro for
\DeclareInputText
I haven't investigated in detail, but does this archived post help -
http://icking-music-archive.org/software/pmxtricks/accents.pdf
David
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music