Package: roffit
Version: 0.6+cvs20090507-1
Severity: normal
Tags: upstream
Roffit represents \f font changes with
<span class="...">text</span>
This leads to unbalanced <span> tags for valid nroff input like:
normal\fBbold\fIitalic\fRnormal
This is commonly used in the synopsis section of man pages to specify
options and arguments to them. E.g. from Heirloom tar:
\fB\-C\fI dir\fR
The result is:
<span class="bold">-C<span Class="emphasis"> dir</span>
Additionally:
Font changes (as escape sequence \f) can appear at any point in nroff
input an change the font for all following text, i.e. over line and
page breaks. Hence font changes can not be represented with <span>,
as inline elements must not contain block elements.
Seems as if the current font should be stored in a variable and at
the beginning of each block element, an appropriate font change must
be made, while at each end of a block element the appropriate end
element to the font change must be inserted. Like this:
\fBfoo
.PP
bar
would get converted to
<span class="bold">foo</span>
<p>
<span class="bold">bar</span>
</p>
or better
<span class="bold">foo</span>
<p class="bold">
bar
</p>
The main problem here is that nroff's language design is generally
different to the one of HTML, at least to newer (X)HTML versions.
meillo
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages roffit depends on:
ii perl 5.10.1-12 Larry Wall's Practical Extraction
roffit recommends no packages.
roffit suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]