SymbolEncoding
in package
Pdf extract SymbolEncoding table class
Covers the well-known Symbol-font convention of mapping each Latin keyboard-position letter to the correspondingly-named Greek letter (e.g. 'p' -> pi, 'w' -> omega). The 'j' and 'v' keys and all non-Greek math/ technical symbols in the Symbol font are intentionally unmapped.
Tags
Table of Contents
Constants
- GREEK_BY_LETTER = ['a' => 0x3b1, 'b' => 0x3b2, 'g' => 0x3b3, 'd' => 0x3b4, 'e' => 0x3b5, 'z' => 0x3b6, 'h' => 0x3b7, 'q' => 0x3b8, 'i' => 0x3b9, 'k' => 0x3ba, 'l' => 0x3bb, 'm' => 0x3bc, 'n' => 0x3bd, 'x' => 0x3be, 'o' => 0x3bf, 'p' => 0x3c0, 'r' => 0x3c1, 's' => 0x3c3, 't' => 0x3c4, 'u' => 0x3c5, 'f' => 0x3c6, 'c' => 0x3c7, 'y' => 0x3c8, 'w' => 0x3c9]
- Lowercase Latin keyboard letter to Greek Unicode codepoint table
Methods
- get() : int|null
- Get the Unicode codepoint for a Symbol-font byte
Constants
GREEK_BY_LETTER
Lowercase Latin keyboard letter to Greek Unicode codepoint table
protected
mixed
GREEK_BY_LETTER
= ['a' => 0x3b1, 'b' => 0x3b2, 'g' => 0x3b3, 'd' => 0x3b4, 'e' => 0x3b5, 'z' => 0x3b6, 'h' => 0x3b7, 'q' => 0x3b8, 'i' => 0x3b9, 'k' => 0x3ba, 'l' => 0x3bb, 'm' => 0x3bc, 'n' => 0x3bd, 'x' => 0x3be, 'o' => 0x3bf, 'p' => 0x3c0, 'r' => 0x3c1, 's' => 0x3c3, 't' => 0x3c4, 'u' => 0x3c5, 'f' => 0x3c6, 'c' => 0x3c7, 'y' => 0x3c8, 'w' => 0x3c9]
Methods
get()
Get the Unicode codepoint for a Symbol-font byte
public
static get(int $byte) : int|null
Parameters
- $byte : int