An ultra-light Finnish text hyphenator.
The Finnish Hyphenator jQuery Plugin provides drop-in improvements for your visual structure, while making simple customizations to fit your application more easily.
See example page http://vepasto.github.io/finnish-hyphenator/
Prebuilt files can be downloaded from
Just download jquery.finnishhyphenator.min.js
file from the dist/
directory.
-
Install Bower if you don’t already have it around.
-
Install Finnish Hyphenator:
bower install finnish-hyphenator
The unreleased development files can be obtained by:
- Downloading or Forking this repository
- Setup the build
- Run
grunt
to create the built files in the "dist" directory
-
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
-
Include plugin's code:
<script type="text/javascript" src="../dist/jquery.finnishhyphenator.min.js"></script>
-
Call the plugin:
$(".elements").finnishHyphenator();
-
Include plugin's code:
<script type="text/javascript" src="../dist/finnishhyphenator.min.js"></script>
-
Call the plugin:
var finHyph = new FinnishHyphenator(); var hyphenated = finHyph.hyphenateText("Suomenkielinen teksti");
OR
```javascript
var finHyph = new FinnishHyphenator();
var elements = document.getElementsByClassName("classname");
finHyph.hyphenateElements(elements);
```
- Make sure the problem you're addressing is reproducible.
- Use http://jsbin.com or http://jsfiddle.net to provide a test page.
- Indicate what browsers the issue can be reproduced in. Note: IE Compatibilty mode issues will not be addressed.
- What version of the plug-in is the issue reproducible in. Is it reproducible after updating to the latest version.
See the Contributing Guide
Copyright © 2014 Veikko Karsikko. Licensed under the MIT license.