By doing this on an USB photo frameAntti wrote:I wonder how it is possible to even have a "painfully slow" console.
Localization / UTF support (Setting up a linear frame buffer)
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Setting up a linear frame buffer without a BIOS
Re: Setting up a linear frame buffer without a BIOS
I have UTF-8 support in the GUI library. I just don't think the console is a specialized "GUI app".glauxosdev wrote:So it is time to support them. Implementing UTF-8 is not hard, I did it in a single day.
I can in the GUI.glauxosdev wrote: You will never see the beauty of Greek characters in your "console".
-
- Member
- Posts: 119
- Joined: Tue Jan 20, 2015 9:01 am
- Libera.chat IRC: glauxosdever
Re: Setting up a linear frame buffer without a BIOS
Hi,
Also, save this quote as a file and show it in the "console" at start-up. Maybe you will learn someday...
Regards,
glauxosdev
No, it isn't. But I have to tell you for nth time that a "console" has to have UTF-8 support (or any other Unicode encoding for that matter). Really, just stop.I have UTF-8 support in the GUI library. I just don't think the console is a specialized "GUI app".
It means "All I know is that I know nothing". Adopt this quote to your own life and stop thinking you are the superior one here.Sokrates wrote:Ἓν οἶδα, ὅτι οὐδὲν οἶδα.
Also, save this quote as a file and show it in the "console" at start-up. Maybe you will learn someday...
Regards,
glauxosdev
Re: Setting up a linear frame buffer without a BIOS
You should stop. Keep your opinion about what someone else's console should do and should not do to yourself.glauxosdev wrote:No, it isn't. But I have to tell you for nth time that a "console" has to have UTF-8 support (or any other Unicode encoding for that matter). Really, just stop.
If a trainstation is where trains stop, what is a workstation ?
-
- Member
- Posts: 5588
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Setting up a linear frame buffer without a BIOS
So your GUI can be fully localized, except file names, which must be written in Latin characters even if the local language is something like Arabic, which has no standard representation in Latin characters.rdos wrote:OTOH, I don't support UTF-8 filenames anyway, so the whole issue is non-relevant.
You want the error messages to be in the user's language. You should not be parsing error messages programmatically; that's what return values are for.rdos wrote:You want the commands to be the same in different languages, and you also want the OUTPUT from the commands to be (because otherwise you cannot parse results programatically).
I'm not so sure about that.rdos wrote:Today you can easily expect people that use the console to be knowledgeable in English.
And I'm sure your GUI that forces all file names to be written in Latin characters will be very popular.rdos wrote:Typical users no longer use the command shell, they expect something better than that.
-
- Member
- Posts: 119
- Joined: Tue Jan 20, 2015 9:01 am
- Libera.chat IRC: glauxosdever
Re: Setting up a linear frame buffer without a BIOS
Hi,
I agree it leads nowhere...
Regards,
glauxosdev
I agree it leads nowhere...
Regards,
glauxosdev
Re: Localization / UTF support (Setting up a linear frame bu
Split off this topic for the localization discussion.
My view is that we shouldn't localize anything, but do allow the user-generated content to be user-localized. Your app uses standard names for things and it's the same for everyone (so you can google them and so on), but the stuff you make can use unicode names and so on.
My view is that we shouldn't localize anything, but do allow the user-generated content to be user-localized. Your app uses standard names for things and it's the same for everyone (so you can google them and so on), but the stuff you make can use unicode names and so on.
Re: Localization / UTF support (Setting up a linear frame bu
Hi,
Therefore; when implementing a console the primary goal should be to minimise wasting developer time on something that ideally shouldn't exist. That would imply recycling the same "text output" code that GUI apps use to avoid wasting developer time on things like supporting text mode and having special "ASCII only" text processing (in addition to the "Unicode text processing" that you have for GUI text boxes, etc); especially when you consider "console running in a window" where it's all going through the GUI anyway. Most (all?) GUIs support full screen applications, and "full screen console" really doesn't deserve to be a special case.
Basically; console should support Unicode, not because it's important to support Unicode, but because OS developers have better thing to do than waste time implementing unnecessary "ASCII only" support.
Cheers,
Brendan
My view is that GUI has dominated since the 1990s; studies have shown that things like icons and WYSIWYG and "discoverable" user interfaces are far easier for users; the ability to script GUI apps has been around for at least 20 years now (Applescript, 1993); and I expect we've all recognised a trend towards mobile devices that don't have a keyboard (and use touch instead, where entering text is clumsy and GUI is far more suited). With these things in mind; a truly modern OS (e.g. where backward compatibility with ancient/obsolete things like CP/M and Unix aren't important) simply shouldn't have a console in the first place.Candy wrote:My view is that we shouldn't localize anything, but do allow the user-generated content to be user-localized. Your app uses standard names for things and it's the same for everyone (so you can google them and so on), but the stuff you make can use unicode names and so on.
Therefore; when implementing a console the primary goal should be to minimise wasting developer time on something that ideally shouldn't exist. That would imply recycling the same "text output" code that GUI apps use to avoid wasting developer time on things like supporting text mode and having special "ASCII only" text processing (in addition to the "Unicode text processing" that you have for GUI text boxes, etc); especially when you consider "console running in a window" where it's all going through the GUI anyway. Most (all?) GUIs support full screen applications, and "full screen console" really doesn't deserve to be a special case.
Basically; console should support Unicode, not because it's important to support Unicode, but because OS developers have better thing to do than waste time implementing unnecessary "ASCII only" support.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: Localization / UTF support (Setting up a linear frame bu
It might be a valid design decision but you could still handle UTF-8 strings but not render the non-ASCII characters. A band name Motörhead could be encoded as a byte sequence (in hex): 4D 6F 74 C3 B6 72 68 65 61 64.rdos wrote:If you send UTF-8 filenames to a real textmode console, it will print some funny characters, that's all.
You could print this in three ways:
- Motörhead. Correct way.
- Mot?rhead. UTF-8 supported but not rendered. Acceptable.
- Motörhead. UTF-8 not supported at all and the string length is "undefined". Worst.
Re: Localization / UTF support (Setting up a linear frame bu
Yes.Brendan wrote:console should support Unicode, not because it's important to support Unicode, but because OS developers have better thing to do than waste time implementing unnecessary "ASCII only" support.
I've named my new OS attempt Rødvin so as to force myself to get it right everywhere. If you cannot do unicode somewhere you can't even print the OS name.
Incidentally, it has a console as part of its graphics mode stuff - because I didn't want to waste time implementing ascii-only text mode.
Having everything the same encoding and converting at the door means all internal logic is much simpler.
Re: Localization / UTF support (Setting up a linear frame bu
Sure, but I didn't waste any time when I did this maybe 20 to 25 years ago, when the available video-modes were really crappy and I didn't even have a GUI because of it. If I did it today, I might have wasted time, but not back then.Brendan wrote: Basically; console should support Unicode, not because it's important to support Unicode, but because OS developers have better thing to do than waste time implementing unnecessary "ASCII only" support.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Localization / UTF support (Setting up a linear frame bu
The biggest problem comes when you have files existing on a medium, and you can't do anything with them because you can't enter its filename in any way.
Re: Localization / UTF support (Setting up a linear frame bu
Perhaps it's not an elegant solution but my Non-Unicode OS can read files with unicode chars from Fat32 on pendrives simply by skipping the unicode chars that are greater than 127 during comparisons. When I print the filenames I print an 'x' instead of (non-ascii) unicode chars. This way I can cd directories-with-unicode-names too.Combuster wrote:The biggest problem comes when you have files existing on a medium, and you can't do anything with them because you can't enter its filename in any way.
Similarly when I need to enter a filename in my OS that has unicode chars on the USB-Fat32 filesystem, I print an 'x' at the position of the unicode char (but it will be skipped, so it could be any char). For example: Kxbenhavn (where x is that crossed 'o').
The OS is simple this way.
Last edited by bigbob on Fri May 29, 2015 4:55 am, edited 1 time in total.
Re: Localization / UTF support (Setting up a linear frame bu
Is there any resolution for possible ambiguity? E.g. what if you have files named filé and filè, how do you distinguish fil from fil or filx from filx?bigbob wrote:my Non-Unicode OS can read files with unicode chars from Fat32 on pendrives simply by skipping the unicode chars that are greater than 127 during comparisons. When I print the filenames I print an 'x' instead of (non-ascii) unicode chars. This way I can cd directories-with-unicode-names too.
Re: Localization / UTF support (Setting up a linear frame bu
Well, that's a problem. The first file will be found in your case.alexfru wrote:Is there any resolution for possible ambiguity? E.g. what if you have files named filé and filè, how do you distinguish fil from fil or filx from filx?bigbob wrote:my Non-Unicode OS can read files with unicode chars from Fat32 on pendrives simply by skipping the unicode chars that are greater than 127 during comparisons. When I print the filenames I print an 'x' instead of (non-ascii) unicode chars. This way I can cd directories-with-unicode-names too.
Have no filenames like those ones
I think it's worth it because of the simplicity of the OS.
EDIT: the length of the filename matters too, so only filX and filY are ambigous, where X and Y are unicode chars.
Last edited by bigbob on Fri May 29, 2015 7:23 am, edited 1 time in total.