Skip to content

Reference

phil/typography
TypeKindRole
Phil\Typography\Typographerfinal readonly classFixes HTML fragments, documents and plain text with its fixers; for() builds the preset of a locale
Phil\Typography\Typographersfinal classOne typographer per locale, built on first use, configurable by fixer names
Phil\Typography\Presetfinal classThe fixers of a locale, by name and in order
Phil\Typography\Localefinal readonly classA language, script and region, and its candidates
Phil\Typography\Text\Runfinal readonly classThe text nodes of one block, in parts; map(), replace(), characters()
Phil\Typography\Text\Charsfinal classThe characters the fixers write, and the class of spaces they replace
Phil\Typography\Fixer\FixerinterfaceOne typographic rule
Phil\Typography\Fixer\UnicodeNormalizationfinal readonly classNormalization form C
Phil\Typography\Fixer\Ellipsisfinal readonly classThree stops, one ellipsis
Phil\Typography\Fixer\Dimensionfinal readonly classThe multiplication sign between measures
Phil\Typography\Fixer\Dashfinal readonly classEm and en dashes, ranges, dashes between words
Phil\Typography\Fixer\DashStyleenumSpaced en dash or closed em dash, by locale
Phil\Typography\Fixer\SmartQuotesfinal readonly classQuotation marks of the language
Phil\Typography\Fixer\CurlyQuotefinal readonly classThe apostrophe
Phil\Typography\Fixer\NoSpaceBeforeCommafinal readonly classNo space before a comma
Phil\Typography\Fixer\SpaceBeforePunctuationfinal readonly classFrench spaces
Phil\Typography\Fixer\FrenchSpacingenumThe rules of France or of Canada, by locale
Phil\Typography\Fixer\Trademarkfinal readonly class™, ®, © and ℗
Phil\Typography\Fixer\Unitfinal readonly classA no-break space between a number and its unit
Phil\Typography\Fixer\Hyphenfinal readonly classSoft hyphens
Phil\Typography\Fixer\WordBreakfinal readonly classZero-width spaces between Thai words
Phil\Typography\Quote\QuoteStylefinal readonly classPrimary and inner quotation marks
Phil\Typography\Quote\QuoteStylesfinal classThe marks of each locale
Phil\Typography\Hyphenation\Patternsfinal readonly classParsed patterns, exceptions and minimum lengths
Phil\Typography\Hyphenation\Hyphenatorfinal readonly classLiang's algorithm
Phil\Typography\Hyphenation\Dictionaryfinal classThe shipped patterns, by locale or tag, read once; the experimental ones (EXPERIMENTAL) only when asked for
Phil\Typography\Exception\TypographyExceptioninterfaceEvery exception of the library
Phil\Typography\Exception\InvalidLocalefinal classA string that is not a locale
Phil\Typography\Exception\UnsupportedLanguagefinal classNo hyphenation patterns for a language
Phil\Typography\Exception\UnknownFixerfinal classA fixer name the presets do not know

Phil\Typography\Html\Blocks, Phil\Typography\Html\Collector and Phil\Typography\Text\Characters are internal.