Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r15788 r15888 466 466 467 467 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 469 471 || (key.endsWith("ref") && 0x1D2C <= c && c <= 0x1D42); // allow uppercase superscript latin characters in *ref tags 470 472 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java
r15683 r15888 343 343 344 344 /** 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 /** 345 353 * Detects objects with types not supported by their presets. 346 354 * @throws IOException in case of I/O error
Note:
See TracChangeset
for help on using the changeset viewer.