docbook: Thread: Subtitle


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Subtitle
From: ####@####.#### (Lars =?iso-8859-1?q?Bj=F8rndal?=)
Date: 21 May 2002 09:20:18 -0000
Message-Id: <m3sn4loo6b.fsf@fox.broadpark.no>

Please help me!

I've upgraded my system to Red Hat 7.3. After that, I have problem
with the Subtitle tag. The beginning of my sgml-file is:

----------------------------------------
<!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<Article lang="no">

<ArtHeader>

<Title>Bruksanvisning for Paddy.</Title>

<SUBTITLE>Det hendige notatapparatet med talegenerator.</SUBTITLE>
<AuthorGroup>
  <AUTHOR>
    <FirstName>Handy Tech Norge AS,</FirstName>
      <affiliation>
        <Address>
          ####@####.####
        </address>
      </affiliation>
  </author>
</authorgroup>
----------------------------------------

While producing html by isuing the command "db2html -u -d
~/ldp.dsl#html file.sgml", i have three problems:

1. The Title and Subtitle-texts are placed on the same line if I use
   lynx as the browser. The line looks like:

   "Bruksanvisning for Paddy.Det hendige notatapparatet med
   talegenerator."

   The html-code looks like this:
   "<H1
CLASS="TITLE"
><A
NAME="AEN2">Bruksanvisning for Paddy.</H1
><H2
CLASS="SUBTITLE"
>Det hendige notatapparatet med talegenerator.</H2
>"

   How can I solve this problem? Is it a lynx- or a db-problem?

2. I can not get the email-address as a link. What can I do here?
   Please see above.

3. I don't like that the ending greater than sign of the tags are
   placed on a new line, such as:
<HTML
>

   Is there a way around that problem?

Lars

-- 
Lars Bjørndal ####@####.####
Storetveitåsen 15, 5067 Bergen.
Tlf.: 55 28 87 55  Mobil: 958 37 537  Telefaks: 55 28 40 67
Subject: Re: Subtitle
From: ####@####.####
Date: 21 May 2002 10:39:33 -0000
Message-Id: <10660.1021977546@www52.gmx.net>

Lars Bjørndal wrote:
> I've upgraded my system to Red Hat 7.3. After that,
> I have problem with the Subtitle tag.
> [...] The Title and Subtitle-texts are placed on
> the same line if I use lynx as the browser.
> [...] How can I solve this problem?
> Is it a lynx- or a db-problem?

I get the same result.
This is a problem of the style-sheet, not the browser.
You will need a customization layer to the dsssl-file.
I'll have a look at it.

> I can not get the email-address as a link.
> What can I do here?

Default style sheet used by db2html is 
/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/docbook.dsl 
It does not output the email-address at all.

The gnome style sheet is
/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl
It emits the email-address as plain text, not as ulink.

Try to add option

-d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl

to your call of db2html.

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Subject: Re: Subtitle
From: ####@####.####
Date: 21 May 2002 11:08:36 -0000
Message-Id: <28093.1021979289@www52.gmx.net>

> Lars Bjørndal wrote:
> > I've upgraded my system to Red Hat 7.3. After that,
> > I have problem with the Subtitle tag.
> > [...] The Title and Subtitle-texts are placed on
> > the same line if I use lynx as the browser.
> > [...] How can I solve this problem?
> > Is it a lynx- or a db-problem?

Well, RH7.2 provides stylesheets-1.64 while RH7.3 uses
stylesheets-1.76. The action happens in 

/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbnavig.dsl

about line 40. Replacing (literal ": ") with something else,
e.g. (literal "??? ") changes the separator between
title and subtitle. I can't see any %parameter clause, however.
It's possible to copy the whole "(define (nav-banner elemnode)"
to a custamization-layer and remove unwanted parts.

But that is not the clean way. The code of stylesheets-1.64
is identical, so the magic must happen somewhere else.



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Subject: Re: Subtitle
From: Guylhem Aznar ####@####.####
Date: 21 May 2002 12:09:54 -0000
Message-Id: <Pine.LNX.4.44.0205210803450.11840-100000@tribal.metalab.unc.edu>

On Tue, 21 May 2002 ####@####.#### wrote:
> But that is not the clean way. The code of stylesheets-1.64
> is identical, so the magic must happen somewhere else.

Do you mean this bug comes from upgrading to a newer redhat?

Then maybe we should ship our own /opt/docbook, with i386 binaires 
plus sources with config.sh script to recompile everything whenever needed
ala BSD? Just give me a list of the .tar.gz files needed for the 
compilation of the various docbook tools and I'll see what I can do.

Whenever I have too many problems with some software on my servers (apache 
and the various versions with mod_whatever, djbdns and Bernstein bad 
paths) I make a package for my own use in /opt/ and keep a config.sh shell 
script in the sources to recompile and reinstall everything in the same 
location in /opt.

Have been doing that for 2 years. Now when I upgrade (for ex to my new hp 
netserver) it's just a matter of moving /opt, recompiling (different CPU, 
different optimisations) and voila. I keep my working versions of working 
software instead of trusting someone else's skill.

Guylhem

Subject: Re: Subtitle
From: ####@####.####
Date: 21 May 2002 12:59:30 -0000
Message-Id: <10789.1021985942@www52.gmx.net>

Guylhem Aznar wrote:
> [...]
> Do you mean this bug comes from upgrading to a newer redhat?

This is not a bug. It's a feature. The only problem is that
I did not yet find the right way to switch it off.

Anyway, it's rather a problem with ldp.dsl. I think it's based
on version 1.63 of Norman Walsh's stylesheet. Outside world
reached version 1.76 in the meantime. And ldp.dsl is missing
the right switches to produce the same output as before.

> [...]
> Then maybe we should ship our own /opt/docbook,
> with i386 binaires plus sources with config.sh script
> to recompile everything whenever needed ala BSD?

You are welcome. But I doubt that you will have much
success duplicating the work of distributors.

> [...]
> Now when I upgrade (for ex to my new hp netserver) it's
> just a matter of moving /opt, recompiling (different CPU, 
> different optimisations) and voila.

I say it once again: LDP must _lower_ the barriers.
We must make the process of creating real output
from DocBook as painlessly as possible.
Compiling tools and replacing major parts of
distributions will only deter poeple.

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Subject: Re: Subtitle
From: "Greg Ferguson" ####@####.####
Date: 21 May 2002 13:08:42 -0000
Message-Id: <10205210905.ZM28450@hoop.timonium.sgi.com>

On May 21,  2:59pm, ####@####.#### wrote:
> Subject: Re: Subtitle
> Guylhem Aznar wrote:
> > [...]
> > Do you mean this bug comes from upgrading to a newer redhat?
>
> This is not a bug. It's a feature. The only problem is that
> I did not yet find the right way to switch it off.
>
> Anyway, it's rather a problem with ldp.dsl. I think it's based
> on version 1.63 of Norman Walsh's stylesheet. Outside world
> reached version 1.76 in the meantime. And ldp.dsl is missing
> the right switches to produce the same output as before.

I'm running on our production server with 1.76. I maintain ldp.dsl.
What no longer works? Send me a SGML sample.


-- 
Greg Ferguson    * SGI principal engr / LDP contributor
SGI Tech Pubs    * http://techpubs.sgi.com/ | gferg(at)sgi.com
Linux Doc Project* http://tldp.org/         | gferg(at)metalab.unc.edu
Subject: Re: Subtitle
From: ####@####.####
Date: 21 May 2002 13:33:41 -0000
Message-Id: <2993.1021987994@www52.gmx.net>

Greg Ferguson wrote:
> [...]
> I'm running on our production server with 1.76.
> I maintain ldp.dsl.
> What no longer works? Send me a SGML sample.

Yet another bug with the mailing list archive.
There is an entry for Lars Bjørndal's original
message, but the message body is empty.

The problem is that the title line of HTML pages
is now made up by both <title> and <subtitle> tags.
My document features a ridiculously long subtitle,
so the result is ridiculous as well.

<articleinfo>
  <title>The Linux Virus Writing HOWTO</title>
  <titleabbrev>TLVWH</titleabbrev>
  <subtitle>
    post link-time code modification of ELF executables under Linux/i386
  </subtitle>

This results in 

<TH COLSPAN="3" ALIGN="center"
>The Linux Virus Writing HOWTO:     post link-time code modification of ELF
executables under Linux/i386
  </TH
>

on every HTML-page.

Modifing element "(define (nav-banner elemnode)" in dbnavig.dsl
shows expected results. But then this specific code is identical
to stylesheets-1.64, so the magic must be somewhere else.

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Subject: Re: Subtitle
From: "Greg Ferguson" ####@####.####
Date: 21 May 2002 13:40:43 -0000
Message-Id: <10205210937.ZM28626@hoop.timonium.sgi.com>

On May 21,  3:33pm, ####@####.#### wrote:
> Subject: Re: Subtitle
>
> [ plain text
>   Encoded with "quoted-printable" ] :
Greg Ferguson wrote:
> > [...]
> > I'm running on our production server with 1.76.
> > I maintain ldp.dsl.
> > What no longer works? Send me a SGML sample.
>
> Yet another bug with the mailing list archive.
> There is an entry for Lars Bjørndal's original
> message, but the message body is empty.
>
> The problem is that the title line of HTML pages
> is now made up by both <title> and <subtitle> tags.
> My document features a ridiculously long subtitle,
> so the result is ridiculous as well.
>
> <articleinfo>
>   <title>The Linux Virus Writing HOWTO</title>
>   <titleabbrev>TLVWH</titleabbrev>
>   <subtitle>
>     post link-time code modification of ELF executables under Linux/i386
>   </subtitle>
>
> This results in
>
> <TH COLSPAN="3" ALIGN="center"
> >The Linux Virus Writing HOWTO:     post link-time code modification of
ELF
> executables under Linux/i386
>   </TH
> >
>
> on every HTML-page.

Ok, let me look into this. I'm pretty sure I know where the problem
occurs.



-- 
Greg Ferguson    * SGI principal engr / LDP contributor
SGI Tech Pubs    * http://techpubs.sgi.com/ | gferg(at)sgi.com
Linux Doc Project* http://tldp.org/         | gferg(at)metalab.unc.edu
Subject: Re: Subtitle
From: "Greg Ferguson" ####@####.####
Date: 21 May 2002 14:17:22 -0000
Message-Id: <10205211014.ZM28695@hoop.timonium.sgi.com>

On May 21,  3:33pm, ####@####.#### wrote:
> Subject: Re: Subtitle
>
> [ plain text
>   Encoded with "quoted-printable" ] :
Greg Ferguson wrote:
> > [...]
> > I'm running on our production server with 1.76.
> > I maintain ldp.dsl.
> > What no longer works? Send me a SGML sample.
>
> Yet another bug with the mailing list archive.
> There is an entry for Lars Bjørndal's original
> message, but the message body is empty.
>
> The problem is that the title line of HTML pages
> is now made up by both <title> and <subtitle> tags.
> My document features a ridiculously long subtitle,
> so the result is ridiculous as well.

Ok, it's fixed with the exception of printing a ":" after
the main title on each HTML page.

   http://tldp.org/authors/tools/ldp.dsl

here's what I had to override (FYI):

  (mode subtitle-mode
      (element subtitle ""))



-- 
Greg Ferguson    * SGI principal engr / LDP contributor
SGI Tech Pubs    * http://techpubs.sgi.com/ | gferg(at)sgi.com
Linux Doc Project* http://tldp.org/         | gferg(at)metalab.unc.edu
Subject: Re: Subtitle
From: --s+ ####@####.####
Date: 21 May 2002 14:57:28 -0000
Message-Id: <20020521145726.GB29671@szafa.hyperreal.pl>

--->[Quoting ####@####.#### ####@####.####

> Yet another bug with the mailing list archive.
> There is an entry for Lars Bj?rndal's original
> message, but the message body is empty.

Yeah, Lars` letter has unstandard MIME encoding.
I will look at it.

Recently I've added search index into archive,
but the web archive lists software is not finished.
You are welcome to help in work :-)

Sergiusz
-- 
      http://ibiblio.org/ser/ | http://it-zone.org/ 
_________________________________________________________
tldp.org|gnu.org|hyperreal.info|pld-linux.org|it-zone.org
  "The moon is made of green cheese." -- John Heywood
[<<] [<] Page 1 of 1 [>] [>>]


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