Changeset 17048 in josm for trunk/resources/data
- Timestamp:
- 2020-09-22T13:32:30+02:00 (4 years ago)
- Location:
- trunk/resources/data/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/deprecated.mapcss
r17020 r17048 2081 2081 } 2082 2082 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 2083 2113 /* When tags are deprecated they should be added to ignoretags.cfg too. */ -
trunk/resources/data/validator/ignoretags.cfg
r17020 r17048 700 700 E:climbing:grade:UIAA:mean 701 701 E:climbing:grade:UIAA 702 K:cuisine=bbq 703 K:cuisine=BBQ 702 704 ; 703 705 ; 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.