@tchrist Yes. All people who ever conveying textual information should be required to develop a comprehensive understanding of LaTeX. slams fist into palm
@tchrist the grad school lady at my school threw a fit when I told her in no uncertain terms that my thesis was going to be written in LaTeX, and I didn’t care whether she liked Word better
@tchrist Well, this might be similar in C & C++. Not sure. Anyway, say I have a string array -- String myArray[] = {"test", "test1"}. How can I append an element to that array? I can't guarantee the index is 2.
@Braiam I tell you again and again and again: the SE programmers cannot tell the difference between UCS-2 and UTF-16. Period. UTF-16 is a variable-length encoding but they constantly get this wrong. Really gets me fuming.
They are being dumb: they are not counting characters (that is, not counting code points). They are counting UTF-16 code units so effective UCS-2, not Unicode code points. So dumb.
@AlexisKing Why do you think a variable-width encoding "could not implement all of Unicode"? Both UTF-8 and UTF-16 are variable-width encodings that can implement all of Unicode. It’s just that the SE programmers are stuck in UCS-2 delusions.
But all three implement all of Unicode just fine. It’s just the stupid Windows, C♯, and Java “programmers” who screw it up all the time because they don’t know the difference between code units and code points: their “brains” are stuck in antemillennial UCS-2. Nobody who works with UTF-8 or UTF-32 ever makes these blunders, only UCS-16, and even then, only when done stupidly. It does not have to be done wrong.
@yellowantphil It is . . . complicated. It’s a regex metacharacter for an extended grapheme cluster. It is hard to described succinctly. Think of it as either a linebreak grapheme or a grapheme base plus any number of a grapheme extenders till a grapheme boundary, or else a nekkid grapheme extender. Which is why it has a metacharacter because people get it wrong otherwise.
> Thus \X is equivalent to .+?\b{g}; proceed the minimal number of characters (but at least one) to get to the next extended grapheme cluster boundary.
I wonder why life uses the particular proteins that it does, about 10^6 different proteins, I think? Evolution cannot explain it because the number of possible proteins is far far too large to ever come into existence anywhere in the visible universe, let alone on Earth. And evolutionary selectio...
Both premiere Unicode regex systems support \X: Perl and the C/C++ version in ICU. Android has it because they eschew the Java regex lib which is shitty at Unicode regexes and JNI straight to the C version.
@AstroCB Then type sudo perl -MCPAN -e "install Unicode::Tussle". It may take a bit, depending. But that will give you all my little CLI toys that I use to make all the interesting things I "type" here.