LWT is a all-in-one product, but you can extend its capabilities in various ways. Here are the additional features unavailable by default.
MeCab is a Japanese parser. Installing it has two main advantages:
- Much better parsing of Japanese texts than RegExp.
- Automatic romanization of words.
- Enables text-to-speech for any character group.
- Follow the instructions to download MeCab at https://taku910.github.io/mecab/#install.
- Add MeCab to your system PATH.
- In LWT, go to "Edit Languages" → "Japanese" and change from the value for "RegExp Word Characters" to
mecab.
Original instructions provided here.
-
Run your LWT container in interactive mode and install MeCab.
docker exec -it lwt bash apt-get update && apt-get install -y mecab libmecab-dev mecab-ipadic-utf8
-
In LWT, go to "Edit Languages" → "Japanese" and change from the value for "RegExp Word Characters" to
mecab.
LibreTranslate is a great open-source tool that allows you to translate text and provides an API. With it you can achieve the following:
- Translation of sentences without using Google Translate.
- Automatic translation of words (so you don't need to fill by hand!).
To use it, please read the following steps:
- Install it on a local or remote server or using Docker.
- In LWT, go to "Edit Langagues", either create a new or edit an existing language
- In the field "Sentence Translator URI", replace it by the URL of you libre translate instance.
- Do not forget to add the parameter
lwt_translator=libretranslatefor the automatic translation! source=should be followed by two letters indicating the language translating from.target=should be followed by two letters indicating the language to translate to.
- Do not forget to add the parameter
The Text-to-Speech may sound robotic with some languages or operating systems. A workaround is to download a Text-To-Speech (TTS) plugin such as Read Aloud.
