VOGONS


First post, by 5aLIVE

User metadata
Rank Newbie
Rank
Newbie

I have an old DOS Computer Algebra System program which uses the extended char set to display mathematical symbols.
Using the US codepage displays the correct mathematical symbols but there are a few symbols which are swapped.
For example, if I press shift+2, a @ symbols is displayed, similarly if I press the shift + @ a " symbol is seen.

Using the UK codepage retores these key functions an others as you would expect, but all the mathematical symbols are replaced
with the wrong character symbols.

I've been searching around but surprisingly I haven't yet been able to find a solution to this problem.

My thinking is that I need to create a custom codepage which containing most elements of both the US map with a few changes found UK keymaps.
Would this be the right approach or is there a far simpler way to do this?
Any assistance with this would be gratefully appreciated.

Thanks,
5aLIVE.

Reply 1 of 4, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Try this command at the prompt in DOSBox: KEYB UK 437

Reply 2 of 4, by 5aLIVE

User metadata
Rank Newbie
Rank
Newbie

Yes that works perfectly, thank you very much.
I added this to the [autoexec] section in the config file and it worked.
I then temporarily commented it out and tried using the command : keyboardlayout=uk 437 in the [dos] section. This doesn't work.
Is there anyway to get it working using the keyboardlayout command please?

Thank you.

Reply 3 of 4, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I don't think the config setting will work for your purpose, because it is only the language code, for which a "preferred" codepage is selected.

If you use the setting keyboardlayout=uk, and then in DOSBox the command KEYB, you will see that codepage 858 was loaded as the preferred one. It is similar to using the command KEYB UK (not specifying a codepage).

Reply 4 of 4, by 5aLIVE

User metadata
Rank Newbie
Rank
Newbie

Okay, I understand what you have said and accept that. Although it's not how I imagined it would have functioned though. Thank you.