2017 © Pedro Peláez
 

neos-plugin hyphenator

PHP-Adaption of Hyphenator.js (by Mathias Nater).

image

wegmeister/hyphenator

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  • Thursday, July 19, 2018
  • by wegmeister
  • Repository
  • 4 Watchers
  • 1 Stars
  • 1,178 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 15 Versions
  • 12 % Grown

The README.md

Wegmeister.Hyphenator

Neos-Plugion of the Word-Hyphenation for PHP based on the TeX-Hyphenation algorithm., (*1)

Installation

To install the package simply run, (*2)

composer require wegmeister/hyphenator

Usage

Add the hyphenator to the elements you want hyphenation on:, (*3)

Usage via fusion:, (*4)

prototype(Vendor.Package:Element) {
    # Add the hyphenator to a specific property only:
    property = ${q(node).property('property')}
    property.@process.hyphenate = Wegmeister.Hyphenator:Hyphenate {
        # Set locale to the locale you want to use, defaults to the current locale
        locale = 'de_DE'

        # Set forceConversion to "true" if you also want to hyphenate the text in the backend.
        forceConversion = true
    }

    # Instead of applying the hyphenator to all properties, you can hyphenate the complete element.
    # This will not hyphenate html tags:
    @process.hyphenateWholeElement = Wegmeister.Hyphenator:Hyphenate
}

Usage via fluid:, (*5)

{namespace hyphenator=Wegmeister\Hyphenator\ViewHelpers}



<hyphenator:format.hyphenate locale="de_DE" force="{true}">
    Text and <span>HTML</span> to hyphenate.
</hyphenator:format.hyphenate>

OR

{text -> hyphenator:format.hyphenate(locale: 'de_DE', force: true)}

The Versions

19/07 2018

dev-master

9999999-dev

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

MIT Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

19/07 2018

2.0.4

2.0.4.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

MIT

The Requires

 

16/07 2018

2.0.3

2.0.3.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

MIT

The Requires

 

16/07 2018

2.0.2

2.0.2.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

27/03 2017

2.0.0

2.0.0.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

27/03 2017

2.0.1

2.0.1.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

03/02 2017

dev-neos-2.3.x

dev-neos-2.3.x

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

03/02 2017

1.1.1

1.1.1.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

17/01 2017

1.1.0

1.1.0.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

24/02 2016

1.0.5

1.0.5.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

23/02 2016

1.0.4

1.0.4.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

23/02 2016

1.0.3

1.0.3.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

23/02 2016

1.0.2

1.0.2.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

23/02 2016

1.0.1

1.0.1.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires

 

23/02 2016

1.0.0

1.0.0.0

PHP-Adaption of Hyphenator.js (by Mathias Nater).

  Sources   Download

Creative Commons Attribution-Share Alike 2.5 Switzerland

The Requires