Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
petarov committed Apr 25, 2024
1 parent a6bf4c2 commit 820357d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ tr.Encode("Стара планина")
// Output: Stara planina
tr.Encode("Горна Оряховица")
// Output: Gorna Oryahovitsa
tr.Encode("БЪЛГАРИЯ")
// Output: BULGARIA
```

# References
Expand Down
17 changes: 12 additions & 5 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@
// 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 := translitbg.New()
// tr.Encode("Стара планина")
// // Output: Stara planina
//
// tr.Encode("Горна Оряховица")
// // Output: Gorna Oryahovitsa
//
// There is an edge case where according to Bulgarian law the name "БЪЛГАРИЯ"
// is an exception to the transliteration rule and must have its "Ъ"
// transformed into a "U" instead of an "A". For example:
//
// tr.Encode("Горна Оряховица")
// // Output: Gorna Oryahovitsa
// tr.Encode("БЪЛГАРИЯ")
// // Output: BULGARIA
package translitbg

0 comments on commit 820357d

Please sign in to comment.