Changeset 15888 in josm


Ignore:
Timestamp:
2020-02-21T19:56:12+01:00 (4 months ago)
Author:
simon04
Message:

fix #18740 - Tag checker: whitelist a few phonetic characters

Location:
trunk
Files:
2 edited

Legend:

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

    r15788 r15888  
    466466
    467467    private static boolean isAllowedPhoneticCharacter(String key, int c) {
    468         return c == 0x0259                                          // U+0259 is used as a standard character in azerbaidjani
     468        return c == 0x0259 || c == 0x018F // U+0259 is paired with the capital letter U+018F in Azeri, see #18740
     469            || c == 0x0254 || c == 0x0186 // U+0254 is paired with the capital letter U+0186 in several African languages, see #18740
     470            || c == 0x025B || c == 0x0190 // U+025B is paired with the capital letter U+0190 in several African languages, see #18740
    469471            || (key.endsWith("ref") && 0x1D2C <= c && c <= 0x1D42); // allow uppercase superscript latin characters in *ref tags
    470472    }
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java

    r15683 r15888  
    343343
    344344    /**
     345     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/18740">Bug #18740</a>.
     346     */
     347    @Test
     348    public void testTicket18740() {
     349        assertFalse(TagChecker.containsUnusualUnicodeCharacter("name:ak", "Frɛnkyeman"));
     350    }
     351
     352    /**
    345353     * Detects objects with types not supported by their presets.
    346354     * @throws IOException in case of I/O error
Note: See TracChangeset for help on using the changeset viewer.