-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
25 lines (25 loc) · 953 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Package translitbg is a Bulgarian-language transliteration package.
// It complies with the Bulgarian transliteration law which describes the
// "Streamlined System for the Romanization of Bulgarian" as the official
// transliteration method in the country.
//
// The API can be used in a very simple way to encode cyrillic-characters text
// to its corresponding latin-characters version.
//
// Example:
//
// tr := translitbg.New()
// tr.Encode("абвгдежзийклмнопрстуфхцчшщъьюя")
// // Output: abvgdezhziyklmnoprstufhtschshshtayyuya
//
// There are no state-related parameters stored in the translitbg object, so
// the same instance can be used to encode more text without the need to create
// new objects every time.
//
// tr := translitbg.New()
// tr.Encode("Стара планина")
// // Output: Stara planina
//
// tr.Encode("Горна Оряховица")
// // Output: Gorna Oryahovitsa
package translitbg