pom.xml and README.md update
This commit is contained in:
parent
762d32d3e1
commit
b63900b888
6
.gitignore
vendored
6
.gitignore
vendored
@ -5,4 +5,8 @@ target/
|
|||||||
# Eclipse
|
# Eclipse
|
||||||
.settings/
|
.settings/
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
|
|
||||||
|
#Other
|
||||||
|
.backup/
|
||||||
|
release.properties
|
38
README.md
38
README.md
@ -1,16 +1,34 @@
|
|||||||
|
|
||||||
# romaji-henkan
|
# romaji-henkan
|
||||||
A Java library for converting Japanese text to Latin alphabet (romaji)
|
Romaji-henkan is a simple open-source Java library for converting Japanese text to Latin alphabet (romaji)
|
||||||
|
|
||||||
Powered by [kuromoji](https://github.com/atilika/kuromoji), some part of the code were taken from [moji4j](https://github.com/andree-surya/moji4j).
|
## Example:
|
||||||
|
Add the dependency to your `pom.xml`:
|
||||||
## Usage:
|
```xml
|
||||||
|
<dependency>
|
||||||
```java
|
<groupId>io.github.bernd32</groupId>
|
||||||
import com.bernd32.romajihenkan;
|
<artifactId>romaji-henkan</artifactId>
|
||||||
|
<version>0.0.1</version>
|
||||||
RomajiHenkan henkan = new RomajiHenkan();
|
</dependency>
|
||||||
henkan.convert("自己紹介の最後に添える挨拶として使う表現"); // jikō shōkai nō saigō ni sōeru aisatsu tōshite tsukau hyōgen
|
|
||||||
```
|
```
|
||||||
|
The following code converts string in Japanese to romaji:
|
||||||
|
```java
|
||||||
|
import com.bernd32.romajihenkan.RomajiHenkan;
|
||||||
|
public class RomajiHenkanExample {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
RomajiHenkan henkan = new RomajiHenkan();
|
||||||
|
System.out.println(henkan.convert("自己紹介の最後に添える挨拶として使う表現"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Output:
|
||||||
|
```
|
||||||
|
jikō shōkai nō saigō ni sōeru aisatsu tōshite tsukau hyōgen
|
||||||
|
```
|
||||||
|
## Additional information
|
||||||
|
Powered by [kuromoji](https://github.com/atilika/kuromoji), some part of the code were taken from [moji4j](https://github.com/andree-surya/moji4j).
|
||||||
|
This library is using IPADIC dictionary.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Romaji-henkan is licensed under the MIT License. See `LICENSE.md` for details.
|
Romaji-henkan is licensed under the MIT License. See `LICENSE.md` for details.
|
||||||
|
20
pom.xml
20
pom.xml
@ -20,10 +20,11 @@
|
|||||||
</license>
|
</license>
|
||||||
</licenses>
|
</licenses>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:git@github.com:bernd32/romaji-henkan.git</connection>
|
<connection>scm:git:git://github.com/bernd32/romaji-henkan.git</connection>
|
||||||
|
<developerConnection>scm:git:git@github.com:bernd32/romaji-henkan.git</developerConnection>
|
||||||
<url>https://github.com/bernd32/romaji-henkan/tree/master</url>
|
<url>https://github.com/bernd32/romaji-henkan/tree/master</url>
|
||||||
<tag>romaji-henkan-0.0.1</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>ossrh</id>
|
<id>ossrh</id>
|
||||||
@ -65,16 +66,6 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
|
||||||
<version>3.0.0-M1</version>
|
|
||||||
<configuration>
|
|
||||||
<checkModificationExcludes>
|
|
||||||
<checkModificationExclude>pom.xml</checkModificationExclude>
|
|
||||||
</checkModificationExcludes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
@ -121,6 +112,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
@ -133,7 +125,7 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.atilika.kuromoji</groupId>
|
<groupId>com.atilika.kuromoji</groupId>
|
||||||
<artifactId>kuromoji-ipadic</artifactId>
|
<artifactId>kuromoji-ipadic</artifactId>
|
||||||
<version>0.9.0</version>
|
<version>0.9.0</version>
|
||||||
|
Loading…
Reference in New Issue
Block a user