mattt/FormatterKit — pull request #142 by michaelsand (2014-10-27 21:31:52+00:00)
Title: Fixed Chinese lists and misc punctuation

Fixed Chinese lists using special Chinese list-delimitation comma. The issue in the first pair of commits "not sure how to handle this" was in fact figured out in the next pair, setting List Separator to empty string.

Beyond these that I'm most sure of, probably all of the punctuation should be replaced with special Chinese fixed-width punctuation, but the only other case in the strings list seems to be "Coordinate format" for which I'm not 100% sure (and which Wikipedia is inconsistent) so I didn't change it. Also, most of these spaces are unnecessary but I want to take a closer look at how they are used before messing with them.

There is somewhat more about lists, in Chinese, as Wikipedia notes (correctly, in my experience, except for unnecessary spaces in the first example): ' the English "A, B, and C" is more likely to be rendered in Chinese as "A、 B 及 C" or more often as "A、B、C", without any word for "and", '. So one solution might be, when in Chinese, in TTTArrayFormatter to force/default set TTTArrayFormaterStyle to TTTArrayFormatterDataStyle, or force/default usesSerialDelimiter to NO. Lists often end with the character 等 or 等等 (defined as 'etc.' but in usage often just meaning 'end of the list') but it's not required. This all also applies to two-item lists.

Not sure if there's a more elegant way than a manual flag checking local for language code, but let me know and I can put something on my fork. Thx for maintaining this.