SMSQ/E keyboard tables for BBQL

Anything QL Software or Programming Related.
afx
Chuggy Microdrive
Posts: 69
Joined: Tue Dec 28, 2010 10:23 pm

SMSQ/E keyboard tables for BBQL

Postby afx » Tue Nov 06, 2018 6:01 pm

Hi all.

I have my QL "black box" with a SuperGoldCard and SMSQ/E, orignally with ROM MGE and Spanish keyboard layout.

I have been trying to configure SMSQ/E for Spanish keyboard for some time but I have not been successful.

I have an SMSQE driver for Spanish PC keyboard and it works fine on my Q68, but I do not know how to build the keyboard table for a BBQL.

Any ideas? Where can I find information?

Has anyone built keyboard tables for other keyboards than those integrated in SMSQ/E (French, English, German)?


User avatar
dilwyn
Mr QL
Posts: 1379
Joined: Wed Dec 01, 2010 10:39 pm
Location: Wales
Contact:

Re: SMSQ/E keyboard tables for BBQL

Postby dilwyn » Tue Nov 06, 2018 8:25 pm

There is a pair of articles on my website about adding SMSQ/E modules and language modules to the operating system:

http://www.dilwyn.me.uk/docs/smsqegd2/smsqmodu.zip

Also worth looking at Wolfgang Lenerz's Clavier program http://www.dilwyn.me.uk/misc/clavier.zip which can help with building SMSQ/E keyboard tables.


Dilwyn
All things QL: see www.dilwyn.me.uk
User avatar
pjw
Gold Card
Posts: 402
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway

Re: SMSQ/E keyboard tables for BBQL

Postby pjw » Tue Nov 06, 2018 8:26 pm

There are some documents by Tony Tebby on the subject. Complete with example programs to build a keyboard module and append the module to SMSQ/E. They may be on Dilwyn's site, called something like smsqmodu_zip, containing the documents langmod_doc and smsqmod_doc. I believe these are scans of articles that appeared in QL Today or QUANTA. The program listings need some fixing up to compute.
If you cant find them, PM me for a copy.


Per
For every complex problem there is an answer that is clear, simple, and wrong.
- H. L. Mencken
afx
Chuggy Microdrive
Posts: 69
Joined: Tue Dec 28, 2010 10:23 pm

Re: SMSQ/E keyboard tables for BBQL

Postby afx » Wed Nov 07, 2018 7:20 pm

Hi dilwyn, pjw, ... thank you very much for the information!

I have read that documentation and the SMSQE manual. I have made some progress, for example, I can change SMSQ/E messages to several languages (German, French, Spanish, ...) with the LANG_USE command and everything works fine. I have loaded the Spanish message table with LRESPR "messages_QL_esES_rext" command and LANG_USE 34 activates Spanish messages correctly. (I have a SuperBASIC util program that generates "messages_QL_esES_rext", "keyboard_QL_esES_rext" and "preferences_QL_esES_rext" files).

However, I can not activate the keyboard in a language other than English. For example, these commands do not seem to have effect:
KBD_TABLE 33
KBD_TABLE 49
KBD_TABLE 34
....

About the keyboard table in Spanish, I tried to load the keyboard table in several ways, for example:
a) LRESPR "keyboard_QL_esES_rext"
b) With SMSQE modules
c) i = RESPR (644): LBYTES "keyboard_QL_esES_rext", i: KBD_TABLE i

But none of them works. (After loading the module I type the command KBD_TABLE 34)

What I can be doing wrong?


User avatar
pjw
Gold Card
Posts: 402
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway

Re: SMSQ/E keyboard tables for BBQL

Postby pjw » Wed Nov 07, 2018 11:58 pm

I just tested KBD_TABLE in SMSQ/E 3.33 under QPC2, with 33, 49 and 44. No problem. I ran TT's program Lang_bas and LRESPRed the result. I then typed KBD_TABLE 440. It was wierd, but certainly something had changed. With a bit of fiddling I managed to revert to KBD_TABLE 44 and all was well again. I cant really test whether the lang_rext file is a valid, error free language module.

I did a basic check with KBD_TABLE in SMSQ/E 3.28. No obvious problem. So I dont know why you dont get a reaction in an UNMODIFIED(?) SMSQ/E.

However, as I mentioned, and you may have noticed, the Lang_bas program presented in langmod_doc was scanned and therefore full of errors, so unless some kindly soul has fixed this since I got my version, it will not run as it stands. I spent some time tidying the code so it at least didnt throw any hissy fits, but there could still be subtle errors. Perhaps your problem lies there?

Although I found a copy of the original langmod.doc (M$ Word) unfortunately the S*BASIC program listing was nowhere to be found.


Per
For every complex problem there is an answer that is clear, simple, and wrong.
- H. L. Mencken
User avatar
dilwyn
Mr QL
Posts: 1379
Joined: Wed Dec 01, 2010 10:39 pm
Location: Wales
Contact:

Re: SMSQ/E keyboard tables for BBQL

Postby dilwyn » Thu Nov 08, 2018 12:10 pm

The article itself was published in IQLR volume 5 issue 1 (May/June 1995) but unfortunately they forgot to include the LANG_bas program at the end of the article. A little bit of searching for a correction eventually found it in the January/February 1996 issue, which I've scanned and attached. I haven't got time at the moment to go through it to correct the errors in the scanned artice, but at least original non-OCRed PDF scans attached in case anyone else is able to. (The Word file is 12MB in size, so can't attach that).

LANG_BAS.zip
LANG_bas
(411.95 KiB) Downloaded 8 times


Dilwyn
All things QL: see www.dilwyn.me.uk
User avatar
pjw
Gold Card
Posts: 402
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway

Re: SMSQ/E keyboard tables for BBQL

Postby pjw » Thu Nov 08, 2018 2:31 pm

This is my fixed up version. It runs, it compiles,.. but whether it is error free I cant guarantee. If anyones interested, they could do worse than compare it with Dilwyn's scan, and test it, to see it an error free version can be produced. And then feed it back to the "QL community"..
Langbas.zip
(3.66 KiB) Downloaded 6 times


Per
For every complex problem there is an answer that is clear, simple, and wrong.
- H. L. Mencken
afx
Chuggy Microdrive
Posts: 69
Joined: Tue Dec 28, 2010 10:23 pm

Re: SMSQ/E keyboard tables for BBQL

Postby afx » Thu Nov 08, 2018 5:22 pm

That lang.bas seems to define the keyboard table for a PC-type keyboard.

I have used the language configuration with the basic program attached (spanish.bas). This utility generates the prefences, the messages and QL / PC keyboard tables.

I have been successful with messages and preferences, but with the QL keyboard I have not made any progress. :-(

LangSpanishUtils.zip
Lang Spanish utils
(5.34 KiB) Downloaded 5 times



Return to “Software & Programming”

Who is online

Users browsing this forum: Google [Bot] and 3 guests