On 17/11/2013 10:49 a.m., Liviu Andronic wrote:
On Sat, Nov 16, 2013 at 10:01 PM, Josh Hieronymus
<[email protected]> wrote:
What are your source and target formats? If you're going from pure text to
pure text, you might be best served writing a small script using a language
like Python.

To my understanding this is indeed what pLyX is doing: it calls a
Python script (which is already tailored to sorting tables) on the LyX
file, takes the desired table and processes it through the script,
then outputs the table within the same LyX file; all from within the
LyX GUI. It's a pretty neat approach.

Liviu

Possibly the list sorting script would be more appropriate -- each string would be an item. The wiki under Examples/pLyX system gives a link to the mailing list archive but I'm happy to forward the relevant files. I'm (rather frantically) working at updating the pLyX scripts at the moment, and packaging them more conveniently.

I also have a LaTeX table sorting package which works with instant preview, i.e. it shows in LyX what the sorted table will look like in the pdf but doesn't sort the LyX file as such. The scripts sort the LyX file.

Finally, Gordon, are you aware of Alt + Up arrow and Alt + Down arrow which will move standard paragraphs up and down and may be all you really need?

Andrew


- Josh

On Nov 16, 2013 2:47 PM, "gordon_cooper" <[email protected]> wrote:

   Does Lyx have the ability to sort strings? I am working with
some relatively large text files, over 200 lines in some cases.
I  have been working in Linux  which can do a line by line sort
but runs into problems when a string is longer than a single
line.

Thanks,
Gordon.



Reply via email to