Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2013 13:37:25 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Gabor Kovesdan <gabor@FreeBSD.org>
Cc:        doc@FreeBSD.org
Subject:   Re: Another CSS suggestion: pre-wrap
Message-ID:  <alpine.BSF.2.00.1307281328360.10705@wonkity.com>
In-Reply-To: <51F57011.2000603@FreeBSD.org>
References:  <alpine.BSF.2.00.1307281057160.9642@wonkity.com> <51F558D2.1010808@FreeBSD.org> <51F56688.5040900@FreeBSD.org> <alpine.BSF.2.00.1307281308390.10705@wonkity.com> <51F57011.2000603@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Jul 2013, Gabor Kovesdan wrote:

> On 2013.07.28. 21:17, Warren Block wrote:
>>> This seems to does the XSLT-part, although it may be done in a better way 
>>> since it breaks some DocBook features that we don't use:
>>> http://kovesdan.org/patches/xhtml-wrap.diff
>> 
>> Nice!  Which DocBook features would be compromised?  Are there any other 
>> reasons not to start using this now? 
> Line numbering and syntax highlighting. Both require XSLT extensions and thus 
> won't work with xsltproc. I don't know of any other reason not to use them.

Line numbering is nice sometimes, although sometimes it's easy to 
confuse with content.  Syntax highlighting could be useful in places 
like the Architecture Handbook, but as you say, we don't have it now.

Would you agree that using this line wrap now would not prevent 
switching to other methods in the future?

> I think we should only use the indicator at the end of the line both not at 
> the start of the wrapped part since this is more conventional. And it would 
> be nice to use the same symbol that we use in the new PDFs. That is part of 
> the Droid Sans Mono font. This example uses images but maybe it is possible 
> to use text, I'm not sure about this, I don't know CSS so well. Anyway, we 
> may as well create an image with an SVG editor.

Agreed on all counts.

A useful example is at the bottom of this page:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/xml-primer-elements.html

The xmllint output is huge and scrolls off the right of the screen.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1307281328360.10705>