UNPKG

cz-typography

Version:

Universal Czech typography fixer for JavaScript, React, Next.js, and any SSR framework. Non-breaking spaces after one-letter prepositions, units, dates, ordinals and more.

33 lines (31 loc) 702 B
type FixCzechOptions = { /** * Glue one-letter prepositions/conjunctions to the next word. */ prepositions?: boolean; /** * Glue numbers to units of measurement. */ units?: boolean; /** * Glue initials (J., A.) to surnames. */ initials?: boolean; /** * Glue dates (5. 12. 2024) together. */ dates?: boolean; /** * Glue ordinal numbers (1. ledna) to the next word. */ ordinals?: boolean; /** * Glue names to Roman numerals (Karel IV.). */ roman?: boolean; /** * Replace thousands separators (10 000) with nbsp. */ thousands?: boolean; }; export type { FixCzechOptions as F };