scripts

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cyrillic

type Cyrillic struct{}

Cyrillic represents the Cyrillic script.

вулкан

func (Cyrillic) Is

func (Cyrillic) Is(ch rune) bool

Is checks whether the character is Cyrillic or not.

func (Cyrillic) Normalize

func (Cyrillic) Normalize(ch rune) rune

Normalize converts character into lower case.

func (Cyrillic) TransliteratePunct

func (Cyrillic) TransliteratePunct(punct rune) string

TransliteratePunct does nothing.

type Georgian

type Georgian struct{}

Georgian represents the Georgian script.

ასომთავრული

func (Georgian) Is

func (Georgian) Is(ch rune) bool

Is checks whether the character is Georgian or not.

func (Georgian) Normalize

func (Georgian) Normalize(ch rune) rune

Normalize does nothing. Georgian is unicase, which means, there's only one case for each letter.

func (Georgian) TransliteratePunct

func (Georgian) TransliteratePunct(punct rune) string

TransliteratePunct does nothing.

type Greek

type Greek struct{}

Greek represents the Greek script.

ελληνικά

func (Greek) Is

func (Greek) Is(ch rune) bool

Is checks whether the character is Greek or not.

func (Greek) Normalize

func (Greek) Normalize(ch rune) rune

Normalize converts character into lower case.

func (Greek) TransliteratePunct

func (Greek) TransliteratePunct(punct rune) string

TransliteratePunct does nothing.

type Kana

type Kana struct{}

Kana represents the Kana script including Hiragana and Katakana.

ひらがな カタカナ

func (Kana) Is

func (Kana) Is(ch rune) bool

Is checks whether the character is either Hiragana or Katakana.

func (Kana) Normalize

func (Kana) Normalize(ch rune) rune

Normalize converts Hiragana to Katakana.

func (Kana) TransliteratePunct

func (Kana) TransliteratePunct(punct rune) string

TransliteratePunct converts a Japanese punctuation to fit in Korean.

type Latin

type Latin struct{}

Latin represents the Latin or Roman script. Most languages Hangulize supports use this script system. So it's the default script.

func (Latin) Is

func (Latin) Is(ch rune) bool

Is checks whether the character is Latin or not.

func (Latin) Normalize

func (Latin) Normalize(ch rune) rune

Normalize converts a Latin character into ISO basic Latin lower alphabet [a-z]:

Pokémon -> pokemon

func (Latin) TransliteratePunct

func (Latin) TransliteratePunct(punct rune) string

TransliteratePunct does nothing.

type Pinyin

type Pinyin struct {
	Latin
}

Pinyin represents the Latin script for Chinese Pinyin.

漢語拼音

func (Pinyin) Normalize

func (s Pinyin) Normalize(ch rune) rune

Normalize converts a Latin character for Pinyin into ISO basic Latin lower alphabet [a-z]. Especially, it converts "ü" to "v":

lüè -> lve

Jump to

Keyboard shortcuts

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