Convert Spanish text to QL (utf2ql)
Posted: Thu May 16, 2024 10:56 pm
Fortunately, we are seeing how some new games for QL include a Spanish version, but this language has some peculiarities, and punctuation marks such as accents and opening marks for exclamations and questions.
With the bash program for Linux called utf2ql.sh it is possible to convert a UTF-8 text written in Spanish, or copied from the translator, with its correct punctuation symbols, to a document with the QL character set.
Surely there will be some program already prepared, but I wanted to spend some time creating my own version.
The same program can be useful to convert other languages, it is only necessary to create the conversion table within the program listing.
I leave the link to review the program and how to use it:
https://sinclairqles.wordpress.com/2024/05/16/utf2ql/
https://retrowiki.es/viewtopic.php?f=98&t=200040490
The texts are in Spanish, but as I always remember, the automatic translator is our friend.
Update. The same script is also included in Python.
I attach the program here. The zip file includes a test text.
With the bash program for Linux called utf2ql.sh it is possible to convert a UTF-8 text written in Spanish, or copied from the translator, with its correct punctuation symbols, to a document with the QL character set.
Surely there will be some program already prepared, but I wanted to spend some time creating my own version.
The same program can be useful to convert other languages, it is only necessary to create the conversion table within the program listing.
I leave the link to review the program and how to use it:
https://sinclairqles.wordpress.com/2024/05/16/utf2ql/
https://retrowiki.es/viewtopic.php?f=98&t=200040490
The texts are in Spanish, but as I always remember, the automatic translator is our friend.
Update. The same script is also included in Python.
I attach the program here. The zip file includes a test text.