On 5/3/00, 12:11:10 PM, Jose Abilio Oliveira Matos
<[EMAIL PROTECTED]> wrote regarding Re: DocBook sgml problems:
> On Wed, May 03, 2000 at 03:11:19AM +0100, Bruce Richardson wrote:
> > I'm finding problems with the DocBook sgml exported by Lyx
(1.1.4-fix3).
> > Two examples:
> > <programlisting> - or the Code environment. Lyx won't let me type "as
is" -
> > i.e. as many spaces as I need to line things up. This is inconvenient
since
> > the <programlisting> sgml tag is the only DocBook equivalent to the
<verb>
> > tag from LinuxDoc. I need this to get an ascii directory tree to line
up
> > and right now I'm having to rewrite that bit in Vi everytime I export
the
> > html.
Actually, I built Lyx on a machine here at work and it happily let me
type "as is" in the Code environment in DocBook - although now it's
putting an extra blank line between each line of code. Is it
significant which version of sgmltools is installed when Lyx is built?
At work I had sgmltools installed, while at home I had sgml-tools
installed while Lyx was built and then upgraded to sgmltools.
> >
> > Quotes, tildes and square brackets. Lyx is exporting these as &ldquo,
> > &tilde and &lsqb but DocBook needs the actual characters. In other
words,
> > &ldquo is shown as "&ldquo" in a DocBook document.
> Is that a problem? Does it show up in the dvi version or the
resulting html?
It turns out to be a problem with sgmltools. The postscript and rich
text format gets the quotes and brackets right but the html output
doesn't. As for tildes, if in the code environment they're written as
"~" and look good in all ouput. If written in the standard
environment they're written as "˜" and and all formats (ps,
html, rtf etc) show just that, instead of the desired character.
I attach a small test sgml file as an example.
--
Bruce
Title:
Title
]>
Date
JoeDoe
Abstract
First Section
Text with [brackets] and “quotes”.
/->
| |
| |
|--->
cat ˜/mbox
cat ~/mbox