On Thursday, March 15, 2018 at 9:06:49 PM UTC-5, GPiette wrote: However, if I drag and drop the same node containing accents with the left > mouse button, the dropped copy sees its accents changed to a UTF-8 > multi-character equivalent, both in the node name and also in the text body > of that mouse-moved node. >
Following up on #819: Drag and drop does not preserve encoding <https://github.com/leo-editor/leo-editor/issues/819> There is a missing piece of the puzzle somewhere. For drags within a file, the relevant code is LeoQTreeWidget.*intra*FileDrop. This either moves or clones nodes. In neither case can text change. Indeed, moves and clones merely change pointers from one node to another. There are several ways can imagine trouble happening: 1. Dragging between separate .leo files. In that case the relevant code is def *inter*FileDrop(self, fn, p, s). That does a paste from the clipboard: pasted = c.fileCommands.getLeoOutlineFromClipboard(s, reassignIndices=True) There might be encoding issues there. Are you talking about inter-file drags? 2. Perhaps the changes happened later, after reloading Leo. Did the changes happen immediately or after reloading Leo? Finally, is there any reason why you truly need the @encoding directive. There is more likelihood of success if you can use defaults that match your system. The relevant settings are in leoSettings.leo in the node @settings-->Unicode options. You might try changing those, after backing everything up... Edward -- 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
