|
Hyphenating words (splitting by syllables) is recommended for text-inclined websites or typography web applications.
With the script active, whenever the user resizes the browser window, words are split and kept on the same row (to fill it to the end accordingly), and not moved to the next row (below).
An example, pattern and script generators are included in the download package.
A PHP port is also available.
An ActionScript port is also available.
Here are some key features of "Hyphenator":
· Automatically hyphenates texts on websites if either the webdeveloper has included the script on the website or you use it as a bookmarklet on any site.
· Runs on any modern browser that supports JavaScript and the soft hyphen ().
· Automatically breaks URLs on any browser that supports the zero width space.
· Runs on the client in order that the HTML source of the website may be served clean and svelte and that it can respond to text resizings by the user.
· Follows the ideas of unobtrusive JavaScript.
· Has a documented API and is highly configurable to meet your needs.
· Supports a wide range of languages.
· Relies on Franklin M. Liangs hyphenation algorithm (PDF) commonly known from LaTeX and OpenOffice.
· Provides services for customizing, merging and packing script and patterns.
Requirements:
· JavaScript enabled on client side
Limitations:
· Does not give control over how many hyphens the user will have as endings on consecutive lines.
· It does not eliminate misleading hyphenation like 'leg-ends' (depending on the pattern quality).
· Doesn't work in Firefox 2 (but it works fine in Firefox >=3.0)
· Does not handle special (aka non-standard) hyphenation (e.g. omaatje->oma-tje)
What's New in This Release: [ read full changelog ]
· Bookmarklet uses CSS3hyphenation.
· Updated jslint and made it happier.
· Faster pattern checking (async).
· Use of querySelectorAll in some browsers.
· Globally hide and unhide text by setting CSS classes (faster).
· Included test for CSS3hyphenation availability.
· Made Hyphenator.js ready for IE10.
· Added support for Esperanto.
Via: Hyphenator 4.1.0
0 Comment:
Post a Comment