Re: LyX native format stuck in the middle

2017-08-12 Thread Steve Litt
On Fri, 11 Aug 2017 09:23:06 +0100
José Abílio Matos  wrote:

> On Monday, 31 July 2017 18.30.31 WEST Steve Litt wrote:
> > I know what I'm asking for is monsterously difficult, and I know I
> > certainly don't have the technical chops to do it. But when it gets
> > done, LyX will be a brand new world,  finally living up to its
> > promise of write once, deploy everywhere.
> > 
> > Thanks,
> > 
> > SteveT  
> 
> The main technical problems of this enterprise are the math insets.
> Should they also be converted to an xml like format?

Hi José,

You ask two different questions:

1) Should math insets be well formed XML?

2) MUST math insets be well formed XML?

To #1, yes, it would be nice, and then math insets could be handled via
an XML parser. This is something we'd want to work toward at some
point in the future.

To #2, HECKNO! The perfect is the enemy of the good, so it would be
silly to hold up the rest of the XMLization just for math insets. As
long as you can encapsulate the math insets in an XML tag in a way that
they won't cause an XML parser to choke or abort, that's wonderful: The
XML parser can hand the application programmer the encasing XML node,
and the application programmer can parse apart the math insets
herhimself.

SteveT


Re: LyX native format stuck in the middle

2017-08-11 Thread Richard Heck
On 08/11/2017 04:23 AM, José Abílio Matos wrote:
>
> On Monday, 31 July 2017 18.30.31 WEST Steve Litt wrote:
>
> > I know what I'm asking for is monsterously difficult, and I know I
>
> > certainly don't have the technical chops to do it. But when it gets
>
> > done, LyX will be a brand new world, finally living up to its promise
>
> > of write once, deploy everywhere.
>
> >
>
> > Thanks,
>
> >
>
> > SteveT
>
>  
>
> The main technical problems of this enterprise are the math insets.
> Should they also be converted to an xml like format?
>

Personally, I don't think that would be necessary. There's no payoff for
doing that, so
far as I can see. Any more, say, than special encoding of the contents
of TeX Code.

Richard



Re: LyX native format stuck in the middle

2017-08-11 Thread José Abílio Matos
On Monday, 31 July 2017 18.30.31 WEST Steve Litt wrote:
> I know what I'm asking for is monsterously difficult, and I know I
> certainly don't have the technical chops to do it. But when it gets
> done, LyX will be a brand new world,  finally living up to its promise
> of write once, deploy everywhere.
> 
> Thanks,
> 
> SteveT

The main technical problems of this enterprise are the math insets. Should 
they also be converted to an xml like format?

Regards,
-- 
José Abílio


Re: LyX native format stuck in the middle

2017-08-05 Thread Bob Alvarez
I would like to second Steve Litt's plea for a well-formed Lyx native 
format. I wrote a script to create a package to submit to a journal from 
my paper's Lyx file. The package includes a tex file with the 
bibliography and figure files renamed with standardized names such as 
fig1.eps. It makes copies of the re-named figure files in a subdirectory.


As it stands now, the code will break if I upgrade from my current 
version of Lyx. If there were a well formed native format, my script 
could be written once and used with new versions. I could distribute it 
to Lyx users who need to do this common task.


This is just one example of the Lyx add-ons that Steve envisions.

Bob Alvarez