Docbook in 2.4.0

2020-11-02 Thread Richard Kimberly Heck

On 11/2/20 9:41 AM, Pavel Sanda wrote:


I would like to point out that the major push for this release was
to get some feedback about new Docbook output format we provide.

If anyone with related expertise could give it a try and provide
us the feedback that would be approeciated...


Just reposting with a new subject line, to try to get more attention.

Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Import Docbook into LyX?

2013-09-12 Thread José Matos
On Wednesday 11 September 2013 03:56:21 Jerry wrote:
> Is it possible to import Docbook files into LyX?
> 
> Jerry

Nope. :-)

At least not directly. And all the other options imply to loose the semantic 
markup.

-- 
José Abílio


Import Docbook into LyX?

2013-09-11 Thread Jerry
Is it possible to import Docbook files into LyX?

Jerry


Re: Why no docbook export on LyX 2.03?

2013-07-05 Thread Wolfgang Keller
> No, I'm using a derivative of the LaTeX Book style. Shouldn't I be
> able to export to docbook anyway?

Of course not, since the document structure(s) won't match.

To be able to export to docbook, you need to use a LaTeX document class
that matches the docbook structure.

And even then, LyX afaik does not enforce a "schema" like XML/SGML
editors do, so you can still end up accidentally creating a document
that wouldn't validate/convert.

Sincerely,

Wolfgang


Re: Why no docbook export on LyX 2.03?

2013-07-04 Thread Richard Heck

On 07/04/2013 01:43 PM, Steve Litt wrote:

On Thu, 04 Jul 2013 13:36:40 -0400
Richard Heck  wrote:


On 07/04/2013 01:17 PM, Steve Litt wrote:

Hi all,

Why is there no docbook export on LyX 2.03?

Are you using one of the DocBook classes?

rh


No, I'm using a derivative of the LaTeX Book style. Shouldn't I be able to 
export to docbook anyway?


No, you have to use a DocBook class. Try switching the class. You may 
have to fix some things, though.


Richard



Re: Why no docbook export on LyX 2.03?

2013-07-04 Thread Steve Litt
On Thu, 04 Jul 2013 13:36:40 -0400
Richard Heck  wrote:

> On 07/04/2013 01:17 PM, Steve Litt wrote:
> > Hi all,
> >
> > Why is there no docbook export on LyX 2.03?
> 
> Are you using one of the DocBook classes?
> 
> rh
> 

No, I'm using a derivative of the LaTeX Book style. Shouldn't I be able
to export to docbook anyway?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Why no docbook export on LyX 2.03?

2013-07-04 Thread Richard Heck

On 07/04/2013 01:17 PM, Steve Litt wrote:

Hi all,

Why is there no docbook export on LyX 2.03?


Are you using one of the DocBook classes?

rh



Why no docbook export on LyX 2.03?

2013-07-04 Thread Steve Litt
Hi all,

Why is there no docbook export on LyX 2.03?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: No bibliography environment in DocBook document class

2012-12-12 Thread José Matos
On 12/11/2012 03:35 PM, Nico Williams wrote:
> OK, thanks :) that's the answer I was hoping for. Not that I have time
> to contribute code here, but just for my edification: where would I
> look in the source code? In particular I'm using the docbook class but
> exporting to LyXHTML. I'm not sure why I'm doing that -- only that
> I've found that to work best for my purposes (namely: that more
> metadata gets preserved in the resulting XHTML). Thanks! 

Search for docbook methods, you will see them near xhtml methods.
Usually this is a good place to start.

As an example every insert has an export method.

Initial the process to export starts in src/Buffer.cpp then goes to
src/output_docbook.cpp and from there is delegated to the different
elements.

This is the short version. :-)

After this short walk trough if you still have doubts then the next step
is to ask here. :-)

-- 
José Matos



Re: No bibliography environment in DocBook document class

2012-12-11 Thread Nico Williams
On Mon, Dec 10, 2012 at 5:22 PM, José Matos  wrote:
> On 12/10/2012 10:46 PM, Nico Williams wrote:
>> Why is there no bibliography environment in the DocBook document
>> classes?  There must be a reason, of course, but then, bibtex is still
>> supported, so that's strange...
>
> The reason why it was never implemented is/was lake of time, no more no
> less. :-)

OK, thanks :) that's the answer I was hoping for.  Not that I have
time to contribute code here, but just for my edification: where would
I look in the source code?  In particular I'm using the docbook class
but exporting to LyXHTML.  I'm not sure why I'm doing that -- only
that I've found that to work best for my purposes (namely: that more
metadata gets preserved in the resulting XHTML).

Thanks!


Re: No bibliography environment in DocBook document class

2012-12-10 Thread José Matos
On 12/10/2012 10:46 PM, Nico Williams wrote:
> Why is there no bibliography environment in the DocBook document
> classes?  There must be a reason, of course, but then, bibtex is still
> supported, so that's strange...
>
> Nico
> --

The reason why it was never implemented is/was lake of time, no more no
less. :-)

-- 
José Matos



No bibliography environment in DocBook document class

2012-12-10 Thread Nico Williams
Why is there no bibliography environment in the DocBook document
classes?  There must be a reason, of course, but then, bibtex is still
supported, so that's strange...

Nico
--


Re: docbook export and underlined text?

2011-11-08 Thread José Matos
On 11/05/2011 03:30 AM, Michael Joyner wrote:
> Good afternoon/morning all,
>
> I am using the docbook article class, and when I hit "preview" and it
> pulls up in the web browser, the text I have marked as "underlined" is
> not exported as underlined. Is this a bug or is this intentional ?
>
> Using Lyx Version 2.0.1
>
> Thanks!
>
> -Mike
>
> -- 
>
>   * Learn to speak Cherokee: http://www.cherokeelessons.com/
>   * Cherokee Language Help
> BBS/Chat: http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
>   * Cherokee Lessons PDF made with: http://www.lyx.org/
>

The only problem is that should be the markup to do so in docbook.
Underline is physical markup while docbook has logical markup, one
option would be to pass underline as ... but that would depend on its support by
the exporting tools...

-- 
José Matos



Re: docbook export and underlined text?

2011-11-06 Thread Pavel Sanda
Michael Joyner wrote:
> Good afternoon/morning all,
> 
> I am using the docbook article class, and when I hit "preview" and it pulls
> up in the web browser, the text I have marked as "underlined" is not
> exported as underlined. Is this a bug or is this intentional ?

i guess not intended, put it into bug tracker.
pavel


docbook export and underlined text?

2011-11-04 Thread Michael Joyner
Good afternoon/morning all,

I am using the docbook article class, and when I hit "preview" and it pulls
up in the web browser, the text I have marked as "underlined" is not
exported as underlined. Is this a bug or is this intentional ?

Using Lyx Version 2.0.1

Thanks!

-Mike

-- 

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: lyx 2.0.1 export docbook->dvi error element DUMMY undefined

2011-10-30 Thread Phil Moors
On Sun, Oct 30, 2011 at 12:25:04PM +0100, Vincent van Ravesteijn wrote:
> Date: Sun, 30 Oct 2011 12:25:04 +0100
> From: Vincent van Ravesteijn 
> Subject: Re: lyx 2.0.1 export docbook->dvi error element DUMMY undefined
> To: Phil Moors 
> CC: lyx-users 
> 
> >Are the dummy tags supposed to come over from the lyx doc? Is this
> >a docbook toolchain misconfig on Fedora's part? TIA Phil
> 
> This is: http://www.lyx.org/trac/ticket/7004.
> 
> I already proposed a patch to fix this last year, but no-one has
> been around to verify the validity of the fix and to explain me how
> to handle things like footnotes.
> 
> I think I will commit the fix anyway now.
> 

Ah. Thank you. I'll look for it and test. I can then put in a ticket
with Fedora asking them to roll out an update.

Thanks,
Phil



Re: lyx 2.0.1 export docbook->dvi error element DUMMY undefined

2011-10-30 Thread Vincent van Ravesteijn
Are the dummy tags supposed to come over from the lyx doc? Is this a 
docbook toolchain misconfig on Fedora's part? TIA Phil 


This is: http://www.lyx.org/trac/ticket/7004.

I already proposed a patch to fix this last year, but no-one has been 
around to verify the validity of the fix and to explain me how to handle 
things like footnotes.


I think I will commit the fix anyway now.

Vincent


lyx 2.0.1 export docbook->dvi error element DUMMY undefined

2011-10-29 Thread Phil Moors
OS: Fedora 15 (Linux)
"Authoring and Publishing" group installed from Fedora
lyx 2.0.1 installed from Fedora

To reproduce:
New from template->docbook_article.lyx
SaveAs test.lyx
export docbook  # this works without error
export dvi

# errors #
Using catalogs: /etc/sgml/sgml-docbook-4.2.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print
Working on: /tmp/lyx_tmpdir.TJ/lyx_tmpbuf2/test.sgml
jade:/tmp/lyx_tmpdir.TJ/lyx_tmpbuf2/test.sgml:14:17:E: element "DUMMY" 
undefined
jade:/tmp/lyx_tmpdir.TJ/lyx_tmpbuf2/test.sgml:14:56:E: element "DUMMY" 
undefined
Systemcall.cpp(259): Systemcall: 'db2dvi "test.sgml"' finished with exit code 8
Error: Cannot convert file

An error occurred while running:
db2dvi "test.sgml"
##

I get the same errors when running docbook2dvi on test.sgml.

Within test.lyx there is this (compacted):

\begin_layout Author
\begin_inset Flex Firstname
status collapsed
\begin_layout Plain Layout
Joe
\end_layout
\end_inset

\begin_inset Flex Surname
status collapsed
\begin_layout Plain Layout
Doe
\end_layout
\end_inset
\end_layout

The sgml generated looks like this:





 ]>




Title
Date 
JoeDoe
Abstract

First Section
First paragraph.


Are the dummy tags supposed to come over from the lyx doc? Is this a
docbook toolchain misconfig on Fedora's part?

TIA
Phil








Re: DocBook and Graphics

2010-10-28 Thread José Matos
On Monday 12 July 2010 13:21:25 Peter Lipp wrote:
> Hi,
> 
> as a newbie I started writing a document using the docbook/chapter
> class. I can perfectly embed images, I do see them in lyx but not when I
> preview.
> 
> Just to test, I changed the class to "book" (non-docbook), and there
> preview works perfectly.
> 
> Any hints on what might be wrong and also how I could have found out
> myself are very much appreciated!

Probably you have already fixed this but here it goes. IIRC nn docbook the 
figures should go inside a frame (the graphics float in latex parlance).

> Thanks
> Peter

-- 
José Abílio


Re: DocBook informaltable dummy node

2010-10-28 Thread José Matos
On Monday 26 July 2010 11:30:42 Remy Chibois wrote:
> Hi everybody,

I am sorry really busy and just now cleaning my email list.

> I'm authoring a document using "DocBook book (SGML)" document class.
> 
> When inserting a table using the "Insert table" icon from the menu bar
> and exporting to "DocBook" (either SGML or XML), the resulting
> file contains:
> 
> [...]
> Sample Cell
> Content [...]
> 
> That is, the cell content is enclosed in a "dummy" tag.

That is a bug in lyx. "dummy" is the name given to a standard paragraph for 
the latex code, so I suspect that this name is leaking to the docbook class.

Certainly this is a bug in lyx.

> Is there any mean to avoid this ?

A workaround would be to filter the document to remove the  and 
 tags. The real solution is to fix the bug in the lyx code.

Could you please fill a bug in lyx so this bug does not get forgotten?

> Thank you.

Thanks,
-- 
José Abílio


Re: DocBook informaltable dummy node

2010-08-19 Thread Pavel Sanda
Remy Chibois wrote:
> Hi everybody,
> 
> I'm authoring a document using "DocBook book (SGML)" document class.
> 
> When inserting a table using the "Insert table" icon from the menu bar
> and exporting to "DocBook" (either SGML or XML), the resulting
> file contains:
> 
> [...]
> Sample Cell Content
> [...]
> 
> That is, the cell content is enclosed in a "dummy" tag.
> 
> Is there any mean to avoid this ?

please fill bug in our bug tracker...
pavel



DocBook informaltable dummy node

2010-07-26 Thread Remy Chibois
Hi everybody,

I'm authoring a document using "DocBook book (SGML)" document class.

When inserting a table using the "Insert table" icon from the menu bar
and exporting to "DocBook" (either SGML or XML), the resulting
file contains:

[...]
Sample Cell Content
[...]

That is, the cell content is enclosed in a "dummy" tag.

Is there any mean to avoid this ?

Thank you.

-- 
Rémy Chibois

Re: DocBook and Graphics

2010-07-14 Thread Peter Lipp
Regarding my previous question:

I now tried to execute some commands by hand, and when doing

sgmltools -b pdf filename.sgml

I get the following errors (and many more)

/usr/bin/openjade:0:3:0:E: prolog can't be omitted unless CONCUR
NO and LINK EXPLICIT NO and either IMPLYDEF ELEMENT YES or IMPLYDEF
DOCTYPE YES
/usr/bin/openjade:0:3:0:E: no document type declaration; will
parse without validation
/usr/bin/openjade:0:7:28:W: cannot generate system identifier for
general entity "ldquo"

Seems to be some mismatch in tool versioning. Maybe this helps you to
help me ... :-)
Peter



smime.p7s
Description: S/MIME Cryptographic Signature


DocBook and Graphics

2010-07-12 Thread Peter Lipp
Hi,

as a newbie I started writing a document using the docbook/chapter
class. I can perfectly embed images, I do see them in lyx but not when I
preview.

Just to test, I changed the class to "book" (non-docbook), and there
preview works perfectly.

Any hints on what might be wrong and also how I could have found out
myself are very much appreciated!

Thanks
Peter



smime.p7s
Description: S/MIME Cryptographic Signature


Re: DocBook in LyX 2.0 ? (was: Re: r29997 - lyx-devel/trunk/src)

2009-06-08 Thread Ethan Metsger

On Sat, 06 Jun 2009 11:13:50 -0400, Pavel Sanda  wrote:

its my impression that some of the problems people have to tackle now  
when
using docbook would be in fact just a few lines of code change. the  
problem is
that i basically know nothing about the issues around docbook/sgml etc.  
but it
may be easy for for people using docbook agree on what is to be changed  
wrt the

lyx output?


I actually still owe Jose an email about this--it's been sitting in my  
inbox for several months now.


We decided to use Docbook here since it's an industry standard among our  
peers, and it seemed a reasonable thing to do to stay current with them  
all.  I had hoped to spur the adoption of LyX (I've been using it for  
awhile), but it turns out that the Docbook support wasn't quite mature  
enough to get us there.


In particular, we were looking for Docbook 5.0 support, and I think that  
LyX for awhile has been stuck at 4.2.  The XML elements for 5.0 are  
somewhat different (my knowledge of 4.2 is pretty slim, so I can't say  
exactly how they differ--but I had some validation issues when doing  
document conversion).


I would think that one priority would be producing XML that complies with  
version 5.0.  I'm hardly an expert on this, but if I can be of some  
reasonable help, I'll do it.



I confess that my vision was essentially having LyX to produce PDFs that  
were easier to work with (munging stylesheets and tweaking FO output is  
not at all something I'm interested in doing, but I've had to) and XML  
that can be more easily transformed into nice HTML--something that's an  
absolute must if you're going to publish documentation in multiple forms.


If LyX could provide even a basic (but valid) output to Docbook XML (with  
minimal stylistic markup--the normal ones like emphasis, bold, code, et  
c.), transforming the HTML wouldn't be such a difficult thing using free  
toolchains.


As it stands, we use Oxygen's XML editor for writing our documentation; we  
probably won't change any time soon, but it would be fantastic if there  
were a reasonable workflow for using LyX.



Best,

Ethan
(emets...@obj-sys.com)


Re: DocBook in LyX 2.0 ?

2009-06-06 Thread rgheck

Pavel Sanda wrote:

rgh...@lyx.org wrote:
  

Author: rgheck
Date: Sat Jun  6 16:29:24 2009
New Revision: 29997
URL: http://www.lyx.org/trac/changeset/29997

Log:
Add a note about docbook() problems.



while we are it - i just quickly browsed through the few links about hacking 
docbook
output of lyx listed in http://wiki.lyx.org/LyX/DocBook.

its my impression that some of the problems people have to tackle now when
using docbook would be in fact just a few lines of code change. the problem is
that i basically know nothing about the issues around docbook/sgml etc. but it
may be easy for for people using docbook agree on what is to be changed wrt the
lyx output?

i'm thus CC-ing the people for which i have found mails - docbook folks if you
want a little better support of docbook in lyx 2.0 this is the right time to
give us some advices while we are focused on the output issues of html which
are kind of parallel.

  
Thanks for doing this. It's a good idea to try to tackle both these 
problems. In many cases, the only real question is: What should the 
output look like? Making it look like that isn't hard, once you have a 
sense for how the output routines work.


rh



DocBook in LyX 2.0 ? (was: Re: r29997 - lyx-devel/trunk/src)

2009-06-06 Thread Pavel Sanda
rgh...@lyx.org wrote:
> Author: rgheck
> Date: Sat Jun  6 16:29:24 2009
> New Revision: 29997
> URL: http://www.lyx.org/trac/changeset/29997
> 
> Log:
> Add a note about docbook() problems.

while we are it - i just quickly browsed through the few links about hacking 
docbook
output of lyx listed in http://wiki.lyx.org/LyX/DocBook.

its my impression that some of the problems people have to tackle now when
using docbook would be in fact just a few lines of code change. the problem is
that i basically know nothing about the issues around docbook/sgml etc. but it
may be easy for for people using docbook agree on what is to be changed wrt the
lyx output?

i'm thus CC-ing the people for which i have found mails - docbook folks if you
want a little better support of docbook in lyx 2.0 this is the right time to
give us some advices while we are focused on the output issues of html which
are kind of parallel.

pavel


Re: Lyx and DocBook

2009-04-16 Thread Pavel Sanda
Richard Heck wrote:
>> This mailing lists contains occasional requests for help, but not too much
>> information.  If it wasn't for the information at
>> http://www.neomantic.com/tutorials/lyx-and-docbookXML I would have 
>> concluded
>> that DocBook support in Lyx had been effectively abandoned.
>>
>>   
> No, it still exists. Not many people use it, though, so how current it is, 
> etc, is unclear. That said, however, there are some developers who pay 
> attention to DocBook, and I think it's intended that it be usable.

frankly, docbook in lyx is _effectively_ abandoned for a long time.
i can't remember anybody working on this field during last few years
- the only activity are the manuals how to bypass lyx problems by
third party tools and hopeless call for help from time to time on this
list ;)

out of curiosity i just crawled through logs and commits with comments like
 * src/insets/InsetFloat.{cpp, h}:
- let nested floats be subfloats
NOTE: docbook support is missing.

make me wonder how many newer lyx parts are able to cope with docbook at all :)
pavel


Re: Lyx and DocBook

2009-04-14 Thread Nikos Alexandris

Ian:
> > It also lists Lyx which seems a mature and usable tool for Latex,
> > and produces highly attractive PDF documents.  I read though that getting
> > attractive HTML out of it is difficult.

Richard:
> I''m getting good results out of the new tool ELyXer.
> http://wiki.lyx.org/Tools/ELyXer

Me too! It's the first time ever I get something useful.


> There have been a couple of threads about ELyXer on this mailing list.
> It's new and has some limitations. For instance, no TOC generation
> yet.

> However, the tool's author, Alex Fernandez, really likes getting
> challenging documents and making ELyXer work with them.

I second that comment :-)

Kindest regards, Nikos



Re: Lyx and DocBook

2009-04-13 Thread rgheck

Ian S. Worthington wrote:

If I understand correctly I have to choose a target language for Lyx from the
start:  I can't start off with Latex and then later decide to I want to target
DocBook, for example.

  
No, you can switch the documents. There may be some issues about how 
different bits of formatting get converted that will make things easier 
or more difficult. But these can often be resolved using an external 
script of some sort (sed, awk, perl, etc).



This mailing lists contains occasional requests for help, but not too much
information.  If it wasn't for the information at
http://www.neomantic.com/tutorials/lyx-and-docbookXML I would have concluded
that DocBook support in Lyx had been effectively abandoned.

  
No, it still exists. Not many people use it, though, so how current it 
is, etc, is unclear. That said, however, there are some developers who 
pay attention to DocBook, and I think it's intended that it be usable.



I wonder then if someone could help me with the following:
 
1. Am I right in my thinking that if I want good quality HTML and potentially

CHM output, as well as PDF, then DocBook is the way to go rather than Latex?

  
Possibly, though there are a lot of options for HTML now. You might 
check out plastex, which looks to me to be the most promising.



2. And that if I want DocBook, then I need to be using that from the start?

  

Not necessarily. See above.


3. Is DocBook development in Lyx abandonded or is it just quiet for the moment?

  
See above again. Though perhaps it's worth my saying what "DocBook 
development" is. There are just two aspects to it: (i) The DocBook 
layouts; (ii) the DocBook output routines. Both of these could be worked 
on by newbies, to some extent, certainly the layouts and very probably 
the output routines.



4. Is there any documentation on what a user of the latest version of Lyx has
to do to resolve the "unavailable class" messages when using DocBook, and what
they need to install in 2009 to get output from it.

  
I'm not sure. But looking at configure.py, it seems that you need 
sgmltools installed, or else db2dvi or db2html.


I'm cc'ing Martin Vermeer, as I think he knows about this

Richard



Thanks,

i






  




Re: Lyx and DocBook

2009-04-13 Thread Richard Talley
On Mon, Apr 13, 2009 at 4:13 PM, Ian S. Worthington
 wrote:
>
> It also lists Lyx which seems a mature and usable tool for Latex,
> and produces highly attractive PDF documents.  I read though that getting
> attractive HTML out of it is difficult.
>

I''m getting good results out of the new tool ELyXer.

http://wiki.lyx.org/Tools/ELyXer

There have been a couple of threads about ELyXer on this mailing list.
It's new and has some limitations. For instance, no TOC generation
yet.

However, the tool's author, Alex Fernandez, really likes getting
challenging documents and making ELyXer work with them.

-- Rich


Lyx and DocBook

2009-04-13 Thread Ian S. Worthington
I'm trying to find a content markup system (authoring and processing) that can
output to various formats. Something which can be both viewed and printed,
such as PDF, is probably a must, and something easily accessed online, such as
HTML is close behind.  If I could also produce CHM (or similar) Windows help
files that would be nice too.

I come from a IBM BookMaster background so I'm comfortable with content
markup, and don't really need an authoring tool to work with it.  DocBook
seems to fit most of my needs but the markup syntax is user-hostile.  The
DocBook wiki points to a number of authoring tools, most of which are just
generic XML editors.  The only DocBook-specific tool there verges on the
unusable.  It also lists Lyx which seems a mature and usable tool for Latex,
and produces highly attractive PDF documents.  I read though that getting
attractive HTML out of it is difficult.

If I understand correctly I have to choose a target language for Lyx from the
start:  I can't start off with Latex and then later decide to I want to target
DocBook, for example.

So having got Lyx installed I'm looking in more detail at DocBook.  A lot of
the information seems to be out of date.  There's a Lyx-to-X project that only
works up to v1.2.0 of Lyx, and some old discussions on various sites of
needing sgmltools, sgmltools-lite, or maybe sgmltools2, which appear to have
been abandoned some years ago.

This mailing lists contains occasional requests for help, but not too much
information.  If it wasn't for the information at
http://www.neomantic.com/tutorials/lyx-and-docbookXML I would have concluded
that DocBook support in Lyx had been effectively abandoned.

I wonder then if someone could help me with the following:
 
1. Am I right in my thinking that if I want good quality HTML and potentially
CHM output, as well as PDF, then DocBook is the way to go rather than Latex?

2. And that if I want DocBook, then I need to be using that from the start?

3. Is DocBook development in Lyx abandonded or is it just quiet for the
moment?

4. Is there any documentation on what a user of the latest version of Lyx has
to do to resolve the "unavailable class" messages when using DocBook, and what
they need to install in 2009 to get output from it.

Thanks,

i








Re: LyX and Docbook/XML

2008-12-03 Thread José Matos
On Wednesday 26 November 2008 20:13:29 Ethan Metsger wrote:
> On Wed, 26 Nov 2008 14:48:26 -0500, José Matos <[EMAIL PROTECTED]> wrote:
> > I would have done before if I had not been victim of a cold. :-)
>
> I'm currently recovering from one, too--no worries about the delay.
>
> > What are the problems that you have encountered. I am interested to fix
> > them
> > in both the stable and the development series.
> >
> > I am specially interested in the problems you are having with the xml
> > generated docbook.
>
> I'll file some bug reports (and throw them back in this thread), but in

Please do.

> general it looks like the  tag is improperly generated (using
> 'lang="EN_US"' appears to be invalid), and I have not been able to get

OK, the right language should be "EN", I thought I had this working, I will 
fix it. The best fix would probably to have a list of supported stylesheet 
languages and if necessary return the nearest.

> graphics properly embedded in the HTML output.  The  section
> is also not properly outputted; I suspect this can be fixed pretty easily
> by layout changes, but I'm not sure.

A better error handling would allow to understand what the error is.

> The user-customized preamble is put into the doctype declaration, too--I
> don't really consider this a bug, but I was a little surprised to find it
> in the output.

The rationale is that is the only place where you can define entities. This is 
more or less the analog of latex preamble although you do more in latex than 
just to define constants.

> LyX is also a few revisions behind in its DocBook support, at least
> according to the doctype (I think 4.4 is the last 4.x revision, and 5.x is
> current; the generated XML says that it's using 4.2).

That can be easily changed in the layout file. I should have updated the 
layout before the last update to 1.6.0. Again one of the problems it that this 
is not documented.

> I've used both the sgmltools package and the sgml2x package.  I'll make
> sure to describe the pertinent information in the bugzilla filings when
> the time comes, as the two seem to work slightly differently.
>
> Thanks again for all your hard work, guys; I really do appreciate it.

Thanks,

> Best,
>
> Ethan
> ([EMAIL PROTECTED])

-- 
José Abílio



Re: LyX and Docbook/XML

2008-11-26 Thread Ethan Metsger


On Wed, 26 Nov 2008 14:48:26 -0500, José Matos <[EMAIL PROTECTED]> wrote:


I would have done before if I had not been victim of a cold. :-)


I'm currently recovering from one, too--no worries about the delay.

What are the problems that you have encountered. I am interested to fix  
them

in both the stable and the development series.

I am specially interested in the problems you are having with the xml
generated docbook.


I'll file some bug reports (and throw them back in this thread), but in  
general it looks like the  tag is improperly generated (using  
'lang="EN_US"' appears to be invalid), and I have not been able to get  
graphics properly embedded in the HTML output.  The  section  
is also not properly outputted; I suspect this can be fixed pretty easily  
by layout changes, but I'm not sure.


The user-customized preamble is put into the doctype declaration, too--I  
don't really consider this a bug, but I was a little surprised to find it  
in the output.


LyX is also a few revisions behind in its DocBook support, at least  
according to the doctype (I think 4.4 is the last 4.x revision, and 5.x is  
current; the generated XML says that it's using 4.2).


I've used both the sgmltools package and the sgml2x package.  I'll make  
sure to describe the pertinent information in the bugzilla filings when  
the time comes, as the two seem to work slightly differently.


Thanks again for all your hard work, guys; I really do appreciate it.

Best,

Ethan
([EMAIL PROTECTED])


Re: LyX and Docbook/XML

2008-11-26 Thread José Matos
On Friday 21 November 2008 16:18:35 Ethan Metsger wrote:
> Hi, all.
>
> I promise I'll be quiet after this post--I don't mean to pester (or imply  
> by any stretch that I'm unhappy with LyX in general!).  But can anyone  
> comment on this?

I would have done before if I had not been victim of a cold. :-)

> For what it's worth, I really do like LyX, and I'm not trying to troll or  
> put on anyone.  I'm just curious about the capabilities and hoping not a  
> little to spur its adoption among my general work populace.

What are the problems that you have encountered. I am interested to fix them 
in both the stable and the development series.

I am specially interested in the problems you are having with the xml 
generated docbook.

> Thanks again,
>
> Ethan

-- 
José Abílio








Re: LyX and Docbook/XML

2008-11-21 Thread Ethan Metsger
On Fri, 21 Nov 2008 11:30:47 -0500, Steve Litt <[EMAIL PROTECTED]>  
wrote:



I considered both LyX and DocBook. At the time, the only free
software front end I could find for DocBook was Emacs, and my wrists just
aren't that flexible.


Hi, Steve.

Thanks for your comments.  My issue at this point isn't converting to  
LyX--I already know I *want* to use it.  The issue is that management  
prefers to avoid LaTeX and instead opt for our local industry standard,  
which is DocBook.  We're also involved in the XML databinding business, so  
spending some extra time with XML-related technologies is more comfortable  
in general.


LyX works well with DocBook/SGML (save for a few problems I've had with  
images).  DocBook, however, is transitioning away from SGML to XML, and  
LyX doesn't support the XML format as well as I need.  My attempts to  
transform the XML export into HTML failed, and I think this is because the  
XML export from LyX is not compatible.


If LyX isn't DocBook/XML-ready, that's fine--I'll continue using it for my  
one-off docs that I write for our customers.  But if it can be fairly  
easily used to produce DocBook/XML, I'll press a bit harder for its  
adoption through the rest of the office.



Thanks again for your thoughts,

Ethan
([EMAIL PROTECTED])


Re: LyX and Docbook/XML

2008-11-21 Thread Richard Heck

Ethan Metsger wrote:

Hi, all.

I promise I'll be quiet after this post--I don't mean to pester (or 
imply by any stretch that I'm unhappy with LyX in general!).  But can 
anyone comment on this?


For what it's worth, I really do like LyX, and I'm not trying to troll 
or put on anyone.  I'm just curious about the capabilities and hoping 
not a little to spur its adoption among my general work populace.


DocBook support is a bit of a black art around here. There are people 
who know about it, but not many. Hence the silence. But I'm ccing on the 
people who do know.


rh



Re: LyX and Docbook/XML

2008-11-21 Thread Steve Litt
Back in 2001, switching away from writing books in MS Word (yeah, laugh all 
you want), I considered both LyX and DocBook. At the time, the only free 
software front end I could find for DocBook was Emacs, and my wrists just 
aren't that flexible.

LyX benefits:
* VERY fast writing environment. 3000 words per day no problem if you think 
that fast.
* WYSIWYG enough that you don't need to switch between input view and output 
view.
* Very nice presentation on paper with little effort.
* Easy to tweak with an editor if the LyX front end doesn't cut it for a task.
* Lots of LaTeX packages to do specialized stuff.

LyX disadvantages:
* Creating or modifying styles is excruciatingly difficult and requires 
LaTeX/TeX knowledge.

HTH

SteveT

On Friday 21 November 2008 11:18:35 am Ethan Metsger wrote:
> Hi, all.
>
> I promise I'll be quiet after this post--I don't mean to pester (or imply
> by any stretch that I'm unhappy with LyX in general!).  But can anyone
> comment on this?
>
> For what it's worth, I really do like LyX, and I'm not trying to troll or
> put on anyone.  I'm just curious about the capabilities and hoping not a
> little to spur its adoption among my general work populace.
>
> Thanks again,
>
> Ethan
>
> On Wed, 19 Nov 2008 11:43:43 -0500, Ethan Metsger <[EMAIL PROTECTED]>
>
> wrote:
> > Hi, all.
> >
> > I figured I'd send a quick query to the list about using LyX with
> > Docbook/XML.  I know there's been a little bit of traffic on this in the
> > past, but I haven't seen anything recently, and my searches online
> > haven't turned up much else, either.
> >
> > We're in the process of evaluating some tools for transitioning our
> > documentation away from Frame, and my bid to use LaTeX with LyX as a
> > front-end and pdflatex/plastex as the backend didn't really gain much
> > traction.
> >
> > My boss prefers to use Docbook--a number of our customers use it, and
> > it's an accepted standard in our industry.  There are some commercial
> > products for Docbook editing that we're investigating, but I remembered
> > that LyX provides some support for it also.
> >
> >
> > I was able to make some HTML and PDFs out of the basic document I
> > created when using SGML tools, but I wasn't able to get similar results
> > from the exported XML.  Some online reading leads me to believe that
> > this is a somewhat more difficult task than I'm really willing to
> > undertake, but I thought I would ask here.  Is there a good workflow for
> > using Docbook/XML with LyX, or are we still kind of waiting on it?
> >
> > Thanks much,
> >
> > Ethan
> > ([EMAIL PROTECTED])




Re: LyX and Docbook/XML

2008-11-21 Thread Ethan Metsger

Hi, all.

I promise I'll be quiet after this post--I don't mean to pester (or imply  
by any stretch that I'm unhappy with LyX in general!).  But can anyone  
comment on this?


For what it's worth, I really do like LyX, and I'm not trying to troll or  
put on anyone.  I'm just curious about the capabilities and hoping not a  
little to spur its adoption among my general work populace.


Thanks again,

Ethan

On Wed, 19 Nov 2008 11:43:43 -0500, Ethan Metsger <[EMAIL PROTECTED]>  
wrote:




Hi, all.

I figured I'd send a quick query to the list about using LyX with  
Docbook/XML.  I know there's been a little bit of traffic on this in the  
past, but I haven't seen anything recently, and my searches online  
haven't turned up much else, either.


We're in the process of evaluating some tools for transitioning our  
documentation away from Frame, and my bid to use LaTeX with LyX as a  
front-end and pdflatex/plastex as the backend didn't really gain much  
traction.


My boss prefers to use Docbook--a number of our customers use it, and  
it's an accepted standard in our industry.  There are some commercial  
products for Docbook editing that we're investigating, but I remembered  
that LyX provides some support for it also.



I was able to make some HTML and PDFs out of the basic document I  
created when using SGML tools, but I wasn't able to get similar results  
from the exported XML.  Some online reading leads me to believe that  
this is a somewhat more difficult task than I'm really willing to  
undertake, but I thought I would ask here.  Is there a good workflow for  
using Docbook/XML with LyX, or are we still kind of waiting on it?


Thanks much,

Ethan
([EMAIL PROTECTED])


LyX and Docbook/XML

2008-11-19 Thread Ethan Metsger


Hi, all.

I figured I'd send a quick query to the list about using LyX with  
Docbook/XML.  I know there's been a little bit of traffic on this in the  
past, but I haven't seen anything recently, and my searches online haven't  
turned up much else, either.


We're in the process of evaluating some tools for transitioning our  
documentation away from Frame, and my bid to use LaTeX with LyX as a  
front-end and pdflatex/plastex as the backend didn't really gain much  
traction.


My boss prefers to use Docbook--a number of our customers use it, and it's  
an accepted standard in our industry.  There are some commercial products  
for Docbook editing that we're investigating, but I remembered that LyX  
provides some support for it also.



I was able to make some HTML and PDFs out of the basic document I created  
when using SGML tools, but I wasn't able to get similar results from the  
exported XML.  Some online reading leads me to believe that this is a  
somewhat more difficult task than I'm really willing to undertake, but I  
thought I would ask here.  Is there a good workflow for using Docbook/XML  
with LyX, or are we still kind of waiting on it?


Thanks much,

Ethan
([EMAIL PROTECTED])


Re: Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Chad A. wrote:

The tutorial, with source code, has been posted here: 
http://www.neomantic.com/tutorials/lyx-and-docbookXML


What do think of hosting it on the LyX wiki? (Either moving it, or just 
mirroring it there).


/Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Chad A.
Hi,

I have published a tutorial on how to use lyX to produce Docbook XML which
can be transformed into XHTML or PDF documents.  The tutorial shows how to
leverage XML technologies, such as XSL, to create customized versions of
Docbook XSL stylesheets that fix some of lyX's Docbook problems.

The tutorial, with source code, has been posted here:
http://www.neomantic.com/tutorials/lyx-and-docbookXML

Any feedback would be greatly appreciated,
Chad
<http://www.neomantic.com/tutorials/lyx-and-docbookXML/>
-- 
Chad A.
http://www.neomantic.com


Re: lyx & docbook XML - schema

2008-07-15 Thread José Matos
On Tuesday 15 July 2008 09:29:24 Mickael Leduque wrote:
> Hello,
> I'm working on a project where the documentation is written in docbook
> XML. I'd like to use Lyx to create it, but I have not found where I can
> make lyx export to XML with schema instead of DTD.
> How do I do that?

Do you want to remove the reference to the DTD or is there any other change 
you want to do?

> Mickaël

-- 
José Abílio


Re: lyx & docbook XML - schema

2008-07-15 Thread Pavel Sanda
> Hello,
> I'm working on a project where the documentation is written in docbook XML. 
> I'd like to use Lyx to create it, but I have not found where I can make lyx 
> export to XML with schema instead of DTD.
> How do I do that?

i'm afraid lyx support of docbook export is obsolete for a long time and having
no real maintainer it slowly moves to graveyard...
pavel


lyx & docbook XML - schema

2008-07-15 Thread Mickael Leduque


Hello,
I'm working on a project where the documentation is written in docbook 
XML. I'd like to use Lyx to create it, but I have not found where I can 
make lyx export to XML with schema instead of DTD.

How do I do that?

Mickaël



Re: DocBook Support?

2008-01-19 Thread Ryan Cross
Hi,

Yes, in many ways that is the *type* of information I'm looking for
but as I have stated before, the documents are very specific that this
only works for version 1.2 of LyX and do NOT work for anything newer.
You can see this explicitly in this part of that doc
http://www.karakas-online.de/mySGML/lyx.html I really do not want to
use such an old version of LyX.

The other thing I would *hope* is possible is to actually edit an
existing docbook file. The reason for this is that I am attempting to
use this process as a way of creating documentation for an open source
project, and I'd like to be able to keep the source document as a
docbook file and not as a lyx file - which I think would be required
for the process outlined in those docs.

I have seen this document before and I believe I linked to it before
in a previous email, but I do really appreciate the assistance in
pointing me in the right direction.

Thanks,
Ryan

On Jan 19, 2008 8:43 PM, Liviu Andronic <[EMAIL PROTECTED]> wrote:
>
>
>
> On 11/22/07, Ryan Cross <[EMAIL PROTECTED]> wrote:
> > I have seen some pointers to using Lyx for creating/editing DocBook
> > documents. However, the wiki suggests this isn't supported any more. Does
> > anyone know how to do this? I'd like to use it with the current version.
>
> I'm wondering if it this [1] is what you're looking for. From the LyX
> Wikipedia entry [2].
>
> Liviu
>
> [1] http://www.karakas-online.de/mySGML/
> [2] http://en.wikipedia.org/wiki/Lyx#Features
>


Re: DocBook Support?

2008-01-19 Thread Liviu Andronic
On 11/22/07, Ryan Cross <[EMAIL PROTECTED]> wrote:
> I have seen some pointers to using Lyx for creating/editing DocBook
> documents. However, the wiki suggests this isn't supported any more. Does
> anyone know how to do this? I'd like to use it with the current version.

I'm wondering if it this [1] is what you're looking for. From the LyX
Wikipedia entry [2].

Liviu

[1] http://www.karakas-online.de/mySGML/
[2] http://en.wikipedia.org/wiki/Lyx#Features


Re: DocBook Support?

2008-01-16 Thread Ryan Cross
Hey Jose,

Are you feeling any better from your surgery? Hope your holidays went well
too. Any chance you've had some time to write up some details about DocBook
support? ;)

Thanks,
Ryan

On Jan 4, 2008 11:06 PM, José Matos <[EMAIL PROTECTED]> wrote:

> On Wednesday 02 January 2008 08:03:52 Ryan Cross wrote:
> > Bump... Can anyone provide some guidance on working with DocBook for Lyx
> > (with any current versions)?
> >
> > Thanks!
> > -Ryan
>
>  I am sorry for the delay. I have been recovering from a small surgery
> just
> before the holidays, and now I am recovering from the holidays. :-)
>
>  Expect new documentation next week. I will add the documentation to the
> wiki
> and then post a link here.
>
> --
> José Abílio
>


Re: DocBook Support?

2008-01-11 Thread Jean-Marc Lasgouttes
Sourena Mohammadi <[EMAIL PROTECTED]> writes:

> Hi,
> How can I unsubscribe from this mailing list. I have attempted several
> times to unsubscribe but it doesn't work.

What did you try?

Send a message to

(assuming this is the address under which you are subscribed).

JMarc


Re: DocBook Support?

2008-01-10 Thread Sourena Mohammadi

Hi,
How can I unsubscribe from this mailing list. I have attempted several  
times to unsubscribe but it doesn't work.

--sourena


Re: DocBook Support?

2008-01-09 Thread Ryan Cross
I looked into dblatex a bit - but I don't think this would quite work for me
since it doesn't provide the ability to author docbook files with Lyx. It is
only geared towards taking docbook files and then converting them to latex
for processing into pdfs, etc.

Still looking forward to the docbook documentation.

Thanks,
Ryan

On Jan 4, 2008 11:10 PM, Neal Becker <[EMAIL PROTECTED]> wrote:

> José Matos wrote:
>
> > On Wednesday 02 January 2008 08:03:52 Ryan Cross wrote:
> >> Bump... Can anyone provide some guidance on working with DocBook for
> Lyx
> >> (with any current versions)?
> >>
> >> Thanks!
> >> -Ryan
> >
> >   I am sorry for the delay. I have been recovering from a small surgery
> >   just
> > before the holidays, and now I am recovering from the holidays. :-)
> >
> >   Expect new documentation next week. I will add the documentation to
> the
> >   wiki
> > and then post a link here.
> >
>
> Has anyone tried dblatex to work with docbook in lyx?  Seems like a
> perfect fit.
>
>


Re: DocBook Support?

2008-01-04 Thread Neal Becker
José Matos wrote:

> On Wednesday 02 January 2008 08:03:52 Ryan Cross wrote:
>> Bump... Can anyone provide some guidance on working with DocBook for Lyx
>> (with any current versions)?
>>
>> Thanks!
>> -Ryan
> 
>   I am sorry for the delay. I have been recovering from a small surgery
>   just
> before the holidays, and now I am recovering from the holidays. :-)
> 
>   Expect new documentation next week. I will add the documentation to the
>   wiki
> and then post a link here.
> 

Has anyone tried dblatex to work with docbook in lyx?  Seems like a perfect fit.



Re: DocBook Support?

2008-01-04 Thread José Matos
On Wednesday 02 January 2008 08:03:52 Ryan Cross wrote:
> Bump... Can anyone provide some guidance on working with DocBook for Lyx
> (with any current versions)?
>
> Thanks!
> -Ryan

  I am sorry for the delay. I have been recovering from a small surgery just 
before the holidays, and now I am recovering from the holidays. :-)

  Expect new documentation next week. I will add the documentation to the wiki 
and then post a link here.

-- 
José Abílio


Re: DocBook Support?

2008-01-02 Thread Ryan Cross
Bump... Can anyone provide some guidance on working with DocBook for Lyx
(with any current versions)?

Thanks!
-Ryan

On Dec 18, 2007 9:11 AM, Ryan Cross <[EMAIL PROTECTED]> wrote:

> Hey Jose,
>
> Are you able to spend a few minutes shedding some light on docbook using
> Lyx? Is anyone else able to do so? I'm still anxiously awaiting.
>
> Thanks,
> Ryan
>
>
> On 11/29/07, Ryan Cross <[EMAIL PROTECTED]> wrote:
> >
> > FWIW,
> > you can also see http://wiki.lyx.org/LyX/DocBook but note that it is
> > only valid for lyx version 1.2 (and no other version). The reason I'm
> > still asking questions is that I would like to use the newer versions of lyx
> > for obvious reasons
> >
> > Some other useful links are http://bgu.chez-alice.fr/doc/db4lyx/ and 
> > http://www.karakas-online.de/mySGML/
> >
> > I eagerly and anxiously await your input.
> >
> > -Ryan
> >
> > On 11/28/07, Liviu Andronic <[EMAIL PROTECTED]> wrote:
> > >
> > > On 11/27/07, José Matos <[EMAIL PROTECTED]> wrote:
> > > > > Can you shed light on either docbook or linuxdoc? (I'm mostly
> > > interested in
> > > > > docbook though)
> > > >
> > > >   I can and I will, but presently I am overloaded with real work. I
> > > will
> > > > return to this issue as soon as my time permits (next month
> > > fortunately). :-)
> > >
> > > We're all waiting for this ^_^.
> > >
> > > Regards,
> > > Liviu
> > >
> >
> >
> >
>
>


Re: DocBook Support?

2007-12-17 Thread Ryan Cross
Hey Jose,

Are you able to spend a few minutes shedding some light on docbook using
Lyx? Is anyone else able to do so? I'm still anxiously awaiting.

Thanks,
Ryan

On 11/29/07, Ryan Cross <[EMAIL PROTECTED]> wrote:
>
> FWIW,
> you can also see http://wiki.lyx.org/LyX/DocBook but note that it is only
> valid for lyx version 1.2 (and no other version). The reason I'm still
> asking questions is that I would like to use the newer versions of lyx for
> obvious reasons
>
> Some other useful links are http://bgu.chez-alice.fr/doc/db4lyx/ and 
> http://www.karakas-online.de/mySGML/
>
> I eagerly and anxiously await your input.
>
> -Ryan
>
> On 11/28/07, Liviu Andronic <[EMAIL PROTECTED]> wrote:
> >
> > On 11/27/07, José Matos <[EMAIL PROTECTED]> wrote:
> > > > Can you shed light on either docbook or linuxdoc? (I'm mostly
> > interested in
> > > > docbook though)
> > >
> > >   I can and I will, but presently I am overloaded with real work. I
> > will
> > > return to this issue as soon as my time permits (next month
> > fortunately). :-)
> >
> > We're all waiting for this ^_^.
> >
> > Regards,
> > Liviu
> >
>
>
>


Re: DocBook Support?

2007-11-28 Thread Ryan Cross
FWIW,
you can also see http://wiki.lyx.org/LyX/DocBook but note that it is only
valid for lyx version 1.2 (and no other version). The reason I'm still
asking questions is that I would like to use the newer versions of lyx for
obvious reasons

Some other useful links are http://bgu.chez-alice.fr/doc/db4lyx/ and
http://www.karakas-online.de/mySGML/

I eagerly and anxiously await your input.

-Ryan

On 11/28/07, Liviu Andronic <[EMAIL PROTECTED]> wrote:
>
> On 11/27/07, José Matos <[EMAIL PROTECTED]> wrote:
> > > Can you shed light on either docbook or linuxdoc? (I'm mostly
> interested in
> > > docbook though)
> >
> >   I can and I will, but presently I am overloaded with real work. I will
> > return to this issue as soon as my time permits (next month
> fortunately). :-)
>
> We're all waiting for this ^_^.
>
> Regards,
> Liviu
>


Re: DocBook Support?

2007-11-28 Thread Liviu Andronic
On 11/27/07, José Matos <[EMAIL PROTECTED]> wrote:
> > Can you shed light on either docbook or linuxdoc? (I'm mostly interested in
> > docbook though)
>
>   I can and I will, but presently I am overloaded with real work. I will
> return to this issue as soon as my time permits (next month fortunately). :-)

We're all waiting for this ^_^.

Regards,
Liviu


Re: DocBook Support?

2007-11-27 Thread José Matos
On Thursday 22 November 2007 22:12:56 Ryan Cross wrote:
> I don't know much about linuxdoc - but I am pretty sure I am correctly
> referring to docbook. Its an xml format for generating multiple types of
> documentation, pdf/html/chm (windows help files)/etc
>
> You can see lyx linked directly from the docbook wiki
> http://wiki.docbook.org/topic/DocBookAuthoringTools
>
> Can you shed light on either docbook or linuxdoc? (I'm mostly interested in
> docbook though)

  I can and I will, but presently I am overloaded with real work. I will 
return to this issue as soon as my time permits (next month fortunately). :-)

> -Ryan

-- 
José Abílio


Re: DocBook Support?

2007-11-22 Thread Ryan Cross
I don't know much about linuxdoc - but I am pretty sure I am correctly
referring to docbook. Its an xml format for generating multiple types of
documentation, pdf/html/chm (windows help files)/etc

You can see lyx linked directly from the docbook wiki
http://wiki.docbook.org/topic/DocBookAuthoringTools

Can you shed light on either docbook or linuxdoc? (I'm mostly interested in
docbook though)

-Ryan

On Nov 23, 2007 8:56 AM, José Matos <[EMAIL PROTECTED]> wrote:

> On Thursday 22 November 2007 10:40:03 Ryan Cross wrote:
> > Hi,
> >
> > I have seen some pointers to using Lyx for creating/editing DocBook
> > documents. However, the wiki suggests this isn't supported any more.
>
>  I think that you are referring to linuxdoc and not to docbook.
>
> > Does
> > anyone know how to do this? I'd like to use it with the current version.
> >
> > -Ryan
>
>
>
> --
> José Abílio
>


Re: DocBook Support?

2007-11-22 Thread José Matos
On Thursday 22 November 2007 10:40:03 Ryan Cross wrote:
> Hi,
>
> I have seen some pointers to using Lyx for creating/editing DocBook
> documents. However, the wiki suggests this isn't supported any more.

  I think that you are referring to linuxdoc and not to docbook.

> Does 
> anyone know how to do this? I'd like to use it with the current version.
>
> -Ryan



-- 
José Abílio


DocBook Support?

2007-11-22 Thread Ryan Cross
Hi,

I have seen some pointers to using Lyx for creating/editing DocBook
documents. However, the wiki suggests this isn't supported any more. Does
anyone know how to do this? I'd like to use it with the current version.

-Ryan


Re: lyx tutorium - docbook/xml

2007-06-12 Thread Abdelrazak Younes

Steve Litt wrote:

On Tuesday 12 June 2007 10:06, [EMAIL PROTECTED] wrote:

On Tue, 12 Jun 2007, Trevor Nicholls wrote:

What we'd really like is to be able to use LyX as our document editor,
because alternative XML editors really suck big time. However this would
mean we have to be able to go in the other direction, converting LyX
documents back into XML.

Currently the big change that is planned for LyX 1.6 is making use XML as
its native format... 


Oh No!

The current 1.4x native format is so easy to read and understand, and even to 
write. With an XML format, I'll need to hook an XML parser to Ruby. Worse 
yet, creating LyX programmatically (VimOutliner to LyX converter, for 
instance) will be challenging.


While I am not yet sure I agree with that, we are apparently heading to 
a simple XML format which will map "one to one" each tag of the current 
LyX format:


  \begin_xxx
  ...
  \end_xxx

will be replaced with:

  
  ...
  

So I don't think it will become any more difficult to read and parse 
than the current format. Quite the contrary I would say ;-)


By the way, you keep talking about the VimOutliner, may I ask if you 
tried the new outline feature of 1.5? (Part of it is also in 1.4.4).


Abdel.



Re: lyx tutorium - docbook/xml

2007-06-12 Thread christian . ridderstrom

On Tue, 12 Jun 2007, Steve Litt wrote:

Will they have a 1.5 to 1.6 converter? If so, I can continue to use my 
current VimOutliner to LyX converter, and then simply convert.


Yes. The program already exists for version up to 1.5 and is called 
'lyx2lyx'. New features after 1.6 might not be portable back to 1.5 
though.


/C

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

RE: lyx tutorium - docbook/xml

2007-06-12 Thread Trevor Nicholls
This is fantastic news!

Thank you very much

Cheers
T

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, 13 June 2007 2:07 a.m.
To: lyx-users@lists.lyx.org
Subject: RE: lyx tutorium - docbook/xml

On Tue, 12 Jun 2007, Trevor Nicholls wrote:

> What we'd really like is to be able to use LyX as our document editor, 
> because alternative XML editors really suck big time. However this would 
> mean we have to be able to go in the other direction, converting LyX 
> documents back into XML.

Currently the big change that is planned for LyX 1.6 is making use XML as 
its native format... Maybe that'll help, although you may want to chime in 
on the development list as to why XML is good, as some developers have 
started wonder about its purpose/usefulness.

/Christian

-- 
Christian Ridderström, +46-8-768 39 44
http://www.md.kth.se/~chr



Re: lyx tutorium - docbook/xml

2007-06-12 Thread Steve Litt
On Tuesday 12 June 2007 10:06, [EMAIL PROTECTED] wrote:
> On Tue, 12 Jun 2007, Trevor Nicholls wrote:
> > What we'd really like is to be able to use LyX as our document editor,
> > because alternative XML editors really suck big time. However this would
> > mean we have to be able to go in the other direction, converting LyX
> > documents back into XML.
>
> Currently the big change that is planned for LyX 1.6 is making use XML as
> its native format... 

Oh No!

The current 1.4x native format is so easy to read and understand, and even to 
write. With an XML format, I'll need to hook an XML parser to Ruby. Worse 
yet, creating LyX programmatically (VimOutliner to LyX converter, for 
instance) will be challenging.

Will they have a 1.5 to 1.6 converter? If so, I can continue to use my current 
VimOutliner to LyX converter, and then simply convert.

Thanks

SteveT
 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


RE: lyx tutorium - docbook/xml

2007-06-12 Thread christian . ridderstrom

On Tue, 12 Jun 2007, Trevor Nicholls wrote:

What we'd really like is to be able to use LyX as our document editor, 
because alternative XML editors really suck big time. However this would 
mean we have to be able to go in the other direction, converting LyX 
documents back into XML.


Currently the big change that is planned for LyX 1.6 is making use XML as 
its native format... Maybe that'll help, although you may want to chime in 
on the development list as to why XML is good, as some developers have 
started wonder about its purpose/usefulness.


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

RE: lyx tutorium - docbook/xml

2007-06-11 Thread Trevor Nicholls
Hi Steve

I've cc'ed the list (I hope you don't mind - I couldn't see anything private
in your email)

LyX itself is OK, I've got through the first few hurdles, my LaTeX Companion
has arrived, I've created a new document style with its own set of character
styles and it works (well, sort of; the problems I have with it I know are
just a question of detail - e.g. stuff like images appearing at a different
scale in the LyX window and in the DVI/PDF output - and the user list or the
archives (or the LC) are good with the details).

The bit which I can't seem to fathom is the whole XML/LyX connection. This
is a big picture problem. I can load a small DocBook file into LyX and it
looks OK. I can edit this file, save it, and export it to DocBook - but only
to a super-simplified DocBook, AFAICT. In any case, our documents aren't
DocBook, but (if LyX could handle the full range of DocBook element
definitions) I could probably add an extra XSLT step so that they pass
through a DocBook version on their way in and out of LyX. Not as it stands,
however, because if I tried to roundtrip I'd lose most of my markup. I've
tried cloning the docbook layouts and adding my own character styles - but
when I do this the 'export to DocBook XML' option is no longer available.

If I dropped the DocBook pretence I'm confident that I could write XSLT
stylesheets to take our XML files and generate LyX documents for printing.

What we'd really like is to be able to use LyX as our document editor,
because alternative XML editors really suck big time. However this would
mean we have to be able to go in the other direction, converting LyX
documents back into XML. That's a requirement because the principal output
method we use is either HTML or CSS-styled XML. And the LyX (or LaTeX) to
HTML path is still worse than useless.

If LyX really could act as an (excellent) editor for DocBook and
quasi-DocBook documents we'd be over the moon, Brian (sorry, gratuitous UK
sporting reference there).

Thanks for your reply

Cheers
Trevor

-Original Message-
From: Steve Litt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 12 June 2007 4:59 p.m.
To: [EMAIL PROTECTED]
Subject: Re: lyx tutorium

On Tuesday 12 June 2007 00:25, Trevor Nicholls wrote:
> > LyX vs. Docbook: I believe that LyX can be used to front-end docbook.
>
> So I am led to understand (in principle), but if this is really true then
> it is one area where the LyX help files are sadly deficient. I'm quite
> willing to accept that it's my ignorance that is responsible for my
failure
> to get LyX working with the content of my documents - but there doesn't
> seem to be any practical information out there which addresses this
> ignorance.

I could be wrong about the "front end to docbook" thing.

As far as LyX help, I'd start here:

http://wiki.lyx.org/LyX/Tutorials

http://tug.org/TeXnik/mainFAQ.cgi?file=docs

The docs are out there -- it's just hard to know which doc applies to your 
current needs.

SteveT




Re: anyone use LyX for docbook?

2007-06-07 Thread David Koski
On Thursday 07 June 2007 16:34, José Matos wrote:
> On Thursday 07 June 2007 18:47:18 David Koski wrote:
> > I am looking for information on how to apply Lyx to produce
> > DocBook documents.  A simple example with a floating figure
> > with a cross-reference would help.  The above scenario should be
> > trivial but I have spent more time than I care to admit trying to
> > achieve it.  Google and man pages are my sources but information
> > specific to Lyx as applied to DocBook is scarce.  In the end,
> > it looks like it might be incomplete or broken.
>
>   I do use lyx with docbook. I have implemented most of the code as well. I
> have failed in the sense that I have not been able to attract new
> developers to the wagon. :-)
>
>   One of the areas where lyx-docbook is missing is certainly the
> documentation. If it were now I would start with the wiki (there was no
> wiki in 1999/2000).
>
>   In the process I have developed new tools to work around some of the
> deficiencies in LyX and docbook. lyx2lyx was one of those tools (the part
> used now to convert between different lyx file format versions). :-)
>
>   Recently my attention has been focused into coordinating the release of
> lyx 1.5.0 so not much time to lyx-docbook. :-(

A simple example of a book with floating figures using cross references
that work would have helped immensely.  Maybe I'll revisit Lyx for DocBook
in the future but for now, my time budget is spent.

Thank You,
David







Re: Lyx to Docbook

2007-06-07 Thread José Matos
On Tuesday 22 May 2007 23:41:15 Lars Olesen wrote:
> It is not available on my clean install. How can I install missin
> document classes on Windows Vista.
>
> > > - and the other way around?
> >
> > File>Import>DocBook
>
> Guess, it wont appear until document class is installed.

  The configuration searches for one program called either sgmltools or 
db2dvi. The presence of those tools in the systems shows. I know that this is 
a limitation but it should be easy to lift.

-- 
José Abílio


Re: anyone use lyx for docbook?

2007-06-07 Thread José Matos
On Thursday 07 June 2007 18:47:18 David Koski wrote:
> I am looking for information on how to apply Lyx to produce
> DocBook documents.  A simple example with a floating figure
> with a cross-reference would help.  The above scenario should be
> trivial but I have spent more time than I care to admit trying to
> achieve it.  Google and man pages are my sources but information
> specific to Lyx as applied to DocBook is scarce.  In the end,
> it looks like it might be incomplete or broken.

  I do use lyx with docbook. I have implemented most of the code as well. I 
have failed in the sense that I have not been able to attract new developers 
to the wagon. :-)

  One of the areas where lyx-docbook is missing is certainly the 
documentation. If it were now I would start with the wiki (there was no wiki 
in 1999/2000).

  In the process I have developed new tools to work around some of the 
deficiencies in LyX and docbook. lyx2lyx was one of those tools (the part 
used now to convert between different lyx file format versions). :-)

  Recently my attention has been focused into coordinating the release of lyx 
1.5.0 so not much time to lyx-docbook. :-(

> Best Regards,
> David Koski
> [EMAIL PROTECTED]

-- 
José Abílio


Re: docbook and graphics within floating figure

2007-06-07 Thread David Koski
On Thursday 07 June 2007 11:10, Jeremy C. Reed wrote:
> On Thu, 7 Jun 2007, David Koski wrote:
> > I take it the docbook XML feature of Lyx is seldom if ever used.
>
> I have asked several times and also tried several times. Others have asked
> about it several times.
>
> Nobody has stated that it works. Nobody has shared how to do it.
>
> The documentation on the web is out-dated or wrong.
>
> LyX should remove any references about using DocBook from its official
> documentation and remove any references to DocBook. It is misleading.
>
>   Jeremy C. Reed
>
> p.s. If LyX can do DocBook, that would be great. I have a 200-page book
> and I am keeping both a LyX version and a DocBook version in sync. It
> would be a great time saver if I could just work on one copy -- in DocBook
> using LyX.

Thank you Jeremy.  I will proceed with LaTeX.

Regards,
David




Re: docbook and graphics within floating figure

2007-06-07 Thread Jeremy C. Reed
On Thu, 7 Jun 2007, David Koski wrote:

> I take it the docbook XML feature of Lyx is seldom if ever used.

I have asked several times and also tried several times. Others have asked 
about it several times.

Nobody has stated that it works. Nobody has shared how to do it.

The documentation on the web is out-dated or wrong.

LyX should remove any references about using DocBook from its official 
documentation and remove any references to DocBook. It is misleading.

  Jeremy C. Reed

p.s. If LyX can do DocBook, that would be great. I have a 200-page book 
and I am keeping both a LyX version and a DocBook version in sync. It 
would be a great time saver if I could just work on one copy -- in DocBook 
using LyX.


anyone use lyx for docbook?

2007-06-07 Thread David Koski
I am looking for information on how to apply Lyx to produce
DocBook documents.  A simple example with a floating figure
with a cross-reference would help.  The above scenario should be
trivial but I have spent more time than I care to admit trying to
achieve it.  Google and man pages are my sources but information
specific to Lyx as applied to DocBook is scarce.  In the end,
it looks like it might be incomplete or broken.

Best Regards,
David Koski
[EMAIL PROTECTED]





Re: docbook and graphics within floating figure

2007-06-07 Thread David Koski
I worked arround the errors by writing a script that cleaned
the xml output of Lyx such that it changed "inlinemediaobject"
instances to "mediaobject".  Furthermore, I had to create floating
figures with the title on top instead of the bottom.  Also,
'lang="en_US"' had to be changed to 'lang="en"'.

I take it the docbook XML feature of Lyx is seldom if ever used.

Regards,
David Koski
[EMAIL PROTECTED]

On Wednesday 06 June 2007 08:12, David Koski wrote:
> I am a new Lyx user using Debian 4.0, Lyx 1.4.3 and am trying to insert
> a graphic image within a floating figure in a Docbook (xml) document.
> My "Document Class" is set to "DocBook book (SGML)" and I am exporting
> to "Docbook (XML)" but I get errors:
>
> book.xml:16:18:E: document type does not allow element "inlinemediaobject"
> here; assuming missing "title" start-tag
> openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:2
>8:20:E: document type does not allow element "title" here
> openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:2
>8:70:E: end tag for "title" omitted, but OMITTAG NO was specified
>
> My first line of defense (google and man pages) was to no avail.  In fact
> I found very little information that was relevant except for how to do
> what I had already done.  By trial and error (and examining the xml output
> of Lyx) I found that I could insert a graphic successfully outside a
> floating figure if I appended a label.  The same method failed for floating
> figures.  I found it odd that this seemingly trivial task would be so
> difficult to achieve.  If the two problems are related, I suspect it has
> to do with the placement of a para tag.  But this really has me stumped.
>
> The Lyx code is below followed by xml exported output from Lyx.
>
> Any help appreciated,
> David Koski
> [EMAIL PROTECTED]
>
> #LyX 1.4.3 created this file. For more info see http://www.lyx.org/
> \lyxformat 245
> \begin_document
> \begin_header
> \textclass docbook-book
> \language english
> \inputencoding auto
> \fontscheme default
> \graphics default
> \paperfontsize default
> \spacing single
> \papersize default
> \use_geometry false
> \use_amsmath 1
> \cite_engine basic
> \use_bibtopic false
> \paperorientation portrait
> \secnumdepth 3
> \tocdepth 3
> \paragraph_separation indent
> \defskip medskip
> \quotes_language english
> \papercolumns 1
> \papersides 1
> \paperpagestyle default
> \tracking_changes false
> \output_changes false
> \end_header
>
> \begin_body
>
> \begin_layout Title
> My Book
> \end_layout
>
> \begin_layout Chapter
> My Chapter
> \end_layout
>
> \begin_layout Standard
> This is my chapter.
> \end_layout
>
> \begin_layout Standard
> Text here.
> \end_layout
>
> \begin_layout Standard
> \begin_inset Float figure
> wide false
> sideways false
> status open
>
> \begin_layout Title
> my title
> \end_layout
>
> \begin_layout Standard
> \begin_inset Graphics
>   filename gimp_screenshot.eps
>
> \end_inset
>
>
> \end_layout
>
> \begin_layout Caption
> \begin_inset LatexCommand \label{mylabel}
>
> \end_inset
>
>
> \end_layout
>
> \end_inset
>
> mycaption
> \end_layout
>
> \begin_layout Standard
> More text.
> \end_layout
>
> \end_body
> \end_document
>
>
> 
>  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [
>  ]>
>
> 
> 
> 
> My Book
> 
> My Chapter
> Hi.
> This is my chapter.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  role="bmp"/>  >myfig Text here.
> More text.





docbook and graphics within floating figure

2007-06-06 Thread David Koski
I am a new Lyx user using Debian 4.0, Lyx 1.4.3 and am trying to insert
a graphic image within a floating figure in a Docbook (xml) document.
My "Document Class" is set to "DocBook book (SGML)" and I am exporting
to "Docbook (XML)" but I get errors:

book.xml:16:18:E: document type does not allow element "inlinemediaobject" 
here; assuming missing "title" start-tag
openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:28:20:E:
 document type does not allow element "title" here
openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:28:70:E:
 end tag for "title" omitted, but OMITTAG NO was specified

My first line of defense (google and man pages) was to no avail.  In fact
I found very little information that was relevant except for how to do
what I had already done.  By trial and error (and examining the xml output
of Lyx) I found that I could insert a graphic successfully outside a
floating figure if I appended a label.  The same method failed for floating
figures.  I found it odd that this seemingly trivial task would be so
difficult to achieve.  If the two problems are related, I suspect it has
to do with the placement of a para tag.  But this really has me stumped.

The Lyx code is below followed by xml exported output from Lyx.

Any help appreciated,
David Koski
[EMAIL PROTECTED]

#LyX 1.4.3 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass docbook-book
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry false
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout Title
My Book
\end_layout

\begin_layout Chapter
My Chapter
\end_layout

\begin_layout Standard
This is my chapter.
\end_layout

\begin_layout Standard
Text here.
\end_layout

\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Title
my title
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename gimp_screenshot.eps

\end_inset


\end_layout

\begin_layout Caption
\begin_inset LatexCommand \label{mylabel}

\end_inset


\end_layout

\end_inset

mycaption
\end_layout

\begin_layout Standard
More text.
\end_layout

\end_body
\end_document



http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
 [ 
 ]>




My Book

My Chapter
Hi.
This is my chapter.













myfig
Text here.
More text.






How to Install Docbook Class on Vista?

2007-05-23 Thread Richard Heck

I don't know how to do this, so I'm reposting.

Lars Olesen wrote:
> 2007/5/22, Richard Heck <[EMAIL PROTECTED]>:
>> Lars Olesen wrote:
>> > How do I translate a lyx document to docbook
>> Open Document>Settings>DocumentClass. In the Document Class drop box,
>> choose "DocBook (article)" or whatever. Choose OK. (You may get some
>> conversion errors depending upon the document.) Now look under
>> File>Export. You should see "DocBook..." as an option.
>
> It is not available on my clean install. How can I install missin
> document classes on Windows Vista.
>
>> > - and the other way around?
>> File>Import>DocBook
>
> Guess, it wont appear until document class is installed.
>


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Lyx to Docbook

2007-05-22 Thread Lars Olesen

2007/5/22, Richard Heck <[EMAIL PROTECTED]>:

Lars Olesen wrote:
> How do I translate a lyx document to docbook
Open Document>Settings>DocumentClass. In the Document Class drop box,
choose "DocBook (article)" or whatever. Choose OK. (You may get some
conversion errors depending upon the document.) Now look under
File>Export. You should see "DocBook..." as an option.


It is not available on my clean install. How can I install missin
document classes on Windows Vista.


> - and the other way around?
File>Import>DocBook


Guess, it wont appear until document class is installed.

--
Lars Olesen
Gratis backup https://mozy.com/?code=9MYJPF


Lyx to Docbook

2007-05-22 Thread Lars Olesen

Hi,

How do I translate a lyx document to docbook - and the other way
around? I am on windows vista with the newest beta of lyx.

--
Lars Olesen
Gratis backup https://mozy.com/?code=9MYJPF


docbook-style document/character classes, problems

2007-05-15 Thread Trevor Nicholls
Hello

Hello

This is a bit of a novice question, I'm afraid. It's also very long because
at this stage I don't really know what's important and what's peripheral, so
please forgive me the verbal overload. I'm fervently hoping that sometime
soon lots of hitherto disparate pieces of information will suddenly cohere
together in an overwhelming "aha!" moment, much like the one I experienced
after what seemed like far too many days struggling to get started with
XSLT.

I am trying to use Lyx as a nice editor for structured documentation. I
already have a document schema and some XML stylesheets which do some very
useful things with my document prototypes, and I don't want to throw away
all of this functionality unnecessarily.

Because Lyx can export to XML but does not appear to have an equivalent
import facility, I expect to save the documents as .lyx files, and to be
able to export them to XML as needed. Unfortunately either the documentation
in this area is a little fuzzy, or there are some fundamental ideas which
are missing from my brain right now.

Lyx as installed (I have 1.4.4, on both WinXP and Fedora Core 6) has defined
standard book/article document types, and equivalents for Docbook SGML as
book/chapter/section/article. I've been trying to use these as a starting
point for my own document types.

If I copy the standard "docbook-section.layout" into my local layouts,
rename it "xyz-section.layout", and change the second line so that it says

  # \DeclareDocBookClass[section]{xyz section}

then at least I can create a document, view it in xdvi, save it as "xyz.lyx"
and export it in XML as "xyz.xml".

Of course this is no different to DocBook so far, so next I create a short
file defining several new character styles, corresponding to a few of the
elements in my (non-DocBook) document schema. I edit the xyz-section.layout
file to include it, like so:

  Input xyz_charstyles.inc

This file defines styles for keyword, var and techterm elements. They are in
fact all the same (apart from the style name and latexname entries), e.g.

  CharStyle keyword
LatexType   Command
LatexName   keyword
Font
  FamilyRoman
  Shape Italic
EndFont
LabelFont
  Color blue
EndFont
  End

OK, reconfigure and restart Lyx. I can open xyz.lyx and apply my new
character styles. Now if I try to view the document in xdvi I get an error:

  An error occurred whilst running db2dvi 'xyz.sgml'

Looking at the console which started Lyx the error is obvious:

  Working on: /tmp/lyx_tmpdir4751CzGVwP/lyx_tmpbuf0/xyz.sgml
  jade:/tmp/lyx_tmpdir4751CzGVwP/lyx_tmpbuf0/xyz.sgml:13:382:E: element
"TECHTERM" undefined

I suppose this is understandable; "techterm" is not a DocBook element. On
the other hand, my problem isn't just that I'm not using strict DocBook - it
looks like Lyx's DocBook support is extremely minimal and even if our
documents were 100% DocBook compliant I would still have to add numerous
character and paragraph styles to whatever is already built in to Lyx as I
have it installed.

Where to look next? One of the files imported into my xyz layout is
"db_stdclass.inc" which contains two lines that look as though they are
worth a follow-up:

  OutputType  docbook

and

  # Header "PUBLIC "-//OASIS//DTD DocBook V4.3//EN""

Although that second line looks like a comment, it reminds me that if and
when I get over these initial hurdles, I will need to figure out how to get
the right DTD declaration into my exported XML file - but we haven't got
that far yet.

As far as the first line is concerned, I can't find any documentation that
refers to 'outputtype' anywhere, not in any of the delivered help files, not
anywhere in the Lyx wiki, not in the user mail-list. There are a few hits in
the developers mail-list but none of them make any sense to me, I'm afraid.

Not really knowing what I am doing, I copy db_stdclass.inc into my local
layouts and rename it "xyz_stdclass.inc".

I then delete the "# Header...DocBook" line and reconfigure; no difference.
OK, let's have a look at the OutputType then.

Grep'ing in the standard layouts shows only three values for this
declaration: docbook, linuxdoc and literate. Obviously it's also permitted
to leave the OutputType unset, which seems to be the most common option.

So I delete the OutputType declaration and reconfigure.
I can open my document, but if I try to view it I get a warning:

  An empty output file was generated.

The console shows a single line:

  xyz.dvi: No such file or directory

and after I acknowledge the warning in Lyx I see a latex Errors box which
says

  LaTeX Error: File 'section.cls' not found.
  \usepackage [T1]{fontenc}^^M
  *** (cannot \read from terminal in nonstop modes)

Obviously t

Re: Docbook (sigh)

2007-05-04 Thread Patrick De Visschere


On May 4, 2007, at 2:50 PM, Trevor Nicholls wrote:


Hi



I'm looking at Lyx as a possible "nice" editing facility for an  
application

which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to  
a simple
schema which I suppose is close to being a small subset of Docbook,  
and we
could in fact create XSL stylesheets to take our files in and out  
of Docbook

if we wished to.


I'm also making the transition from FrameMaker to LyX. I convert(ed)  
the xml-files exported from FrameMaker to latex or docbook with XSL  
stylesheets. The thoughest part were the equations.


I realize that Lyx does not natively support XML source files, but  
I see

that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my  
documents
and produced a file.xml as per Docbook, so far so good. Now I want  
to import
it back into Lyx, but it seems that going in this direction is not  
possible.




That's right but the last time I tried it there were still some  
problems with equations.


You may also have a look at some other packages for converting latex  
to xml (I didn't try any of them yet):

http://www-sop.inria.fr/miaou/tralics/
http://hermes.roua.org/
http://dlmf.nist.gov/LaTeXML/#get




As far as I can tell there was once a piece of software called  
'db2lyx'

which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx  
development (I've
seen warnings against using "newer" versions, i.e. newer than 1.1!)  
and here

I am on 1.4.4, about to be 1.5.




I don't expect db2lyx to work with the newer LyX versions.
I suppose you should use db2latex (from the same author). LyX can  
easlily import latex documents.
I have tried db2latex but sofar with no success but this has very  
probably to do with the equations. db2latex uses xsltml for  
converting mathml equations to latex. I use this package too but made  
a few changes to it. So I should modify db2latex to use the modified  
version of mathml ...





If I can add a suitable command in the Conversions table I can see  
Docbook
as a valid format to import from; the trouble is I don't have a  
command that

works. Does anybody? Surely somebody is doing this!




I'll stick with LyX for the time being. I would prefer to keep my  
documents in an xml-format but this seems not possible as far as I  
know. I feel comfortable right now with the idea that LyX can export  
its documents as docbook.


I suppose you know about:
http://www.karakas-online.de/mySGML/

but like db2lyx it won't work with the latest versions of lyx and it  
looks rather complicated.


Regards

Patrick De Visschere



Cheers

T







Docbook (sigh)

2007-05-04 Thread Trevor Nicholls
Hi

 

I'm looking at Lyx as a possible "nice" editing facility for an application
which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to a simple
schema which I suppose is close to being a small subset of Docbook, and we
could in fact create XSL stylesheets to take our files in and out of Docbook
if we wished to.

 

I realize that Lyx does not natively support XML source files, but I see
that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my documents
and produced a file.xml as per Docbook, so far so good. Now I want to import
it back into Lyx, but it seems that going in this direction is not possible.

 

As far as I can tell there was once a piece of software called 'db2lyx'
which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx development (I've
seen warnings against using "newer" versions, i.e. newer than 1.1!) and here
I am on 1.4.4, about to be 1.5.

 

If I can add a suitable command in the Conversions table I can see Docbook
as a valid format to import from; the trouble is I don't have a command that
works. Does anybody? Surely somebody is doing this!

 

Cheers

T

 



Re: looking for step-by-step guide for using docbook-xml with LyX

2006-11-15 Thread José Matos
On Wednesday 08 November 2006 12:15 am, Jeremy C. Reed wrote:
> I asked about this in May but didn't get any reply.

  I am sorry Jeremy, I am the responsible for this area and I have been really 
busy.

> I am looking for a step-by-step guide for using docbook-xml with LyX.
>
> My configure.py has:
>
> \Format docbook-xml xml   "Docbook (XML)"     "" "" "%%"
> and
> \converter docbookdocbook-xml "cp $$i $$o"  "xml"
>
> I am running lyx 1.4.3 on NetBSD.
>
> The lyx configuration says:
>
> checking for SGML-tools 2.x (DocBook) or db2x scripts...
> +checking for "sgmltools"...   no
> +checking for "db2dvi"...   no
> ...
> +checking for docbook  class docbook-book...  no
> +checking for docbook  class docbook-chapter...  no
> +checking for docbook  class docbook-section...  no
> +checking for docbook  class docbook...  no
>
>
> What is the correct URL for downloading db2dvi and/or sgmltools?

  You can use any other toolchain as long as it takes a docbook (either sgml 
or xml) file and converts it to the final format.

  sgmltools is not active anymore and db2xxx are a set of tools that wrap 
calls to other tools (jadetex and company).

> Where is using docbook with LyX documented? I see some LinuxDoc
> documented, but I don't think that is correct for my needs.

  You are right, I should document better this path. :-(

> I found two bogus URLs in the LyX docs: http://www.sgmltools.org and
> http://pobox.com/~cg/sgmltools. I also read that SGMLtools is obsolete and
> the successor, SGMLtools-Lite, is also now obsolete.

  Yes.

> I found DocBook tools at http://sources.redhat.com/docbook-tools/ but I am
> unsure which is the one to use.

  Perhaps here:
  ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES

  db2xxx is in docbook-utils there.

> What is needed for LyX?
>
> Original message below:
>
> -=-=-=-
> Date: Sat, 6 May 2006 08:41:38 -0700 (PDT)
> Subject: working with docbook
>
> I have a document that begins with:
>
> "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";
>[]>
> 
> ...
>
> It is processed with openjade using a style sheet called:
> .../share/sgml/docbook/dsssl/modular/print/docbook.dsl
>
> I spent a lot of time manually converting the entire document to lyx, but
> this means when I make changes I have to do it in two places -- if I want
> to submit back changes. Maybe I should have just used lyx on the original
> XML document and save back in XML.
>
> Can someone please point me to the documentation for reading and saving
> document in XML format using lyx?
>
> I did find:
>
> Document processing with LyX and SGML
> http://www.karakas-online.de/mySGML/
>
> Some articles about db4lyx and db2lyx.
>
> http://wiki.lyx.org/LyX/DocBook is empty
>
> 5-Minute Review: Using LyX for Creating DocBook
>  does not seems to show how to set it up, unless I overlooked it
>
> I also tried grepping through my installed /usr/pkg/share/lyx/doc/ files,
> but didn't find information.
> -=-=-=

  It is in my list to gather this information in the wiki. My time has been 
very limited recently though. :-(

  Every help is welcome.
-- 
José Abílio


looking for step-by-step guide for using docbook-xml with LyX

2006-11-07 Thread Jeremy C. Reed
I asked about this in May but didn't get any reply.

I am looking for a step-by-step guide for using docbook-xml with LyX.

My configure.py has:

\Format docbook-xml xml   "Docbook (XML)" "" "" "%%"
and
\converter docbookdocbook-xml "cp $$i $$o"  "xml"

I am running lyx 1.4.3 on NetBSD.

The lyx configuration says:

checking for SGML-tools 2.x (DocBook) or db2x scripts...
+checking for "sgmltools"...   no
+checking for "db2dvi"...   no
...
+checking for docbook  class docbook-book...  no
+checking for docbook  class docbook-chapter...  no
+checking for docbook  class docbook-section...  no
+checking for docbook  class docbook...  no


What is the correct URL for downloading db2dvi and/or sgmltools?

Where is using docbook with LyX documented? I see some LinuxDoc 
documented, but I don't think that is correct for my needs.

I found two bogus URLs in the LyX docs: http://www.sgmltools.org and 
http://pobox.com/~cg/sgmltools. I also read that SGMLtools is obsolete and 
the successor, SGMLtools-Lite, is also now obsolete.

I found DocBook tools at http://sources.redhat.com/docbook-tools/ but I am 
unsure which is the one to use.

What is needed for LyX?

Original message below:

-=-=-=-
Date: Sat, 6 May 2006 08:41:38 -0700 (PDT)
Subject: working with docbook

I have a document that begins with:

http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";
       []>

...

It is processed with openjade using a style sheet called:
.../share/sgml/docbook/dsssl/modular/print/docbook.dsl

I spent a lot of time manually converting the entire document to lyx, but 
this means when I make changes I have to do it in two places -- if I want 
to submit back changes. Maybe I should have just used lyx on the original 
XML document and save back in XML.

Can someone please point me to the documentation for reading and saving 
document in XML format using lyx?

I did find:

Document processing with LyX and SGML
http://www.karakas-online.de/mySGML/

Some articles about db4lyx and db2lyx.

http://wiki.lyx.org/LyX/DocBook is empty

5-Minute Review: Using LyX for Creating DocBook
 does not seems to show how to set it up, unless I overlooked it

I also tried grepping through my installed /usr/pkg/share/lyx/doc/ files, 
but didn't find information.
-=-=-=


working with docbook

2006-05-06 Thread Jeremy C. Reed
I have a document that begins with:

http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";
   []>

...

It is processed with openjade using a style sheet called:
.../share/sgml/docbook/dsssl/modular/print/docbook.dsl

I spent a lot of time manually converting the entire document to lyx, but 
this means when I make changes I have to do it in two places -- if I want 
to submit back changes. Maybe I should have just used lyx on the original 
XML document and save back in XML.

Can someone please point me to the documentation for reading and saving 
document in XML format using lyx?

I did find:

Document processing with LyX and SGML
http://www.karakas-online.de/mySGML/

Some articles about db4lyx and db2lyx.

http://wiki.lyx.org/LyX/DocBook is empty

5-Minute Review: Using LyX for Creating DocBook
 does not seems to show how to set it up, unless I overlooked it

I also tried grepping through my installed /usr/pkg/share/lyx/doc/ files, 
but didn't find information.


 Jeremy C. Reed

echo '9,J8HD,[EMAIL PROTECTED]:[EMAIL PROTECTED];[EMAIL 
PROTECTED]@5GBIELD54DL>@8L?:5GDEJ8LDG1' |\
sed ss,s50EBsg | tr 0-M 'p.wBt SgiIlxmLhan:o,erDsduv/cyP'


Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-09 Thread Stephen Harris


- Original Message - 
From: "John Pye" <[EMAIL PROTECTED]>

To: "Stephen Harris" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, February 09, 2006 4:16 AM
Subject: Re: Convert framemaker to docbook-lyx -- safest path?



Hi Stephen

As we already have the framemaker source files its seems inefficient to 
go via raster and OCR and back. I think that XSLT applied to mif2xml is 
going to be a better plan, unless I find that the mif2lyx script can be 
used, in which case that would be best.


Sounds like an interesting project though.

Cheers
JP



It appears to me that CambridgeDocs xDoc Converter has an 
evaluative download, but I don't know its limitations. 

http://www.microtype.com/about/shlomo.html  
Shlomo Perets used to contribute regularly to the FrameMaker mailing 
list and wrote FM applications and he might be an advice resource.


You mentioned in an earlier post you couldn't find the Perl 
module for mif2lyx. I just tested the downloads and they work.


--

http://www.cs.brandeis.edu/~pablo/mif2lyx/

Downloads: 

mif2lyx (Perl program) 
mif2lyx.lyx (instructions) 
Mif2lyx.pdf (PDF version of instructions) 
Mif2LyX requires the Perl library perlmif by Earl Hood. 


---

http://cpan.org/authors/id/EHOOD/

perlMIF.beta2.readme02-Jul-1994 20:58 4k  
perlMIF.beta2.tar.gz11-Dec-1997 15:52   315k  


---

SH: Is this the mif2xml you meant?

http://www.cambridgedocs.com/products/overview/mif2xml.htm
Convert FrameMaker files into custom or standard 
XML schemas / DTDs, such as DocBook or DITA


www.cambridgedocs.com/doc/xDoc20_Tutorial.pdf

http://www.cambridgedocs.com/news/2005Dec13.htm
"XSLT is great for tree-to-tree transformations of documents 
that start in XML.  However, XSLT was never meant to be a full 
parsing environment for unstructured content.  It is not ideal 
for parsing text or extracting meaningful tags out of the middle 
of an element's textual block. There are several advantages to 
using the xDoc transformation rules in tandem with ppXML.
Release 2.0 features include: New FrameMaker MIF Driver" 


-

I'm interested in conversions due to Hofstadter and AI,
Stephen





Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-09 Thread John Pye

Hi Stephen

As we already have the framemaker source files its seems inefficient to 
go via raster and OCR and back. I think that XSLT applied to mif2xml is 
going to be a better plan, unless I find that the mif2lyx script can be 
used, in which case that would be best.


Sounds like an interesting project though.

Cheers
JP

Stephen Harris wrote:



- Original Message - From: "John Pye" 
<[EMAIL PROTECTED]>

To: "Georg Baum" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, February 08, 2006 2:42 AM
Subject: Re: Convert framemaker to docbook-lyx -- safest path?



Hi Georg,

Georg Baum wrote:


John Pye wrote:

 


Can anyone offer any comments on what would be the 'safest path' for
converting Framemaker files into Docbook Lyx files?
   




I thought you might have a chance with Infty
http://www.inftyproject.org/en/demo.html#0002

"3. Online Recognition Test of InftyReader Ver.2.4.3d
You can test the recognition of YOUR math documents by InftyReader, 
ONLINE,. Click HERE"


SH: You can use Omnipage Pro(or other?) to convert your docs
to png or tiff. Infty claims that it can convert those formats at
400 or 600 dpi to several formats including tex. I tested the Online
conversion with English selected and it used Japanese anyway. I 
download Infty and it output tex but only a soso (English) conversion.


One can also save pdf as ps. I've seen ps2html and html2latex
scripts but they appear to have been abandoned, hard to find. I think 
your best chance is an OCR/image conversion to latex.

http://www.susqu.edu/brakke/PlateauBook/PlateauBook.html

I've had some success using Acrobat's Snapshot tool which
can copy a table and be saved ->->as an image file. Perhaps that could 
be inserted as a LyX graphic, if that helps at all.

Regards,
Stephen


OCR breaks even at 94% accuracy (or rekey),
Stephen








Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-08 Thread Stephen Harris


- Original Message - 
From: "John Pye" <[EMAIL PROTECTED]>

To: "Georg Baum" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, February 08, 2006 2:42 AM
Subject: Re: Convert framemaker to docbook-lyx -- safest path?



Hi Georg,

Georg Baum wrote:


John Pye wrote:

 


Can anyone offer any comments on what would be the 'safest path' for
converting Framemaker files into Docbook Lyx files?
   


I thought you might have a chance with Infty
http://www.inftyproject.org/en/demo.html#0002

"3. Online Recognition Test of InftyReader Ver.2.4.3d
You can test the recognition of YOUR math documents by 
InftyReader, ONLINE,. Click HERE"


SH: You can use Omnipage Pro(or other?) to convert your docs
to png or tiff. Infty claims that it can convert those formats at
400 or 600 dpi to several formats including tex. I tested the Online
conversion with English selected and it used Japanese anyway. I 
download Infty and it output tex but only a soso (English) conversion.


One can also save pdf as ps. I've seen ps2html and html2latex
scripts but they appear to have been abandoned, hard to find. 
I think your best chance is an OCR/image conversion to latex.

http://www.susqu.edu/brakke/PlateauBook/PlateauBook.html

I've had some success using Acrobat's Snapshot tool which
can copy a table and be saved ->->as an image file. Perhaps 
that could be inserted as a LyX graphic, if that helps at all. 


Regards,
Stephen


OCR breaks even at 94% accuracy (or rekey),
Stephen 









Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-08 Thread Patrick De Visschere


On Feb 8, 2006, at 02:28, John Pye wrote:


Hi all,

Can anyone offer any comments on what would be the 'safest path'  
for converting Framemaker files into Docbook Lyx files?




I can only give my own experience and don't know wether that's the  
safest path but it did work for me.
I converted a paper from framemaker to lyx which did not require much  
tweaking afterwards.


The paper contained equations, figures and references but  
(unfortunately) no tables, therefore I cannot comment on that  
specific problem.


Once I wrote a XSLT stylesheet to transform a mif-file into an xml- 
file; I think this is a safe route since the mif-file contains  
everything.
But since framemaker became framemaker+sgml I use the xml-export  
feature of framemaker. My only problem here are the equations which  
are by default exported as pictures (not acceptable to me). The only  
solution was to write a plug-in for framemaker which exports the  
mathfullform-expression instead of the picture.


I then convert the resulting xml-file in a 2-step process:
1) with a first stylesheet the mathfullform expressions are converted  
to mathml;
2) with a 2nd stylesheet  the resulting xml-file (with mathml- 
equations) is converted to tex using the xsltml package (http:// 
xsltml.sourceforge.net/) to convert the mathml equations.


Regards

Patrick De Visschere


...
Any suggestions?

Would I have more luck trying this with new new 1.4 version?

Cheers
JP

PS the document's I'm trying to transform are actually these:
http://ascend.cheme.cmu.edu/pdfhelp.htm
for which the source material is at
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/mif/? 
rev=338




Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-08 Thread Georg Baum
John Pye wrote:

> The perl module cited as prereq doesn't exist on CPAN. Not that I could
> find with search.

from the first google hit for perlmif:
http://www.cpan.org/modules/by-authors/id/EHOOD/

> Nope. Converting from frame to latex is a flakey process. No point going
> via latex here.

You will need that at least for the formulas, since LyX stores formulas in
LaTeX syntax.

> That might be interesting. Is there no XML-based Lyx file format yet?

This is planned, and Lars Gullik Bjønnes did some experiments with it, but
nothing more.

> What does lyx2lyx do, I can't see any documentation on the net.

It translates old .lyx files to the current format. The other way round does
also work, but only for 1.4 -> 1.3 conversions. The LyX class I already
mentioned has also limited capabilities for creating .lyx files from
scratch.

> Come to that, is there a lyx file format reference somewhere?

AFAIK only in the sources :-(

> My best best really does seem to be to write an XSLT to convert from
> either mif2xml output (or the direct Framemaker XML-export output) to a
> *structured file format* that Lyx can read reliably. I tried to write
> out XML directly but it seemed really hard to resolve the whitespace
> problems.

It might also be possible to use LyX itself to write the file and do the
conversion via commands sent to the lyxpipe. See
http://wiki.lyx.org/Tools/PyClient


Georg



Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-08 Thread John Pye

Hi Georg,

Georg Baum wrote:


John Pye wrote:

 


Can anyone offer any comments on what would be the 'safest path' for
converting Framemaker files into Docbook Lyx files?
   



You know http://www.cs.brandeis.edu/~pablo/mif2lyx/ ? It is somewhat
limited, but it might be possible to extend it.
 

The perl module cited as prereq doesn't exist on CPAN. Not that I could 
find with search.



Is a (nearly) lossless conversion from framemaker to latex possible? Then
you could use tex2lyx (see http://wiki.lyx.org/LaTeX/LatexToLyx) to produce
the LyX files. If tex2lyx fails to convert something then it is probably
easy to fix. The big advantage of this method is that you don't have to
worry about the LyX format.
 

Nope. Converting from frame to latex is a flakey process. No point going 
via latex here.



Another possibility would be to read the MIF or XML files with a python
script and use $LYXDIR/lib/lyx2lyx/LyX.py to create the LyX document.
LyX.py has no support for tables yet, so you'll have to write that, but
this would need to happen sometimes anyway.
 

That might be interesting. Is there no XML-based Lyx file format yet? 
What does lyx2lyx do, I can't see any documentation on the net.


Come to that, is there a lyx file format reference somewhere?

My best best really does seem to be to write an XSLT to convert from 
either mif2xml output (or the direct Framemaker XML-export output) to a 
*structured file format* that Lyx can read reliably. I tried to write 
out XML directly but it seemed really hard to resolve the whitespace 
problems.


You can see my efforts at
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2lyx.xsl?rev=310&view=markup
also, see my somewhat more successful
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2html.xsl?rev=310&view=markup

Cheers
JP


Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-08 Thread Georg Baum
John Pye wrote:

> Can anyone offer any comments on what would be the 'safest path' for
> converting Framemaker files into Docbook Lyx files?

You know http://www.cs.brandeis.edu/~pablo/mif2lyx/ ? It is somewhat
limited, but it might be possible to extend it.

Is a (nearly) lossless conversion from framemaker to latex possible? Then
you could use tex2lyx (see http://wiki.lyx.org/LaTeX/LatexToLyx) to produce
the LyX files. If tex2lyx fails to convert something then it is probably
easy to fix. The big advantage of this method is that you don't have to
worry about the LyX format.

Another possibility would be to read the MIF or XML files with a python
script and use $LYXDIR/lib/lyx2lyx/LyX.py to create the LyX document.
LyX.py has no support for tables yet, so you'll have to write that, but
this would need to happen sometimes anyway.

> Would I have more luck trying this with new new 1.4 version?

Maybe, since you might use one of the new features of 1.4, e.g. character
styles or extended boxes. Apart from  that, both LyX.py and tex2lyx produce
1.4 files. They can be converted by lyx2lyx to 1.3 format. This conversion
is lossless if no new 1.4 features are used.


Georg



Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-07 Thread John Pye
Hi Krishnan,

I did manage to preserve the cross-references when converting from the
XML-exported data from Framemaker to my Lyx files. This is probably
harder to do when converting from MIF files, but I'm not sure.

When converting from XML files, you get HTML-like labels like



and references like

Section 2.1, ”Converting the word
description into an ASCEND model,” on page 7

So it's simple enough to translate those into Lyx references, which is
what the  and  do in the following file:
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2lyx.xsl?rev=310&view=markup

My big problems here are related to converting framemaker tables to lyx
tables, sticking figures into lyx 'floats' and getting some kind of
line-numbered code listing format. The documents we have references to
specific lines in the code listings, and it's hard to get that to work
correctly in LyX.

Also, the code listing have captions, but Lyx doesn't seem to let you
have a caption unless you're inside a 'float'.

WRT equations, Framemaker's XML export exports equations as images
(GIFs) so a first-pass translation from Framemaker to LyX can simply
embed these images into the LyX file.

Cheers
JP

Krishnan Chittur wrote:

>
> John,
>
> My limited experience is that when there are equations and
> references to sections/chapters and so on - I have not had
> a lot of luck in going from one format to another -
> (my personal preference has been latex/pdflatex and
> tth/hevea or latex2html for html conversion)
>
> I would be happy to attempt some clean-up of latex or even
> lyx documentation - (even the most recent windoze version
> of lyx had some difficulty with some of my latex files -
> need to pursue that angle carefully) (no experience with
> framemaker)
>
> On Wed, 8 Feb 2006, John Pye wrote:
>
>> Hi all,
>>
>> Can anyone offer any comments on what would be the 'safest path' for
>> converting Framemaker files into Docbook Lyx files?
>>
>> I have the exported 'MIF' and 'XML' files from Framemaker version 5.
>> I also have the original .fm5 files, and I have the PDFs that were
>> generated by Framemaker. This is some old user's documentation for a
>> project that I'm working on: the documents have embedded images and
>> equations, multi-page line-numbered code listings, an index, marginal
>> notes, footnotes, and cross-references between sections, tables,
>> equations, etc. Also tabular text, bold, italic and 'typewriter'
>> code. It has 'parts', 'chapters' and then two or three levels of
>> sub-headings.
>>
>> I've already written a hacky XSLT-based transformation from the
>> Framemaker-exported XML files direct to LyX document format using an
>> XSLT transformation, but I found that I just couldn't make LyX do
>> anything sensible with the  tags that I generated - the
>> lyx format seemed to be so sensitive to whitespace. And I recently
>> received updated original Framemaker files, and I don't want to have
>> to re-do all the hand-tweaking that I did to make this approach work.
>> Also, framemaker's exported XML doesn't seem to contain *all* of the
>> original structure of the framemaker document.
>>
>> If I'm to use existing tools, it seems that mif2xml then a homemade
>> XSLT to transform to HTML, then...?
>>
>> I ultimately want to be able to export docbook and then generate
>> online documentation for GNOME and windows, as well as PDFs, as per
>> http://live.gnome.org/GnomeDocUtilsMigrationHowTo
>> and also Microsoft CHM format
>> http://en.wikipedia.org/wiki/Microsoft_Compressed_HTML_Help
>>
>> Any suggestions?
>>
>> Would I have more luck trying this with new new 1.4 version?
>>
>> Cheers
>> JP
>>
>> PS the document's I'm trying to transform are actually these:
>> http://ascend.cheme.cmu.edu/pdfhelp.htm
>> for which the source material is at
>> https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/mif/?rev=338
>>
>>
>

-- 
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney  NSW 2052  Australia
t +61 2 9385 5127
f +61 2 9663 1222
mailto:john.pye_AT_student_DOT_unsw.edu.au
http://pye.dyndns.org/



Re: Convert framemaker to docbook-lyx -- safest path?

2006-02-07 Thread Krishnan Chittur


John,

My limited experience is that when there are equations and
references to sections/chapters and so on - I have not had
a lot of luck in going from one format to another -
(my personal preference has been latex/pdflatex and
tth/hevea or latex2html for html conversion)

I would be happy to attempt some clean-up of latex or even
lyx documentation - (even the most recent windoze version
of lyx had some difficulty with some of my latex files -
need to pursue that angle carefully) (no experience with
framemaker)

On Wed, 8 Feb 2006, John Pye wrote:


Hi all,

Can anyone offer any comments on what would be the 'safest path' for 
converting Framemaker files into Docbook Lyx files?


I have the exported 'MIF' and 'XML' files from Framemaker version 5. I also 
have the original .fm5 files, and I have the PDFs that were generated by 
Framemaker. This is some old user's documentation for a project that I'm 
working on: the documents have embedded images and equations, multi-page 
line-numbered code listings, an index, marginal notes, footnotes, and 
cross-references between sections, tables, equations, etc. Also tabular text, 
bold, italic and 'typewriter' code. It has 'parts', 'chapters' and then two 
or three levels of sub-headings.


I've already written a hacky XSLT-based transformation from the 
Framemaker-exported XML files direct to LyX document format using an XSLT 
transformation, but I found that I just couldn't make LyX do anything 
sensible with the  tags that I generated - the lyx format seemed 
to be so sensitive to whitespace. And I recently received updated original 
Framemaker files, and I don't want to have to re-do all the hand-tweaking 
that I did to make this approach work. Also, framemaker's exported XML 
doesn't seem to contain *all* of the original structure of the framemaker 
document.


If I'm to use existing tools, it seems that mif2xml then a homemade XSLT to 
transform to HTML, then...?


I ultimately want to be able to export docbook and then generate online 
documentation for GNOME and windows, as well as PDFs, as per

http://live.gnome.org/GnomeDocUtilsMigrationHowTo
and also Microsoft CHM format
http://en.wikipedia.org/wiki/Microsoft_Compressed_HTML_Help

Any suggestions?

Would I have more luck trying this with new new 1.4 version?

Cheers
JP

PS the document's I'm trying to transform are actually these:
http://ascend.cheme.cmu.edu/pdfhelp.htm
for which the source material is at
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/mif/?rev=338



Convert framemaker to docbook-lyx -- safest path?

2006-02-07 Thread John Pye

Hi all,

Can anyone offer any comments on what would be the 'safest path' for 
converting Framemaker files into Docbook Lyx files?


I have the exported 'MIF' and 'XML' files from Framemaker version 5. I 
also have the original .fm5 files, and I have the PDFs that were 
generated by Framemaker. This is some old user's documentation for a 
project that I'm working on: the documents have embedded images and 
equations, multi-page line-numbered code listings, an index, marginal 
notes, footnotes, and cross-references between sections, tables, 
equations, etc. Also tabular text, bold, italic and 'typewriter' code. 
It has 'parts', 'chapters' and then two or three levels of sub-headings.


I've already written a hacky XSLT-based transformation from the 
Framemaker-exported XML files direct to LyX document format using an 
XSLT transformation, but I found that I just couldn't make LyX do 
anything sensible with the  tags that I generated - the lyx 
format seemed to be so sensitive to whitespace. And I recently received 
updated original Framemaker files, and I don't want to have to re-do all 
the hand-tweaking that I did to make this approach work. Also, 
framemaker's exported XML doesn't seem to contain *all* of the original 
structure of the framemaker document.


If I'm to use existing tools, it seems that mif2xml then a homemade XSLT 
to transform to HTML, then...?


I ultimately want to be able to export docbook and then generate online 
documentation for GNOME and windows, as well as PDFs, as per

http://live.gnome.org/GnomeDocUtilsMigrationHowTo
and also Microsoft CHM format
http://en.wikipedia.org/wiki/Microsoft_Compressed_HTML_Help

Any suggestions?

Would I have more luck trying this with new new 1.4 version?

Cheers
JP

PS the document's I'm trying to transform are actually these:
http://ascend.cheme.cmu.edu/pdfhelp.htm
for which the source material is at
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/mif/?rev=338


Re: Creating DocBook stuff using LyX

2005-10-23 Thread Geoffrey Lloyd
- Original Message - 
From: "Daniel Watkins" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, October 23, 2005 6:48 PM
Subject: Creating DocBook stuff using LyX



I've just managed to get the job of putting together the documentation
for a SourceForge project, and it would be exceedingly helpful if I were
to be able to do it on LyX. Unfortunately, it requires DocBook format
stuff, and I don't know how (or if it's possible) to create that using
LyX.

Any elucidation would be appreciated.

Thanks in advance,
Dan


A quick google on "docbook lyx" brought up the following among many others

http://bgu.chez.tiscali.fr/doc/db4lyx/

Seems comprehensive










Creating DocBook stuff using LyX

2005-10-23 Thread Daniel Watkins
I've just managed to get the job of putting together the documentation
for a SourceForge project, and it would be exceedingly helpful if I were
to be able to do it on LyX. Unfortunately, it requires DocBook format
stuff, and I don't know how (or if it's possible) to create that using
LyX.

Any elucidation would be appreciated.

Thanks in advance,
Dan



Re: Cannot get docbook on a mac

2005-09-13 Thread Mike Meyer
[Apologies to those of you who are seeing this twice.]


In <[EMAIL PROTECTED]>, Bennett Helm <[EMAIL PROTECTED]> typed:
> On Sep 13, 2005, at 10:03 AM, Mike Meyer wrote:
> > the configure script walks your $PATH looking for sgmltools and/or
> > db2dvi to decide whether or not to configure docbook support. Fink
> > probably put those in /sw/bin.
> > If that's the case, you need to add /sw/bin the path used by LyX. On
> > tiger (sorry, I'm a Mac newbie and haven't dealt with anything else)
> > you edit ~/.MacOSX/environment.plist. There's a GUI plist editor
> > available, but the file is just XML text, so you can use your favorite
> > text editor on it as well.
> Actually, if all you want is to add /sw/bin to the path that LyX  
> uses, you should do it from within LyX itself: LyX > Preferences >  
> PATH > PATH Prefix. (For LyX/Mac-1.3.6, the default settings already  
> have /sw/bin there.) If you add something to the PATH setting in  
> ~/.MacOSX/environment.plist, that will apply to *every* OS X  
> application, which is probably overkill and potentially a security risk.

Whether or not it's overkill depends on how many applications you have
that want to use programs from fink (or, in my case, darwinports). I
have a couple, so doing things this way is easier for me.

I found this method while trying to figure out why LyX wasn't finding
my darwinports software. That I didn't find the LyX > Preferences >
PATH > PATH Prefix methods suggests a doc bug. This appears to be a
Mac issue - I don't find the PATH entries in preferences in 1.3.5 on
my Unix box. Might just be my not having taken time to read the docs
properly, though.

  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.


Re: Cannot get docbook on a mac

2005-09-13 Thread Bennett Helm

On Sep 13, 2005, at 10:03 AM, Mike Meyer wrote:


the configure script walks your $PATH looking for sgmltools and/or
db2dvi to decide whether or not to configure docbook support. Fink
probably put those in /sw/bin.

If that's the case, you need to add /sw/bin the path used by LyX. On
tiger (sorry, I'm a Mac newbie and haven't dealt with anything else)
you edit ~/.MacOSX/environment.plist. There's a GUI plist editor
available, but the file is just XML text, so you can use your favorite
text editor on it as well.


Actually, if all you want is to add /sw/bin to the path that LyX  
uses, you should do it from within LyX itself: LyX > Preferences >  
PATH > PATH Prefix. (For LyX/Mac-1.3.6, the default settings already  
have /sw/bin there.) If you add something to the PATH setting in  
~/.MacOSX/environment.plist, that will apply to *every* OS X  
application, which is probably overkill and potentially a security risk.


I'm not that familiar with fink or at all familiar with docbook, so I  
can't be more helpful.


Bennett


Re: Cannot get docbook on a mac

2005-09-13 Thread Mike Meyer
In <[EMAIL PROTECTED]>, David Rolfe <[EMAIL PROTECTED]> typed:
> I am new to this forum, but have used lyx a little bit over a
> longish period of time. I now run on OS X tiger and installed the
> Tex bundle with fink (which appears to include a bunch of
> sgml/docbook stuff) and the Aqua version of lxy and everything seems
> to be working ... except that all the dockbook and sgml stuff is
> marked as unavailable. In addition none of the templates work. They
> all complain about a missing Tex class. So... I need some help
> here. What pieces am I missing?

the configure script walks your $PATH looking for sgmltools and/or
db2dvi to decide whether or not to configure docbook support. Fink
probably put those in /sw/bin.

If that's the case, you need to add /sw/bin the path used by LyX. On
tiger (sorry, I'm a Mac newbie and haven't dealt with anything else)
you edit ~/.MacOSX/environment.plist. There's a GUI plist editor
available, but the file is just XML text, so you can use your favorite
text editor on it as well.

  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.


Cannot get docbook on a mac

2005-09-13 Thread David Rolfe
Hi everyone,

I am new to this forum, but have used lyx a little bit over a longish period of 
time. I now run on OS X tiger and installed the Tex bundle with fink (which 
appears to include a bunch of sgml/docbook stuff) and the Aqua version of lxy 
and everything seems to be working ... except that all the dockbook and sgml 
stuff is marked as unavailable. In addition none of the templates work. They 
all complain about a missing Tex class. So... I need some help here. What 
pieces am I missing?

Thanks, Dave


  1   2   3   4   5   >