Typo.js icon indicating copy to clipboard operation
Typo.js copied to clipboard

Reconcile new Typo.js version?

Open connor4312 opened this issue 8 years ago • 2 comments

Hi. We worked on an updated Typo.js version, but its scope is a bit out from a simple fork; it's more of a wholesale port. General changelog:

  • It's now in TypeScript
  • Added support for WebWorkers in browsers
  • Uses the Faroo spell check for much faster results (<1ms even for long words!) and arguably higher quality ones
  • It's currently quite messy as I was playing around with ideas and benchmarks, but we can get it cleaned up...

I wanted to ask if you're interested in merging this back in to make "typo.js 2.0" or if you're happy as is 😄

Cheers, Connor

connor4312 avatar Dec 14 '16 17:12 connor4312

Wow! Although I don't think that moving Typo.js to TypeScript is in the roadmap, I am intrigued by the Faroo spell check. Any advice for implementing it in vanilla JS?

cfinke avatar Dec 26 '16 01:12 cfinke

Sorry for the late reply, holidays and stuff 😛

You should mostly be able to strip the type annotations and have it work in ES6. If you want to support non-ES6 platforms without a transpiler you'd have to swap out many of the constructs/keywords too, but for the most part it should be a 1:1 port.

connor4312 avatar Jan 02 '17 16:01 connor4312