Multilanguage Support. - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2) +--- Thread: Multilanguage Support. (/showthread.php?tid=1162) |
Multilanguage Support. - gaslouk - 11-21-2022 I would like to ask a question to the community here. How easy is it for QB64 to support the Greek language? That is, what is written in quotation marks. For example, PRINT "Den ypostirizo ellinikoys xaraktires>" PRINT "I do not support Greek characters." PRINT "Δεν υποστηρίζω ελληνικούς χαρακτηρισμούς." SLEEP Copy this little example and you'll see exactly what I mean. I would like one day to be able to make my own programs and insert Greek characters where needed. Thank you very much for your valuable time. Postscript. I hope I wrote it in the right place. RE: Multilanguage Support. - bplus - 11-21-2022 Man what a thing it would be to be able to get different languages translated to ones own native language both in IDE and output! On a similar line translate different programming languages to and from QB64! RE: Multilanguage Support. - SMcNeill - 11-21-2022 The QB64 IDE has one incredibly large limitation to it -- it's written in SCREEN 0. At most, it can only display a variety of 256 characters onto the screen. Usually these are the standard 256 ASCII characters that you see and get with the default code page. The only way to get those extra characters to show and display easily, is to swap some of our standard characters out for the symbols needed. The easiest way to do that is with the _MAPUNICODE command. 437 is the default page, which we're all used to using. 737 is the page for Greek characters, which probably has all the characters you're looking for on it. And, if you've got a keyboard which types those characters for you with just a single keystroke (rather than having to hit alt+number codekeys), then you might want to look into using my KeyHit Library, where you can custom configure it to work with whatever keyboard layout you might have. RE: Multilanguage Support. - mnrvovrfc - 11-21-2022 I adapted the example from here: https://qb64phoenix.com/qb64wiki/index.php/MAPUNICODE Then pasted the "CP737" instead of "CPMIK", and finally, below the example program, the code contributed by the OP. Code: (Select All) Screen 0 It didn't work because different high-bit characters have to be used. Yet all the Greek letters exist, at least in one of the fonts in my system (I'm using Linux/Manjaro MATE): RE: Multilanguage Support. - mnrvovrfc - 11-21-2022 Actually it didn't work because I copied-pasted directly from this forum. The OP could try running his/her program again but only changing the codepage and the font before printing. RE: Multilanguage Support. - bert22306 - 11-24-2022 Parenthetically, not trying to be offensive here but rather pointing out an objective oddity, it is very doable to write Greek and Russian using the Roman alphabet, while not so easy to write Chinese that way. |