News for hackers. Stuff that matters.
Re:X by bufferoverflow on Thursday May 21, 2020 @08:00AM (#23257355)
I never understood why Unicode has bold versions of characters, that's the function of the font, not the character set.
Re:X by mkl on Thursday May 21, 2020 @08:05AM (#23257383)
Most of them are because they have different meanings in maths, so this makes it easier to represent maths using Unicodemath [1] or MathML.

[1] https://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.1...., https://docs.microsoft.com/en-gb/archive/blogs/murrays/unico...

Edit: [2] Similar for Latex https://www.ctan.org/pkg/unicode-math?lang=en

Re:X by dbmueller on Thursday May 21, 2020 @08:10AM (#23257428)
I'm pretty sure the first two links refer to something very different than the third:

The first two are about a way to encode maths using unicode, as in conventions and special characters allowing e.g. to write fractions, aligned equations, etc. So, this would essentially furnish an alternative to the "math" subset of latex (think mathjax or katex) or mathml.

The third is a package for latex, and allows to use unicode symbols (greek letters, math symbols, etc.) in your math environments + something related to the use of unicode in the output (requiring compatible fonts); it seems the second part is the main one but I'm not sure what that means exactly.

Re:X by mkl on Thursday May 21, 2020 @08:12AM (#23257453)
The Latex package says "Maths input can also be simplified with Unicode since literal glyphs may be entered instead of control sequences in your document source." So it at least includes a similar idea.
Re:X by dbmueller on Thursday May 21, 2020 @08:15AM (#23257469)
Superficially similar, yes, but my point was just that it may seem from your bunching up the links together that all refer to the same thing, while they don't.
Re:X by mkl on Thursday May 21, 2020 @08:20AM (#23257521)
Fair enough, I've edited it. I just tried using the Latex package with a formula typed using Unicode symbols, and it does work, but doesn't follow all the UnicodeMath rules.
Re:X by bmn__ on Thursday May 21, 2020 @08:16AM (#23257484)
> why Unicode has

Because the distinction did already exist in the originating repertoire.

https://news.ycombinator.com/item?id=23029871

Re:X by diegoperini on Thursday May 21, 2020 @09:02AM (#23257826)
Symbolically same but semantically different characters are most of the time represented differently in the byte level so that searching in large text can still be implemented as simple byte comparison, if Unicode can be called simple.
Re:X by lonelappde on Thursday May 21, 2020 @09:47AM (#23258276)
"simply byte comparison" is not a term associated with Unicode. Unicode is usually in strings, and reverse engineering a string is -- very hard, and surprisingly I haven't found a paper proving whether it is NP complete.
Re:X by ken on Thursday May 21, 2020 @11:02AM (#23259183)
That's the opposite of the rule for CJK characters, right? For those, symbolically-same characters get the same codepoint regardless of semantics (language) or shape (glyph).
Re:X by lloydde on Thursday May 21, 2020 @08:08AM (#23257404)
I have always assumed this related to achieving a differentiated character set for Math and science formulas.