Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vis4/as3hyphenation

ActionScript port of the famous Javascript text hyphenation library Hyphenator.js
https://github.com/vis4/as3hyphenation

Last synced: about 2 months ago
JSON representation

ActionScript port of the famous Javascript text hyphenation library Hyphenator.js

Awesome Lists containing this project

README

        

as3hyphenation
==============

as3-hyphenation is a partial port of the javascript library Hyphenator.js by Mathias Nater (mathias at mnn dot ch), which is also released under GNU LGPL.

Usage
-----

Step 1: Initialize hyphenation language

Hyphenator.languages['de'] = new HyphenationPattern_DE();

Step 2: Prepare a text field

var tf:TextField = new TextField();
tf.text = 'Lorem Ipsum dolor....';
tf.width= 200;
tf.wordWrap = true;
tf.autoSize = 'left';

Step 3: Hyphenate the text field

Hyphenator.hyphenateTextField('de', tf);

That's it!

Original copyright notice
-------------------------

Hyphenator X.Y.Z - client side hyphenation for webbrowsers
Copyright (C) 2010 Mathias Nater, Zürich (mathias at mnn dot ch)
Project and Source hosted on http://code.google.com/p/hyphenator/