Why translation memory provider didn't support highlight function?

之前有人提出了这个问题,这里显示的是代码,因此仍然没有不一致的显示。

我们都知道SDL本地文件TM支持高亮显示输入文本和返回源文本之间的差异,如下所示:

Howerver, Our plugin which implements translation provider function can't display the difference, the result is:

API上说是要计算返回的SearchResult 对象的
searchResult.ScoringResult.EditDistance属性值。

My implementation function is:

private EditDistance getEditDistance(CultureInfo cultureInfo, String text, String source)
{
TokenizerSetup setup = new TokenizerSetup();
setup.Culture = cultureInfo;
TokenizerParameters parameters = new TokenizerParameters(setup, null);
Tokenizer tokenizer = new Tokenizer(parameters);
List<Token> textTokenList = tokenizer.Tokenize(text);
List<Token> sourceTokenList = tokenizer.Tokenize(source);
EditDistanceComputer<Token> editDistanceComputer = new EditDistanceComputer<Token>(null);
return editDistanceComputer.ComputeEditDistance(sourceTokenList, textTokenList);
}
Executed, but still no effect
I noticed that the call service implementation sentence match interface has a SearchSettings object, there is a read-only property IsConcordanceSearch, the value is always false, can not show whether the difference is related to this value, if there is any way to make it true What?