Skip to main content
Known Participant
September 25, 2009
Question

Squiggly spell checking component

  • September 25, 2009
  • 1 reply
  • 1773 views

Hi everyone,

Following the release of Squiggly - the spell checker engine for mx components - I just realized a small Flex4/Spark component for using the spell checker with a TextFlow.

The demo here: http://lafabrick.com/labz/pageLayout/squiggly/.

Sources are available here: http://lafabrick.com/labz/pageLayout/squiggly/srcview/index.html.

I took the opportunity to make a small management of TextFlow with a scrollbar in a custom Spark component.

These are basic components which waiting for you to edit:)

You'll see that I use a different system compared to a standard spell checker (all words highlighted in red, ...)

So I have a question/request: To get the red underlining of words wrong, it would be possible to have an extra character format, NOT taken into account by the TextConverter? Another possibility could be a style highlighter, or a character format, directely in the TextRange... I do not know if I'm clear!

If a way exist to do this, tell me more !

Also ... A second feature request!
It would be really interesting to replace a text / word via elements ParagraphElement: I work in elearning, and it happens to need of words that have several character with different formats from each other (example: abigwordwithdifferentformat ) . The aim would be to replace directly this type of word, composed of several SpanElement by another, in the paragraphElement.

Thanks a lot !

Fabien

This topic has been closed for replies.

1 reply

October 14, 2009

Hi,

As i tried to run the application by downloading the source code provided by you.

Not able to do so. I am getting of this error even i installed SDK 4.0

Severity and Description Path Resource Location Creation Time Id
1046: Type was not found or was not a compile-time constant: Matrix3D.  SquigglyTLF Unknown 1255522232781 119258.

Even i tried to run the application in Flash Gumbo, where i am getting this error.

Description Resource Path Location Type
1120: Access of undefined property TextConverter. Flow.as SquigglyTLF/src/com/lafabrick/tlf/components line 127 Flex Problem
1120: Access of undefined property TextConverter. Flow.as SquigglyTLF/src/com/lafabrick/tlf/components line 127 Flex Problem
1172: Definition flashx.textLayout.conversion:TextConverter could not be found. Flow.as SquigglyTLF/src/com/lafabrick/tlf/components line 17 Flex Problem
1172: Definition flashx.textLayout.events:CompositionCompleteEvent could not be found. Flow.as SquigglyTLF/src/com/lafabrick/tlf/components line 20 Flex Problem

Thanks in advance

Adobe Employee
October 14, 2009

This is cool!

Krish.praveen: I think the browser you were using did not have version 10 of the Flash Player installed. Seems like it was trying to use an earlier version. It worked for me.

In answer to the original questions:

(1) It would be nice to have a way to filter out attributes on export. We don't have that today, unless you override the export code with your own. But you could do this as a post process on the XML that comes out. Not elegant, I know. I will add your request in for a future version.

(2) As to the second request, to be able to replace a multi-span range with a different multi-span range. The best way I can think of to do this to allow insertion of markup snippets, where the markup is parsed into FlowElements and then inserted. Your application, though, would have to figure out which characters of the raw text go with which set of attributes. Would that get you what you need?

Thanks for making this available!

- robin

March 1, 2011

I see Squiggly being mentioned here, so just want to let people know that Squiggly 0.5 was recently released with native TLF support.

Let us know what more you would like from the Squiggly effort in the future.

- Bruce, Adobe Squiggly team