discuss: XML->PDF (Was Re: ArchiveMail-HOWTO cont...)


Previous by date: 11 Jul 2001 17:31:22 -0000 Re: docbook table, Will Holcomb
Next by date: 11 Jul 2001 17:31:22 -0000 Re: docbook table, Greg Ferguson
Previous in thread: 11 Jul 2001 17:31:22 -0000 Re: XML->PDF (Was Re: ArchiveMail-HOWTO cont...), Dan York
Next in thread:

Subject: Re: XML->PDF (Was Re: ArchiveMail-HOWTO cont...)
From: Jorge Luiz Godoy Filho ####@####.####
Date: 11 Jul 2001 17:31:22 -0000
Message-Id: <m3n16bwem9.fsf@dagon.conectiva>

On Wed, 4 Jul 2001, ####@####.#### wrote:
> On Wed, Jul 04, 2001 at 11:30:49PM -0300, Jorge Luiz Godoy Filho
> wrote:
>> On Wed, 4 Jul 2001, ####@####.#### wrote:
>> > 
>> >  <tt
>> > CLASS="LITERAL"
>> >> <p
>> > CLASS="LITERALLAYOUT"
>> >><br>
>> > &nbsp;Some drawing/text goes here, etc<br>
>> > &nbsp;&nbsp;&nbsp;</p> </tt></p>
>> > 
>> > 
>> > I would suspect this effects other 'literallayout' stuff too. I
>> > know images would be better, but I am not so good at that. Or is
>> > there something I am missing on the SGML side?
>> 
>> Hmmmm...
>> 
>> Hal, could you please send me a small SGML file so that I can check
>> this HTML output? I think that --- I have to look at some docs
>> before being sure --- there should be a '<pre>' here, not <p>'s and
>> <br>'s.
> 
> Attaching test.sgml, and the html I get out of it. I also used the
> <screen> tag here to show the difference. I don't like using
> <screen> in some situations since it generates a shaded look, which
> is fine where emulating the look of a screen ;)


OK... Finally I've checked that. Here's an excerpt from the TDG:

----------------------------------------------------------------------
Processing expectations

This element is displayed &ldquo;verbatim&rdquo;; whitespace and
linebreaks within this element are significant. 

Unlike ProgramListing and Screen, which usually imply a font change,
LiteralLayout does not. How spaces are to be represented faithfully in
a proportional font is not addressed by DocBook. 

In DocBook V3.1, the Class attribute was added to give users control
over the font used in LiteralLayouts. If the Class attribute is
specified and its value is Monospaced, then the LiteralLayout will be
presented in a monospaced font, probably the same one used for other
verbatim environments. The default value for Class is Normal, meaning
that no font change will occur.
----------------------------------------------------------------------


So, if you want to have a monospaced font for something that's not a
screen or programlisting, you have to use the 'monospaced' class.


Sorry for taking too long to answer... 
-- 
Godoy. ####@####.####

Desenvolvimento de Soluções         --          Solutions Development
Conectiva S.A     -    www.conectiva.com.br     -   +55 (41) 360-2600
Conectiva Inc.    -    www.conectiva.com        -   +55 (41) 360-2600


Previous by date: 11 Jul 2001 17:31:22 -0000 Re: docbook table, Will Holcomb
Next by date: 11 Jul 2001 17:31:22 -0000 Re: docbook table, Greg Ferguson
Previous in thread: 11 Jul 2001 17:31:22 -0000 Re: XML->PDF (Was Re: ArchiveMail-HOWTO cont...), Dan York
Next in thread:


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.