<div dir="ltr"><div>I think that a two way synchronization for now it's too problematic: we lost too much information going from latex to wiki.<br><br>In the short period we can handle the latex to wiki merge at least.<br></div><div>Obviously we prefer that the user uploads one time the content and then changes it on wiki, but a lot of users would like probably to update content from latex.<br><br></div><div>I think that we can do a diff with a bot when latex is parsed and then produce a file for conflicts, maybe upload it online with a clear markup and ask the user to check.<br><br></div><div>It's necessary to not overwrite online changes obviously..<br><br></div><div>I can work on that with a pywikibot...<br></div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-09 17:25 GMT+01:00 Santiago Saavedra <span dir="ltr"><<a href="mailto:ssaavedra@gpul.org" target="_blank">ssaavedra@gpul.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">IMHO, the cleanest way (for LaTeX users at least) would be to have<br>
dual-way synchronization (that is, LaTeX -> Wiki *plus* Wiki -><br>
LaTeX). Given that, we could go for the following set of actions:<br>
<br>
1) Upload converted LaTeX<br>
2a) Document may be changed on the site<br>
2b) LaTeX source can be also changed<br>
3) LaTeX source gets changes from wiki via diff against (Wiki -> LaTeX markup)<br>
4) LaTeX source can be re-uploaded (changes are now merged locally) as<br>
a new version of the page<br>
<br>
Of course that would be awesome if uploading from LaTeX does not lose<br>
history, because otherwise we would miss most of the wiki thing.<br>
<br>
If we could not have that, we can at least do the diffing/merging on<br>
the wiki side: if we got a marker for versions coming from LaTeX<br>
conversion we could use that as "base" revisions in a 3-way merge.<br>
<br>
Patch theory is complicated :-)<br>
<div class="HOEnZb"><div class="h5"><br>
2015-11-09 11:43 GMT+01:00 Riccardo Iaconelli <<a href="mailto:riccardo@kde.org">riccardo@kde.org</a>>:<br>
> On Monday, November 09, 2015 02:59:35 AM Dario Mapelli wrote:<br>
>> Stupid idea from a newbie:<br>
>> 1) import a latex file and create a course (even with multiple pages)<br>
>> 2) edit some of them<br>
>> 3) import an updated version of the latex and create a new course<br>
>> 4) use something like diff to compare the version online and the new<br>
>> imported version of each page, and let the importer chose whether to keep<br>
>> or discard the changes. And maybe also notify the one who made the<br>
>> discarded changes, so that there is a "double check".<br>
>><br>
>> Maybe this is a nonsense, but i think it is a starting point!<br>
><br>
> The problem if, what is something changed on the website between each import?<br>
> And how do you backport those changes to your TeX?<br>
><br>
> Automating these things is a mess :-)<br>
><br>
> -Riccardo<br>
_______________________________________________<br>
WikiToLearn mailing list<br>
<a href="mailto:WikiToLearn@kde.org">WikiToLearn@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/wikitolearn" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/wikitolearn</a><br>
</div></div></blockquote></div><br></div>