Merged upstream changes to latin.js