Skip to content

Extension points

phil/typography-bundle

What an application configures, decorates or relies on. The typographers and fixers are phil/typography's.

Configuration

OptionWhat it extends
localesA typographer per locale, its preset or a list of fixer names in the order they run
default_localeThe locale of Phil\Typography\Typographer, and of the filters without a locale switcher
hyphenation, experimental_hyphenationWhether presets hyphenate, and the experimental patterns served
protected_tagsThe elements whose text is never changed
ujoWhether, and in which locale, the HTML of UJO documents is fixed

See Configuration.

Services

ServiceHow an application relies on it
Phil\Typography\TypographersInjected to fix text in any locale; public
Phil\Typography\TypographerThe default locale's; public
phil_typography.typographer.<locale>One per key of locales; public
Phil\Typography\Hyphenation\DictionaryRedefined by the application to read patterns it ships itself, from a directory of its own
phil_typography.ujo_rendererDecorates Phil\Ujo\Html\HtmlRenderer with a TypographyHtmlFilter; other decorations of the renderer compose with it

Fixers of the application's own

A fixer of the application's — a class implementing Phil\Typography\Fixer\Fixer — runs in a typographer the application builds with new Typographer([...]), the preset's fixers from Preset::fixers() among its own, and registers under a service id of its choosing; the configured locales name the shipped fixers only.