Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vis4/as3hyphenation
- Owner: vis4
- Created: 2011-09-07T16:10:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-09-07T16:34:58.000Z (over 13 years ago)
- Last Synced: 2024-08-29T02:02:18.354Z (5 months ago)
- Language: ActionScript
- Size: 493 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-actionscript-sorted - as3hyphenation - ActionScript port of the famous Javascript text hyphenation library Hyphenator.js (Utilities / Text)
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/