hmatuschek / kochmorse

A simple morse tutor using the Koch method.
https://dm3mat.darc.de/kochmorse/
GNU General Public License v2.0
82 stars 18 forks source link

User based rules produces no sound #43

Open f4hpv opened 3 years ago

f4hpv commented 3 years ago

OS is Linux mint 19 cinamon. (French locales) issue is : "User based rules produces no sound". All others tutors sound output are ok. => AFAIK not a sound system configuration issue user rules xml file used for test is a cut paste of example ABC given in help (see attached file) => Not a syntax issue Tried with both windows and linux EOL encoding xml file encoding is UTF8 abc.xml.zip

hmatuschek commented 3 years ago

Thanks for reporting this issue, there is a bug in translating text into morse code. The engine expects lower-case letters and ignores any upper-case letters. I'll fix it with the next release. In the meantime, try using lower-case letters only.

hmatuschek commented 3 years ago

By the way, I you are compiling kochmorse from the source code, you can build a utility tool to test your text generation file. This may help with writing your own generation rules:

When calling cmake, pass the -DWITH_TEXTGEN=ON option to CMake: E.g.,

cmake .. -DCMAKE_INSTALL_PREFIX=~/.local/ -DWITH_TEXTGEN=ON
make
make install

This will build and install kochmore and textgen for your user only under ~/.local/ You can then run textgen with

textgen YOUR_XML_FILE.xml