Пример #1
0
        private void EnsureQuoteAndHyphenWordForming(CoreWritingSystemDefinition wsObj)
        {
            ValidCharacters validChars        = ValidCharacters.Load(wsObj);
            var             fChangedSomething = false;

            if (!validChars.IsWordForming('-'))
            {
                validChars.AddCharacter("-", ValidCharacterType.WordForming);
                fChangedSomething = true;
            }
            if (!validChars.IsWordForming('\''))
            {
                validChars.AddCharacter("'", ValidCharacterType.WordForming);
                fChangedSomething = true;
            }
            if (!fChangedSomething)
            {
                return;
            }
            validChars.SaveTo(wsObj);
        }