I am trying to add a new symbol to punctuation

ILanguageDatabase languageDB = engine.CreateLanguageDatabase();
ITextLanguage textLanguage = languageDB.CreateCompoundTextLanguage("English");
String punctuation = textLanguage.getLetterSet(TextLanguageLetterSetEnum.TLLS_InterwordPunctuators);
log.info("Original punctuation = " + punctuation);
String newPunctuation = punctuation + "₡";
textLanguage.setLetterSet(TextLanguageLetterSetEnum.TLLS_InterwordPunctuators, newPunctuation);
log.info("New  punctuation = " + punctuation);

Output

Original punctuation = !"#$%&'()*+,-./:;<=>?[]_{}£¥§©«°»—’“”„•€■□▲△►▻▼▽◄◅◊◎◦★☆♦✓❖
New punctuation = !"#$%&'()*+,-./:;<=>?[]_{}£¥§©«°»—’“”„•

Why last symbols was deleted after update? And how can I set a custom symbol correctly?

The same issue if I am trying to set a new character to BaseLanguage

String alphabet = language.getLetterSet(BaseLanguageLetterSetEnum.BLLS_Alphabet);
log.debug("Original Alphabet: {}", alphabet);
String newAlphabet = alphabet + "₡");
language.setLetterSet(BaseLanguageLetterSetEnum.BLLS_Alphabet, newAlphabet);
log.debug("New alphabet : {}", language.getLetterSet(BaseLanguageLetterSetEnum.BLLS_Alphabet));

Output

Original Alphabet: '-.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz’
New Alphabet: '-.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

asked 05 Jan '16, 13:55

Andrei's gravatar image

Andrei
111


The problem was fixed by updating to FRE11.1.9

link

answered 14 Jan '16, 11:34

Andrei's gravatar image

Andrei
111

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×2
×1

Asked: 05 Jan '16, 13:55

Seen: 554 times

Last updated: 14 Jan '16, 11:34

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal