Jump to content

Cork encoding

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Beland (talk | contribs) at 19:21, 22 June 2020 (convert special characters (via WP:JWB)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Cork (also known as T1 or EC) encoding is a character encoding used for encoding glyphs in fonts.[1] It is named after the city of Cork in Ireland, where during a TeX Users Group (TUG) conference in 1990 a new encoding was introduced for LaTeX.[1] It contains 256 characters supporting most west and east-European languages with the Latin alphabet.[2]

Details

In 8-bit TeX engines the font encoding has to match the encoding of hyphenation patterns where this encoding is most commonly used.[3] In LaTeX one can switch to this encoding with \usepackage[T1]{fontenc}, while in ConTeXt MkII this is the default encoding already. In modern engines such as XeTeX and LuaTeX the Unicode is fully supported and the 8-bit font encodings are obsolete.

Character set

Cork encoding
_0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F
0_
0
Template:Chset-color-graph|`
0060
Template:Chset-color-graph|´
00B4
Template:Chset-color-letter|ˆ
02C6
Template:Chset-color-graph|˜
02DC
Template:Chset-color-graph|¨
00A8
Template:Chset-color-graph|˝
02DD
Template:Chset-color-graph|˚
02DA
Template:Chset-color-letter|ˇ
02C7
Template:Chset-color-graph|˘
02D8
Template:Chset-color-graph|¯
00AF
Template:Chset-color-graph|˙
02D9
Template:Chset-color-graph|¸
00B8
Template:Chset-color-graph|˛
02DB
Template:Chset-color-punct|
201A
Template:Chset-color-punct|
2039
Template:Chset-color-punct|
203A
1_
16
Template:Chset-color-punct|
201C
Template:Chset-color-punct|
201D
Template:Chset-color-punct|
201E
Template:Chset-color-punct|«
00AB
Template:Chset-color-punct|»
00BB
Template:Chset-color-punct|
2013
Template:Chset-color-punct|
2014
Template:Chset-color-ctrl|ZWSP
200B
Template:Chset-color-digit|[a]
2080
Template:Chset-color-letter|ı[b]
0131
Template:Chset-color-letter|ȷ[b]
0237
Template:Chset-color-letter|
FB00
Template:Chset-color-letter|
FB01
Template:Chset-color-letter|
FB02
Template:Chset-color-letter|
FB03
Template:Chset-color-letter|
FB04
2_
32
Template:Chset-color-misc|
0020
Template:Chset-color-punct|!
0021
Template:Chset-color-punct|"
0022
Template:Chset-color-punct|#
0023
Template:Chset-color-graph|$
0024
Template:Chset-color-punct|%
0025
Template:Chset-color-punct|&
0026
Template:Chset-color-punct|
2019
Template:Chset-color-punct|(
0028
Template:Chset-color-punct|)
0029
Template:Chset-color-punct|*
002A
Template:Chset-color-graph|+
002B
Template:Chset-color-punct|,
002C
Template:Chset-color-punct|-
002D
Template:Chset-color-punct|.
002E
Template:Chset-color-punct|/
002F
3_
48
Template:Chset-color-digit|0
0030
Template:Chset-color-digit|1
0031
Template:Chset-color-digit|2
0032
Template:Chset-color-digit|3
0033
Template:Chset-color-digit|4
0034
Template:Chset-color-digit|5
0035
Template:Chset-color-digit|6
0036
Template:Chset-color-digit|7
0037
Template:Chset-color-digit|8
0038
Template:Chset-color-digit|9
0039
Template:Chset-color-punct|:
003A
Template:Chset-color-punct|;
003B
Template:Chset-color-graph|<
003C
Template:Chset-color-graph|=
003D
Template:Chset-color-graph|>
003E
Template:Chset-color-punct|?
003F
4_
64
Template:Chset-color-punct|@
0040
Template:Chset-color-letter|A
0041
Template:Chset-color-letter|B
0042
Template:Chset-color-letter|C
0043
Template:Chset-color-letter|D
0044
Template:Chset-color-letter|E
0045
Template:Chset-color-letter|F
0046
Template:Chset-color-letter|G
0047
Template:Chset-color-letter|H
0048
Template:Chset-color-letter|I
0049
Template:Chset-color-letter|J
004A
Template:Chset-color-letter|K
004B
Template:Chset-color-letter|L
004C
Template:Chset-color-letter|M
004D
Template:Chset-color-letter|N
004E
Template:Chset-color-letter|O
004F
5_
80
Template:Chset-color-letter|P
0050
Template:Chset-color-letter|Q
0051
Template:Chset-color-letter|R
0052
Template:Chset-color-letter|S
0053
Template:Chset-color-letter|T
0054
Template:Chset-color-letter|U
0055
Template:Chset-color-letter|V
0056
Template:Chset-color-letter|W
0057
Template:Chset-color-letter|X
0058
Template:Chset-color-letter|Y
0059
Template:Chset-color-letter|Z
005A
Template:Chset-color-punct|[
005B
Template:Chset-color-punct|\
005C
Template:Chset-color-punct|]
005D
Template:Chset-color-graph|^
005E
Template:Chset-color-punct|_
005F
6_
96
Template:Chset-color-punct|
2018
Template:Chset-color-letter|a
0061
Template:Chset-color-letter|b
0062
Template:Chset-color-letter|c
0063
Template:Chset-color-letter|d
0064
Template:Chset-color-letter|e
0065
Template:Chset-color-letter|f
0066
Template:Chset-color-letter|g
0067
Template:Chset-color-letter|h
0068
Template:Chset-color-letter|i
0069
Template:Chset-color-letter|j
006A
Template:Chset-color-letter|k
006B
Template:Chset-color-letter|l
006C
Template:Chset-color-letter|m
006D
Template:Chset-color-letter|n
006E
Template:Chset-color-letter|o
006F
7_
112
Template:Chset-color-letter|p
0070
Template:Chset-color-letter|q
0071
Template:Chset-color-letter|r
0072
Template:Chset-color-letter|s
0073
Template:Chset-color-letter|t
0074
Template:Chset-color-letter|u
0075
Template:Chset-color-letter|v
0076
Template:Chset-color-letter|w
0077
Template:Chset-color-letter|x
0078
Template:Chset-color-letter|y
0079
Template:Chset-color-letter|z
007A
Template:Chset-color-punct|{
007B
Template:Chset-color-graph||
007C
Template:Chset-color-punct|}
007D
Template:Chset-color-graph|~
007E
Template:Chset-color-ctrl|SHY[c]
00AD
8_
128
Template:Chset-color-letter|Ă
0102
Template:Chset-color-letter|Ą
0104
Template:Chset-color-letter|Ć
0106
Template:Chset-color-letter|Č
010C
Template:Chset-color-letter|Ď
010E
Template:Chset-color-letter|Ě
011A
Template:Chset-color-letter|Ę
0118
Template:Chset-color-letter|Ğ
011E
Template:Chset-color-letter|Ĺ
0139
Template:Chset-color-letter|Ľ
013D
Template:Chset-color-letter|Ł
0141
Template:Chset-color-letter|Ń
0143
Template:Chset-color-letter|Ň
0147
Template:Chset-color-letter|Ŋ
014A
Template:Chset-color-letter|Ő
0150
Template:Chset-color-letter|Ŕ
0154
9_
144
Template:Chset-color-letter|Ř
0158
Template:Chset-color-letter|Ś
015A
Template:Chset-color-letter|Š
0160
Template:Chset-color-letter|Ş
015E
Template:Chset-color-letter|Ť
0164
Template:Chset-color-letter|Ţ
0162
Template:Chset-color-letter|Ű
0170
Template:Chset-color-letter|Ů
016E
Template:Chset-color-letter|Ÿ
0178
Template:Chset-color-letter|Ź
0179
Template:Chset-color-letter|Ž
017D
Template:Chset-color-letter|Ż
017B
Template:Chset-color-letter|IJ
0132
Template:Chset-color-letter|İ
0130
Template:Chset-color-letter|đ
0111
Template:Chset-color-punct|§
00A7
A_
160
Template:Chset-color-letter|ă
0103
Template:Chset-color-letter|ą
0105
Template:Chset-color-letter|ć
0107
Template:Chset-color-letter|č
010D
Template:Chset-color-letter|ď
010F
Template:Chset-color-letter|ě
011B
Template:Chset-color-letter|ę
0119
Template:Chset-color-letter|ğ
011F
Template:Chset-color-letter|ĺ
013A
Template:Chset-color-letter|ľ
013E
Template:Chset-color-letter|ł
0142
Template:Chset-color-letter|ń
0144
Template:Chset-color-letter|ň
0148
Template:Chset-color-letter|ŋ
014B
Template:Chset-color-letter|ő
0151
Template:Chset-color-letter|ŕ
0155
B_
176
Template:Chset-color-letter|ř
0159
Template:Chset-color-letter|ś
015B
Template:Chset-color-letter|š
0161
Template:Chset-color-letter|ş
015F
Template:Chset-color-letter|ť
0165
Template:Chset-color-letter|ţ
0163
Template:Chset-color-letter|ű
0171
Template:Chset-color-letter|ů
016F
Template:Chset-color-letter|ÿ
00FF
Template:Chset-color-letter|ź
017A
Template:Chset-color-letter|ž
017E
Template:Chset-color-letter|ż
017C
Template:Chset-color-letter|ij
0133
Template:Chset-color-punct|¡
00A1
Template:Chset-color-punct|¿
00BF
Template:Chset-color-graph|£
00A3
C_
192
Template:Chset-color-letter|À
00C0
Template:Chset-color-letter|Á
00C1
Template:Chset-color-letter|Â
00C2
Template:Chset-color-letter|Ã
00C3
Template:Chset-color-letter|Ä
00C4
Template:Chset-color-letter|Å
00C5
Template:Chset-color-letter|Æ
00C6
Template:Chset-color-letter|Ç
00C7
Template:Chset-color-letter|È
00C8
Template:Chset-color-letter|É
00C9
Template:Chset-color-letter|Ê
00CA
Template:Chset-color-letter|Ë
00CB
Template:Chset-color-letter|Ì
00CC
Template:Chset-color-letter|Í
00CD
Template:Chset-color-letter|Î
00CE
Template:Chset-color-letter|Ï
00CF
D_
208
Template:Chset-color-letter|Ð/Đ[d]
00D0
Template:Chset-color-letter|Ñ
00D1
Template:Chset-color-letter|Ò
00D2
Template:Chset-color-letter|Ó
00D3
Template:Chset-color-letter|Ô
00D4
Template:Chset-color-letter|Õ
00D5
Template:Chset-color-letter|Ö
00D6
Template:Chset-color-letter|Œ
0152
Template:Chset-color-letter|Ø
00D8
Template:Chset-color-letter|Ù
00D9
Template:Chset-color-letter|Ú
00DA
Template:Chset-color-letter|Û
00DB
Template:Chset-color-letter|Ü
00DC
Template:Chset-color-letter|Ý
00DD
Template:Chset-color-letter|Þ
00DE
Template:Chset-color-letter|SS[e]
1E9E
E_
224
Template:Chset-color-letter|à
00E0
Template:Chset-color-letter|á
00E1
Template:Chset-color-letter|â
00E2
Template:Chset-color-letter|ã
00E3
Template:Chset-color-letter|ä
00E4
Template:Chset-color-letter|å
00E5
Template:Chset-color-letter|æ
00E6
Template:Chset-color-letter|ç
00E7
Template:Chset-color-letter|è
00E8
Template:Chset-color-letter|é
00E9
Template:Chset-color-letter|ê
00EA
Template:Chset-color-letter|ë
00EB
Template:Chset-color-letter|ì
00EC
Template:Chset-color-letter|í
00ED
Template:Chset-color-letter|î
00EE
Template:Chset-color-letter|ï
00EF
F_
240
Template:Chset-color-letter|ð
00F0
Template:Chset-color-letter|ñ
00F1
Template:Chset-color-letter|ò
00F2
Template:Chset-color-letter|ó
00F3
Template:Chset-color-letter|ô
00F4
Template:Chset-color-letter|õ
00F5
Template:Chset-color-letter|ö
00F6
Template:Chset-color-letter|œ
0153
Template:Chset-color-letter|ø
00F8
Template:Chset-color-letter|ù
00F9
Template:Chset-color-letter|ú
00FA
Template:Chset-color-letter|û
00FB
Template:Chset-color-letter|ü
00FC
Template:Chset-color-letter|ý
00FD
Template:Chset-color-letter|þ
00FE
Template:Chset-color-letter|ß
00DF

  Letter  Number  Punctuation  Symbol  Other  Undefined

Notes

  • Hexadecimal values under the characters in the table are the Unicode character codes.
  • The first 12 characters are often used as combining characters.
  1. ^ 0x18 is just a "trailing zero", used to compose or (or arbitrary smaller quantities) out of percent sign (%).
  2. ^ a b Dotless i and dotless j may be used to compose accented variants like i with macron (ī).
  3. ^ 0x7F is the hyphenation character (not really a soft hyphen).
  4. ^ 0xD0 is used both as Eth (Ð, U+00D0) and as D with stroke (Đ, U+0110) which might be a problem at some occasions (like copying text from PDF, hyphenation, ...)
  5. ^ 0xDF contains SS (two letters S). It allows TeX to automatically convert the German lowercase ß into the uppercase form.

Supported languages

The encoding supports most European languages written in Latin alphabet. Notable exceptions are:

Languages with slightly suboptimal support include:

References

  1. ^ a b Petrlik, Lukas (1996-06-19). "The Czech and Slovak Character Encoding Mess Explained". cs-encodings-faq. 1.10. Archived from the original on 2016-06-21. Retrieved 2016-06-21.
  2. ^ Ferguson, Michael (1990), "Report on Multilingual Activities" (PDF), TUGboat, Volume 11 (Issue 4): 514–516 {{citation}}: |issue= has extra text (help); |volume= has extra text (help)
  3. ^ TeX hyphenation patterns