Содержание

hyphenation Plugin

Совместим с «Докувики»

2009-02-14+

plugin Provides automatic soft-hyphen insertion using the phpHyphenation library

Последнее обновление:
2009-02-27
Предоставляет
Action

Это расширение не обновлялось более двух лет. Возможно, оно больше не разрабатывается или не поддерживается; возможны проблемы совместимости.

Похож на shy

Теги: html, hyphen

Requirement

Please, note that this Plugin requires PHP 5!

How it works

The plugin registers hooks for the RENDERER_CONTENT_POSTPROCESS event and runs hyphenation over the text. DokuWiki caches the result so this process should run only once per change of a wiki page. So you might have to clear your cache to see the new soft-hyphens!

For hyphenation it uses the phpHyphenation library which makes use of the TeX-algorithms which are considered the best available. The language for hyphenation can be set in the Configuration Manager. The libary is able to also hyphenate Dutch, French, German, Spanish and Swedish.

Alternatives

Since this plugin breaks other plugins and renders other contents empty, I use CSS3 hyphenation instead as described in https://css-tricks.com/almanac/properties/h/hyphenate/. I edited my theme's design.css to

* {
  hyphens: auto;
};

and removed the hyphenation plugin.

Problems

Problem

Hello, I have a fatal error, maybe due to the restrictie php settings of my provider cwcity. Fatal error: Call to undefined function mb_split() in /home/www/cwcity/hosting/r/o/roomsixhu/htdocs/lib/plugins/hyphenation/phpHyphenation/phpHyphenation.class.php on line 142

I removed it

http://roomsixhu.beerdrinkers.eu/doku.php?id=start

http://roomsixhu.beerdrinkers.eu/info.php