Hey: I would say the only way to remove sentinels would be just removing them.
I understand how crazy this might sound, but I dont think it would be -so- complex to fully remove and make a python script guess for importing the edited file. The advantages would be much more than the possible work to do this. Here is a brainstorm on that possibility. Say a leo user creates a file "leoFile". Now he sends the "leoFile" to other user or edits it directly in the file. All the file was stored both in Leo and in the file. Whenever leo opens the file and the file and detects it changed (and was not changed from within leo), the guessing work begins. We start from the last copy edited from Leo (LeoCopy),and have to guess how did that copy change to be the current file being imported (CurrentFile). First, we make a list of "paragraphs" being the contains of each node body in LeoCopy. Now, we try to match, in the same order, that list with the text in CurrentFile. The nodes that match origin-destination can be removed from the list, and verified as unchanged. Now we have a smaller list. Also, CurrentFile should be now an ordered list of the matching versus non-matching blocks of text, so we still have reference of which ones were found or not. Now, respecting the same order in LeoCopy list, we will make a second parsing, this time trying to find the most similar bodies still in the same order. For finishing, we should do the same search, but this time trying to find moved bodies, meaning, not respecting LeoCopy list order. I think this can be made so accurate that when Leo is not able to find a plausible rearrangement/edition for the LeoCopy versus CurrentFile, this will mean that CurrentFile changed so much that they are no longer the same "files". I know about the many flaws of the brainstorm, and while developing such an importer some solutions will seem clearer and more plausible than they probably look through this raw basic description. Well, that is why this is a brainstorm and not an importer script. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
