Extended character set

(Request New Features Here)

Extended character set

Unread postby bugmagnet » Sun Apr 28, 2013 5:25 pm

While considering the Arithmetic/Rational task on RosettaCode I attempted to use the Operater opcode as follows:
Code: Select all
OPERATOR ÷ (rational)

Naturally enough, FBSL baulked at the unusual character.

But would it be that hard to allow high-end ascii characters to be used as opcodes in a CLASS environment?

Then we could do stuff like '×', '÷', '≤', '≥', '≠' etc

Kind regards,
Bruce/bugmagnet
User avatar
bugmagnet
FBSL geek
FBSL geek
 
Posts: 174
Joined: Sat Apr 06, 2013 5:58 am
Location: Fremantle WA, Australia

Re: Extended character set

Unread postby Gerome » Sun Apr 28, 2013 5:59 pm

Hello,

Stupid question: can you do this in C++ ?
Yours,

(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
:: Full SETUP w. HELP 05th of December 2011 ::
http://www.fbsl.net/setup/FBSLv3.exe [full v3.4.10 installation pack]
http://www.fbsl.net/setup/FBSLv3bin.zip [minimal upgrade to v3.4.10]
Laissons les jolies femmes aux hommes sans imagination. / Let us leave pretty women to men without imagination.(M.Proust)
The success is a defeat for the one who does not want to dance any more! (H.F. Thiefaine)
User avatar
Gerome
FBSL Administrator
FBSL Administrator
 
Posts: 3149
Joined: Sat Mar 12, 2005 9:06 pm
Location: Paris -- France

Re: Extended character set

Unread postby Mike Lobanovsky » Sun Apr 28, 2013 6:56 pm

This is theoretically possible but quite irrational in the ASCIIZ-only environment of FBSL. Nearly every font uses different glyphs for codes higher than the ANSI set, which accounts for the existing diversity of code pages. Your glyphs cannot be reproduced in the fonts that my localized Windows platforms are using; some of the codes are already occupied by my alternative Cyrillic alphabet, others use different glyphs, and still others are totally empty. At the same time, the ANSI charset is guaranteed to be displayed uniformly throughout them all. I think, even your own Australian Notepad will display that code sequence as illegible '?', '?', '?', '?', '?'.

FBSL's engine does not support wide characters natively and never will, in its current hypostasis.
Mike
"Я старый солдат, мадам, и не знаю слов любви."
"I am an old soldier, ma'am, and I don't know the words of love."
"Je suis un vieux soldat, madame, et je ne connais pas les mots d'amour."
"Ich bin ein alter Soldat, gnädige Frau, und ich weiß nicht die Worte der Liebe."

__________________________________________________________________________________________________________________________________________________
(3.2GHz i5 Core Quad, 8GB RAM / 2 x nVidia GTX 550Ti SLI-bridged, 2GB VRAM)
(x86 Win XP Pro Russian Sp3/x86 Win Vista Ultimate Sp2/x64 Win 7 Ultimate Sp1/Wine in x64 elementaryOS Luna)
User avatar
Mike Lobanovsky
FBSL Administrator
FBSL Administrator
 
Posts: 1823
Joined: Tue Apr 19, 2005 8:22 am
Location: Republic of Belarus


Return to FBSL v3 Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron