Re: lyx2lyx conversion routines

2013-05-31 Thread Liviu Andronic
On Thu, May 30, 2013 at 4:27 PM, Richard Heck wrote: > OK, I have fixed this, and I have also done the reversion routine. I am > going to go ahead and commit it. We can work out any other problems we see > more easily at that point. > I've tested trunk and cannot find any residual issues. Looks ve

Re: lyx2lyx conversion routines

2013-05-30 Thread Richard Heck
On 05/29/2013 06:35 PM, Liviu Andronic wrote: Hey Richard, On Wed, May 29, 2013 at 3:37 PM, Richard Heck wrote: I think this is due to other format changes in trunk. New patch attached. Much nicer! The only issue that I still see is when the chunks follow each other as in the attached. Now

Re: lyx2lyx conversion routines

2013-05-29 Thread Liviu Andronic
Hey Richard, On Wed, May 29, 2013 at 3:37 PM, Richard Heck wrote: > I think this is due to other format changes in trunk. New patch attached. > Much nicer! The only issue that I still see is when the chunks follow each other as in the attached. Now the conversion routines lump the chunks togethe

Re: lyx2lyx conversion routines

2013-05-29 Thread Richard Heck
On 05/28/2013 04:42 PM, Liviu Andronic wrote: Richard, On Tue, May 28, 2013 at 6:46 AM, Richard Heck wrote: Try the attached. (The first patch is unchanged.) I still have trouble with this patch (after removing EOL and whitespace issues). When applying it fails on latest trunk: sh>patch -p1

Re: lyx2lyx conversion routines

2013-05-28 Thread Liviu Andronic
Richard, On Tue, May 28, 2013 at 6:46 AM, Richard Heck wrote: > Try the attached. (The first patch is unchanged.) > I still have trouble with this patch (after removing EOL and whitespace issues). When applying it fails on latest trunk: sh>patch -p1 < "0002-A-start-on-lyx2lyx-for-chunks.patch" (

Re: lyx2lyx conversion routines

2013-05-27 Thread Richard Heck
On 05/26/2013 09:35 AM, Liviu Andronic wrote: Hello, On Thu, May 23, 2013 at 10:11 PM, Richard Heck wrote: I have posted a lyx2lyx conversion routine to the bug report http://www.lyx.org/trac/ticket/8588#comment:23 Please test and let me know if there are problems. If so, please post the

Re: lyx2lyx conversion routines

2013-05-27 Thread Richard Heck
On 05/26/2013 09:35 AM, Liviu Andronic wrote: Hello, On Thu, May 23, 2013 at 10:11 PM, Richard Heck wrote: I have posted a lyx2lyx conversion routine to the bug report http://www.lyx.org/trac/ticket/8588#comment:23 Please test and let me know if there are problems. If so, please post the

Re: lyx2lyx conversion routines

2013-05-27 Thread Richard Heck
On 05/26/2013 07:30 AM, Liviu Andronic wrote: On Sun, May 26, 2013 at 12:38 PM, Vincent van Ravesteijn wrote: I had the same error in the first try. After correcting the eol-style of the patch file, everything was ok again. To correct the eol-style I used 'dos2unix' in a Git bash shell. I did

lyx2lyx conversion routines

2013-05-26 Thread Liviu Andronic
Hello, On Thu, May 23, 2013 at 10:11 PM, Richard Heck wrote: > > I have posted a lyx2lyx conversion routine to the bug report > http://www.lyx.org/trac/ticket/8588#comment:23 > Please test and let me know if there are problems. If so, please post the > file causing the problems here, strippe

Re: lyx2lyx conversion routines

2013-05-26 Thread Liviu Andronic
On Sun, May 26, 2013 at 12:38 PM, Vincent van Ravesteijn wrote: > I had the same error in the first try. After correcting the eol-style of the > patch file, everything was ok again. To correct the eol-style I used > 'dos2unix' in a Git bash shell. > I did the EOL corrections using Geany. But if yo

Re: lyx2lyx conversion routines

2013-05-26 Thread Vincent van Ravesteijn
Op 26-5-2013 8:53, Liviu Andronic schreef: Hello Richard, On Sun, May 26, 2013 at 12:24 AM, Richard Heck wrote: These are just whitespace issues. I've fixed them in the attached, which are also rebased to current trunk. I made some partial progress. I managed to apply the first patch only a

Re: lyx2lyx conversion routines

2013-05-25 Thread Liviu Andronic
On Sun, May 26, 2013 at 8:53 AM, Liviu Andronic wrote: > However I'm still stumbling on the second, even after the > post-processing above: >>git apply "0002-A-start-on-lyx2lyx-for-chunks.patch" (15371) > error: patch failed: lib/lyx2lyx/lyx_2_1.py:4152 > error: lib/lyx2lyx/lyx_2_1.py: patch does

Re: lyx2lyx conversion routines

2013-05-25 Thread Liviu Andronic
Hello Richard, On Sun, May 26, 2013 at 12:24 AM, Richard Heck wrote: > These are just whitespace issues. I've fixed them in the attached, which are > also rebased to current trunk. > I made some partial progress. I managed to apply the first patch only after I stripped trailing spaces from the p

Re: lyx2lyx conversion routines

2013-05-25 Thread Richard Heck
On 05/25/2013 03:54 PM, Liviu Andronic wrote: Dear Richard, I must admit that I'm a bit lost. On Sat, May 25, 2013 at 12:20 AM, Richard Heck wrote: Try: git apply FILE.patch That should work. The patches are based off 01add2d52f, so you could do: git checkout -b Chunks 01add2d52f fi

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-25 Thread Liviu Andronic
Dear Richard, I must admit that I'm a bit lost. On Sat, May 25, 2013 at 12:20 AM, Richard Heck wrote: > Try: > git apply FILE.patch > That should work. The patches are based off 01add2d52f, so you could do: > git checkout -b Chunks 01add2d52f > first, if you want. > I tried to apply the

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-24 Thread Richard Heck
On 05/24/2013 05:55 PM, Liviu Andronic wrote: On Thu, May 23, 2013 at 10:11 PM, Richard Heck wrote: I have posted a lyx2lyx conversion routine to the bug report http://www.lyx.org/trac/ticket/8588#comment:23 Please test and let me know if there are problems. If so, please post the Richar

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-24 Thread Liviu Andronic
On Thu, May 23, 2013 at 10:11 PM, Richard Heck wrote: > > I have posted a lyx2lyx conversion routine to the bug report > http://www.lyx.org/trac/ticket/8588#comment:23 > Please test and let me know if there are problems. If so, please post the > Richard, I'm afraid I'm having problems with app

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Richard Heck
I have posted a lyx2lyx conversion routine to the bug report http://www.lyx.org/trac/ticket/8588#comment:23 Please test and let me know if there are problems. If so, please post the file causing the problems here, stripped down to be as minimal as possible. I have not yet written the REversio

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Liviu Andronic
On Thu, May 23, 2013 at 6:14 PM, Richard Heck wrote: > > So we take what's in the first Chunk paragraph, strip off the << and >>= > delimiters, and put that into the argument of the Chunk inset. > Yes. Often after stripping the contents will be an empty string (""). Then I think there is no need t

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Richard Heck
So we take what's in the first Chunk paragraph, strip off the << and >>= delimiters, and put that into the argument of the Chunk inset. Then we take everything up to the last Chunk paragraph, put that as a sequence of paragraphs into the Chunk inset, and discard the last Chunk paragraph. Yes?

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Liviu Andronic
Richard, I'm sorry but I gave you an imperfect equivalent for the inset example. The attached knitr-new.lyx is better, and also uses the argument inset. The relevant bits are: \begin_layout Standard \begin_inset Flex Chunk status open \begin_layout Plain Layout \begin_inset Argument 1 status ope

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Richard Heck
So the relevant bits of these files look like: \begin_layout Chunk <>= \end_layout \begin_layout Chunk 2+2 \end_layout \begin_layout Chunk @ \end_layout and: \begin_layout Standard \begin_inset Flex Chunk status open \begin_layout Plain Layout 2+2 \end_layout \end_inset \end_layout Is i

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Liviu Andronic
Hello Richard, On Thu, May 23, 2013 at 3:55 PM, Richard Heck wrote: >> provide the lyx2lyx bits. We need to take any sequence of Chunk >> layouts and replace them by a Chunk inset. If the Chunk has some >> alignments parameters, they should be given to the Standard layout >> paragraph that holds

Re: lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-23 Thread Richard Heck
On 05/18/2013 03:02 AM, Liviu Andronic wrote: Dear all, JMarc and I decided to go ahead with the Chunk inset for the literate modules in 2.1, and now we're only missing the lyx2lyx conversion routines. Now the patch is available on the bug tracker ( http://www.lyx.org/trac/ticket

lyx2lyx conversion routines (was: Re: #8588: add Sweave Chunk inset)

2013-05-18 Thread Liviu Andronic
Dear all, JMarc and I decided to go ahead with the Chunk inset for the literate modules in 2.1, and now we're only missing the lyx2lyx conversion routines. Now the patch is available on the bug tracker ( http://www.lyx.org/trac/ticket/8588 : litinsets.inc and sweave-knitr-noweb-inset-chunk.