Skip to content

能否增加日式汉字的转换 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Leowolf93 opened this issue Mar 30, 2025 · 3 comments
Closed

能否增加日式汉字的转换 #52

Leowolf93 opened this issue Mar 30, 2025 · 3 comments

Comments

@Leowolf93
Copy link

非常感谢

@houbb
Copy link
Owner

houbb commented Apr 12, 2025

v1.13.0 已支持。

@houbb
Copy link
Owner

houbb commented Apr 12, 2025

效果如下:

/**
 * 大陆简体==>标准繁体=》日文
 */
@Test
public void testJpTraditional() {
    String original = "我在日本学习音乐,并学习了龙的字。";
    String result = ZhJpConverterUtil.toTraditional(original);
    Assert.assertEquals("我在日本学習音楽,並学習了竜的字。", result);
}

/**
 * 日文=>标准繁体=>简体
 */
@Test
public void testJpSimple() {
    String original = "我在日本学習音楽,並学習了竜的字。";
    String result = ZhJpConverterUtil.toSimple(original);
    Assert.assertEquals("我在日本学习音乐,并学习了龙的字。", result);
}

@houbb houbb closed this as completed Apr 12, 2025
@Leowolf93
Copy link
Author

@houbb 非常感谢!用上了用上了,辛苦您了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants