Flash Text Layout Framework goes Open Source

The Flash Platform team at Adobe announced yesterday that they’re open-sourcing the Text Layout Framework that they’ve been working on on top of the text foundation built into Flash 10.

This is Kind of a Big Deal, because as far as I’m aware open-source code that handles text editing and display of Unicode text that supports right-to-left layout and editing is very rare.

I work on LiveCycle Designer, and because we made a commitment to a partner to support it, our XML editor lets you edit XML source that has HATV (Hebrew, Arabic, Thai, Vietnamese) text embedded in it. If you’re not familiar with these languages, in a nutshell, they’re read from right to left instead of left to right the way English is read. A text editor that supports these languages will understand that they’re edited from right to left as well, which changes how the editor behaves when the caret is in an RTL text run. For example:

1
<Button id="לחצן"/>

This is some XML that might represent a button whose ID is “Button” in Hebrew. Drag-select over that text. Does your browser treat the Hebrew text differently than the surrounding English characters? It probably does.

When you’re editing, the typical behaviour is if the caret were on the equal sign and you hit right arrow a few times, the caret would move to the quote, then to the last character of the Hebrew text, then left, left, left, left, then jump to the closing quote. This is because the right arrow key is interpreted as “move to the next character”, not “move right”.

The TLF that Adobe is giving away comes with a TextEditor class that knows about all this. Copy that text and paste it into the TLF Sample and try editing it yourself.

The TLF supports a lot of other cool text features. Here’s a list:

  • Selection, editing and flowing text across multiple columns and linked containers
  • Vertical text, Tate-Chu-Yoko (horizontal within vertical text) and justifier for East Asian typography
  • Rich typographical controls, including kerning, ligatures, typographic case, digit case, digit width and discretionary hyphens
  • Cut, copy, paste, undo and standard keyboard and mouse gestures for editing
  • Rich developer APIs to manipulate text content, layout, markup and create custom text components
  • ActionScript-based object-oriented model for rich text layout enabling live updates

But the RTL text support is the one that affects me most since we’ve been looking for a replacement for what we currently use in Designer, and this might be it.

There are a lot of open-source text editors, but as far as I know the only one that supports this is the code editor in Eclipse, which is written in Java. The text input widgets on the major OS platforms support it, and now, so does Flash.

Leave a Reply

 




 
buy cheap Endep online buy cheapest Endep and Endep how to order Amitriptyline online without prescription buy Amitriptyline without rx from us pharmacy online Amitriptyline purchase purchase online prescription Amitriptyline without purchasing Amitriptyline online without prescription order generic Amitriptyline buy Endep no prescriptions how to order Endep online without prescription comprare Endep generico Endep online buy Endep in england buy cheap Endep online free consult Endep purchased online without prescription what is Endep Endep tabletten buy Endep no perscription cod Endep non rx fedex overnight free want to buy Anafranil in usa Aricept overdose buy discount Aricept on line Aricept buy Aricept online Aricept order buy Aricept pills Nizoral suppliers cheap order rx Nizoral canada Nizoral order Nizoral usa cod comprar Nizoral generico buy Nizoral 200 mg buy cheap Nizoral under without rx buy cheap Nizoral with dr. prescription Prozac 200 mg buy Lisinopril australia el Nizoral generico buy Lisinopril tablets without rx next day delivery Lisinopril with no script buy Lisinopril c o d purchase arimidex no scams order Arimidex order amex Arimidex canadian pharmacy buy Arimidex without doctor order rx free Arimidex buy Abilify with american express buy Abilify cod order Finpecia without a prescription cheap order rx Finpecia purchase Famvir no visa online without prescription buy Famvir paypal without rx buy Famvir without Famvir without prescription medications Famvir without persription purchase Famvir online no membership overnight shipping Famvir no physician approval Amitriptyline purchase order Amitriptyline free next day airAmitriptyline on line Valtrex no rx needed cod accepted buy next day Fluoxetine buy Fluoxetine line purchase Fluoxetine cod delivery buy Fluoxetine 20 mg purchase Fluoxetine buy cheap Fluoxetine under without rx purchase Fluoxetine visa without prescription Fluoxetine by mail Fluoxetine for pets Fluoxetine 10mg Amitriptyline purchase online how to order Famvir online without a rx Prozac Amitriptyline no perscription Famvir next day purchase Anafranil no prescription cheap buy cheapest Anafranil next day delivery on Anafranil saturday Anafranil buy Anafranil buy Anafranil overnight where to purchase Anafranil no prescription no fees Anafranil drug buy Lisinopril where Lisinopril buy on line order Lisinopril online no membership overnight shipping no prescription required for Lisinopril order maxalt cash on delivery Maxalt from canada buy cheapest Maxalt purchase Maxalt visa without prescription buy Maxalt uk Maxalt 10 mg purchase Maxalt no visa online without prescription purchase generic Lisinopril online Lisinopril no prescription to buy maxalt order online no membership overnight how to get a arimidex rx Aricept without a perscription fedex Aricept overnight without a prescription Donepezil prescription order buy genuine Aricept Aricept uk sales prescription Proscar buy Proscar pay cod Maxalt apotheke buy no perscription Proscar purchase Proscar online buy cheap fedex Prednisone maxalt with no presciption buy Maxalt shipped cod Proscar online Prednisone order buy Amitriptyline with amex Accutane 40 mg delivered overnight buy brand Accutane 40 mg Accutane 40 mg orderd online without prescription where to purchase generic Accutane 40 mg online without a rx how to get 40 mg Accutane without next day delivery 40 mg Accutane with no script buy Amitriptyline online Accutane 40 mg online no prescription buy Accutane 40 mg online us pharmacy Accutane 40 mg best buy buy Accutane 40 mg c o d order 40 mg Accutane cash on delivery no presciption 40 mg Accutane