Changelog
phil/typographyPas encore traduite
Cette page n’est pas encore traduite en français ; elle est montrée en anglais.
All notable changes to phil/typography will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
NEXT - YYYY-MM-DD
Added
Locale, a language with an optional script and region, and its candidates from the most precise.Run, the text nodes of one block in parts, with locked parts for protected elements, andFixer, the interface of one rule.- The fixers
UnicodeNormalization,Ellipsis,Dimension,DashwithDashStyle,SmartQuotes,CurlyQuote,NoSpaceBeforeComma,SpaceBeforePunctuationwithFrenchSpacingfor France and Canada,Trademark,Unit,HyphenandWordBreak, the zero-width spaces between Thai words from the ICU dictionary; emoji sequences left byte for byte by every one.SmartQuotesopens a quote after>, the end of a tag escaped as text, and closes an inner one before<. QuoteStyleandQuoteStyles: the quotation marks of 66 languages and regions, after the Unicode CLDR.Patterns,HyphenatorandDictionary: Liang's hyphenation algorithm written from scratch, never before a combining mark, with the hyph-utf8 patterns of 69 languages whose licence permits them, their exceptions and minimum lengths, recorded indata/LICENSES, and patterns written from scratch under MIT for Czech, Hungarian, Armenian, Indonesian, Latvian, Macedonian and Romanian, generated bybin/generate-patterns.phpfrom the orthographic rules of each language and tested on lists of common words; Armenian and Macedonian are experimental, served only by aDictionarybuilt with them (Dictionary::EXPERIMENTAL).Typographer: HTML fragments, whole documents and plain text fixed throughDom\HTMLDocument, text only, block by block;pre,code,kbd,script,styleandtextareaprotected by default, the list configurable;<and>escaped in attribute values, as the current HTML standard serializes them.Preset, the fixers of each locale by name and in order, andTypographers, one typographer per locale, configured by fixer names, those of 64 locales kept at most;Typographers::fixHtml(), each passage whoselangnames another language fixed by the typographer of that language.TypographyException, implemented byInvalidLocale,UnsupportedLanguageandUnknownFixer.- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.