From b0f170d7df9cff12535d2ecfd146b32b745a8ef8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 18 Jul 2012 17:00:52 +0100 Subject: 0xFFF9 is a better choice for CH_TXTATR_INWORD than 0x0002. a) the default properties for the code point make it not split a word it appears in into two different words in any break mode we have. Which is what we want from a CH_TXTATR_INWORD b) unicode TR#20 gives for the interlinear annotation anchor: "What to do if detected: In a proxy context or browser context, remove U+FFF9", so when we need to strip it from text to run that text through e.g. the spellchecker or word counting then there's a solid precedent for stripping it In addition I *do* want the footnote placeholder to break the word it appears in, that gives the desired wordcount and cursor travelling behaviour The BREAKWORD and other *random* selection of CH_TXTATR are still odd choices, and there's way too many of them. Change-Id: I930ff8ff806af448829bc1a1ae6cb92053e9a284 --- sw/source/filter/rtf/swparrtf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/filter/rtf') diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index a7ca88635a33..8b53d6db4daf 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -3566,7 +3566,7 @@ void SwRTFParser::ReadHeaderFooter( int nToken, SwPageDesc* pPageDesc ) pPam->GetPoint()->nContent--; nPos--; aFtnNote.SetNumStr(rtl::OUString(pTxtNd->GetTxt().GetChar(nPos))); - ((String&)pTxtNd->GetTxt()).SetChar( nPos, CH_TXTATR_INWORD ); + ((String&)pTxtNd->GetTxt()).SetChar( nPos, CH_TXTATR_BREAKWORD ); bDelFirstChar = sal_True; } -- cgit