enctest.tex 807 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. \catcode`\@=11
  2. \input ienc
  3. \input oenc
  4. \input fsel
  5. \catcode`\@=12
  6. \def\changedocenc#1 {%
  7. \message{^^J** #1}%
  8. \documentencoding #1
  9. }
  10. \hfuzz=\maxdimen
  11. %\tracingfonts2
  12. \setfontencoding{T1}\setfontfamily{LMRoman}\selectfont
  13. \changedocenc ISO-8859-1
  14. \input sample.latin1 % Icelandic
  15. \bigskip
  16. \changedocenc ISO-8859-15
  17. \input sample.latin9 % French
  18. \bigskip
  19. \changedocenc ISO-8859-2
  20. \input sample.latin2 % Czech
  21. \bigskip
  22. \changedocenc ISO-8859-2
  23. \setfontencoding{OT1}\setfontfamily{CMRoman}\selectfont
  24. \input sample.latin2 % Czech
  25. \bigskip
  26. \setfontencoding{T2A}\setfontfamily{LHRoman}\selectfont
  27. \changedocenc KOI8-R
  28. \input sample.koi8r % Russian
  29. \bigskip
  30. \changedocenc CP1251
  31. \input sample.cp1251 % Russian
  32. \bye
  33. % Local variables:
  34. % compile-command: "tex --interact=nonstopmode enctest.tex"
  35. % End: