|
@@ -163,15 +163,15 @@ func isIdent(name string) bool {
|
163
|
163
|
// from the original (unfolded) identifier and stored/tracked separately from the
|
164
|
164
|
// casefolded identifier.
|
165
|
165
|
func Skeleton(name string) (string, error) {
|
166
|
|
- if !isBoring(name) {
|
167
|
|
- name = confusables.Skeleton(name)
|
168
|
|
- }
|
169
|
|
-
|
170
|
166
|
// XXX the confusables table includes some, but not all, fullwidth->standard
|
171
|
167
|
// mappings for latin characters. do a pass of explicit width folding,
|
172
|
168
|
// same as PRECIS:
|
173
|
169
|
name = width.Fold.String(name)
|
174
|
170
|
|
|
171
|
+ if !isBoring(name) {
|
|
172
|
+ name = confusables.Skeleton(name)
|
|
173
|
+ }
|
|
174
|
+
|
175
|
175
|
// internationalized lowercasing for skeletons; this is much more lenient than
|
176
|
176
|
// Casefold. In particular, skeletons are expected to mix scripts (which may
|
177
|
177
|
// violate the bidi rule). We also don't care if they contain runes
|