Releases: surfinzap/typopo
Releases · surfinzap/typopo
2.1.3 // 2017-04-07
Improvements
- Fix abbreviations (e.g., i.e., a.m., p.m.), even when there are multiple spaces between them (e. g. → e.g.)
- Change double quotes to apostrophes in contracted words (don"t → don’t)
- Add non-breaking space after ordinal number in sk, cs, rue (1.dodatok → 1. dodatok)
- Add non-breaking space after roman numeral in sk, cs, rue (I.dodatok → I. dodatok)
Fixes
- fix Abbreviation module (it was falsely removing spaces at the beginning of the abbreviation)
Refactoring
- Module for correcting Trademark symbol (™)
- Module for correcting Registered Trademark symbol (®)
- Module for correcting Plus-minus symbol (±)
2.1.2 // 2017-03-26
Improvements
- Combination of ellipses and dots is corrected to a single ellipsis (e.g. Sentence ending.…..... → Sentence ending…)
- Module for removing extra spaces before pause punctuation (ie. ,:;) now does not remove spaces before that punctuation if it's part of smiley :).
Fixes
- Fix Abbreviations module (removing false identification: či e-mail marketing → čie -mail marketing)
- Fix Case module (CMSko → CMSko, instead of CMsko)
2.1.1 // 2017-03-04
New features
- Em dash is now corrected with no spaces around it in English language, and with narrow non-breaking space and hair space around it in Rusyn, Czech and Slovak language
- Multiplication sign improvements
- 4 x followed by a word → 4 × followed by a word
- 4x followed by a word → 4× followed by a word
- inches and feet multiplication (e.g. 12" x 12" → 12″ × 12″ )
Fixes
- Fix how ellipsis was corrected
- Fix falsely added non-breaking space after abbreviated word (e.g. client’s customer)
- Fix exponent use-case like Holmen 80 g/m²
2.1.0 // 2017-02-19
New features
- Fixes spacing around section sign (§), copyright (©), sound recording copyright (℗)
- Fixes non-breaking spaces after abbreviations (these are supported now: č., s., fol., str., r., par., odst., např., napr., sv., tj., tzv., čl., hl., m., e.g., i.e., p., pp.)
- Fixes square and cube exponents (e.g. 100 µm² → 100 µm², 50 km³ → 50 km³)
- Improvements to how double quotes and single quotes are identified
- Fixes extra space around dash (i.e. e -shop → e-shop, e- shop → e-shop)
2.0.0 // 2017-02-13
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
1.4.0 // 2017-01-15
- “Removing empty lines” is now an optional parameter (in case you want to correct your plain-text based content or an email). By default, empty lines are removed
- Dropped support for correcting capital letter at the beginning of the sentence. It yielded too much false positives. Feature may be re-introduced later in the future
1.3.1 // 2017-01-08
- (hotfix) exclude false identification of i.e., e.g., a.m., p.m.
1.3.0 // 2017-01-08
- identify and correct a.m., p.m.
- replace hyphen or dash, placed between 2 ordinal numbers with an en dash
- replace hyphen or dash, placed between 2 cardinal numbers with an en dash
- remove cases when single right quote is swapped with a punctuation
- improve cases when double right quote is swapped with a punctuation
1.2.1 // 2017-01-05
- refactor sentence punctuation references
- refactor variable references
1.2.0 // 2017-01-01
- improve removing of extra spaces around punctuation and at the end of the sentences, by including non-breaking spaces, hair spaces and narrow spaces
- improve spacing correction around ellipsis and aposiopesis
- fix undesired correction of web URLs and email addresses