Closed ProgramComputer closed 6 months ago
Hi, I looked at your changes and they were valid but they implied many changes in function signatures. I was also not satisfied with my own previous code relying on global JS variables, as they is always a point where they become messy.
So I changed the signature of speechDispatcher
to take a language ID as argument (your suggestion) and I create a new API enpoint (/languages/{lang-id}/reading-configuration
) to return the valid data. Now speech dispatcher just asks the server how to read a term.
The supplementary overhead is contained as well: ~500 B and 50ms on average. It supports caching as well, so it won't be concerning.
@HugoFara From #155,
The bug still exists in c2cb13b. I changed the PR to accommodate the #153. Test or @ProgramComputer for me to test before closing.
Lang_id allows setting mecab independent from language.
Reproduce:
Install LWT. Do not install mecab and don't set "mecab" in regex setting. Open a Japanese text.