summaryrefslogtreecommitdiff
path: root/filter/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-08-13 15:07:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-08-13 15:11:20 +0100
commit1a8d78656a5773d285a430f6f88602beda173a8e (patch)
tree2bc8b53071e317be00f64ce69e5f6bddd3aef151 /filter/inc
parentc5b9c197d70a0fb7d75bcedf2d70e6320175e846 (diff)
The missing docs as to the ranges of the MS text categories
especially the definition of Complex Scripts Change-Id: I693936f1dd150aefd4a632530439acf8edcbdd74
Diffstat (limited to 'filter/inc')
-rw-r--r--filter/inc/filter/msfilter/util.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/filter/inc/filter/msfilter/util.hxx b/filter/inc/filter/msfilter/util.hxx
index d772a24f9841..607566a13b49 100644
--- a/filter/inc/filter/msfilter/util.hxx
+++ b/filter/inc/filter/msfilter/util.hxx
@@ -70,6 +70,24 @@ MSFILTER_DLLPUBLIC rtl::OString DateTimeToOString( const DateTime& rDateTime );
MSFILTER_DLLPUBLIC sal_Unicode bestFitOpenSymbolToMSFont(sal_Unicode cBullet,
rtl_TextEncoding& r_ioChrSet, rtl::OUString& r_ioFontName, bool bDisableUnicodeSupport = false);
+
+enum TextCategory
+{
+ latin, //Latin
+ cs, //Complex Script
+ ea, //East Asian
+ sym //Symbol
+};
+
+/** Categorize codepoints according to how MS seems to do it.
+
+ It's been bugging me for ages as to what codepoint MS considers in
+ what category. Tom Jebo has a post suggesting the criteria used here
+ and indicating its been submitting to the standards working group
+ as a proposed resolution.
+*/
+MSFILTER_DLLPUBLIC TextCategory categorizeCodePoint(sal_uInt32 codePoint, const rtl::OUString &rBcp47LanguageTag);
+
}
}