|
5 | 5 |
|
6 | 6 | >>> from pygmt.encodings import charset |
7 | 7 | >>> |
8 | | ->>> mappings = charset["symbol"] |
| 8 | +>>> mappings = charset["Symbol"] |
9 | 9 | >>> |
10 | 10 | >>> undefined = "\ufffd" |
11 | 11 | >>> markdown = "| octal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\n" |
|
35 | 35 | # same issue. |
36 | 36 | # 3. Character \140 does not appear in Unicode. |
37 | 37 | # 4. \ufffd means the character is undefined. |
38 | | -charset["symbol"] = dict( |
| 38 | +charset["Symbol"] = dict( |
39 | 39 | zip( |
40 | 40 | [*range(0o040, 0o200), *range(0o240, 0o400)], |
41 | 41 | "\u0020\u0021\u2200\u0023\u2203\u0025\u0026\u220b" |
|
71 | 71 | # References: |
72 | 72 | # 1. https://en.wikipedia.org/wiki/Zapf_Dingbats |
73 | 73 | # 2. https://unicode.org/Public/MAPPINGS/VENDORS/ADOBE/zdingbat.txt |
74 | | -charset["zdingbat"] = dict( |
| 74 | +charset["ZapfDingbats"] = dict( |
75 | 75 | zip( |
76 | 76 | [*range(0o040, 0o220), *range(0o240, 0o400)], |
77 | 77 | "\u0020\u2701\u2702\u2703\u2704\u260e\u2706\u2707" |
|
108 | 108 | # |
109 | 109 | # References: |
110 | 110 | # 1. https://en.wikipedia.org/wiki/ISO/IEC_8859-1 |
| 111 | +# 2. https://en.wikipedia.org/wiki/PostScript_Latin_1_Encoding |
111 | 112 | # 2. https://docs.generic-mapping-tools.org/dev/reference/octal-codes.html |
112 | 113 | # 3. https://www.adobe.com/jp/print/postscript/pdfs/PLRM.pdf |
113 | 114 | # 4. https://github.com/adobe-type-tools/agl-aglfn/blob/master/aglfn.txt |
114 | 115 | charset["ISOLatin1+"] = { |
115 | 116 | i: chr(i) for i in [*range(0o040, 0o177), *range(0o241, 0o400)] |
116 | 117 | } |
| 118 | +# \047 and \140 are apostrophe (') and backtick (`) in ISO-8859-1, but are right/left |
| 119 | +# single quotation marks (’ and ‘) in ISOLatin1+ Encoding. # noqa: RUF003 |
| 120 | +charset["ISOLatin1+"].update( |
| 121 | + { |
| 122 | + 0o140: "\u2018", # LEFT SINGLE QUOTATION MARK ‘ # noqa: RUF003 |
| 123 | + 0o047: "\u2019", # RIGHT SINGLE QUOTATION MARK ’ # noqa: RUF003 |
| 124 | + } |
| 125 | +) |
117 | 126 | charset["ISOLatin1+"].update( |
118 | 127 | dict( |
119 | 128 | zip( |
|
0 commit comments