2017 © Pedro PelĆ”ez
 

neos-package hyphenate

Hyphenation for Neos

image

packagefactory/hyphenate

Hyphenation for Neos

  • Tuesday, February 13, 2018
  • by grebaldi
  • Repository
  • 2 Watchers
  • 2 Stars
  • 180 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PackageFactory.Hyphenate

Fusion Wrapper for phpSyllable, (*1)

Installation

PackageFactory.Hyphenate is available via packagist. Just add "packagefactory/hyphenate" : "~1.0.0" to the require-section of the composer.json or run composer require packagefactory/hyphenate., (*2)

Usage

Text

Just use the PackageFactory.Hyphenate:HyphenateText Fusion object as a processor on the fusion value that should be hyphenated., (*3)

someFusionValue = 'Grund­stücks­ver­kehrs­ge­neh­mi­gungs­zu­stän­dig­keits­über­tra­gungs­ver­ord­nung'
someFusionValue.@process.hyphenate = PackageFactory.Hyphenate:HyphenateText {
  locale = 'de'
}

HTML

Similar to text elements you can use PackageFactory.Hyphenate:HyphenateHtml for HTML elements., (*4)

someFusionHtml.@process.hyphenate = PackageFactory.Hyphenate:HyphenateHtml {
  locale = 'de'
}

Neos CMS integration example

You can easily activate hyphenation for all Neos CMS text- and headline nodetypes with following Fusion code:, (*5)

prototype(Neos.NodeTypes:Text) {
  text.@process.hyphenate = PackageFactory.Hyphenate:HyphenateHtml
}

prototype(Neos.NodeTypes:Headline) {
  title.@process.hyphenate = PackageFactory.Hyphenate:HyphenateHtml
}

Parameters

locale (string) : Reference to the language in which the given string will be hyphenated (Have a look at https://github.com/vanderlee/phpSyllable/tree/master/languages for a reference of available languages), (*6)

threshold (integer, default = 0) : Minimum amount characters a word needs to have, before it is being hyphenated., (*7)

License

see LICENSE file, (*8)

The Versions

13/02 2018

dev-bumpVersion

dev-bumpVersion

Hyphenation for Neos

  Sources   Download

GPL-3.0

The Requires

 

by Wilhelm Behncke

13/02 2018

dev-master

9999999-dev

Hyphenation for Neos

  Sources   Download

GPL-3.0

The Requires

 

by Wilhelm Behncke

13/02 2018

1.1.0

1.1.0.0

Hyphenation for Neos

  Sources   Download

GPL-3.0

The Requires

 

by Wilhelm Behncke

09/08 2017

v1.0.0

1.0.0.0

Hyphenation for Neos

  Sources   Download

GPL-3.0

The Requires

 

by Wilhelm Behncke