public void SymbolPunctuationOnly() { var validChars = ValidCharacters.Load(ksXmlHeader + "<ValidCharacters><WordForming>a\uFFFCb\uFFFCc\uFFFCd\uFFFCe</WordForming>" + "<Numeric>1\uFFFC2\uFFFC3\uFFFC4\uFFFC5</Numeric>" + "<Other>'\uFFFC-\uFFFC#</Other>" + "</ValidCharacters>", "Test WS", null, null, FwDirectoryFinder.LegacyWordformingCharOverridesFile); ILgCharacterPropertyEngine lgCharPropEngineEn = Cache.WritingSystemFactory.get_CharPropEngine( m_wsEn); FwCharacterCategorizer categorizer = new FwCharacterCategorizer(validChars, lgCharPropEngineEn); Assert.IsTrue(categorizer.IsPunctuation('#')); Assert.IsFalse(categorizer.IsWordFormingCharacter('#')); }
public void SymbolPunctuationOnly() { ValidCharacters validChars = ValidCharacters.Load(ksXmlHeader + "<ValidCharacters><WordForming>a\uFFFCb\uFFFCc\uFFFCd\uFFFCe</WordForming>" + "<Numeric>1\uFFFC2\uFFFC3\uFFFC4\uFFFC5</Numeric>" + "<Other>'\uFFFC-\uFFFC#</Other>" + "</ValidCharacters>", "Test WS", null); ILgCharacterPropertyEngine lgCharPropEngineEn = (ILgCharacterPropertyEngine) m_cache.Cache.LanguageWritingSystemFactoryAccessor.get_CharPropEngine( InMemoryFdoCache.s_wsHvos.En); FwCharacterCategorizer categorizer = new FwCharacterCategorizer(validChars, lgCharPropEngineEn); Assert.IsTrue(categorizer.IsPunctuation('#')); Assert.IsFalse(categorizer.IsWordFormingCharacter('#')); }