BIDI Flash support 3

by ramster 29. November 2008 12:43

BIDI Flash support for AS3

ok. I think I am getting near the end of my journey with this new release. I moved to AS3 as I wanted to support HTML formmating and its so much easier when you have built in RegEx support. There are some RegEx solutions for AS2, but I wanted to move fast with this, see if anyone's interested and then create an AS2 solution for people who still needs it. (p.s. did you notice that designers prefere the AS2 environment where they can still have some control...)

Anyways, this version is a leap forward comparing to everything I did so far (and also what I have saw running around). It support htmlText including <P><UL><B><BR><U><I> tags! note that the <P> support is not full. i need to implement the color and font family attributes and I plan to support (this should be rather easy with the current implementation) the "DIR" attribute and the "ALIGN" attribute on the <P> tag, enabling mixed LTR and RTL content in the same text field.

Looking now on what I did, I can't really understand why on earth it took Adobe so long to come up with a BIDI solution, and why couldn't they promote this type of solution ages ago. I guess they just did not care enough :(

No more talks... here it is:

BIDITextField.zip (128.72 kb)

I hope it helps someone... somewhere... I wish I had this solution much earlier...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , , ,

Open Source | RTL Flash

BIDI Flash support 2

by ramster 23. November 2008 08:26

BIDI-Flash-support 2

Ok, I made some small adjustment mainly to wrap calculations and the support for text alignment. As always, comments and bugs are more then welcomed...

bidi.rar (11.53 kb)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , ,

Open Source | RTL Flash

Right-to-left flash (Hebrew and Arabic) for action script 2

by ramster 27. October 2008 20:42

BIDI-Flash-support

I have been battling this for a long while with good success (people israel project). I have a few working versions with different concepts. This will probably become irrelevant in a year or so, with the new BIDI support in flash 10 but nevertheless, it is still relevant for AS2.0 project and as far as I could understand, Adobe did not come up with something you can work easily with in design environment.

This version is the last one I have. I completely followed the BIDI algorithm at http://people.w3.org/rishida/scripts/bidi/ I believe that this is the path taken by lessrain doing their Hebrew redbull site. For time reasons, its still a bit buggy. But this approach will enable me in a few weeks to put up an input box that will support the algorithm.

Try do download this. Better versions coming up. Comments and bugs are more then welcome. 

bidi.rar (11.47 kb)

p.s. you might want to look at another solution by Gideon Simons at http://www.electroinn.com/blog/?p=6. its very similar to the approach I took in people israel with a twist on the way he implemented it.

Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , ,

Open Source | RTL Flash

Powered by BlogEngine.NET 1.4.5.0