[sword-devel] Sword support of indents and line breaks
mcepl at redhat.com
Fri Apr 12 13:14:52 MST 2013
On 12/04/13 08:04, John Austin wrote:
> Sword should support basic indents and line breaks. Content providers
> should be able to control the formatting of their texts and should not
> be required to assign their content to artificial <p>...</p> or other
> containers to do so. Although these containers might be useful, the text
> of some translation styles cannot be fit nicely into them. But often
> content providers do rightly desire their texts to appear with
> formatting similar to their printed texts, since this is exactly what
> the translators deemed easiest to read and understand.
If I may give my 0.02 CZK, I would think that the answer is simple: No.
This goes against the fundamental rule of XML, which is the separation
of the content (and structure) from presentation.
All whitespace in XML is collapsible and irrelevant for anything more
than separating words from each other. If you want your text to look
different, than please no <font> elements, no <milestone
type="x-p-indent"/>, or other abomination like that. We were there
(e.g., see whole discussion about <font> element in HTML 3.2) and it was
not nice. Elements in XML document are just abstract entities without
ANY notion of how they are supposed to be rendered in the end.
The only thing you should do is to fix your stylesheet or program
rendering the XML document into whatever output you expect.
http://www.ceplovi.cz/matej/, Jabber: mcepl at ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4460 bytes
Desc: S/MIME Cryptographic Signature
More information about the sword-devel