JAVA API to get the typographically correct quotat

2019-04-03 07:43发布

问题:

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.)

回答1:

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



回答2:

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?



标签: java locale