Skip to content

Commit

Permalink
Item11030: upgrade to hyphenator-4.0.0
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/HyphenatorContrib@12287 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Aug 9, 2011
1 parent 7e142d1 commit a3c2a2e
Show file tree
Hide file tree
Showing 42 changed files with 523 additions and 333 deletions.
58 changes: 37 additions & 21 deletions data/System/HyphenatorContrib.txt
Expand Up @@ -19,33 +19,44 @@ Hyphenator.js ...
* is free software licensed under LGPL v3 with additional permission to distribute non-source (e.g., minimized or compacted) forms of that code (see source code header for details).

Supported languages are:
* English
* German
* French

* Armenian (thanks to Sahak Petrosyan)
* Belarusian (thanks to Olexandr Zhydenko)
* Czech (thanks to Martin Hasoň)
* Danish (thanks to Henrik Ryom)
* Dutch (thanks to Remco Bloemen)
* Swedish (thanks to Andreas Johansson)
* Spanish (thanks to Luis Pab�n)
* Malayalam, Tamil, Hindi, Oriya, Kannda, Telugu, Bengali, Gujarati and Panjabi (thanks to Santhosh Thottingal)
* Italian (thanks to Stefano Gorini)
* English
* Finnish (thanks to Olli Wilkman)
* Russian (thanks to Dmitry Vedernikov)
* Polish (thanks to Kamil)
* Danish (thanks to Henrik Ryom)
* Portuguese (thanks to Lailson Bandeira)
* French
* German
* Greek, monoton, polyton and ancient (thanks to Pablo Rodr�guez)
* Hungarian (thanks to P�ter Nagy)
* Czech (thanks to Martin Hasoň)
* Ukrainian (thanks to Alexey Grekov)
* Turkish (thanks to Andreas Lappe)
* Armenian (thanks to Sahak Petrosyan)
* Lithuanian (thanks to Rogutės Sparnuotos)
* Slovenian (thanks to Mojca Miklavec)
* Italian (thanks to Stefano Gorini)
* Latin (thanks to Pablo Rodr�guez)
* Greek, monoton, polyton and ancient (thanks to Pablo Rodr�guez)
* Belarusian (thanks to Olexandr Zhydenko)
* Norwegian (coming soon, thanks to Erik Erik Seierstad)
* Latvian (coming soon, thanks to Kristaps Karlsons)
* Lithuanian (thanks to Rogutės Sparnuotos)
* Malayalam, Tamil, Hindi, Oriya, Kannda, Telugu, Bengali, Gujarati and Panjabi (thanks to Santhosh Thottingal)
* Norwegian (coming soon, thanks to Erik Erik Seierstad)
* Polish (thanks to Kamil)
* Portuguese (thanks to Lailson Bandeira)
* Russian (thanks to Dmitry Vedernikov)
* Slovakian (thanks to Zdenko Podobny)
* Slovenian (thanks to Mojca Miklavec)
* Spanish (thanks to Luis Pab�n)
* Swedish (thanks to Andreas Johansson)
* Turkish (thanks to Andreas Lappe)
* Ukrainian (thanks to Alexey Grekov)

A custom jQuery adapter makes sure text loaded asynchronously is processed later on.

A custom jQuery adapter makes sure text loaded asynchronously is processed later on as well.
The default language is derived reading the language information of the html page as generated by your foswiki language settings.
Further more, specific parts of a page can be processed using different langugage patterns using an iso-639-1 language tag, e.g.

<verbatim class="html">
<div lang="en-gb">
This part is processed using the british hyphenation patterns.
</div>
</verbatim>

For further information see http://code.google.com/p/hyphenator/

Expand Down Expand Up @@ -76,6 +87,10 @@ This text is _not_ processed.
<div class="hyphenate">
This text is processed as well.
</div>

<div class="hyphenate" lang="de">
Dieser Text wird mit deutscher Silbentrennung verarbeitet.
</div>
</verbatim>


Expand All @@ -95,6 +110,7 @@ This text is processed as well.
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 09 Aug 2011: | (2.00) upgraded to Hyphenator-4.0.0 |
| 10 Jun 2011: | (1.01) recognize language tags using underscores as well as hyphens |
| 06 Jun 2011: | (1.0) initial release of foswiki plugin |
| Dependencies: | %$DEPENDENCIES% |
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Contrib/HyphenatorContrib.pm
Expand Up @@ -19,7 +19,7 @@ use strict;
use warnings;

our $VERSION = '$Rev$';
our $RELEASE = '1.01';
our $RELEASE = '2.00';
our $SHORTDESCRIPTION = 'Automatically hyphenates text';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down
4 changes: 1 addition & 3 deletions lib/Foswiki/Contrib/HyphenatorContrib/Core.pm
Expand Up @@ -31,13 +31,11 @@ This is the perl stub for the hyphenator plugin.

sub new {
my $class = shift;
my $session = shift || $Foswiki::Plugins::SESSION;

my $this = bless(
$class->SUPER::new(
$session,
name => 'Hyphenator',
version => '3.3.0',
version => '4.0.0',
author => 'Mathias Nater',
homepage => 'http://code.google.com/p/hyphenator/',
javascript => ['hyphenator.js', 'hyphenator.init.js'],
Expand Down

0 comments on commit a3c2a2e

Please sign in to comment.