Wake-Lock Support
Some browsers are now supporting a new API to control screen timeout called Wake Lock. Unfortunately support for the feature isn't universal just yet. If you're a Firefox user this will have to wait a bit longer, which is a real shame. Since Firefox Android Nightly has a way to enable Stutter (It's a pain in the butt) I would have loved to have had wake-lock working on my phone where my timeout is the shortest. Even so, this was a requested feature from one of the add-on stores, so I hope it makes at least one user happy.
How it works
While Stutter is running/stuttering, wake-lock will attempt to disable the screen timeout of your device. If the API exists and permission is allowed you won't need to worry about your screen going dim or turning off while you're reading. Once Stutter or the tab is closed wake-lock releases and your timeout is back to normal. It works on Chrome and Edge, but not Firefox as of this release.
Locale Enhancements
I realized during another recent update that my "Other Punctuation Delay" was being applied to a specific set of characters and not a big-long configurable pattern set by locale. That was embarrasing! So I set off to move those patterns into the locales.json
file where contributors could tweak them for their specific language. It is, hopefully, another big step toward true localization support.
Now the punctuation characters are much more varied, which is great, but there was also a big improvement in how I am handling localized strings across the application. A singleton "Locales" class is available to provide access to these strings where they're needed. It automatically refreshes its values when the locale is set or changes. As usual, the fallback is English if a locale doesn't exist in the JSON file.