Maybe I don't got any other solution because I'm quite new to XSL-FO ...
I would really love to use text-indent, but in my case I don't see a
chance to do so.
This is due to the fact that text-indent only works with fo:block.

my XML doc looks like..

Lorem ipsum dolor sit amet, consectetuer adipiscing elit
<absatz />
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
<absatz />
Lorem ipsum dolor sit amet, consectetuer adipiscing elit

there shall be a linebreak and text-indent after every occur of <absatz />.
I found no possibility to apply a new fo:block to all of the text
before and after
<absatz />.
Thats why I'm using <fo:block /><fo:inline font-size="10pt">&#8195;</fo:inline>
to get my linebreak and indent.

If any of you got a better idea I would love to hear it.

Olli




2007/1/7, Abel Braaksma <[EMAIL PROTECTED]>:
Oliver Müller wrote:
> the problem only appears when it's the first element of a new line.
> I tried 2 different methods to get the effect and both fail with fop.
>
>      <fo:inline space-start="10pt"></fo:inline>
>      <fo:inline font-size="10pt">&#8195;</fo:inline>
>
> Note that this works in Antenna House XSLFormatter.
>
> I need this for my workaround for line indenting, because I want
> to indent lines after a xml node called <absatz />.

I can hardly believe you need a workaround for spacing text, the last
time I saw that it was really needed was in the HTML 2.0 time, where
tables were not yet a part of the standard. However, if you must use
spaces and cannot use text-indent or the like, consider a workaround
with either:

&#x200C;  -- Zero Width Non-Joiner
&#x200D;  -- Zero Width Joiner
&#x200E; -- Left-To-Right-Mark
&#x200F; -- Right-To-Left-Mark

For example, you could try this:

EM SPACE -- ZWJ -- HAIR SPACE

But if that is still truncated down to nothing (as spaces appear to be
stripped), you can try holding it into two characters that are not
spaces, like this:

LRM -- EM SPACE -- LRM

(or if your text is supposed to be right-to-left, replace that with RLM)
(look here for possible candidates that are better suited than a
character that actually has a function:
http://www.fileformat.info/info/unicode/category/Cf/list.htm)

But, these seem to me like terrible workarounds: not all fonts support
them, you should, in any case, use an indentation method or try to apply
one, and spacing characters are not defined to be of equal width amongst
fonts, leaving you with unequal indentation when you try to apply this
techniques with other fonts.

Cheers,
-- Abel Braaksma
   http://www.nuntia.nl






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to