Changeset 17048 in josm for trunk/resources/data


Ignore:
Timestamp:
2020-09-22T13:32:30+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #19835 - Deprecate cuisine=bbq (case insensitive) in favor of cuisine=barbecue

Location:
trunk/resources/data/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/deprecated.mapcss

    r17020 r17048  
    20812081}
    20822082
     2083/* #19835 */
     2084*[cuisine][cuisine =~ /^(?i)(bbq)$/] { /* single value cases with autofix */
     2085  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2086  suggestAlternative: "cuisine=barbecue";
     2087  group: tr("deprecated tagging");
     2088  fixAdd: "cuisine=barbecue";
     2089  set bbq_autofix;
     2090  assertMatch: "way cuisine=bbq";
     2091  assertMatch: "way cuisine=BBQ";
     2092  assertNoMatch: "way cuisine=pizza;Bbq";
     2093  assertNoMatch: "way cuisine=pizza;bbq";
     2094  assertNoMatch: "way cuisine=bbq;pizza";
     2095  assertNoMatch: "way cuisine=pasta;bbq;pizza";
     2096  assertNoMatch: "way cuisine=korean_bbq";
     2097  assertNoMatch: "way cuisine=korean_bbq;bbq";
     2098}
     2099*[cuisine =~ /(?i)(;bbq|bbq;)/][cuisine!~/(?i)(_bbq)/] { /* multi value cases without autofix */
     2100  throwWarning: tr("{0} is deprecated", "cuisine=bbq");
     2101  suggestAlternative: "cuisine=barbecue";
     2102  group: tr("deprecated tagging");
     2103  assertNoMatch: "way cuisine=bbq";
     2104  assertNoMatch: "way cuisine=BBQ";
     2105  assertMatch: "way cuisine=pizza;Bbq";
     2106  assertMatch: "way cuisine=pizza;bbq";
     2107  assertMatch: "way cuisine=bbq;pizza";
     2108  assertMatch: "way cuisine=pasta;bbq;pizza";
     2109  assertNoMatch: "way cuisine=korean_bbq";
     2110  assertNoMatch: "way cuisine=korean_bbq;bbq"; /* corner case (mixed ; and _) not supported by these rules, probably not present in the osm database */
     2111}
     2112
    20832113/* When tags are deprecated they should be added to ignoretags.cfg too. */
  • trunk/resources/data/validator/ignoretags.cfg

    r17020 r17048  
    700700E:climbing:grade:UIAA:mean
    701701E:climbing:grade:UIAA
     702K:cuisine=bbq
     703K:cuisine=BBQ
    702704;
    703705; Tags not yet decided (to remove from this section when added or moved up when deprecated)
Note: See TracChangeset for help on using the changeset viewer.