name=* & highway=* & (name ~ '.* .*') & (mkgmap:country=NLD | mkgmap:country=BEL) {set name2='${name|subst:Burgemeester\b~>Burg|subst:^Admiraal\b~>Adm|subst:"^(Doctor|Dokter)\b~>Dr"|subst:^Doctorandus\b~>Drs|subst:^Dominee\b~>Ds|subst:Ingenieur\b~>Ir|subst:^Prins(es)?\b~>Pr|subst:^Koning(in)?\b~>Kon|subst:^Sint\b~>St|subst:President\b~>Pres|subst:Monseigneur\b~>Mgr|subst:Minister\b~>Min|subst:Mevrouw\b~>Mevr|subst:Kardinaal\b~>Kard|subst:Jonkheer\b~>Jhr|subst:Kolonel\b~>Kol|subst:Meester\b~>Mr|subst:Professor\b~>Prof|subst:Luitenant\b~>Lt|subst:Generaal\b~>Gen|subst:Graaf\b~>Gr|subst:^Baron\b~>Bn|subst:Bisschop\b~>Bis|subst:Broeder\b~>Br|subst:Adjutant\b~>Adj|subst:Architect\b~>Arch|subst:Jonkvrouw\b~>Jkvr|subst:Directeur\b~>Dir}'}
addr:street=* & (addr:street  ~ '.* .*') & (mkgmap:country=NLD | mkgmap:country=BEL)  {set addr:street2='${addr:street|subst:Burgemeester\b~>Burg|subst:^Admiraal\b~>Adm|subst:"^(Doctor|Dokter)\b~>Dr"|subst:^Doctorandus\b~>Drs|subst:^Dominee\b~>Ds|subst:Ingenieur\b~>Ir|subst:^Prins(es)?\b~>Pr|subst:^Koning(in)?\b~>Kon|subst:^Sint\b~>St|subst:President\b~>Pres|subst:Monseigneur\b~>Mgr|subst:Minister\b~>Min|subst:Mevrouw\b~>Mevr|subst:Kardinaal\b~>Kard|subst:Jonkheer\b~>Jhr|subst:Kolonel\b~>Kol|subst:Meester\b~>Mr|subst:Professor\b~>Prof|subst:Luitenant\b~>Lt|subst:Generaal\b~>Gen|subst:Graaf\b~>Gr|subst:^Baron\b~>Bn|subst:Bisschop\b~>Bis|subst:Broeder\b~>Br|subst:Adjutant\b~>Adj|subst:Architect\b~>Arch|subst:Jonkvrouw\b~>Jkvr|subst:Directeur\b~>Dir}'}
mkgmap:street=* & (mkgmap:street ~ '.* .*') & (mkgmap:country=NLD | mkgmap:country=BEL)  {set mkgmap:street2='${mkgmap:street|subst:Burgemeester\b~>Burg|subst:^Admiraal\b~>Adm|subst:"^(Doctor|Dokter)\b~>Dr"|subst:^Doctorandus\b~>Drs|subst:^Dominee\b~>Ds|subst:Ingenieur\b~>Ir|subst:^Prins(es)?\b~>Pr|subst:^Koning(in)?\b~>Kon|subst:^Sint\b~>St|subst:President\b~>Pres|subst:Monseigneur\b~>Mgr|subst:Minister\b~>Min|subst:Mevrouw\b~>Mevr|subst:Kardinaal\b~>Kard|subst:Jonkheer\b~>Jhr|subst:Kolonel\b~>Kol|subst:Meester\b~>Mr|subst:Professor\b~>Prof|subst:Luitenant\b~>Lt|subst:Generaal\b~>Gen|subst:Graaf\b~>Gr|subst:^Baron\b~>Bn|subst:Bisschop\b~>Bis|subst:Broeder\b~>Br|subst:Adjutant\b~>Adj|subst:Architect\b~>Arch|subst:Jonkvrouw\b~>Jkvr|subst:Directeur\b~>Dir}'}

name2=* & name2!=$name {echo "Name ${name} changed to ${name2}"; set name='${name2}'; delete name2;}
addr:street2=* & addr:street2!=$addr:street {echo "Addr:street ${addr:street} changed to ${addr:street2}"; set addr:street='${addr:street2}'; delete addr:street2;}
mkgmap:street2=* & mkgmap:street2!=$mkgmap:street {echo "Mkgmap:street ${mkgmap:street} changed to ${mkgmap:street2}"; set mkgmap:street='${mkgmap:street2}'; delete mkgmap:street2;}
