Ignore:
Timestamp:
2019-12-25T20:37:52+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18322 - allow uppercase superscript latin characters in *ref tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r15613 r15614  
    439439    }
    440440
     441    private static boolean isAllowedPhoneticCharacter(String key, int c) {
     442        return c == 0x0259                                          // U+0259 is used as a standard character in azerbaidjani
     443            || (key.endsWith("ref") && 0x1D2C <= c && c <= 0x1D42); // allow uppercase superscript latin characters in *ref tags
     444    }
     445
    441446    private static boolean isUnusualPhoneticUse(String key, UnicodeBlock b, int c) {
    442         return c != 0x0259                                              // U+0259 is used as a standard character in azerbaidjani
     447        return !isAllowedPhoneticCharacter(key, c)
    443448            && (b == UnicodeBlock.IPA_EXTENSIONS                        // U+0250..U+02AF
    444449             || b == UnicodeBlock.PHONETIC_EXTENSIONS                   // U+1D00..U+1D7F
Note: See TracChangeset for help on using the changeset viewer.