Skip to main content
Participant
December 15, 2009
Answered

TLF Markup

  • December 15, 2009
  • 1 reply
  • 512 views

2 short questions about TLF XML format the importer can read:

1) img tag for graphic inline

is the float attribute usable ?

with float="none", my graphic is visible

float="left" => graphic is not rendered.

I am interested in text flowing around the inline graphic

I recently attented an Adobe conference in Paris. An adobe consultant showcased an interesting dev with TLF, with a draggable inline graphic, text flowing dynamically around it : http://lafabrick.com/labz/pageLayout/weeklyBuild/

Do you know about this work ? Could that kind of fonctionnality be built into TLF ?

2) newline character

which one to use with the TLF importer ? I tried \n, \r without success

Thanks in advance

This topic has been closed for replies.
Correct answer robin_briggs

The img tag's float attribute only supports a value of "none" at the moment. We would like to add support for left and right, but that work is not done yet. There other people who have done their own implementations, but I don't know any more details than that.

The newline character is treated as whitespace, and there are rules about how whitespace is treated that are probably best documented in the FXG 2.0 spec, but by default whitespace inside a paragraph is collapsed and whitespace only text nodes in between paragraphs are ignored. This is to make hand editing easier. I would suggest using paragraph elements in place of newlines, if you have a choice, since that will give you more explicit control.

- robin

1 reply

robin_briggsCorrect answer
Adobe Employee
December 15, 2009

The img tag's float attribute only supports a value of "none" at the moment. We would like to add support for left and right, but that work is not done yet. There other people who have done their own implementations, but I don't know any more details than that.

The newline character is treated as whitespace, and there are rules about how whitespace is treated that are probably best documented in the FXG 2.0 spec, but by default whitespace inside a paragraph is collapsed and whitespace only text nodes in between paragraphs are ignored. This is to make hand editing easier. I would suggest using paragraph elements in place of newlines, if you have a choice, since that will give you more explicit control.

- robin

Participant
December 15, 2009

Thanks, Robin