translit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 4 Imported by: 0

README

Translit

Here are packages that implement the hangulize.Translit interface for specific methods. Each package provides T or Ts as the singleton value.

Install all of the standard Translits:

import "github.com/hangulize/hangulize"
import "github.com/hangulize/hangulize/translit"

func main() {
    translit.Install()
    hangulize.Hangulize("chi", "靑島")
    hangulize.Hangulize("jpn", "北海道")
}

Or use a specific Translit to reduce the build size:

import "github.com/hangulize/hangulize"
import "github.com/hangulize/hangulize/translit/furigana"

func main() {
    hangulize.UseTranslit(&furigana.T)
    hangulize.Hangulize("jpn", "自由ヶ丘")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(h ...hangulize.Hangulizer) bool

Install imports all of the standard Translits.

func Translits

func Translits() []hangulize.Translit

Translits returns the standard Translits.

Types

This section is empty.

Directories

Path Synopsis
Package furigana implements the hangulize.Translit interface for Japanese Kanji.
Package furigana implements the hangulize.Translit interface for Japanese Kanji.
Package pinyin implements the hangulize.Translit interface for Chinese Hanzu.
Package pinyin implements the hangulize.Translit interface for Chinese Hanzu.

Jump to

Keyboard shortcuts

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