JAVA API to get the typographically correct quotat

2019-04-03 07:11发布

Is there an API in Java to obtain the typographically correct quotation marks (opening + closing) for a specific Locale?

See for example this table:

https://de.wikipedia.org/wiki/Anf%C3%BChrungszeichen#Andere_Sprachen

(It's in German, but one look at the page and you'll know what I mean.)

标签: java locale
2条回答
Rolldiameter
2楼-- · 2019-04-03 07:45

you can try using ICU4J project, e.g. class LocaleData

查看更多
仙女界的扛把子
3楼-- · 2019-04-03 07:52

Seems like this does not: https://forums.oracle.com/thread/1286548?tstart=90

But why anyway? If you're doing internationalization you have to translate the words and sentences anyway. So why you want to split the quotation marks from the text?

Or do you have something special in mind?

查看更多
登录 后发表回答