graphicset

package
v0.0.0-...-79cd74e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Hiragana is a final byte of hiragana graphic set.
	Hiragana = 0x30

	// Katakana is a final byte of katakana graphic set.
	Katakana = 0x31

	// MosaicA is a final byte of Mosaic A graphic set.
	MosaicA = 0x32

	// MosaicB is a final byte of Mosaic B graphic set.
	MosaicB = 0x33

	// MosaicC is a final byte of Mosaic C graphic set.
	MosaicC = 0x34

	// MosaicD is a final byte of Mosaic D graphic set.
	MosaicD = 0x35

	// PropAlphanumeric is a final byte of proportional alphanumeric graphic set.
	PropAlphanumeric = 0x36

	// PropHiragana is a final byte of proportional hiragana graphic set.
	PropHiragana = 0x37

	// PropKatakana is a final byte of proportional katakana graphic set.
	PropKatakana = 0x38

	// JISKanji1 is a final byte of JIS compatible Kanji Plane 1 graphic set.
	JISKanji1 = 0x39

	// JISKanji2 is a final byte of JIS compatible Kanji Plane 2 graphic set.
	JISKanji2 = 0x3A

	// Symbols is a final byte of additional symbols graphic set.
	Symbols = 0x3B

	// Kanji is a final byte of kanji graphic set.
	Kanji = 0x42

	// JISX0201Katakana is a final byte of JIS X 0201 katakana graphic set.
	JISX0201Katakana = 0x49

	// Alphanumeric is a final byte of alphanumeric graphic set.
	Alphanumeric = 0x4A

	// Macro is a final byte of macro graphic set.
	Macro = 0x70
)

Variables

View Source
var DRCS = []byte{
	0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
	0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F,
}

DRCS is an array of DRCS(Dynamic Redefinable Character Set) graphic sets.

View Source
var DRCSMap = map[byte]GraphicSet{

	DRCS[0]:  doubleByteEmptySet,
	DRCS[1]:  singleByteEmptySet,
	DRCS[2]:  singleByteEmptySet,
	DRCS[3]:  singleByteEmptySet,
	DRCS[4]:  singleByteEmptySet,
	DRCS[5]:  singleByteEmptySet,
	DRCS[6]:  singleByteEmptySet,
	DRCS[7]:  singleByteEmptySet,
	DRCS[8]:  singleByteEmptySet,
	DRCS[9]:  singleByteEmptySet,
	DRCS[10]: singleByteEmptySet,
	DRCS[11]: singleByteEmptySet,
	DRCS[12]: singleByteEmptySet,
	DRCS[13]: singleByteEmptySet,
	DRCS[14]: singleByteEmptySet,
	DRCS[15]: singleByteEmptySet,
	Macro:    singleByteEmptySet,
}

DRCSMap maps a final byte to a DRCS.

View Source
var GSetMap = map[byte]GraphicSet{
	Hiragana:         hiraganaSet,
	Katakana:         katakanaSet,
	MosaicA:          singleByteEmptySet,
	MosaicB:          singleByteEmptySet,
	MosaicC:          singleByteEmptySet,
	MosaicD:          singleByteEmptySet,
	PropAlphanumeric: alphanumericSet,
	PropHiragana:     hiraganaSet,
	PropKatakana:     katakanaSet,
	JISKanji1:        kanjiSet,
	JISKanji2:        kanjiSet,
	Symbols:          additionalSymbolSet,
	Kanji:            kanjiSet,
	Alphanumeric:     alphanumericSet,
	JISX0201Katakana: jisX0201KatakanaSet,
}

GSetMap maps a final byte to a G set.

Functions

This section is empty.

Types

type GraphicSet

type GraphicSet interface {
	Get(b1, b2 byte) ([]byte, int)
}

GraphicSet is the interface for character set.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL