Mergely icon indicating copy to clipboard operation
Mergely copied to clipboard

Chinese comparison question

Open Andseny opened this issue 6 years ago • 5 comments

First of all, thank you for letting me know and use such a good plug-in.Now, I have a problem,The contrast between Chinese and English is not the same.When I enter Chinese, if I encounter a difference, there will be a delete line in the whole paragraph,In English, there is a marked word.(As shown in the picture) Is there any way to optimize it?So that Chinese can also get better contrast effect. Thank you again!

ps: 同时,也求助各位国人,有遇到同样问题的吗?就是中文与英文的对比效果不同,当我输入中文时,如果遇到不同,则整个段落都会出现删除线,而英文状态下,则是某个单词会有明显标记。有什么办法处理吗?如下图所示:

default

Andseny avatar Aug 16 '18 07:08 Andseny

Currently, Mergely compares and highlights words. In order to improve rendering of Chinese, it would be necessary to add an enhancement to display diffs by character.

wickedest avatar Aug 16 '18 08:08 wickedest

OK, thank you again, and look forward to a better creation.

Andseny avatar Aug 17 '18 01:08 Andseny

HI, wickedest,

It is possible just change diff algorithm on Mergely? or maybe allow input diff format data like google diff?

when i try this: https://neil.fraser.name/software/diff_match_patch/demos/diff.html if input Chinese : "中文測試" vs "中文不試" , and select [No Cleanup] option, the result will be "中文_不_試". it can work for single Chinese char.

mww-cloud avatar Jan 03 '19 16:01 mww-cloud

It is an enhancement I would like to do. It's on the list, but I cannot say when it will be done.

wickedest avatar Jan 03 '19 22:01 wickedest

Appreciate!

mww-cloud avatar Jan 04 '19 01:01 mww-cloud