diff options
author | Karl Berry <karl@freefriends.org> | 2022-06-12 20:41:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-06-12 20:41:05 +0000 |
commit | b638ac489f0026230459b57df99188d78be3ce82 (patch) | |
tree | f0be6f26fd61fe45de93ec17c76f45b2bb8840f6 | |
parent | f57a5d5e349375ac1d86b1083a4a22acf202761c (diff) |
ly1 (12jun22)
git-svn-id: svn://tug.org/texlive/trunk@63565 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/ly1/README.md (renamed from Master/texmf-dist/doc/fonts/ly1/README) | 72 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ly1/ly1enc.def | 9 |
2 files changed, 44 insertions, 37 deletions
diff --git a/Master/texmf-dist/doc/fonts/ly1/README b/Master/texmf-dist/doc/latex/ly1/README.md index 4ea27a11933..e576d4c1ae1 100644 --- a/Master/texmf-dist/doc/fonts/ly1/README +++ b/Master/texmf-dist/doc/latex/ly1/README.md @@ -1,4 +1,4 @@ -LaTeX support for `texnansi' encoding (LY1) +LaTeX support for texnansi encoding (LY1) =========================================== Installing @@ -18,20 +18,21 @@ files here are not used.) Usage ===== -The font encoding `LY1' corresponds to the `texnansi' encoding as used -by default in the Y&Y TeX system (http://tug.org/yandy). There is also -an option to support the `ansinew' encoding that is the default encoding -in Microsoft Windows. +The font encoding `LY1` corresponds to the `texnansi` encoding +originally used in the Y&Y TeX system. There is also an option to +support the `ansinew` encoding that is the default encoding in +Microsoft Windows. -The main file is ly1enc.def. This contains the declaration of -the encoding. To use `texnansi' encoded fonts within LaTeX, +The main file is `ly1enc.def`. This contains the declaration of +the encoding. To use `texnansi` encoded fonts within LaTeX, typically you just need to add the line + \usepackage[LY1]{fontenc} to your document preamble. -An alternative to the above line is to use the `texnansi' package +An alternative to the above line is to use the `texnansi` package \usepackage{texnansi} @@ -49,32 +50,32 @@ easily be changed to \usepackage[T1]{fontenc} -The texnansi package has a package option `ansinew' which +The texnansi package has a package option `ansinew` which modifies the LY1 encoding to refer to that MS Windows encoding. However you should only do this if your TeX system -can not reencode fonts to support T1 or LY1. The `ansinew' +can not reencode fonts to support T1 or LY1. The `ansinew` treatment of the left quote ` as a grave accent makes it rather unsuitable for TeX use. It also lacks several useful glyphs. However if you need to, you can do: \usepackage[ansinew]{texnansi} -The other possible reason for using the `texnansi' package +The other possible reason for using the `texnansi` package relates to the use of the lowercase table in the hyphenation algorithm. This is described below, but it is unfortunately of necessity rather technical, and you may want to stop reading at that point. LY1 matches OT1 well enough that you can usually use it in that role -also. You can \input texnansi if you want this to work exactly even in -plain TeX. +also. You can `\input` texnansi if you want this to work exactly even +in plain TeX. Having declared the LY1 encoding to LaTeX, LaTeX will need to know the fonts that are available in this encoding. This distribution includes TeX metrics, font definition files and -map files for the common `Standard PostScript' fonts. +map files for the common "Standard PostScript" fonts. -For each encoding LaTeX needs to know an `error font' which is +For each encoding LaTeX needs to know an `error font` which is its fall back in the case that the font substitution system can find nothing better to do. ly1enc.def specifies that the Error Font for LY1 is Adobe Times-Roman. Any PostScript @@ -82,12 +83,12 @@ interpreter must be able to provide Times-Roman, so it seems a good choice as the error font. Yet you may wish to change this for any reason; just edit the lines -\DeclareErrorFont{LY1}{ptm}{m}{n}{10} -\DeclareFontSubstitution{LY1}{ptm}{m}{n} + \DeclareErrorFont{LY1}{ptm}{m}{n}{10} + \DeclareFontSubstitution{LY1}{ptm}{m}{n} at the top of ly1enc.def to refer to some other font set. For example -if you have Y&Y TeX's `Lucida Bright' distribution you could change the -two occurrences of {ptm} to {hlh} to make LaTeX fall back on Lucida +if you have Y&Y TeX's "Lucida Bright" distribution you could change the +two occurrences of `{ptm}` to `{hlh}` to make LaTeX fall back on Lucida Bright if all else fails. Please follow the LPPL and do not capriciously alter ly1enc.def in other ways. @@ -107,7 +108,7 @@ set in, are lowercased using the table current at the *end* of the paragraph before being checked for hyphenation. Because of these limitations in TeX's hyphenation algorithm, LaTeX does not support changing the lowercase table mid document, so -if the `texnansi' package is used then the `texnansi' +if the `texnansi` package is used then the `texnansi` lowercase table will be used for all fonts (whether or not LY1 encoded) and conversely if it is not used, the T1 table will be used, even for LY1 encoded fonts. The reason why this @@ -118,6 +119,7 @@ that occur in LY1 occur in the same place in T1. The only letters that might possibly appear in a hyphenation table that are in different positions in T1 and LY1 are: +``` \oe (low position OT1 high new) \ss (low position OT1 high new) \v{s} @@ -127,11 +129,11 @@ table that are in different positions in T1 and LY1 are: so this will only affect languages (Turkish?) that use an unaccented \i) \"{y} - +``` It should be noted that for those symbols that occur twice in -LY1, the `high' copy is used if it coincides with the position -used in T1 (as in the case of \ae, \o) otherwise the `low' +LY1, the "high" copy is used if it coincides with the position +used in T1 (as in the case of \ae, \o) otherwise the "low" copy will be used which will coincide with the OT1 position (\oe, \ss). (Unless the setup for ansinew is enabled in which case the high position is always used.) @@ -162,21 +164,21 @@ but rather always accessed characters by control sequences such as \ss. This would allow the remapping to be done via inputting a file such as ly1enc.def rather than by editing the hyphenation file. However currently most of the publicly -available hyphenation tables unfortunately do `hard wire' the +available hyphenation tables unfortunately do "hard wire" the T1 character codes in this way. -Copyright 1997 David Carlisle -(Updated Feb. 2001 Walter Schmidt) -(Updated Jun. 2010 Karl Berry) -(Updated Oct. 2010 Karl Berry -- Times small caps faked as intended.) -(Updated Jan. 2011 Karl Berry - -- missing map entries for ptmrr8ye and ptmr8yn. - -- irrelevant {phvl*,psyr,pzdr}.tfm removed. - -- relevant ptm{b,r}c8y.vf included, and corresponding ptm{b,r}c8y.tfm. - Thanks to Bruno Voisin for much research and debugging. -) - +Copyright 1997 David Carlisle +(Updated Feb. 2001 Walter Schmidt) +(Updated Jun. 2010 Karl Berry) +(Updated Oct. 2010 Karl Berry -- Times small caps faked as intended.) +(Updated Jan. 2011 Karl Berry + -- missing map entries for ptmrr8ye and ptmr8yn. + -- irrelevant {phvl*,psyr,pzdr}.tfm removed. + -- relevant ptm{b,r}c8y.vf included, and corresponding ptm{b,r}c8y.tfm. + Thanks to Bruno Voisin for much research and debugging. +) +(Updated June 2022 David Carlisle ) All the files in this directory may be redistributed and/or modified under the terms of the LaTeX Project Public License diff --git a/Master/texmf-dist/tex/latex/ly1/ly1enc.def b/Master/texmf-dist/tex/latex/ly1/ly1enc.def index b1b32fed52b..774d3b99651 100644 --- a/Master/texmf-dist/tex/latex/ly1/ly1enc.def +++ b/Master/texmf-dist/tex/latex/ly1/ly1enc.def @@ -1,5 +1,6 @@ -% Copyright 1997, 1998, 1999 David Carlisle +% Copyright 1997, 1998, 1999, 2022 David Carlisle % Updated 2009 Karl Berry. +% Updated 2022 David Carlisle % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1 @@ -7,7 +8,7 @@ % The latest version of this license is in % http://www.latex-project.org/lppl.txt % -\ProvidesFile{ly1enc.def}[2009/07/22 v0.7 TeX 'n ANSI encoding (DPC/KB)] +\ProvidesFile{ly1enc.def}[2022/06/11 v0.8 TeX 'n ANSI encoding (DPC/KB)] \DeclareFontEncoding{LY1}{}{} \DeclareErrorFont{LY1}{ptm}{m}{n}{10} % argh! @@ -151,7 +152,9 @@ \DeclareTextSymbol{\textcopyright}{LY1} {169} \DeclareTextSymbol{\copyright}{LY1} {169}% Plain TeX name \DeclareTextSymbol{\textordfeminine}{LY1} {170} +% old name \DeclareTextSymbol{\guillemotleft}{LY1} {171} +\DeclareTextSymbol{\guillemetleft}{LY1} {171} \DeclareTextSymbol{\textlogicalnot}{LY1} {172} % \DeclareTextSymbol{\textsfthyphen}{LY1} {173} \DeclareTextSymbol{\textregistered}{LY1} {174} @@ -168,7 +171,9 @@ % cedilla (again) 184 \DeclareTextSymbol{\textonesuperior}{LY1} {185} \DeclareTextSymbol{\textordmasculine}{LY1} {186} +% old name \DeclareTextSymbol{\guillemotright}{LY1} {187} +\DeclareTextSymbol{\guillemetright}{LY1} {187} \DeclareTextSymbol{\textonequarter}{LY1} {188} \DeclareTextSymbol{\textonehalf}{LY1} {189} \DeclareTextSymbol{\textthreequarters}{LY1} {190} |