Earlier quoted context omitted.
Those should be added to the document, with a note that they are NOT quotes!
I doubt this will ever be updated, since it's reference for a very specific, 20 year old, code interpretation related proposal und not meant for type setting. But for anything related to contemporary typesetting on the web I recommend Practical Typography and especially the Type Composition chapter: http://practicaltypography.com/type-composition.html#links Including notes on quotes and apostrophes: http://practicalt…
ASCII and Unicode quotation marks
111–120 of 195 posts
Re: ASCII and Unicode quotation marks
#112Earlier quoted context omitted.
I've been trying to push TSV (tab separated values) as a standard response/implementation when they ask for CSV. "Yes but its comma separated!", sure is, but text can contain commas... I have seen issues with Google Spreadsheets not recognizing the tabs however... Excel doesnt know what to do with a TSV either. But both have a complete wizard for parsing CSV...
> but text can contain commas Erm.. text can contain tabs, too. This problem was solved so, so long ago when all the various ANSI/ASCII/whatever encodings were compiled by specifically reserving not one but two characters precisely to serve as field and record delimiters. 0x30 and 0x31 solved not only the problem of having commas or tabs in your text preventing you from treating them as field delimiters, but also all…
I have spent some time working with MARC 21 binary encoding (used for library cataloging records) which uses ASCII 0x1D, 0x1E, and 0X1F as delimiters. I would def not call it appreciably more _convenient_ than a more modern 'text' record format. If it has benefits, convenience isn't really one of them.
Re: ASCII and Unicode quotation marks
#113Re: ASCII and Unicode quotation marks
#114Earlier quoted context omitted.
You don’t need escaping in «This is a string containing an «embedded» quoted string».
Debatable whether that would actually work in practice. /* nested /* comments */ don't work */
(* nested (* comments *) work *)Re: ASCII and Unicode quotation marks
#115CSB: Years ago I was working on a team that developed a scripting language and we had this recurring problem where someone would write up a code sample in a Word document and it would break if you cut and pasted it because all of the single and double quotes would be Unicode. My boss was this tough guy who tried to snap the whole team to a standard of strictly disabling that behavior in all of our Office applications…
Or ... use a text editor?
Re: ASCII and Unicode quotation marks
#116Earlier quoted context omitted.
Yes. I consider it a mistake of Unicode that combining characters follow rather than precede the base character. If they preceded, most dead keys could simply generate the appropriate combining character, rather than requiring complicated input method support. (And finding the end of a sequence of multiple combining character wouldn't require lookahead.)
The Unicode way makes sorting easier. Your way would require special knowledge about the characters to know that ä should sort directly after a, rather than directly before ë.
But I do suspect it had something to do with ascii compatibility, I don't recall what. Very little of unicode is accidental, there's usually some reason for whatever in it.
Re: ASCII and Unicode quotation marks
#117Earlier quoted context omitted.
It doesn't need to. You can put the mdash directly in comments: — As opposed to regular dash: -
Well, since my keyboard doesn't have an mdash key, if there's no support for something like — or --- then I can't use mdashes.
Re: ASCII and Unicode quotation marks
#118The usage of of an accent as syntax in markup and programming languages annoys me to no end. And it will still be used, to this day, the latest example are template string in Javascript. • It is semantically idiotic because it's an accent, not a character. • It is visually annoying because you almost can't see the thing. • It is bad for usability, because on non-US keyboards the accents are implemented as dead keys.…
Same, I’ve never cared for it. For these reasons I’ve decided to take a stand and avoid using the grave accent for anything in a programming language I’m working on. Same goes for the dollar sign, because it’s somewhat Americentric, and as a currency character it doesn’t have any great semantic or mnemonic value except for, well, currency units. I guess you could argue for $trings (BASIC) or $calars (Perl) if you hav…
By that metric, wouldn't & be too Anglo-centric, and # be too Euro-centric? There are layouts out there on which neither is readily available.
Re: ASCII and Unicode quotation marks
#119The fact that ASCII does not have balanced quotes is one of the great catastrophes of computing. It makes everything more complicated than it needs to be, from embedding code in strings to parsing CSV files, to regexps. For example, if I want to embed a quoted string in another quoted string, I have to escape the inner quotes like so: "This is string containing an embedded \"quoted\" string" Then I have to think abou…
The complexity might be minimized, but not avoided. You would still need an escape mechanism for something like «She said «The \» key on the server doesn't work.»» ASCII did add , [], and {}, any of which could have been used for quoted strings, had the programming language designers chosen that option. https://en.wikipedia.org/wiki/String_literal#Paired_delimite... points out that PostScript and Tcl have a string li…
I think this is actually desirable, since in your case the escape denotes different semantics. The unescaped pairs act like quotation operators while the escaped version is a character literal.
Re: ASCII and Unicode quotation marks
#120Earlier quoted context omitted.
I think it would make the parsing a tiny bit more inconvenient though
Yup, suddenly your parser needs to keep a count of how many nested strings deep it is.
To use formal language theory, strings containing escape characters are regular, i.e. parseable with a finite-state machine. Allowing nesting means you need a stack to find the matching pair.