Jump to content











Photo
* * * * - 2 votes

Grub4dos Guide/Tutorial


  • Please log in to reply
129 replies to this topic

#126 steve6375

steve6375

    Platinum Member

  • Developer
  • 6997 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 08 May 2019 - 02:10 PM

Easy2Boot has a selection of kbd translation batch files.

Here is Spanish

!BAT
#Espanol - SPANISH CHARACTER - USA KBD CHARACTER
#clear all settings
setkey
#setkey [new character] [QWERTY-USA character]
setkey slash ampersand
setkey ampersand caret
setkey caret braceleft
setkey asterisk braceright
setkey parenleft asterisk
setkey parenright parenleft
setkey minus slash
setkey equal parenright
setkey quote minus
setkey underscore question
setkey question underscore
setkey braceleft quote
setkey braceright backslash
setkey colon greater
setkey greater bar
setkey doublequote at
setkey backslash backquote
setkey less backslash
setkey semicolon less
setkey plus colon
setkey at semicolon
errorcheck off
setkey greater oem102
setkey less shiftoem102
setkey bar A1
setkey at A2
setkey numbsersign A3
setkey tilde A4
echo SPANISH KBD MAPPED  %redir%
#key names
#escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%)
#minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (])
#braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~)
#backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?)
#space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F10, shiftF1-shiftF10, ctrlF1-ctrlF10
#Aa-Az, A0-A9, oem102, shiftoem102

re. Latin American - I have not been asked for one of these. 

 

The only changes would be to use

setkey at Aq
#for the AltGR+q key

setkey greater oem102
setkey less shiftoem102
#for oem102 key

most the other keys can be mapped using the old setkey commands.

If you try some of the easy2boot files and modify it, please send it to me.

What languages would use such a keyboard?



#127 alacran

alacran

    Silver Member

  • .script developer
  • 984 posts
  •  
    Mexico

Posted 08 May 2019 - 03:09 PM

I already have the batch file for Spanish, from your E2B, thanks.

 

Latin American is a version of Spanish keyboard (usually used on all OEM PCs sold on the American Continent) but some characterers are in a diferent location, and yes as you said to identify each other I always remember: on Spanish keyboard @ is "AltGr + 2", but on LA it is "AltGr + q", but there are some other diferences too, I can't remember right now.

 

But all non OEM desktops (made buying parts), and all replacement keyboards you can buy are always Spanish keyboards, so you never know wath you will need next time you try to fix a friend's PC, unless you use always your own keyboard. It would be good to have both batch files.

 

alacran



#128 steve6375

steve6375

    Platinum Member

  • Developer
  • 6997 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 08 May 2019 - 06:37 PM

Latin USA - would you like to test please using latest grub4dos 2019-5-07 and Latin keyboard?

!BAT
#LATIN AMERCICAN KBD
#clear all settings
setkey
#in case old grub4dos, turn off errorcheck so it does not abort
errorcheck off
#setkey [new character] [QWERTY-USA character]
setkey bar backquote
setkey quote minus
setkey question underscore
setkey backquote bracketleft
setkey plus bracketright
setkey braceleft quote
setkey braceright backslash
setkey minus slash
setkey ampersand caret
setkey doublequote at
setkey slash ampersand
setkey parenleft asterisk
setkey parenright parenleft
setkey equal parenright
setkey asterisk braceright
setkey bracketleft doublequote
setkey bracketright bar
setkey semicolon less
setkey colon greater
setkey underscore question
#for caret use {
setkey caret braceleft
#for \ use =
setkey slash equal
setkey at Aq
setkey backslash plus
#for tilde use shift+top-left key
setkey less oem102
setkey greater shiftoem102
#Aminus may not exist in grub4dos yet!
setkey backslash Aminus
echo LATIN AMERICAN KBD MAPPED  %redir%
#key names
#escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%)
#minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (])
#braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~)
#backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?)
#space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F10, shiftF1-shiftF10, ctrlF1-ctrlF10
#Aa-Az, A0-A9, oem102, shiftoem102, Aminus, Aequal


#129 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14835 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 13 May 2019 - 07:06 AM

Only for the record, I once posted a spreadsheet that should be useful to create more easily a custom/language specific keyboard definition file:

http://reboot.pro/to...eyboard-layout/
http://reboot.pro/to...layout/?p=68522

Actual spreadsheet:
http://reboot.pro/in...&attach_id=8451

:duff:
Wonko

#130 steve6375

steve6375

    Platinum Member

  • Developer
  • 6997 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 13 May 2019 - 07:31 AM

I found this website very useful. It has marvelous details (try the links at the top of the page after selecting a particular keyboard).  I get the USA kbd in one browser window and the target kbd in another browser window.

 

The latest version of grub4dos (yesterday) now also supports nearly all unshifted Alt+ keys to - e.g.  Acomma, Asemicolon, Aminus. It supports 'echo -k'  - a new command which prompts you to press a key or key-chord and then prints the code (similar to pause --test-key).

 

P.S. I found this Int 16h BIOS list to be both incomplete and inaccurate when compared to my UK kbd and Asus BIOS. Some of the Alt+ codes such as Alt+comma and Alt+period, etc. that were missing in this table are in fact generated by my BIOS, also the code for Alt+\ (OEM5) is depicted as 2600 in the table but it seems to be 2B00. I am not sure why the table is wrong - perhaps this was an early IBM BIOS + keyboard?

 

Also, QEMU and VirtualBox give the wrong BIOS codes for some keys (or none at all) - I think both are based on Bochs BIOS. So when testing, use a real system (or VMWare which seems much better).


Edited by steve6375, 13 May 2019 - 07:35 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users