Encoding definition files
<#626#>#tex2html_accent_inline1852#<#626#> Some aspects of the contents of font definition files
are still under development. Therefore, the current versions of the
files |OT1enc.def| and |T1enc.def| are temporary versions and should
not be used as models for producing further such files. For further
information you should read the documentation in |ltoutenc.dtx|.
The declarations in the encoding definition file are responsible for
declaring the encoding and telling LATEX<#627#><#627#> how to produce characters
in this encoding.
The |;SPMlt;ENC;SPMgt;enc.def| files should contain only commands from this
section. As with the font definition file commands, it is also
possible (although normally not necessary) to use these declarations
directly within a class or package file.
<#628#>decl<#628#>
||
The |;SPMlt;ENC;SPMgt;enc.def| file should announce itself with a |command, described in #tex2html_accent_inline1853#. For example:
<#632#>tex2html_preform<#632#>verbatim73#
<#634#>decl<#634#>
| | <#635#>encoding<#635#> <#636#>text-settings<#636#>
<#637#>math-settings<#637#>
Declares a new encoding scheme <#639#>encoding<#639#>.
The <#640#>text-settings<#640#> are
declarations which are executed every time || changes the
encoding to be <#641#>encoding<#641#>.
The <#642#>math-settings<#642#> are similar but are for math alphabets. They
are executed whenever a math alphabet with this encoding is
called.
Spaces within the arguments are ignored to avoid surplus
spaces in the document. If a real space is necessary
use | |.
Example:
<#643#>tex2html_preform<#643#>verbatim74#
Some author commands need to change their definition depending on
which encoding is currently in use. For example, in the |OT1|
encoding, the letter `Æ' is in slot |;SPMquot;1D|, whereas in the |T1|
encoding it is in slot |;SPMquot;C6|. So the definition of |Æ| has to
change depending on whether the current encoding is |OT1| or |T1|.
The following commands allow this to happen.
<#645#>decl<#645#>
|| <#646#>cmd<#646#> <#647#>encoding<#647#>
<#648#>num<#648#> <#649#>default<#649#> <#650#>definition<#650#>
This command is like | |, except that it defines a
command which is specific to one encoding. For example, the
definition of || in the |OT1| encoding is:
<#652#>tex2html_preform<#652#>verbatim75#|| takes the same optional arguments as
| |.
The resulting command is
robust, even if the code in <#654#>definition<#654#> is fragile.
It does not produce an error if the command has already
been defined but logs the redefinition in the transcript file.
<#655#>decl<#655#>[1994/12/01]
|| <#656#>cmd<#656#> <#657#>encoding<#657#>
<#658#>num<#658#> <#659#>default<#659#> <#660#>definition<#660#>
This command is the same as ||, except that
if <#662#>cmd<#662#> is already defined in encoding <#663#>encoding<#663#>, then the
definition is ignored.
<#664#>decl<#664#>
|| <#665#>cmd<#665#> <#666#>encoding<#666#> <#667#>slot<#667#>
This command defines a text symbol with slot <#669#>slot<#669#> in the
encoding. For example, the definition of |ß| in the |OT1| encoding
is:
<#670#>tex2html_preform<#670#>verbatim76#It does not produce an error if the command has already
been defined but logs the redefinition in the transcript file.
<#672#>decl<#672#>
|| <#673#>cmd<#673#> <#674#>encoding<#674#> <#675#>slot<#675#>
This command declares a text accent, with the accent taken from slot
<#677#>slot<#677#> in the encoding. For example, the definition of ||̈ in
the |OT1| encoding is:
<#678#>tex2html_preform<#678#>verbatim77#It does not produce an error if the command has already
been defined but logs the redefinition in the transcript file.
<#680#>decl<#680#>
|| <#681#>cmd<#681#> <#682#>encoding<#682#> <#683#>letter<#683#>
<#684#>slot<#684#>
This command declares that the composite letter formed from applying
<#686#>cmd<#686#> to <#687#>letter<#687#> is defined to be simply slot <#688#>slot<#688#> in the
encoding. The <#689#>letter<#689#> should be a single letter (such as |a|) or
a single command (such as |ı|).
For example, the definition of |á|
in the |T1| encoding could be declared like this:
<#691#>tex2html_preform<#691#>verbatim78#
The <#693#>cmd<#693#> should have been previously declared with
||, or as a one-argument ||.
<#694#>decl<#694#>[1994/12/01]
|| <#695#>cmd<#695#> <#696#>encoding<#696#> <#697#>letter<#697#>
<#698#>definition<#698#>
This is a more general form of ||, which allows
for an arbitrary <#700#>definition<#700#>, not just a <#701#>slot<#701#>. The main use
for this is to allow accents on |i| to act like accents on |ı|, for
example:
<#702#>tex2html_preform<#702#>verbatim79#It has the same restrictions as ||.