Author Topic: Keyboard troubles  (Read 3818 times)

0 Members and 1 Guest are viewing this topic.

Offline smogga

  • Newbie
  • Posts: 2
    • View Profile
Keyboard troubles
« on: February 02, 2019, 07:56:06 am »
Hi.
I'm a qb64 newbie from Finland, and i wish i could get some help here. I'd like to write a little text based adventure game for my kids in finish language, but i can't write letters "ä" and "ö"  to the ide. I've tried to change the language setting from the options menu, but that doesn't seem to do anything. I'm on ubuntu 16.04.

(edit)
Running qbasic.exe on dosbox does the trick. Just have to type command "keyb su" first after launching dosbox. Still i wish i could do that on qb64 also.
« Last Edit: February 02, 2019, 09:14:10 am by smogga »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Keyboard troubles
« Reply #1 on: February 03, 2019, 03:57:39 am »
Hi smogga.

Hi. This can only be set in the latest versions of the IDE. But it unfortunately makes chaos go around the perimeter. It's in Options / language. For my speech (Czech) it is CP1250 and for that I have to change the font, it is in Options / Display. But then it looks really terrible. If you want to set the text of the resulting program so it is displayed correctly, you must use a font with Finnish support and the correct page with the MAPUNICODE command. For this purpose, I have built a small utility in the past that may help set the right environment.

Code: QB64: [Select]
  1. 'nation.bm   my FIRST attempt for INTERNATIONAL QB64 language support.
  2. 'function find code page need for correct text show on screen and set (if is right font used) unicode characters.
  3.  
  4.  
  5.  
  6.  
  7. IF win THEN
  8.     SHELL _HIDE "powershell get-culture > nation.txt"
  9.     IF _FILEEXISTS("nation.txt") THEN
  10.         c = FREEFILE
  11.         OPEN "nation.txt" FOR BINARY AS #c
  12.         line$ = SPACE$(LOF(c))
  13.         GET #c, , line$
  14.         REM            IF lin = 4 THEN LCID_DECIMAL = VAL(LEFT$(line$, 4)): EXIT DO
  15.         CLOSE c
  16.  
  17.        
  18.         FOR numbers = 1 TO LEN(line$)
  19.             char = ASC(line$, numbers)
  20.             IF char >= 47 AND char <= 58 THEN nr$ = nr$ + CHR$(char)
  21.         NEXT
  22.  
  23.         LCID_DECIMAL = VAL(nr$)
  24.     ELSE LCID_DECIMAL = 0 'english
  25.     END IF
  26. ELSE 'LINUX
  27.     SHELL _HIDE ("echo $LANG |cut -c1,2,4,5 > nation.txt")
  28.     ch = FREEFILE
  29.     OPEN "nation.txt" FOR INPUT AS ch
  30.     LINE INPUT #ch, nation$
  31.     CLOSE ch
  32.  
  33. IF win THEN
  34.     SELECT CASE LCID_DECIMAL
  35.         '        language               code page
  36.         REM        CASE 0: lang$ = "English"
  37.         CASE 1078: lang$ = "Afrikaans": CP = 1252
  38.         CASE 1052: lang$ = "Albanian": CP = 1250
  39.         CASE 1118: lang$ = "Amharic": 'CP unknown
  40.         CASE 5121: lang$ = "Arabic - Algeria": CP = 1401: CPW = 1256
  41.         CASE 15361: lang$ = "Arabic - Bahrain": CP = 1256
  42.         CASE 3073: lang$ = "Arabic - Egypt": CP = 1256
  43.         CASE 2049: lang$ = "Arabic - Iraq": CP = 801: CPW = 1256
  44.         CASE 11265: lang$ = "Arabic - Jordan": CP = 1256
  45.         CASE 13313: lang$ = "Arabic - Kuwait": CP = 3401: CPW = 1256
  46.         CASE 12289: lang$ = "Arabic - Lebanon": CP = 3001: CPW = 1256
  47.         CASE 4097: lang$ = "Arabic - Libya": CP = 1001: CPW = 1256
  48.         CASE 6145: lang$ = "Arabic - Morocco": CP = 1801: CPW = 1256
  49.         CASE 8193: lang$ = "Arabic - Oman": CP = 2001: CP2 = 1256
  50.         CASE 16385: lang$ = "Arabic - Qatar": CP = 4001: CP2 = 1256
  51.         CASE 1025: lang$ = "Arabic - Saudi Arabia": CP = 401: CP2 = 1256
  52.         CASE 10241: lang$ = "Arabic - Syria": CP = 2801: CP2 = 1256
  53.         CASE 7169: lang$ = "Arabic - Tunisia": CP = 1256
  54.         CASE 14337: lang$ = "Arabic - United Arab Emirates": CP = 3801: CP2 = 1256
  55.         CASE 9217: lang$ = "Arabic - Yemen": CP = 2401: CP2 = 1256
  56.         CASE 1067: lang$ = "Armenian" 'CP unknown
  57.         CASE 1101: lang$ = "Assamese" 'CP uunknown
  58.         CASE 2092: lang$ = "Azeri - Cyrillic": CP = 1251
  59.         CASE 1068: lang$ = "Azeri - Latin": CP = 1254
  60.         CASE 1069: lang$ = "Basque": CP = 1252
  61.         CASE 1059: lang$ = "Belarusian": CP = 423: CP2 = 1251
  62.         CASE 2117: lang$ = "Bengali - Bangladesh": CP = 2117: CP2 = 845
  63.         CASE 1093: lang$ = "Bengali - India": CP = 445
  64.         CASE 5146: lang$ = "Bosnian" 'CP unknown
  65.         CASE 1026: lang$ = "Bulgarian": CP = 402: CP2 = 1251
  66.         CASE 1109: lang$ = "Burmese": CP = 455
  67.         CASE 1027: lang$ = "Catalan": CP = 403: CP2 = 1252
  68.         CASE 2052: lang$ = "Chinese - China": CP = 804
  69.         CASE 3076: lang$ = "Chinese - Hong Kong": 'CP unknown
  70.         CASE 5124: lang$ = "Chinese - Macau": CP = 1404
  71.         CASE 4100: lang$ = "Chinese - Singapore": CP = 1004
  72.         CASE 1028: lang$ = "Chinese - Taiwan": CP = 404
  73.         CASE 1050: lang$ = "Croatian": CP = 1250
  74.         CASE 1029: lang$ = "Czech": CP = 405: CP2 = 1250
  75.         CASE 1030: lang$ = "Danish": CP = 406: CP2 = 1252
  76.             'Divehi  Dhivehi Maldivian   dv  dv unknown code and CP
  77.         CASE 2067: lang$ = "Dutch - Belgium": CP = 813: CP2 = 1252
  78.         CASE 1043: lang$ = "Dutch - Netherlands": CP = 413: CP2 = 1252
  79.         CASE 1126: lang$ = "Edo": CP = 466
  80.         CASE 3081: lang$ = "English - Australia": CP = 1252
  81.         CASE 10249: lang$ = "English - Belize": CP = 2809: CP2 = 1252
  82.         CASE 4105: lang$ = "English - Canada": CP = 1009: CP2 = 1252
  83.         CASE 9225: lang$ = "English - Caribbean": CP = 2409: CP2 = 1252
  84.         CASE 2057: lang$ = "English - Great Britain": CP = 809: CP2 = 1252
  85.         CASE 16393: lang$ = "English - India": CP = 4009
  86.         CASE 6153: lang$ = "English - Ireland": CP = 1809: CP2 = 1252
  87.         CASE 8201: lang$ = "English - Jamaica": CP = 2009: CP2 = 1252
  88.         CASE 5129: lang$ = "English - New Zealand": CP = 1409: CP2 = 1252
  89.         CASE 13321: lang$ = "English - Phillippines": CP = 3409: CP2 = 1252
  90.         CASE 7177: lang$ = "English - Southern Africa": CP = 1252
  91.         CASE 11273: lang$ = "English - Trinidad": CP = 1252
  92.         CASE 1033: lang$ = "English - United States": CP = 409: CP2 = 1252
  93.         CASE 12297: lang$ = "English - Zimbabwe": CP = 3009: CP2 = 1252
  94.         CASE 1061: lang$ = "Estonian": CP = 425: CP2 = 1257
  95.         CASE 1071: lang$ = "FYRO Macedonia": CP = 1251
  96.         CASE 1080: lang$ = "Faroese": CP = 438: CP2 = 1252
  97.         CASE 1065: lang$ = "Farsi - Persian": CP = 429: CP2 = 1256
  98.         CASE 1124: lang$ = "Filipino": CP = 464
  99.         CASE 1035: lang$ = "Finnish": CP = 1252
  100.         CASE 2060: lang$ = "French - Belgium": CP = 1252
  101.         CASE 11276: lang$ = "French - Cameron": 'unknown CP
  102.         CASE 3084: lang$ = "French - Canada": CP = 1252
  103.         CASE 9228: lang$ = "French - Congo": 'unknown CP
  104.         CASE 12300: lang$ = "French - Cote d'Ivoire" 'unknown CP
  105.         CASE 1036: lang$ = "French - France": CP = 1252
  106.         CASE 5132: lang$ = "French - Luxembourg": CP = 1252
  107.         CASE 13324: lang$ = "French - Mali" 'unknown CP
  108.         CASE 6156: lang$ = "French - Monaco": CP = 1252
  109.         CASE 14348: lang$ = "French - Morocco" 'cp unknown
  110.         CASE 10252: lang$ = "French - Senegal" 'cp unknown
  111.         CASE 4108: lang$ = "French - Switzerland": CP = 1252
  112.         CASE 7180: lang$ = "French - West Indies" 'CP unknown
  113.         CASE 1122: lang$ = "Frisian - Netherlands": CP = 462
  114.         CASE 2108: lang$ = "Gaelic - Ireland" 'CP unknown
  115.         CASE 1084: lang$ = "Gaelic - Scotland" 'CP unknown
  116.         CASE 1110: lang$ = "Galician": CP = 456: CP2 = 1252
  117.         CASE 1079: lang$ = "Georgian": CP = 437
  118.         CASE 3079: lang$ = "German - Austria": CP = 1252
  119.         CASE 1031: lang$ = "German - Germany": CP = 407: CP2 = 1252
  120.         CASE 5127: lang$ = "German - Liechtenstein": CP = 1407: CP2 = 1252
  121.         CASE 4103: lang$ = "German - Luxembourg": CP = 1007: CP2 = 1252
  122.         CASE 2055: lang$ = "German - Switzerland": CP = 807: CP2 = 1252
  123.         CASE 1032: lang$ = "Greek": CP = 408: CP2 = 1253
  124.         CASE 1140: lang$ = "Guarani - Paraguay": CP = 474
  125.         CASE 1095: lang$ = "Gujarati": CP = 447
  126.         CASE 1279: lang$ = "HID (Human Interface Device)": CP = -1
  127.         CASE 1037: lang$ = "Hebrew": CP = 1255
  128.         CASE 1081: lang$ = "Hindi": CP = 439
  129.         CASE 1038: lang$ = "Hungarian": CP = 1250
  130.         CASE 1039: lang$ = "Icelandic": CP = 1252
  131.         CASE 1136: lang$ = "Igbo - Nigeria": CP = 470
  132.         CASE 1057: lang$ = "Indonesian": CP = 421: CP2 = 1252
  133.         CASE 1040: lang$ = "Italian - Italy": CP = 410: CP2 = 1252
  134.         CASE 2064: lang$ = "Italian - Switzerland": CP = 810: CP2 = 1252
  135.         CASE 1041: lang$ = "Japanese ": CP = 411
  136.         CASE 1099: lang$ = "Kannada" ' CP unknown
  137.         CASE 1120: lang$ = "Kashmiri": CP = 460
  138.         CASE 1087: lang$ = "Kazakh": CP = 1251
  139.         CASE 1107: lang$ = "Khmer": CP = 453
  140.         CASE 1111: lang$ = "Konkani": CP = 457
  141.         CASE 1042: lang$ = "Korean": CP = 412
  142.         CASE 1088: lang$ = "Kyrgyz - Cyrillic": CP = 440: CP2 = 1251
  143.         CASE 1108: lang$ = "Lao": CP = 454
  144.         CASE 1142: lang$ = "Latin": CP = 476
  145.         CASE 1062: lang$ = "Latvian": CP = 426: CP2 = 1257
  146.         CASE 1063: lang$ = "Lithuanian": CP = 427: CP2 = 1257
  147.         CASE 2110: lang$ = "Malay - Brunei": CP = 1252
  148.         CASE 1086: lang$ = "Malay - Malaysia": CP = 1252
  149.         CASE 1100: lang$ = "Malayalam" 'unknown CP
  150.         CASE 1082: lang$ = "Maltese" 'unknown CP
  151.         CASE 1112: lang$ = "Manipuri": CP = 458
  152.         CASE 1153: lang$ = "Maori": CP = 481
  153.         CASE 1102: lang$ = "Marathi" 'unknown CP
  154.         CASE 2128: lang$ = "Mongolian": CP = 850
  155.         CASE 1104: lang$ = "Mongolian": CP = 450: CP2 = 1251
  156.         CASE 1121: lang$ = "Nepali": CP = 461
  157.         CASE 1044: lang$ = "Norwegian - Bokml": CP = 414: CP2 = 1252
  158.         CASE 2068: lang$ = "Norwegian - Nynorsk": CP = 814: CP2 = 1252
  159.         CASE 1096: lang$ = "Oriya": CP = 448
  160.         CASE 1045: lang$ = "Polish": CP = 415: CP2 = 1250
  161.         CASE 1046: lang$ = "Portuguese - Brazil": CP = 416: CP2 = 1252
  162.         CASE 2070: lang$ = "Portuguese - Portugal": CP = 816: CP2 = 1252
  163.         CASE 1094: lang$ = "Punjabi": CP = 446
  164.         CASE 1047: lang$ = "Raeto-Romance": CP = 417
  165.         CASE 2072: lang$ = "Romanian - Moldova": CP = 818
  166.         CASE 1048: lang$ = "Romanian - Romania": CP = 418: CP2 = 1250
  167.         CASE 1049: lang$ = "Russian": CP = 419: CP2 = 1251
  168.         CASE 2073: lang$ = "Russian - Moldova": CP = 2073: CP2 = 819
  169.         CASE 1083: lang$ = "Sami Lappish" 'CP unknown
  170.         CASE 1103: lang$ = "Sanskrit" 'CP unknown
  171.         CASE 3098: lang$ = "Serbian - Cyrillic": CP = 1251
  172.         CASE 2074: lang$ = "Serbian - Latin": CP = 1250
  173.         CASE 1072: lang$ = "Sesotho (Sutu)": CP = 430
  174.         CASE 1074: lang$ = "Setsuana": CP = 432
  175.         CASE 1113: lang$ = "Sindhi": CP = 459
  176.         CASE 1115: lang$ = "Sinhala Sinhalese" ' cp unknown
  177.         CASE 1051: lang$ = "Slovak": CP = 1250
  178.         CASE 1060: lang$ = "Slovenian": CP = 424: CP2 = 1250
  179.         CASE 1143: lang$ = "Somali": CP = 477
  180.         CASE 1070: lang$ = "Sorbian" 'unknown CP
  181.         CASE 11274: lang$ = "Spanish - Argentina": CP = 1252
  182.         CASE 16394: lang$ = "Spanish - Bolivia": CP = 1252
  183.         CASE 13322: lang$ = "Spanish - Chile": CP = 1252
  184.         CASE 9226: lang$ = "Spanish - Colombia": CP = 1252
  185.         CASE 5130: lang$ = "Spanish - Costa Rica": CP = 1252
  186.         CASE 7178: lang$ = "Spanish - Dominican Republic": CP = 1252
  187.         CASE 12298: lang$ = "Spanish - Ecuador": CP = 1252
  188.         CASE 17418: lang$ = "Spanish - El Salvador": CP = 1252
  189.         CASE 4106: lang$ = "Spanish - Guatemala": CP = 1252
  190.         CASE 18442: lang$ = "Spanish - Honduras": CP = 1252
  191.         CASE 2058: lang$ = "Spanish - Mexico": CP = 1252
  192.         CASE 19466: lang$ = "Spanish - Nicaragua": CP = 1252
  193.         CASE 6154: lang$ = "Spanish - Panama": CP = 1252
  194.         CASE 15370: lang$ = "Spanish - Paraguay": CP = 1252
  195.         CASE 10250: lang$ = "Spanish - Peru": CP = 1252
  196.         CASE 20490: lang$ = "Spanish - Puerto Rico": CP = 1252
  197.         CASE 1034: lang$ = "Spanish - Spain (Traditional)": CP = 1252
  198.         CASE 14346: lang$ = "Spanish - Uruguay": CP = 1252
  199.         CASE 8202: lang$ = "Spanish - Venezuela": CP = 1252
  200.         CASE 1089: lang$ = "Swahili": CP = 441: CP2 = 1252
  201.         CASE 2077: lang$ = "Swedish - Finland": CP = 1252
  202.         CASE 1053: lang$ = "Swedish - Sweden": CP = 1252
  203.         CASE 1114: lang$ = "Syriac" 'unknown CP
  204.         CASE 1064: lang$ = "Tajik": CP = 428
  205.         CASE 1097: lang$ = "Tamil": CP = 449
  206.         CASE 1092: lang$ = "Tatar": CP = 444: CP2 = 1251
  207.         CASE 1098: lang$ = "Telugu" 'CP unknown
  208.         CASE 1054: lang$ = "Thai" 'CP unkown
  209.         CASE 1105: lang$ = "Tibetan": CP = 451
  210.         CASE 1073: lang$ = "Tsonga": CP = 431
  211.         CASE 1055: lang$ = "Turkish": CP = 1254
  212.         CASE 1090: lang$ = "Turkmen": CP = 442
  213.         CASE 1058: lang$ = "Ukrainian": CP = 422: CP2 = 1251
  214.         CASE 8: lang$ = "Unicode": CP = -2 '    UTF-8
  215.         CASE 1056: lang$ = "Urdu": CP = 420: CP2 = 1256
  216.         CASE 2115: lang$ = "Uzbek - Cyrillic": CP = 843: CP2 = 1251
  217.         CASE 1091: lang$ = "Uzbek - Latin": CP = 443: CP2 = 1254
  218.         CASE 1075: lang$ = "Venda": CP = 433
  219.         CASE 1066: lang$ = "Vietnamese": CP = 1258
  220.         CASE 1106: lang$ = "Welsh": CP = 452
  221.         CASE 1076: lang$ = "Xhosa": CP = 434
  222.         CASE 1085: lang$ = "Yiddish" 'unknown CP
  223.         CASE 1077: lang$ = "Zulu": CP = 435
  224.     END SELECT
  225.     SELECT CASE LCASE$(nation$) '                     without warranty! Here are NOT all countries!
  226.         CASE "af": lang$ = "Afrikaans": CP = 1252
  227.         CASE "sq": lang$ = "Albanian": CP = 1250
  228.         CASE "am": lang$ = "Amharic": 'CP unknown
  229.         CASE "ardz": lang$ = "Arabic - Algeria": CP = 1401: CPW = 1256
  230.         CASE "arbh": lang$ = "Arabic - Bahrain": CP = 1256
  231.         CASE "areg": lang$ = "Arabic - Egypt": CP = 1256
  232.         CASE "ariq": lang$ = "Arabic - Iraq": CP = 801: CPW = 1256
  233.         CASE "arjo": lang$ = "Arabic - Jordan": CP = 1256
  234.         CASE "arkw": lang$ = "Arabic - Kuwait": CP = 3401: CPW = 1256
  235.         CASE "arlb": lang$ = "Arabic - Lebanon": CP = 3001: CPW = 1256
  236.         CASE "arly": lang$ = "Arabic - Libya": CP = 1001: CPW = 1256
  237.         CASE "arma": lang$ = "Arabic - Morocco": CP = 1801: CPW = 1256
  238.         CASE "arom": lang$ = "Arabic - Oman": CP = 2001: CP2 = 1256
  239.         CASE "arqa": lang$ = "Arabic - Qatar": CP = 4001: CP2 = 1256
  240.         CASE "arsa": lang$ = "Arabic - Saudi Arabia": CP = 401: CP2 = 1256
  241.         CASE "arsy": lang$ = "Arabic - Syria": CP = 2801: CP2 = 1256
  242.         CASE "artn": lang$ = "Arabic - Tunisia": CP = 1256
  243.         CASE "arae": lang$ = "Arabic - United Arab Emirates": CP = 3801: CP2 = 1256
  244.         CASE "arye": lang$ = "Arabic - Yemen": CP = 2401: CP2 = 1256
  245.         CASE "hy": lang$ = "Armenian" 'CP unknown
  246.         CASE "as": lang$ = "Assamese" 'CP uunknown
  247.         CASE "asaz": lang$ = "Azeri - Cyrillic": CP = 1251
  248.         CASE "asaz": lang$ = "Azeri - Latin": CP = 1254
  249.         CASE "eu": lang$ = "Basque": CP = 1252
  250.         CASE "be": lang$ = "Belarusian": CP = 423: CP2 = 1251
  251.         CASE "bn": lang$ = "Bengali - Bangladesh": CP = 2117: CP2 = 845
  252.         CASE "bn": lang$ = "Bengali - India": CP = 445
  253.         CASE "bs": lang$ = "Bosnian" 'CP unknown
  254.         CASE "bg": lang$ = "Bulgarian": CP = 402: CP2 = 1251
  255.         CASE "my": lang$ = "Burmese": CP = 455
  256.         CASE "ca": lang$ = "Catalan": CP = 403: CP2 = 1252
  257.         CASE "zhcn": lang$ = "Chinese - China": CP = 804
  258.         CASE "zhhk": lang$ = "Chinese - Hong Kong": 'CP unknown
  259.         CASE "zhmo": lang$ = "Chinese - Macau": CP = 1404
  260.         CASE "zhsg": lang$ = "Chinese - Singapore": CP = 1004
  261.         CASE "zhtw": lang$ = "Chinese - Taiwan": CP = 404
  262.         CASE "hr": lang$ = "Croatian": CP = 1250
  263.         CASE "cscz": lang$ = "Czech": CP = 405: CP2 = 1250
  264.         CASE "da": lang$ = "Danish": CP = 406: CP2 = 1252
  265.             'Divehi  Dhivehi Maldivian   dv  dv unknown code and CP
  266.         CASE "nlbe": lang$ = "Dutch - Belgium": CP = 813: CP2 = 1252
  267.         CASE "nlnl": lang$ = "Dutch - Netherlands": CP = 413: CP2 = 1252
  268.         CASE "": lang$ = "Edo": CP = 466
  269.         CASE "enau": lang$ = "English - Australia": CP = 1252
  270.         CASE "enbz": lang$ = "English - Belize": CP = 2809: CP2 = 1252
  271.         CASE "enca": lang$ = "English - Canada": CP = 1009: CP2 = 1252
  272.         CASE "encb": lang$ = "English - Caribbean": CP = 2409: CP2 = 1252
  273.         CASE "engb": lang$ = "English - Great Britain": CP = 809: CP2 = 1252
  274.         CASE "enin": lang$ = "English - India": CP = 4009
  275.         CASE "enie": lang$ = "English - Ireland": CP = 1809: CP2 = 1252
  276.         CASE "enjm": lang$ = "English - Jamaica": CP = 2009: CP2 = 1252
  277.         CASE "ennz": lang$ = "English - New Zealand": CP = 1409: CP2 = 1252
  278.         CASE "enph": lang$ = "English - Phillippines": CP = 3409: CP2 = 1252
  279.         CASE "enza": lang$ = "English - Southern Africa": CP = 1252
  280.         CASE "entt": lang$ = "English - Trinidad": CP = 1252
  281.         CASE "enus": lang$ = "English - United States": CP = 409: CP2 = 1252
  282.         CASE "": lang$ = "English - Zimbabwe": CP = 3009: CP2 = 1252
  283.         CASE "et": lang$ = "Estonian": CP = 425: CP2 = 1257
  284.         CASE "fo": lang$ = "Faroese": CP = 438: CP2 = 1252
  285.         CASE "fa": lang$ = "Farsi - Persian": CP = 429: CP2 = 1256
  286.         CASE "": lang$ = "Filipino": CP = 464
  287.         CASE "fi": lang$ = "Finnish": CP = 1252
  288.         CASE "frbe", "frca", "frfr", "frlu", "frch": lang$ = "French": CP = 1252
  289.         CASE "mk": lang$ = "FYRO Macedonia": CP = 1251
  290.         CASE "gdie": lang$ = "Gaelic - Ireland" 'CP unknown
  291.         CASE "gd": lang$ = "Gaelic - Scotland" 'CP unknown
  292.         CASE "gl": lang$ = "Galician": CP = 456: CP2 = 1252
  293.         CASE "ka": lang$ = "Georgian": CP = 437
  294.         CASE "deat", "dede", "deli", "delu", "dech": lang$ = "German": CP = 1252
  295.         CASE "el": lang$ = "Greek": CP = 408: CP2 = 1253
  296.         CASE "gn": lang$ = "Guarani - Paraguay": CP = 474
  297.         CASE "gu": lang$ = "Gujarati": CP = 447
  298.         CASE "he": lang$ = "Hebrew": CP = 1255
  299.         CASE "hi": lang$ = "Hindi": CP = 439
  300.         CASE "hu": lang$ = "Hungarian": CP = 1250
  301.         CASE "is": lang$ = "Icelandic": CP = 1252
  302.         CASE "id": lang$ = "Indonesian": CP = 421: CP2 = 1252
  303.         CASE "itit": lang$ = "Italian - Italy": CP = 410: CP2 = 1252
  304.         CASE "itch": lang$ = "Italian - Switzerland": CP = 810: CP2 = 1252
  305.         CASE "ja": lang$ = "Japanese ": CP = 411
  306.         CASE "kn": lang$ = "Kannada" ' CP unknown
  307.         CASE "ks": lang$ = "Kashmiri": CP = 460
  308.         CASE "kk": lang$ = "Kazakh": CP = 1251
  309.         CASE "km": lang$ = "Khmer": CP = 453
  310.         CASE "ko": lang$ = "Korean": CP = 412
  311.         CASE "lo": lang$ = "Lao": CP = 454
  312.         CASE "la": lang$ = "Latin": CP = 476
  313.         CASE "lv": lang$ = "Latvian": CP = 426: CP2 = 1257
  314.         CASE "lt": lang$ = "Lithuanian": CP = 427: CP2 = 1257
  315.         CASE "msbn": lang$ = "Malay - Brunei": CP = 1252
  316.         CASE "msmy": lang$ = "Malay - Malaysia": CP = 1252
  317.         CASE "ml": lang$ = "Malayalam" 'unknown CP
  318.         CASE "mt": lang$ = "Maltese" 'unknown CP
  319.         CASE "mi": lang$ = "Maori": CP = 481
  320.         CASE "mr": lang$ = "Marathi" 'unknown CP
  321.         CASE "mn": lang$ = "Mongolian": CP = 450: CP2 = 1251
  322.         CASE "ne": lang$ = "Nepali": CP = 461
  323.         CASE "nono": lang$ = "Norwegian - Bokml": CP = 414: CP2 = 1252
  324.         CASE "or": lang$ = "Oriya": CP = 448
  325.         CASE "pl": lang$ = "Polish": CP = 415: CP2 = 1250
  326.         CASE "ptbr": lang$ = "Portuguese - Brazil": CP = 416: CP2 = 1252
  327.         CASE "ptpt": lang$ = "Portuguese - Portugal": CP = 816: CP2 = 1252
  328.         CASE "pa": lang$ = "Punjabi": CP = 446
  329.         CASE "rm": lang$ = "Raeto-Romance": CP = 417
  330.         CASE "romo": lang$ = "Romanian - Moldova": CP = 818
  331.         CASE "ro": lang$ = "Romanian - Romania": CP = 418: CP2 = 1250
  332.         CASE "ru": lang$ = "Russian": CP = 419: CP2 = 1251
  333.         CASE "rumo": lang$ = "Russian - Moldova": CP = 2073: CP2 = 819
  334.         CASE "sa": lang$ = "Sanskrit" 'CP unknown
  335.         CASE "srsp": lang$ = "Serbian - Cyrillic": CP = 1251
  336.         CASE "tn": lang$ = "Setsuana": CP = 432
  337.         CASE "sd": lang$ = "Sindhi": CP = 459
  338.         CASE "si": lang$ = "Sinhala Sinhalese" ' cp unknown
  339.         CASE "sk": lang$ = "Slovak": CP = 1250
  340.         CASE "sl": lang$ = "Slovenian": CP = 424: CP2 = 1250
  341.         CASE "so": lang$ = "Somali": CP = 477
  342.         CASE "sb": lang$ = "Sorbian" 'unknown CP
  343.         CASE "esar": lang$ = "Spanish - Argentina": CP = 1252
  344.         CASE "esbo": lang$ = "Spanish - Bolivia": CP = 1252
  345.         CASE "escl": lang$ = "Spanish - Chile": CP = 1252
  346.         CASE "esco": lang$ = "Spanish - Colombia": CP = 1252
  347.         CASE "escr": lang$ = "Spanish - Costa Rica": CP = 1252
  348.         CASE "esdo": lang$ = "Spanish - Dominican Republic": CP = 1252
  349.         CASE "esec": lang$ = "Spanish - Ecuador": CP = 1252
  350.         CASE "essv": lang$ = "Spanish - El Salvador": CP = 1252
  351.         CASE "esgt": lang$ = "Spanish - Guatemala": CP = 1252
  352.         CASE "eshn": lang$ = "Spanish - Honduras": CP = 1252
  353.         CASE "esmx": lang$ = "Spanish - Mexico": CP = 1252
  354.         CASE "esni": lang$ = "Spanish - Nicaragua": CP = 1252
  355.         CASE "espa": lang$ = "Spanish - Panama": CP = 1252
  356.         CASE "espy": lang$ = "Spanish - Paraguay": CP = 1252
  357.         CASE "espe": lang$ = "Spanish - Peru": CP = 1252
  358.         CASE "espr": lang$ = "Spanish - Puerto Rico": CP = 1252
  359.         CASE "eses": lang$ = "Spanish - Spain (Traditional)": CP = 1252
  360.         CASE "esuy": lang$ = "Spanish - Uruguay": CP = 1252
  361.         CASE "esve": lang$ = "Spanish - Venezuela": CP = 1252
  362.         CASE "sw": lang$ = "Swahili": CP = 441: CP2 = 1252
  363.         CASE "swfi": lang$ = "Swedish - Finland": CP = 1252
  364.         CASE "svse": lang$ = "Swedish - Sweden": CP = 1252
  365.         CASE "tg": lang$ = "Tajik": CP = 428
  366.         CASE "ta": lang$ = "Tamil": CP = 449
  367.         CASE "tr": lang$ = "Tatar": CP = 444: CP2 = 1251
  368.         CASE "te": lang$ = "Telugu" 'CP unknown
  369.         CASE "th": lang$ = "Thai" 'CP unkown
  370.         CASE "bo": lang$ = "Tibetan": CP = 451
  371.         CASE "ts": lang$ = "Tsonga": CP = 431
  372.         CASE "tr": lang$ = "Turkish": CP = 1254
  373.         CASE "tk": lang$ = "Turkmen": CP = 442
  374.         CASE "uk": lang$ = "Ukrainian": CP = 422: CP2 = 1251
  375.         CASE "utf8": lang$ = "Unicode": CP = -2 '    UTF-8
  376.         CASE "ur": lang$ = "Urdu": CP = 420: CP2 = 1256
  377.         CASE "uzuz": lang$ = "Uzbek - Cyrillic": CP = 843: CP2 = 1251
  378.         CASE "vi": lang$ = "Vietnamese": CP = 1258
  379.         CASE "cy": lang$ = "Welsh": CP = 452
  380.         CASE "xh": lang$ = "Xhosa": CP = 434
  381.         CASE "yi": lang$ = "Yiddish" 'unknown CP
  382.         CASE "zu": lang$ = "Zulu": CP = 435
  383.     END SELECT
  384.  
  385. IF CPW THEN CP2 = CPW
  386. IF CP2 THEN language = CP2 ELSE language = CP
  387. IF language = 0 THEN PRINT "Sorry, unknown Code Page for your country.": END
  388.  
  389.  
  390. _FONT _LOADFONT("cyberbit.ttf", 15, "monospace")
  391.  
  392. SELECT CASE language '                                  set DATA READ to correct position (without it read READ first DATA block and ignore his name)
  393.     CASE 437: RESTORE Microsoft_pc_cp437
  394.     CASE 737: RESTORE Microsoft_pc_cp737
  395.     CASE 775: RESTORE Microsoft_pc_cp775
  396.     CASE 850: RESTORE Microsoft_pc_cp850
  397.     CASE 852: RESTORE Microsoft_pc_cp852
  398.     CASE 855: RESTORE Microsoft_pc_cp855
  399.     CASE 857: RESTORE Microsoft_pc_cp857
  400.     CASE 860: RESTORE Microsoft_pc_cp860
  401.     CASE 861: RESTORE Microsoft_pc_cp861
  402.     CASE 862: RESTORE Microsoft_pc_cp862
  403.     CASE 863: RESTORE Microsoft_pc_cp863
  404.     CASE 864: RESTORE Microsoft_pc_cp864
  405.     CASE 865: RESTORE Microsoft_pc_cp865
  406.     CASE 866: RESTORE Microsoft_pc_cp866
  407.     CASE 869: RESTORE Microsoft_pc_cp869
  408.     CASE 874: RESTORE Microsoft_pc_cp874
  409.     CASE 1250: RESTORE Microsoft_windows_cp1250
  410.     CASE 1251: RESTORE Microsoft_windows_cp1251
  411.     CASE 1252: RESTORE Microsoft_windows_cp1252
  412.     CASE 1253: RESTORE Microsoft_windows_cp1253
  413.     CASE 1254: RESTORE Microsoft_windows_cp1254
  414.     CASE 1255: RESTORE Microsoft_windows_cp1255
  415.     CASE 1256: RESTORE Microsoft_windows_cp1256
  416.     CASE 1257: RESTORE Microsoft_windows_cp1257
  417.     CASE 1258: RESTORE Microsoft_windows_cp1258
  418.  
  419.  
  420.  
  421.  
  422. FOR ASCIIcode = 128 TO 255
  423.     SELECT CASE language
  424.         CASE 437: READ Microsoft_pc_cp437: _MAPUNICODE Microsoft_pc_cp437 TO ASCIIcode
  425.         CASE 737: READ Microsoft_pc_cp737: _MAPUNICODE Microsoft_pc_cp737 TO ASCIIcode
  426.         CASE 775: READ Microsoft_pc_cp775: _MAPUNICODE Microsoft_pc_cp775 TO ASCIIcode
  427.         CASE 850: READ Microsoft_pc_cp850: _MAPUNICODE Microsoft_pc_cp850 TO ASCIIcode
  428.         CASE 852: READ Microsoft_pc_cp852: _MAPUNICODE Microsoft_pc_cp852 TO ASCIIcode
  429.         CASE 855: READ Microsoft_pc_cp855: _MAPUNICODE Microsoft_pc_cp855 TO ASCIIcode
  430.         CASE 857: READ Microsoft_pc_cp857: _MAPUNICODE Microsoft_pc_cp857 TO ASCIIcode
  431.         CASE 860: READ Microsoft_pc_cp860: _MAPUNICODE Microsoft_pc_cp860 TO ASCIIcode
  432.         CASE 861: READ Microsoft_pc_cp861: _MAPUNICODE Microsoft_pc_cp861 TO ASCIIcode
  433.         CASE 862: READ Microsoft_pc_cp862: _MAPUNICODE Microsoft_pc_cp862 TO ASCIIcode
  434.         CASE 863: READ Microsoft_pc_cp863: _MAPUNICODE Microsoft_pc_cp863 TO ASCIIcode
  435.         CASE 864: READ Microsoft_pc_cp864: _MAPUNICODE Microsoft_pc_cp864 TO ASCIIcode
  436.         CASE 865: READ Microsoft_pc_cp865: _MAPUNICODE Microsoft_pc_cp865 TO ASCIIcode
  437.         CASE 866: READ Microsoft_pc_cp866: _MAPUNICODE Microsoft_pc_cp866 TO ASCIIcode
  438.         CASE 869: READ Microsoft_pc_cp869: _MAPUNICODE Microsoft_pc_cp869 TO ASCIIcode
  439.         CASE 874: READ Microsoft_pc_cp874: _MAPUNICODE Microsoft_pc_cp874 TO ASCIIcode
  440.         CASE 1250: READ Microsoft_windows_cp1250: _MAPUNICODE Microsoft_windows_cp1250 TO ASCIIcode
  441.         CASE 1251: READ Microsoft_windows_cp1251: _MAPUNICODE Microsoft_windows_cp1251 TO ASCIIcode
  442.         CASE 1252: READ Microsoft_windows_cp1252: _MAPUNICODE Microsoft_windows_cp1252 TO ASCIIcode
  443.         CASE 1253: READ Microsoft_windows_cp1253: _MAPUNICODE Microsoft_windows_cp1253 TO ASCIIcode
  444.         CASE 1254: READ Microsoft_windows_cp1254: _MAPUNICODE Microsoft_windows_cp1254 TO ASCIIcode
  445.         CASE 1255: READ Microsoft_windows_cp1255: _MAPUNICODE Microsoft_windows_cp1255 TO ASCIIcode
  446.         CASE 1256: READ Microsoft_windows_cp1256: _MAPUNICODE Microsoft_windows_cp1256 TO ASCIIcode
  447.         CASE 1257: READ Microsoft_windows_cp1257: _MAPUNICODE Microsoft_windows_cp1257 TO ASCIIcode
  448.         CASE 1258: READ Microsoft_windows_cp1258: _MAPUNICODE Microsoft_windows_cp1258 TO ASCIIcode
  449.     END SELECT
  450. KILL "nation.txt"
  451.  
  452. PRINT "Detected nation:"; lang$; ", code pages: "; CP; ", "; CP2
  453. INPUT "input text with your national characters, if is displayed wrong, try other font (set it in line 392):"; text$
  454.  
  455. Microsoft_pc_cp437:
  456. DATA 199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197
  457. DATA 201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402
  458. DATA 225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187
  459. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  460. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  461. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  462. DATA 945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745
  463. DATA 8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160
  464.  
  465. Microsoft_pc_cp737:
  466. DATA 913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928
  467. DATA 929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952
  468. DATA 953,954,955,956,957,958,959,960,961,963,962,964,965,966,967,968
  469. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  470. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  471. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  472. DATA 969,940,941,942,970,943,972,973,971,974,902,904,905,906,908,910
  473. DATA 911,177,8805,8804,938,939,247,8776,176,8729,183,8730,8319,178,9632,160
  474.  
  475. Microsoft_pc_cp775:
  476. DATA 262,252,233,257,228,291,229,263,322,275,342,343,299,377,196,197
  477. DATA 201,230,198,333,246,290,162,346,347,214,220,248,163,216,215,164
  478. DATA 256,298,243,379,380,378,8221,166,169,174,172,189,188,321,171,187
  479. DATA 9617,9618,9619,9474,9508,260,268,280,278,9571,9553,9559,9565,302,352,9488
  480. DATA 9492,9524,9516,9500,9472,9532,370,362,9562,9556,9577,9574,9568,9552,9580,381
  481. DATA 261,269,281,279,303,353,371,363,382,9496,9484,9608,9604,9612,9616,9600
  482. DATA 211,223,332,323,245,213,181,324,310,311,315,316,326,274,325,8217
  483. DATA 173,177,8220,190,182,167,247,8222,176,8729,183,185,179,178,9632,160
  484.  
  485. Microsoft_pc_cp850:
  486. DATA 199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197
  487. DATA 201,230,198,244,246,242,251,249,255,214,220,248,163,216,215,402
  488. DATA 225,237,243,250,241,209,170,186,191,174,172,189,188,161,171,187
  489. DATA 9617,9618,9619,9474,9508,193,194,192,169,9571,9553,9559,9565,162,165,9488
  490. DATA 9492,9524,9516,9500,9472,9532,227,195,9562,9556,9577,9574,9568,9552,9580,164
  491. DATA 240,208,202,203,200,305,205,206,207,9496,9484,9608,9604,166,204,9600
  492. DATA 211,223,212,210,245,213,181,254,222,218,219,217,253,221,175,180
  493. DATA 173,177,8215,190,182,167,247,184,176,168,183,185,179,178,9632,160
  494.  
  495. Microsoft_pc_cp852:
  496. DATA 199,252,233,226,228,367,263,231,322,235,336,337,238,377,196,262
  497. DATA 201,313,314,244,246,317,318,346,347,214,220,356,357,321,215,269
  498. DATA 225,237,243,250,260,261,381,382,280,281,172,378,268,351,171,187
  499. DATA 9617,9618,9619,9474,9508,193,194,282,350,9571,9553,9559,9565,379,380,9488
  500. DATA 9492,9524,9516,9500,9472,9532,258,259,9562,9556,9577,9574,9568,9552,9580,164
  501. DATA 273,272,270,203,271,327,205,206,283,9496,9484,9608,9604,354,366,9600
  502. DATA 211,223,212,323,324,328,352,353,340,218,341,368,253,221,355,180
  503. DATA 173,733,731,711,728,167,247,184,176,168,729,369,344,345,9632,160
  504.  
  505. Microsoft_pc_cp855:
  506. DATA 1106,1026,1107,1027,1105,1025,1108,1028,1109,1029,1110,1030,1111,1031,1112,1032
  507. DATA 1113,1033,1114,1034,1115,1035,1116,1036,1118,1038,1119,1039,1102,1070,1098,1066
  508. DATA 1072,1040,1073,1041,1094,1062,1076,1044,1077,1045,1092,1060,1075,1043,171,187
  509. DATA 9617,9618,9619,9474,9508,1093,1061,1080,1048,9571,9553,9559,9565,1081,1049,9488
  510. DATA 9492,9524,9516,9500,9472,9532,1082,1050,9562,9556,9577,9574,9568,9552,9580,164
  511. DATA 1083,1051,1084,1052,1085,1053,1086,1054,1087,9496,9484,9608,9604,1055,1103,9600
  512. DATA 1071,1088,1056,1089,1057,1090,1058,1091,1059,1078,1046,1074,1042,1100,1068,8470
  513. DATA 173,1099,1067,1079,1047,1096,1064,1101,1069,1097,1065,1095,1063,167,9632,160
  514.  
  515. Microsoft_pc_cp857:
  516. DATA 199,252,233,226,228,224,229,231,234,235,232,239,238,305,196,197
  517. DATA 201,230,198,244,246,242,251,249,304,214,220,248,163,216,350,351
  518. DATA 225,237,243,250,241,209,286,287,191,174,172,189,188,161,171,187
  519. DATA 9617,9618,9619,9474,9508,193,194,192,169,9571,9553,9559,9565,162,165,9488
  520. DATA 9492,9524,9516,9500,9472,9532,227,195,9562,9556,9577,9574,9568,9552,9580,164
  521. DATA 186,170,202,203,200,0,205,206,207,9496,9484,9608,9604,166,204,9600
  522. DATA 211,223,212,210,245,213,181,0,215,218,219,217,236,255,175,180
  523. DATA 173,177,0,190,182,167,247,184,176,168,183,185,179,178,9632,160
  524.  
  525. Microsoft_pc_cp860:
  526. DATA 199,252,233,226,227,224,193,231,234,202,232,205,212,236,195,194
  527. DATA 201,192,200,244,245,242,218,249,204,213,220,162,163,217,8359,211
  528. DATA 225,237,243,250,241,209,170,186,191,210,172,189,188,161,171,187
  529. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  530. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  531. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  532. DATA 945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745
  533. DATA 8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160
  534.  
  535. Microsoft_pc_cp861:
  536. DATA 199,252,233,226,228,224,229,231,234,235,232,208,240,222,196,197
  537. DATA 201,230,198,244,246,254,251,221,253,214,220,248,163,216,8359,402
  538. DATA 225,237,243,250,193,205,211,218,191,8976,172,189,188,161,171,187
  539. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  540. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  541. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  542. DATA 945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745
  543. DATA 8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160
  544.  
  545. Microsoft_pc_cp862:
  546. DATA 1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503
  547. DATA 1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,162,163,165,8359,402
  548. DATA 225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187
  549. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  550. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  551. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  552. DATA 945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745
  553. DATA 8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160
  554.  
  555. Microsoft_pc_cp863:
  556. DATA 199,252,233,226,194,224,182,231,234,235,232,239,238,8215,192,167
  557. DATA 201,200,202,244,203,207,251,249,164,212,220,162,163,217,219,402
  558. DATA 166,180,243,250,168,184,179,175,206,8976,172,189,188,190,171,187
  559. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  560. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  561. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  562. DATA 4023,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745
  563. DATA 8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160
  564.  
  565. Microsoft_pc_cp864:
  566. DATA 176,183,8729,8730,9618,9472,9474,9532,9508,9516,9500,9524,9488,9484,9492,9496
  567. DATA 946,8734,966,177,189,188,8776,171,187,65271,65272,0,0,65275,65276,0
  568. DATA 160,173,65154,163,164,65156,0,0,65166,65167,65173,65177,1548,65181,65185,65189
  569. DATA 1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,65233,1563,65201,65205,65209,1567
  570. DATA 162,65152,65153,65155,65157,65226,65163,65165,65169,65171,65175,65179,65183,65187,65191,65193
  571. DATA 65195,65197,65199,65203,65207,65211,65215,65217,65221,65227,65231,166,172,247,215,65225
  572. DATA 1600,65235,65239,65243,65247,65251,65255,65259,65261,65263,65267,65213,65228,65230,65229,65249
  573. DATA 65149,1617,65253,65257,65260,65264,65266,65232,65237,65269,65270,65245,65241,65265,9632,0
  574.  
  575. Microsoft_pc_cp865:
  576. DATA 199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197
  577. DATA 201,230,198,244,246,242,251,249,255,214,220,248,163,216,8359,402
  578. DATA 225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,164
  579. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  580. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  581. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  582. DATA 945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745
  583. DATA 8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160
  584.  
  585. Microsoft_pc_cp866:
  586. DATA 1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055
  587. DATA 1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071
  588. DATA 1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087
  589. DATA 9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488
  590. DATA 9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575
  591. DATA 9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600
  592. DATA 1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103
  593. DATA 1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160
  594.  
  595. Microsoft_pc_cp869:
  596. DATA 0,0,0,0,0,0,902,0,183,172,166,8216,8217,904,8213,905
  597. DATA 906,938,908,0,0,910,939,169,911,178,179,940,163,941,942,943
  598. DATA 970,912,972,973,913,914,915,916,917,918,919,189,920,921,171,187
  599. DATA 9617,9618,9619,9474,9508,922,923,924,925,9571,9553,9559,9565,926,927,9488
  600. DATA 9492,9524,9516,9500,9472,9532,928,929,9562,9556,9577,9574,9568,9552,9580,931
  601. DATA 932,933,934,935,936,937,945,946,947,9496,9484,9608,9604,948,949,9600
  602. DATA 950,951,952,953,954,955,956,957,958,959,960,961,963,962,964,900
  603. DATA 173,177,965,966,967,167,968,901,176,168,969,971,944,974,9632,160
  604.  
  605. Microsoft_pc_cp874:
  606. DATA 8364,0,0,0,0,8230,0,0,0,0,0,0,0,0,0,0
  607. DATA 0,8216,8217,8220,8221,8226,8211,8212,0,0,0,0,0,0,0,0
  608. DATA 160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599
  609. DATA 3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615
  610. DATA 3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631
  611. DATA 3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,0,0,0,0,3647
  612. DATA 3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663
  613. DATA 3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,0,0,0,0
  614.  
  615. Microsoft_windows_cp1250:
  616. DATA 8364,0,8218,0,8222,8230,8224,8225,0,8240,352,8249,346,356,381,377
  617. DATA 0,8216,8217,8220,8221,8226,8211,8212,0,8482,353,8250,347,357,382,378
  618. DATA 160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379
  619. DATA 176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380
  620. DATA 340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270
  621. DATA 272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223
  622. DATA 341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271
  623. DATA 273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729
  624.  
  625. Microsoft_windows_cp1251:
  626. DATA 1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039
  627. DATA 1106,8216,8217,8220,8221,8226,8211,8212,0,8482,1113,8250,1114,1116,1115,1119
  628. DATA 160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031
  629. DATA 176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111
  630. DATA 1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055
  631. DATA 1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071
  632. DATA 1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087
  633. DATA 1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103
  634.  
  635. Microsoft_windows_cp1252:
  636. DATA 8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0
  637. DATA 0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376
  638. DATA 160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175
  639. DATA 176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191
  640. DATA 192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207
  641. DATA 208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223
  642. DATA 224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239
  643. DATA 240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
  644.  
  645. Microsoft_windows_cp1253:
  646. DATA 8364,0,8218,402,8222,8230,8224,8225,0,8240,0,8249,0,0,0,0
  647. DATA 0,8216,8217,8220,8221,8226,8211,8212,0,8482,0,8250,0,0,0,0
  648. DATA 160,901,902,163,164,165,166,167,168,169,0,171,172,173,174,8213
  649. DATA 176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911
  650. DATA 912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927
  651. DATA 928,929,0,931,932,933,934,935,936,937,938,939,940,941,942,943
  652. DATA 944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959
  653. DATA 960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,0
  654.  
  655. Microsoft_windows_cp1254:
  656. DATA 8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,0,0
  657. DATA 0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,0,376
  658. DATA 160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175
  659. DATA 176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191
  660. DATA 192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207
  661. DATA 286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223
  662. DATA 224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239
  663. DATA 287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255
  664.  
  665. Microsoft_windows_cp1255:
  666. DATA 8364,0,8218,402,8222,8230,8224,8225,710,8240,0,8249,0,0,0,0
  667. DATA 0,8216,8217,8220,8221,8226,8211,8212,732,8482,0,8250,0,0,0,0
  668. DATA 160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175
  669. DATA 176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191
  670. DATA 1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,0,1467,1468,1469,1470,1471
  671. DATA 1472,1473,1474,1475,1520,1521,1522,1523,1524,0,0,0,0,0,0,0
  672. DATA 1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503
  673. DATA 1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,0,0,8206,8207,0
  674.  
  675. Microsoft_windows_cp1256:
  676. DATA 8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672
  677. DATA 1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722
  678. DATA 160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175
  679. DATA 176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567
  680. DATA 1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583
  681. DATA 1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603
  682. DATA 224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239
  683. DATA 1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746
  684.  
  685. Microsoft_windows_cp1257:
  686. DATA 8364,0,8218,0,8222,8230,8224,8225,0,8240,0,8249,0,168,711,184
  687. DATA 0,8216,8217,8220,8221,8226,8211,8212,0,8482,0,8250,0,175,731,0
  688. DATA 160,0,162,163,164,0,166,167,216,169,342,171,172,173,174,198
  689. DATA 176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230
  690. DATA 260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315
  691. DATA 352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223
  692. DATA 261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316
  693. DATA 353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729
  694.  
  695. Microsoft_windows_cp1258:
  696. DATA 8364,0,8218,402,8222,8230,8224,8225,710,8240,0,8249,338,0,0,0
  697. DATA 0,8216,8217,8220,8221,8226,8211,8212,732,8482,0,8250,339,0,0,376
  698. DATA 160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175
  699. DATA 176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191
  700. DATA 192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207
  701. DATA 272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223
  702. DATA 224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239
  703. DATA 273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255
  704.  
  705.  
  706.     IF INSTR(_OS$, "WINDOWS") THEN WIN = 1 ELSE WIN = 0
  707.  
  708.  

Edit: I add output text with info about your national Code Pages
« Last Edit: February 03, 2019, 05:22:27 pm by Petr »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Keyboard troubles
« Reply #2 on: February 03, 2019, 04:04:24 am »
As i see to source, so your code page is 1252. So i recommend you, write all texts in ide i english settings (it is then displayed badly) but after you use font + mapunicode in your program it then will be displayed correctly in program screen.
« Last Edit: February 03, 2019, 05:23:00 pm by Petr »

Offline smogga

  • Newbie
  • Posts: 2
    • View Profile
Re: Keyboard troubles
« Reply #3 on: February 04, 2019, 01:37:01 pm »
Thanks for the response Petr!

Could the code page change be done by editing the config.txt file? I already had to change the path for the custom font in there to get that working. There is a line that says "IDE_CodePage = 19". But doing changes to that line doesn't make any effect. The number is actually different everytime i open the file. I can also change IDE_CustomFont = FALSE to TRUE, but that just does the same as checking the custom font box from the options-display menu. I just mean that it is possible to change stuff through config.txt file, but could it be possible to change the code page in there too without  messing up the ide.

Sorry for my bad english :)

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Keyboard troubles
« Reply #4 on: February 04, 2019, 04:12:30 pm »
Smogga, do not apologize for your English, my English also is not the best. Unfortunately, I can not help with configuration over a text file, I never tried it. I also found that the setup stopped working when I first entered the wrong font (invalid filename), then I could set up what I wanted to keep English still. It did IDE 2019-01-06-05-15-55. Perhaps the developers will advise us if they will read it. I do not know.