OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] White space in fo question

Dick Hamilton wrote:
> I've been playing around with the various white space attributes
> trying, with no success so far, to achieve the following with fo:
> Given the following input text (I've replace the space character
> with '^' to make things clearer):
> <para>
> ^^^^Now^is^the^time.^^Here^is^the^place.^^
> ^^^^There^is^the^problem.^^Way^out^there
> ^^^^is^the^solution.
> <para>
> I'd like to get the following output using a monospace font (Courier):
> Now^is^the^time.^^Here^is
> the^place.^^There^is^the
> problem.^^Way^out^there^is
> the^solution.
> Note that the two spaces between each sentence have been preserved,
> the text has been wrapped, and the indentation in the source has been
> ignored.

For once CSS has this feature!
Guessing you mean in earlier processing?

1. http://www.dpawson.co.uk/xsl/rev2/regex2.html#d17364e181
Convert to isolated lines.
Normalize each line
Replace .^ with .^^ within each line.
  (or perhaps one of the other 'spaces', probably &#xa0; easiest)
Merge together.


Dave Pawson

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]