Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
Le 2 février 2018 23:51:35 GMT+01:00, Pavel Sanda a écrit : >Pavel Sanda wrote: >> commit c19c3899d1b725cb341f6f18e6704a106eb1fc67 >> Author: Pavel Sanda >> Date: Fri Feb 2 23:42:56 2018 +0100 >> >> Add LFUN_DOC_ANONYMIZE, quick fix for #7259. > >Scott, 2.3.0 or 2.3.1? Pavel Isn't this supposed to be named buffer-... ? We do not use the doc suffix already, do we ?
Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
On Sat, Feb 03, 2018 at 04:21:31PM +, Pavel Sanda wrote: > Scott Kostyshak wrote: > > Let's go for 2.3.1. > > Ok. > > > Are you interested in improving it? > > Not really, I just needed quick way how to submit bug examples > without giving confidental material. P Makes sense. Scott signature.asc Description: PGP signature
Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
Andrew Parsloe wrote: > The idea was to try to > maintain paragraph length and hence page break positioning. Sounds like overkill, but you are welcome to improve the lfuns in any way :) Pavel
Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
Scott Kostyshak wrote: > Let's go for 2.3.1. Ok. > Are you interested in improving it? Not really, I just needed quick way how to submit bug examples without giving confidental material. P
Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
On 3/02/2018 11:51 a.m., Pavel Sanda wrote: Pavel Sanda wrote: commit c19c3899d1b725cb341f6f18e6704a106eb1fc67 Author: Pavel Sanda Date: Fri Feb 2 23:42:56 2018 +0100 Add LFUN_DOC_ANONYMIZE, quick fix for #7259. Scott, 2.3.0 or 2.3.1? Pavel Dear Pavel, As far as I can tell (I know no c++) you are replacing all Latin characters with "O". When I first dealt with this problem for my pLyX scripting system I did something similar, but then it occurred to me that a bug might depend on, e.g., placement of a footnote or where exactly a page break occurs (perhaps an interaction with a table), and so, for a second attempt at anonymizing a document, I worked on the principle of a "running anagram" which swallowed a certain number of characters at a time, randomized them then reinserted them in the same word pattern. The idea was to try to maintain paragraph length and hence page break positioning. I suspect that's more trouble than it's worth, but the result has a certain charm. In the attached documents anontest1 is the original, anontest2 the anonymized doc., and anontest3 has replaced every letter with an uppercase "O". The last gives a considerably longer document with "words" protruding into the margins. There are a number of "overfull hbox" warnings when compiled to pdf. Perhaps a lowercase "o" would be better. Andrew (The pLyX system doesn't work with 2.3.0 -- presumably something to do with the needauth mechanism -- so I did the anonymizing in 2.2.3.) --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus anontest1.lyx Description: application/lyx anontest2.lyx Description: application/lyx anontest3.lyx Description: application/lyx
Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
On Fri, Feb 02, 2018 at 10:51:35PM +, Pavel Sanda wrote: > Pavel Sanda wrote: > > commit c19c3899d1b725cb341f6f18e6704a106eb1fc67 > > Author: Pavel Sanda > > Date: Fri Feb 2 23:42:56 2018 +0100 > > > > Add LFUN_DOC_ANONYMIZE, quick fix for #7259. > > Scott, 2.3.0 or 2.3.1? Pavel Let's go for 2.3.1. Thanks for the patch. Are you interested in improving it? I'm guessing not, but in case I'm wrong and you are, it would be easy to set up tests where we check whether our LyX documents still compile after using the LFUN. Scott signature.asc Description: PGP signature
Re: [LyX/master] Add LFUN_DOC_ANONYMIZE, quick fix for #7259.
Pavel Sanda wrote: > commit c19c3899d1b725cb341f6f18e6704a106eb1fc67 > Author: Pavel Sanda > Date: Fri Feb 2 23:42:56 2018 +0100 > > Add LFUN_DOC_ANONYMIZE, quick fix for #7259. Scott, 2.3.0 or 2.3.1? Pavel