Difference between revisions of "Command/useencoding"

From Wiki
Jump to navigation Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
 
(8 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>useencoding</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 17: Line 20:
  
 
== Description ==  
 
== Description ==  
 +
This command is MKII-only. It loads support for one or more font encodings not already preloaded in the core. This is seldom needed (if ever).
  
 +
== Example ==
 +
ConTeXt core already uses:
 +
<texcode>
 +
\useencoding[ans,il2,ec,tbo,pdf,pol,qx,t5,l7x,cyr,agr]
 +
</texcode>
  
 
+
If you had a need to use Cyrillic encoding t2c for example, you could use
== Example ==
+
<texcode>
<!-- Please fill in an example if you can -->
+
\useencoding[t2c]
 +
\usetypescript[antykwa-torunska][t2c]
 +
\setupbodyfont[antykwa-torunska]
 +
</texcode>
 +
However t2c is already preloaded with enco-cyr.
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
{{cmd|usetypescript}}
 +
{{cmd|startencoding}}
 +
{{cmd|definecharacter}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 30: Line 45:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|useencoding]]
+
[[Category:Command/Fonts|useencoding]]

Latest revision as of 19:40, 13 January 2020

\useencoding

Syntax (autogenerated)


Syntax

\useencoding[...,...,...]
[...,...,...] name


Description

This command is MKII-only. It loads support for one or more font encodings not already preloaded in the core. This is seldom needed (if ever).

Example

ConTeXt core already uses:

\useencoding[ans,il2,ec,tbo,pdf,pol,qx,t5,l7x,cyr,agr]

If you had a need to use Cyrillic encoding t2c for example, you could use

\useencoding[t2c]
\usetypescript[antykwa-torunska][t2c]
\setupbodyfont[antykwa-torunska]

However t2c is already preloaded with enco-cyr.

See also

\usetypescript \startencoding \definecharacter

Help from ConTeXt-Mailinglist/Forum

All issues with: