Creates CLAVIER_EXE, Real Gagnon’s “Clavier Quebecois” (version 0.5, Montreal 1988): a machine-code job that lets the QL show French accented characters on the screen with two-key dead-key combinations. After running it, press the apostrophe and then e for e acute, the pound sign for the other accent, and shifted pound for the soft c; type the apostrophe or quote mark twice to get the sign itself. Screen only; printer support was to follow.
Run it, say where to save the file (FLP1_ by default) and press a key; the 388 bytes in the DATA lines are POKEd into memory and saved with SEXEC. Translated by Louis Laferriere from issue #7 of the Quebec newsletter QL_DOC; he called the BASIC program keyboard_bas.
Published in Sinc-Link September-October 1989 (Clavier.Exe).
Source Code
100 REMark Creating a File CLAVIER_EXE
110 :
120 CLS
130 INPUT "Where to save CLAVIER_EXE (e.g. mdv1_)?",save$
140 IF LEN(save$)=0: save$="flp1_"
150 PRINT " One moment please. "
160 :
170 RESTORE 300:a=RESPR(1000):basr=a
180 count=0
190 REPeat 1
200 IF EOF:EXIT 1
210 AT 3,0:PRINT "> "
220 READ x: POKE a,x : a=a+1
230 AT 3,0:PRINT " <";
240 count=count+1
250 END REPeat 1
260 :
270 PRINT "Press any key to save CLAVIER_EXE.": PAUSE
280 SEXEC save$&"CLAVIER_EXE",basr,count,128
290 :
300 DATA 96,12,0,0,0,0,74,251,0,4
310 DATA 67,81,48,53,112,11,114,255,116,1
320 DATA 78,65,67,250,1,22,18,25,12,1
330 DATA 0,42,103,0,0,10,97,0,0,200
340 DATA 96,0,255,240,22,57,0,2,128,139
350 DATA 12,3,0,39,103,0,0,38,12,3
360 DATA 0,34,103,0,0,46,12,3,0,94
370 DATA 103,0,0,54,12,3,0,96,103,0
380 DATA 0,92,12,3,0,126,103,0,0,100
390 DATA 96,0,0,160,97,0,0,124,97,0
400 DATA 0,104,67,250,0,162,96,0,0,34
410 DATA 97,0,0,108,97,0,0,88,67,250
420 DATA 0,156,96,0,0,18,97,0,0,92
430 DATA 97,0,0,72,67,250,0,152,96,0
440 DATA 0,2,16,25,176,60,0,42,103,0
450 DATA 255,150,176,3,102,0,255,242,97,0
460 DATA 0,60,18,17,97,0,0,72,96,0
470 DATA 255,130,97,0,0,46,18,60,0,131
480 DATA 97,0,0,56,96,0,255,114,97,0
490 DATA 0,30,18,60,0,136,97,0,0,40
500 DATA 96,0,255,98,22,57,0,2,128,139
510 DATA 12,3,0,0,103,0,255,244,78,117
520 DATA 19,252,0,0,0,2,128,139,18,60
530 DATA 0,194,97,0,0,4,78,117,36,121
540 DATA 0,2,128,76,48,120,0,224,78,144
550 DATA 78,117,112,8,114,255,118,5,147,201
560 DATA 78,65,96,0,255,36,101,144,97,141
570 DATA 117,154,39,39,42,42,101,143,105,146
580 DATA 117,135,111,132,34,34,42,42,101,145
590 DATA 97,142,117,155,105,149,111,152,94,94
600 DATA 42,42,82,69,77,97,114,107,32,62
610 DATA 62,32,67,108,97,118,105,101,114,32
620 DATA 81,117,131,98,131,99,111,105,115,32
630 DATA 97,99,116,105,102,32,118,101,114,115
640 DATA 105,111,110,32,48,46,53,32,32,131
650 DATA 99,114,105,116,32,112,97,114,32,82
660 DATA 131,97,108,32,71,97,103,110,111,110
670 DATA 44,32,77,111,110,116,114,131,97,108
680 DATA 32,56,56,10,42,0,0,0Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.