phoru

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

phoru

Given a (pseudo-)phonetic russian input, phoru outputs (cyrillic) russian.

% phoru -h

example:
	 % echo privet mir | phoru
	 % привет мир

translation tables:
	 a : а
	 b : б
	 d : д
	 e : е
	 f : ф
	 g : г
	 i : и
	 j : ж
	 k : к
	 l : л
	 m : м
	 n : н
	 o : о
	 p : п
	 r : р
	 s : с
	 t : т
	 u : у
	 v : в
	 z : з
	 è : э
	 î : ы
	 ï : й
	 `e : э
	 b- : ь
	 ch : ч
	 i- : ы
	 i_ : й
	 kh : х
	 sh : ш
	 ya : я
	 yo : ё
	 shh : щ
	 ts- : ц
	 you : ю

in server mode:
	 phoru -http=:6060
  -h	show this help
  -http string
    	Run in http server mode, on the given address.
  -v	verbose

Documentation

Overview

Given a (pseudo-)phonetic russian input, phoru outputs (cyrillic) russian.

Index

Constants

This section is empty.

Variables

View Source
var (
	Single = map[string]rune{
		"a": 'а',
		"b": 'б',
		"c": 'с',
		"v": 'в',
		"g": 'г',
		"d": 'д',
		"e": 'е',
		"j": 'ж',
		"i": 'и',
		"ï": 'й',
		"z": 'з',
		"k": 'к',
		"l": 'л',
		"m": 'м',
		"n": 'н',
		"o": 'о',
		"p": 'п',
		"r": 'р',
		"s": 'с',
		"t": 'т',
		"u": 'у',
		"f": 'ф',
		"x": 'х',
		"î": 'ы',
		"è": 'э',
	}
	Double = map[string]rune{
		"yo": 'ё',
		"ch": 'ч',
		"sh": 'ш',
		"ya": 'я',
		"b-": 'ь',
		"b+": 'ъ',
		"i_": 'й',
		"i-": 'ы',
		"`e": 'э',
		"ts": 'ц',
	}
	Triple = map[string]rune{
		"shh": 'щ',
		"you": 'ю',
	}
)
View Source
var Verbose bool

Functions

func Translate

func Translate(r io.Reader) ([]rune, error)

Types

This section is empty.

Directories

Path Synopsis
Given a (pseudo-)phonetic russian input, phoru outputs (cyrillic) russian.
Given a (pseudo-)phonetic russian input, phoru outputs (cyrillic) russian.
Entry point to call the gopherjs generated code from the "regular" js code.
Entry point to call the gopherjs generated code from the "regular" js code.

Jump to

Keyboard shortcuts

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