bramstein / typeset

TeX line breaking algorithm in JavaScript
BSD 2-Clause "Simplified" License
990 stars 74 forks source link

Something is either undefined or zero #3

Closed beinginharmony closed 11 years ago

beinginharmony commented 11 years ago

Warning, this is a post by a complete idiot. meaning it probably has a dead simple answer.

jquery.hypher.js works fine just alone. but for whatever reason I can't get the version of hypher.js inside typset's example to work - keep getting the following error when I copy your files verbatim:

' Uncaught TypeError: Cannot set property 'en-us' of undefined en-us.js: line 33'' 'Uncaught TypeError: Cannot read property 'patterns' of undefined hypher.js: line 11'

I messed around trying to add browser.pre and browser.post files from hypher.js' lib folder. but that created syntax problems of it's own. I also tried using the jquery.hypher.js instead of hypher.js inside typeset, no luck.

bramstein commented 11 years ago

Hi, the version of Hypher in typeset is a bit old, even though the changes are minimal. The problem you are running into is caused by where the new version of Hypher expects its hyphenation patterns. Is there any reason you are trying to upgrade hypher?