When I space between words, and then type a word The space index is shown at the end of the text, while I was the first space, not the last

102 views
Skip to first unread message

saiede Rezaie

unread,
Jun 16, 2021, 5:11:04 PM6/16/21
to Diff Match Patch
hi
my language is persian(right to left),
When I space between words, and then type a word The space index is shown at the end of the new text, while I was the first space, not the last
by in code i get index of changed text for example h=23:
 var h=dmp.DiffCommonPrefix(prev_doc, current);

if i type new insert : 1:space  2:س 

give mechar of index 23=س but is Not true because i type first space

Someone can help me





Reply all
Reply to author
Forward
0 new messages