Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
OverrideWidthMSPMin, OverrideWidthMSPMax rune // Miscellaneous Symbols and Pictographs
OverrideWidthSSPMin, OverrideWidthSSPMax rune // Supplemental Symbols and Pictographs
OverrideWidthEmoticonsMin, OverrideWidthEmoticonsMax rune // Emoticons
)
We need block info from unicode, which depends upon us. Bleh. NOTE: this means that testing this requires importing unicode too, so the tests are elsewhere. Eww.
Functions ¶
func DisplayCellWidth ¶
DisplayCellWidth is a best-guess at how many "terminal grid cells" wide a character is The actual calculations are done by the table layer; our preferred table layer (tabular; because we wrote it and it's better) uses github.com/mattn/go-runewidth and this same function.
func HexDecodeArgs ¶
HexDecodeArgs decodes hex strings passed in argv, returning new args.
func IsPairCode ¶
IsPairCode indicates if the passed run is part of a pairing code designed for extensible lookup. This is used for national flags. Eg, [0x1F1FA 0x1F1F8] = [<Regional Indicator U> <Regional Indicator S>] = 🇺🇸 which will display in some contexts as the flag of the USA.
func RuneFromHexField ¶
RuneFromHexField converts a hex field, perhaps of odd length, to a rune
Types ¶
This section is empty.