- Update dependencies
- Add rules for
≤
and≥
- Fix quotes substitution for one-character content
- Substitute some patterns even when they contain html entities
- Handle doctype tag and comments in HTML format
- Fix horrible bug in html preprocessor which caused not transforming content between the first and the last
script
,style
, etc. tags.
- Use default dash as it is set in a language configuration. Breaking change: Default dash is now en dash instead of em dash.
- Allow to pass options to presets if they support it. The first option is the default type of dash.
- Update a lot of dependencies using
npm audit fix
(there were some semver incompatible bumps but it should be fine) - Fix quotes plugin inside HTML tags
- Fix support for custom language
- Export quotes and languages properties
- Changes retrieval for more complex use cases
- Postprocessing for HTML and LaTeX output formats
- Fix of deprecation of
new Buffer()
in stream
- Czech language prepositions rule fix
- Custom rules fix
- Helper function for getting and extending default presets
Command line interface fix (change in npm package packing).
- Question and exclamation marks combinations are changed into ligature counterparts
- Quotes now work inside parentheses
Complete rewrite. Majority of rules remained the same, however, there are some changes. See the commit for the whole picture of the change. Tipograph has now CLI interface and demo web page.
- Quotes now take spaces into account so the transformation is not so aggressive
- Sentence breaks using hyphens are now replaced with em dash instead of en dash
- Letter range rule was removed
- Em dashes are now surrounded by hair spaces
<>
is not replaced with inequality sign anymore*
can be now replaced with multiplication sign- Rules for arrows were added
Handle apostrophe before two-digit years
Support Webpack module loader
Make some changes in stream implementation
- languages support
- slightly different implementation
Support for streams
Support for custom defined typography rules.
- Custom rules was added
HTML support was added. It doesn't affect any HTML tag and also doesn't transform content within pre
and code
tags.
- HTML support was added
Make some changes in quotes()
method. It replaces ,,
with double quote and ,
with single quote. It has two reasons. First, it looks horrible. Second, it breaks the feature to find quote pairs.
,,
and,
(when it is recognized as it should be) are replaced with correct quotes
A lot of tests were made. Tipograph is now almost fully covered with tests. And some changes has been made.
hyphensAndDashes()
was changed into justhyphens()
- new method
mathSigns()
which took minus replacements fromhyphens()
and multiplication and division signs fromsymbols()
- added plus minus and inequality signs into
mathSigns()
- ellipsis character is appointed only when three dots aren't surrounded by other dots
- spaces around multiplication sign are now required because e.g. this "2x3" needn't be the multiply operation
First release of Tipograph.
- replacement methods
quotes()
,spaces()
,hyphensAndDashes()
,symbols()
andall()
which embraces all previous ones - possibility of configuration what quotes will be used (because different languages require different quotes)
- added languages:
- chinese
- czech
- danish
- english
- finnish
- french
- german
- italian
- japanese
- norwegian
- polish
- portuguese
- russian
- spanish
- swedish
- swiss