Default document language


#1

Hello,

I would like to ask, if it is possible to get default language of the document (or paragraph, run...). We are working with multilanguage documents, so this property is very important for us.

Thanks,

Roman.


#2

Hi Roman,

Thank you for your interest in Aspose.Word.

This is not possible at the moment but we've logged your request so we will add this feature later.


#3

Hi Roman,

First, this feature turned out to be already exposed. You can retrieve the locale identifier (language) of the run's formatted character using the following properties:

Font.LocaleId

Font.LocaleIdBi

Font.LocaleIdFarEast

Second, we have released Aspose.Word 3.2.2 where the problem with styles losing language in some documents was fixed:

http://www.aspose.com/Community/Blogs/Roman.Korchagin/


#4

Hi Dmitry,

Font.LocaleID is exactly what we need. It works perfect.

Thanks for your help,

Roman.