by Mao Liang

 Comments (17)

Created

August 2, 2011

TLF branch 3.0 has been posted on the source forge, http://sourceforge.net/projects/tlf.adobe/files/3.0/

There are performance improvements and new features in TLF 3.0 branch. TLF team is still working on the new features of TLF 3.0.

In the ContainerBreaks and ColumnBreaks feature, we have added a way for users to force the text to break and continue on the next column or container. There are two ways for us to choose, the attribute way and the content way. We chose the first one at last for two reasons. First, it have much better compatibility and flexibility with the CSS definition. And the second is it makes the client easier to use this feature which has no effect on the content.

The W3C also got a draft document to define the column break. We bought in some kind of their definition and expand them to be the column break and container break. We got the following attributes:

  1. ColumnBreakBefore
  2. ColumnBreakAfter
  3. ContainerBreakBefore
  4. ContainerBreakAfter

Each of the attributes can be set as following two values:

AUTO: Neither force nor forbid a container break/column break before(after) the generated box.

ALWAYS: Always force a container break/column break before(after) the generated box.

BTW, in order to fix some bugs, some API are changed in TLF 3.0,

  1. [API changed]when linebreak=”toFit”, the contentBounds will include the tailing whitespaces.
  2. [API added]add color=’red’ or [black, blue, green, gray, silver, lime, olive, white, yellow, maroon, navy, purple, teal, fuchsia, aqua, magenta, cyan] property support in paragraph element.
  3. [API added]add custom cursor support for FP10.2, users could have custom cursor by override Configuration:cursorFunction.

You can get more details from the release notes of TLF 3.0.

COMMENTS

  • By Stefan - 8:06 AM on August 16, 2011   Reply

    Hello Mao Liang,
    can you explain some more on how to implement the breaks? I can’t find any information on these breaks in the online Adobe Language Reference…
    gr, stefan

    • By Gang Cai - 10:33 AM on August 16, 2011   Reply

      Hi stefan:

      Thank you for your attention. The TLF 3.0 is still under developing. That’s why the official document did not contain the information about the new feature of TLF 3.0. It will be done once the TLF 3.0 is released.

      We are planning to post one blog to introduce how to use the breaks recently. We’ll let your know once we’ve done it.

      To be briefly, We bought in some kind of W3C definition about the column break and expand them to be the container break. Currently, we got the following attribute:

      columnBreakBefore
      columnBreakAfter
      containerBreakBefore
      containerBreakAfter

      each of them may be set the value of:

      auto
      always
      inherit

      auto means:
      Neither force nor forbid a container/column break before (after, inside) the generated box.

      always means:
      Always force a container/column break before (after) the generated box.

      inherit means:
      Inherit the setting from the parent elements

      We don’t implement the AVOID value described in the W3C document as we don’t know the detail implementation of AVOID.

    • By jinhuang - 3:05 AM on November 4, 2011   Reply

      I will post the document and sample code on http://forums.adobe.com/community/opensource/tlf?view=all today.

  • By smithfox - 12:51 PM on August 25, 2011   Reply

    Hi Mao Liang,

    Is there some roadmap about the TLF3.0?

    • By Mao Liang - 11:55 PM on August 25, 2011   Reply

      We plan to official release TLF3 in the beginning of Nov. We are busy on bug fixes at the moment.

  • By di - 2:05 AM on August 26, 2011   Reply

    tlf3! But tableElement !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    • By Mao Liang - 2:37 AM on August 26, 2011   Reply

      Table feature is under development and will be in TLF4. TLF3 release focuses on performance improvement and some critical bug fixes.

      • By Karn - 9:15 AM on January 4, 2012   Reply

        Hi Mao Liang,

        When do you plan to release TLF4 ?

        Thanks
        K.

        • By Mao Liang - 9:25 AM on January 4, 2012   Reply

          According current plan, we want to release TLF 4 in Q3 of 2012. Hope that helps.

          Best,
          Mao

  • By Mike - 7:09 PM on September 9, 2011   Reply

    Hello,

    I was wondering if the ability to style a ParagraphElement with background color and/or background alpha worked in the TLF 3.0 branch?

    Thank you,
    Mike

    • By Jin Huang - 2:07 AM on September 12, 2011   Reply

      No. It will work in TLF 4.0. Only background of SpanElement works now.

      • By Mike - 8:27 PM on September 21, 2011   Reply

        Thank you Jin for your reply. I look forward to this.

        Best,
        Mike

  • By Sudharshan - 4:18 AM on November 3, 2011   Reply

    Hi,

    Any updates on the release date of TLF3? Also, any Flex 4.1 compatibility recommendations?

    Thanks,
    Sudharshan

  • By Dmitriy - 9:08 AM on December 14, 2011   Reply

    First of all, thanks for your work on the project, guys.

    I wonder if TLF is going to continue as in-house project or is it going to be passed to Apache?

    And there’s a thing that’s been bugging me for a while – could you please strip “final” keyword from InlineGraphicsElement and LinkElement? It is kind of pointless and it forces me to resort to monkey patching when all I need is to add a teeny little bit of information to the element.

    • By Gang Cai - 9:33 AM on December 16, 2011   Reply

      At least, TLF4 will be as in-house project. It’s possible to make it as a completely open-source project in the future. But we don’t have a plan yet.

      The end-leaf element must be final as if we don’t do it that way, we can’t handle them all well considering TLF is a framework which will be widely used with different purpose.

      Maybe, you can mapping the information with your element. I am not sure if that works for you?

  • By Alhadef - 4:42 PM on January 17, 2012   Reply

    Can you tell me the limitations for Air mobile application (ios &Android). Can we use the RTL ??
    thanks

ADD A COMMENT