Documentation ¶
Index ¶
Constants ¶
View Source
const ( G0 = "G0" G1 = "G1" G2 = "G2" G3 = "G3" // GL = "GL" GR = "GR" // KANJI = "KANJI" ALPHANUMERIC = "ALPHANUMERIC" HIRAGANA = "HIRAGANA" KATAKANA = "KATAKANA" MOSAIC_A = "MOSAIC_A" MOSAIC_B = "MOSAIC_B" MOSAIC_C = "MOSAIC_C" MOSAIC_D = "MOSAIC_D" PROP_ALPHANUMERIC = "PROP_ALPHANUMERIC" PROP_HIRAGANA = "PROP_HIRAGANA" PROP_KATAKANA = "PROP_KATAKANA" JIS_X0201_KATAKANA = "JIS_X0201_KATAKANA" JIS_KANJI_PLANE_1 = "JIS_KANJI_PLANE_1" JIS_KANJI_PLANE_2 = "JIS_KANJI_PLANE_2" ADDITIONAL_SYMBOLS = "ADDITIONAL_SYMBOLS" UNSUPPORTED = "UNSUPPORTED" )
Variables ¶
View Source
var ARIB_HIRAGANA_MAP = map[byte]byte{
0x79: 0x3C,
0x7A: 0x23,
0x7B: 0x56,
0x7C: 0x57,
0x7D: 0x22,
0x7E: 0x26,
0x77: 0x35,
0x78: 0x36,
}
View Source
var ARIB_KATAKANA_MAP = map[byte]byte{
0x79: 0x3C,
0x7A: 0x23,
0x7B: 0x56,
0x7C: 0x57,
0x7D: 0x22,
0x7E: 0x26,
0x77: 0x33,
0x78: 0x34,
}
View Source
var CODE_SET_DRCS = map[byte]Code{
0x40: {"", 2},
0x41: {"", 1},
0x42: {"", 1},
0x43: {"", 1},
0x44: {"", 1},
0x45: {"", 1},
0x46: {"", 1},
0x47: {"", 1},
0x48: {"", 1},
0x49: {"", 1},
0x4A: {"", 1},
0x4B: {"", 1},
0x4C: {"", 1},
0x4D: {"", 1},
0x4E: {"", 1},
0x4F: {"", 1},
0x70: {"", 1},
}
View Source
var CODE_SET_G = map[byte]Code{ 0x42: {KANJI, 2}, 0x4A: {ALPHANUMERIC, 1}, 0x30: {HIRAGANA, 1}, 0x31: {KATAKANA, 1}, 0x32: {MOSAIC_A, 1}, 0x33: {MOSAIC_B, 1}, 0x34: {MOSAIC_C, 1}, 0x35: {MOSAIC_D, 1}, 0x36: {PROP_ALPHANUMERIC, 1}, 0x37: {PROP_HIRAGANA, 1}, 0x38: {PROP_KATAKANA, 1}, 0x49: {JIS_X0201_KATAKANA, 1}, 0x39: {JIS_KANJI_PLANE_1, 2}, 0x3A: {JIS_KANJI_PLANE_2, 2}, 0x3B: {ADDITIONAL_SYMBOLS, 2}, }
View Source
var ESC_SEQ_ASCII = []byte{0x1B, 0x28, 0x42}
View Source
var ESC_SEQ_HANKAKU = []byte{0x1B, 0x28, 0x49}
View Source
var ESC_SEQ_ZENKAKU = []byte{0x1B, 0x24, 0x42}
View Source
var GAIJI_MAP = map[int]string{}/* 449 elements not displayed */
Functions ¶
Types ¶
type AribArray ¶
type AribArray struct { ByteArray []byte JisArray []byte String string // control Control CodeSetContoller }
func NewAribArray ¶
Click to show internal directories.
Click to hide internal directories.