Skip to content

2.0.0 // 2017-02-13

Compare
Choose a tag to compare
@surfinzap surfinzap released this 13 Feb 19:36
· 459 commits to main since this release

Feature updates

  • Replaces (p), (P) → ℗
  • Improvements to how single quotes are identified
  • Improvements to spacing around double quotes
  • Adds non-breaking spaces after ordinal numbers
  • Adds non-breaking spaces after ordinal Roman numerals
  • Adds non-breaking spaces after name initials (i.e. Philip K. Dick)
  • Fix: Remove multiple spaces, even they are non-breaking spaces, hair spaces or narrow non-breaking space
  • Fix: Abbreviations were (a.m., p.m.) were generating extra space at the end of the sentence or string

Code updates

Complete codebase refactoring

  • Typopo is now broken down into separate modules to increase maintainability and testability
  • Tests are running automatically via Mocha
  • Locale-specific attributes are now in separate locale files
  • Breaking change: call fixTypos() instead of correct_typos(); see README for more details
  • variables have been transformed into camelCase

Special thanks

Thank you @viclick, @TomHruby and @sANDwORm for consulting new architecture