%%%%% CsTeaser.doc %%%%% Version1 April-July 1992, %%%%% Version2 Sept 1992, === THE CAESAR TEASER === **** A quick preview of hyphenation by CaesarCM **** Laurent Siebenmann This test installs a single extended Computer Modern font tmr10 at a single magnification 1000, and shows how, in the presence of the CaesarCM macros, and the French hyphenation patterns one gets optimal French hyphenation in the extended font tmr10 and decent hyphenation with all other text fonts. As indicated in an appendix, this teaser configuration already provides a useful hand-tool allowing systems with standard cm to go the extra lap to perfect hyphenation in reasonable comfort. FONT INSTALLATION (a) For Textures (the first TeX for the Macintosh): Push the suitcase provided into the suitcase TeX Fonts in the same folder as the Textures program. (b) For OzTeX and generic TeX installations: Move the file tmr10.tfm into the directory for TeX metric fonts, which is called TeX-Fonts for OzTeX. Move the file provided under the name tmr10 into the directory for TeX bitmapped fonts of magstep 1, which for OzTeX is a subdirectory called 360 of a directory called PK-files. For other generic TeX systems, the nomenclature is probably somewhat different; you will have to adapt to local conventions. COMPILATION OF CaesarCM COMMANDS IN A Plain FORMAT It is important to use version 3.xx of TeX, and a version 3.xx of plain.tex. The critical date is autumn 1989, and earlier material will be inadequate. Here are instructions for a generic TeX and (just to be specific) for French hyphenation that will be adequate to run tests. More elaborate formats will be used in practice and are discussed below. fhyphen.cork is (or calls) a copy of the French hyphenation pattern file using the ISO Latin 1 (or Cork) standard for encoding accented characters. Place together in one directory: (i) a copy of fhyphen.cork renamed hyphen.tex (ii) a copy of plain.tex exactly as provided by D. Knuth (iii) a file x.tex whose contents is the single line: \input plain.tex \input CaesarCM.tex \dump Note that some systems (Mac, VMS, ...) identify upper and lower case letters, while others (unix, ...) distinguish them. Compile x.tex using INITEX or VIRTEX, i.e., the primitive form of your TeX made for format building. After launching this TeX, one responds to a prompt ** by typing **x It does not matter if minor fonts such as manfont are missing; just hit carriage return. In time you should be invited to name the resulting format. Choose a distinctive name; it is often useful to indicate the TeX implementation and/or configuration used, since a format will normally run only with its parent TeX binary. For optimal installation and use, refer to CaesarCM.doc and fe-format-dumper-cm. Since documentation is seldom read, and in this case not absolutely essential, I hasten to add here some scraps of advice: when installing extended cm fonts that replace existing cm fonts of the same name, first remove and store all parts of the fonts to be replaced. This is easy to forget for Textures on Macintosh computers since two fonts of the same name can be simultaneously loaded --- with tragi-comic consequences. Also, remember to recompile your format. You can go straight on to the tests. Appendix THE TEASER CONFIGURATION AS A HYPHENATION TOOL. The tests at the end of this file show how to use \font\ft=tmr10 \showhyphens{\ft } to show on your monitor (or logfile) the best hyphenation that computers can presently offer. You may find it advantageous to exploit this \showhyphens facility to insert by hand discretionary hyphens \- in your work where bad linebreaks occur. Regard this facility as a semi-automated hyphenation dictionary! In French prose, rather few such discretionary hyphens \- have to be added to get optimal performance --- perhaps one every five to ten pages or less. Empirical evidence for this was is given in the full documentation for HyAcc-CM. This is because, without extended cm fonts, CaesarCM (like HyAcc-CM) offers a reasonably good 7-bit hyphenation system. One perfectly serious application of this, in the early 1990's, is to books and articles in European languages that are being prepared for high resolution laser "flashers" still lacking eight bit fonts with ready-made accented characters. In this situation, eight-bit fonts held by the author cannot be used directly. Appendix SOME HYPHENATION TESTS Here is a test run for tmr10. Typeset the file below and examine the results, both in the log file and printed. %% --------------- cut %% CaesTest.tex, April 1992, L. Siebenmann %% A simple test file for CaesarCM.tex %% derived from a similar one for %% HyAcc-CM.tex that was written with %% Daniel Flipo \def\Msg{\immediate\write16} %% No double loading \let\this\relax \ifx\undefined\Caesar \Msg{}\Msg{Sorry CaesarCM not loaded. Exit.} \let\this \endinput \fi \this %% LateX red tape \ifx\undefined\@comdblflelt %% defined for LateX only \toks0{\par \vfill \supereject \end} \else \documentstyle[art10]{article} \begin{document} %% for LateX only. \toks0{\csname end\endcsname{document}} \fi \outer\edef\bye{\the\toks0} \font\CM=cmr10 \font\extCM=tmr10 \def\hytest{S\'er\'enit\'e ma\c connerie d\'econtenanc\'ee\kern1pt! }%% alter this!! \def\Hytest{\hytest\hytest\hytest\hytest\hytest} \hsize=230pt \tolerance=10000 \parskip=3pt plus1pt \overfullrule=10pt \frenchspacing \def\Rule{\medskip\hrule\medskip} \Msg{}\Msg{ *** DEFAULT BEHAVIOR OF CaesarCM } \centerline{\bf DEFAULT BEHAVIOR OF CaesarCM} \bigskip \extCM The Textures version of the extended cm font "tmr10" in this first test includes a number of smaller sizes to enhance preview! This explains the extra disk space required. Current {\tt \char`\\tolerance} value is \the\tolerance. For values of {\tt \char`\\tolerance} at or near 10000, bad hyphenation shows up as excessive interword spaces, coming from what is called ``emergency stretch". At values below, it shows up as line overruns marked by black boxes.\bigskip \parindent=0cm%% \Caesar \Msg{}\Msg{ *** Hyphenation points for extended cm font.} \showhyphens{\extCM\hytest} \extCM *** Hyphenation points for extended cm font: \par \Hytest\bigskip \Msg{}\Msg{ *** Hyphenation points for unextended cm font. } \showhyphens{\CM\hytest} \CM *** Hyphenation points for UNextended cm font: \par \Hytest\bigskip \Msg{}\Msg{ *** Flexible use of both types of font. } \showhyphens{\CM\hytest\extCM\hytest} \CM *** Flexible use of both types of font: \par \CM[CM font] \Hytest \extCM[extended CM font] \Hytest\bigskip \Rule \noCaesar\noJDaccents \Msg{}\Msg{ *** Hyphenation points offered by virgin Plain.} \showhyphens{\hytest} \CM *** Hyphenation points offered by virgin Plain: \par \Hytest\bigskip \Rule %%%% FOLLOWING TEST REQUIRES font dodo; see CaesarCM.bugs %%%% Decomment the immediately following lines %%%% when you have installed dodo. %%%% DSaccents refers to Double Strike accents. % \JDaccents\noDSaccents % \Msg{}\Msg{ *** Hyphenation points for unextended cm font} % \Msg{ *** if printer excludes double strike.} % \showhyphens{\hytest} % \CM *** Hyphenation for unextended font and low % resolution printer % \par \Hytest\bigskip \Caesar \extCM Minuscules : \`a \`e \`\i{} \`o \`u \'a \'e \'\i{} \'o \'u \^a \^e \^\i{} \^o \^u \"a \"e \"\i{} \"o \"u \"y \c c \~a \~n \~o \o{} \ae{} \oe{} \ss{} \aa{} \medskip \`a\`e\`\i{}\`o\`u \'a\'e\'\i{}\'o\'u \^a\^e\^\i{}\^o\^u \"a\"e\"\i{}\"o\"u\"y \c c\~a\~n\~o\o{}\ae{}\oe{}\ss{}\aa{} \bigskip MAJUSCULES : \`A \`E \`I{} \`O \`U \'A \'E \'I{} \'O \'U \^A \^E \^I{} \^O \^U \"A \"E \"I{} \"O \"U \"Y \c C \~A \~N \~O \O{} \AE{} \OE{} SS{} \AA{} \medskip \`A\`E\`I{}\`O\`U \'A\'E\'I{}\'O\'U \^A\^E\^I{}\^O\^U \"A\"E\"I{}\"O\"U\"Y \c C\~A\~N\~O\O{}\AE{}\OE{}SS{}\AA{} \bigskip \hsize=150pt \noCaesar\noDSaccents Line breaks after accent: d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e d\'ej\`a \'et\'e \'em\'ech\'e \bigskip \Caesar Remaining problem with case changes: \uppercase{ci-g\^it fran\c cais na\"if d\'es\oe{}uvr\'e b\^ete et adult\`ere} \bye %%%% Some alternate test material: \def\hytesti{ci-g\^\i{}t fran\c cais na\"\i{}f d\'es\oe{}uvr\'e b\^ete et adult\`ere} \def\hytestii{signal man\oe{}uvres \oe{}uvrer d\'es\oe{}uvrement l\ae{}ticia laticia laennec l\ae{}nnec d\'eculpabiliser r\'eactualisation \'education ex\'ecution inexp\'erience ma\c connerie maconnerie ma\c connerie fa\c con abandonn\'es distingu\'es abandonn\'e distingu\'e \'ethymologiquement syst\'ematiquement } \def\hytestiii{% d\'econtenanc\'ee, h\'eb\'et\'ee, d\'efaite de toute s\'er\'enit\'e devant cet ab\'ec\'edaire d\'ecapit\'e, \'et\^et\'e, \'evid\'e, \'emascul\'e, d\'esagr\'eg\'e, d\'ebilit\'e, d\'eg\'en\'er\'e, parce que priv\'e de lettres accentu\'ees et correctement orthographi\'ees, Th\'er\`ese-\'El\'eonore a d\'ecr\'et\'e avec sinc\'erit\'e et opini\^atret\'e l'immortalit\'e des \c c\`a\c c\^ac\'ec\`ec\^ec\"ec\^\i\ ainsi que des \c c\^o\c c\"o\c c\`u\c c\^u\c c\"u.} %% --------------- cut