-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2564a1
commit 38b9034
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
GazetteerWeb/src/main/java/me/osm/gazetteer/web/imp/ApacheASCIIFoldTransliterator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package me.osm.gazetteer.web.imp; | ||
|
||
import me.osm.gazetteer.web.utils.TranslitUtil; | ||
|
||
public class ApacheASCIIFoldTransliterator implements Transliterator { | ||
|
||
@Override | ||
public String transliterate(String input) { | ||
return TranslitUtil.translit(input); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
GazetteerWeb/src/main/java/me/osm/gazetteer/web/imp/Transliterator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package me.osm.gazetteer.web.imp; | ||
|
||
|
||
/** | ||
* Transliterator - provides service for | ||
* romanization, ASCII folding and so on. | ||
* | ||
* */ | ||
public interface Transliterator { | ||
public String transliterate(String input); | ||
} |