r/Unicode • u/Sweaty_Hemorrhoids_2 • 8d ago
Alternatives to Unicode?
For a whole lot of things unicode works perfectly fine, has basically all of the scripts that are actively being used, minus a couple really niche ones, but those can get added at some point. If people need custom symbols for things they can use the giant private use area things with a custom font, it works.
On the off chance you're in some situation where you need to write some amount of "text" in such a way that Unicode can't help with, is there even an alternative? Unicode WAS made to be the unifying standard of text for computers, so there's no reason to have alternatives... but there has to be some random crackhead who TRIED, right? What would that even be called?
8
u/Emotional-Ebb8321 8d ago
As a real-world use-case, gaiji (kanji that aren't formally encoded in unicode or other schemes) are done as small inline svg images, and these images are then placed as if they were part of the text string.
6
u/red_hare 8d ago
Unicode is two things:
The question I have is which problem are you trying to solve? As you said, there's a solution for (1) by extending the list. But there are probably loads of valid needs for (2), specific encodings that work on a subset of the list.
For (2) there's a rich history of other standards that cover subsets of the list. ASCII, Latin-1, ShiftJIS, etc.
There are also some unique entries that don't map to the list exactly. The original Pokemon games had their own encoding that did things like have "PK" and "MN" symbols so "PKMN" could be expressed in two bytes. Or have dedicated control characters that inserted the the characters name.
As for modern examples of encodings. Take a look at LLMs. The first step of tokenization with BPE effectively does an intelligent (more compressed across all text) form of what UTF-8 does.
4
u/frozenpandaman 8d ago
SHIFT_JIS /s
7
u/nemothorx 8d ago
Closest I can think of is https://en.wikipedia.org/wiki/UTF-EBCDIC
Realistically, unicode succeeded. It unified text and everything modern with even a scrap of deployment uses it, or a subset of it (at an extreme, that subset might be "the original ascii bits")
3
u/amake 8d ago edited 8d ago
ITT: People confusing encoding with character sets
Are you trying to encode text in an encoding other than a Unicode encoding (UTF-{8,16,32})? There are tons of alternative encodings for other character sets; pretty much by definition none of them will have the breadth of characters that Unicode has.
Are you trying to work with characters outside of the Unicode character set? If so, those characters may be eligible for inclusion in Unicode. Otherwise you can map them to PUA code points; you’ll be responsible for supplying an appropriate font everywhere you want to use them.
Edit: Re-reading the post, it’s clear that you know about PUA but it’s not at all clear what you are trying to achieve. What does it mean for Unicode to not be able to “help” with something?
2
u/OutOfTheBunker 8d ago
Private Use Areas (PUAs)?
2
u/zoharel 7d ago
Multicode. If it existed, it would be called multicode.
2
u/Robot_Graffiti 7d ago
Unicode is designed to never need an alternative.
If a piece of text can be described as a stream of numbers, you can do it with the Unicode private use areas and a custom font.
If it can't be described as a stream of numbers, it can't be stored in a text file.
The only exception I can think of is that Unicode will need to be modified slightly if we ever have 3 times the number of characters that have ever been used in any alphabet in history so far. Like for example if we meet aliens and the Galactic Federation uses a bunch of Chinese-like writing systems.
3
u/elperroborrachotoo 8d ago
CJK and, of course, code pages. And, of double course, ASCII.
Generally, the amount of sensible alternatives is determined by the amount of reasonable restrictions. Unicode is intended to be universal, that drives complexity. If we can reduce the problem at hand to a less complex task, we get competing standards and simpler solutions.
1
u/nacaclanga 8d ago edited 8d ago
There are a few projects which do, usually because of certain Unicode policies that prove somehow problematic in certain areas. Usually they try to stick to Unicode for the most part through
There are certainly also areas where unicode could be improved, but afaik this isn't worth defining an Unicode revision of some kind.
1
u/WillC5 8d ago
(Leeloo Dallas) Multicode?
1
u/bothunter 7d ago
Unicode is a massive global project to come up with a encoding standard for all of the world's languages, including past, present, and future. The alternative to it is to use the previous mess of various and incompatible code pages and encoding standards.
Are you trying to solve a particular problem, or is this just to satisfy your curiosity?
1
u/didntplaymysummercar 7d ago
TRON code of the TRON project?
1
u/LeonNeller2022 6d ago
Make your own unicode
1
u/Difficult-Value-3145 5d ago
ASCII American standard code for information interchange 7 bit character codes for the English language .and still works on pretty much everything the first 128 Unicode characters match th ASCII 128 as it predated Unicode idk that what ya mean
-2
u/BasilWeekly 8d ago
Punycode