Hi!

Angus Leeming <[EMAIL PROTECTED]> writes:

>
It seems GMane ate my last post, so I try again.
And it doesn't like "top posting" -- or what it thinks it is.


> The diff file looks great. But it's hard to see in detail what's happening.
> Could you post the PreviewLoader.C file (yeah, I'm lazy).

I'll put in your suggestions and post again.

> namespace support = lyx::support;
> using std::ostream;
> typedef list<string> SnippetList;
> 
> is just baaaddd. 

Ah, bad for *.h, ok for *.C? 
Got it.

> There's some whitespace weirdness going on. Use tabs not spaces.

I'll have a talk with Eclipse about that.

> But basically, this file is fine. It's just pulling stuff out of
> PreviewLoader.C, no? 

Yes, and choosing more general parameters.
Grrr, I tried to use "bind(...)" as a parameter and found out that 
this expression has the type "unspecified-1-2" !

> 
> Can you outline what you plan to do from here on in?
> 

Phase 1:
Finish extraction of SnippetConversion. Single responsibility of
that class: collect LaTeX snippets and convert them to graphic
files. Probably will use two start functions: start(...,callback) and
startAndWait(...). Put most parameters into constructor of
SnippetConversion (format, background color, fontscale, ...)

Look into your problem about missing error feedback.

Then test if old preview mechanism still works.

Phase 2:
Modify output_docbook() to collect LaTeX snippets for all math
insets and use SnippetConversion to create PNG files at the end.
Ask JosÃ, Chris and others what formats are needed, where to
put the files, what to do with ascentfraction in Docbook and
what font scale to use. Find reasonable defaults.

Let Docbook users test the patch and convince lyx-devel to include
it into 1.4 :-)

Phase 3:
Polish more Docbook features, maybe a special option dialog for
Docbook, get equation numbering right, 
test with UserGuide converted to Docbook, contact db2latex 
developers for some fixes, ...

Don't know about phase 3, but I would like to finish phase 1 and 2
just to fix some loose ends.


Sounds ok?

/Andreas

Reply via email to