Hallo Ben,<br><br>Het leuke aan het feit dat dit script nu in JOSM kan draaien, is dat het mogelijk is om een edit box weer te geven waarin de oude situatie staat en ook wat hij ervan wil maken. Als je op Cancel drukt, wordt er niks gewijzigd en anders is het nog mogelijk om de voorgestelde naam te wijzigen voordat er op OK gedrukt wordt.<br>
<br>Soms zit het script er dus inderdaad naast, maar dan kan er nog ingegrepen worden.<br><br>Jo<br><br><div class="gmail_quote">2011/4/7 Ben Laenen <span dir="ltr"><<a href="mailto:benlaenen@gmail.com">benlaenen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Jo wrote:<br>
> I was glad Jan-Willem showed up. The result is a python plugin which can<br>
> correct spelling from within JOSM. I just corrected 264 street names around<br>
> Aarschot with it:<br>
<br>
</div>Really great news, but I do want to warn about these automatic scripts. You<br>
can make mistakes very easily with them.<br>
<div class="im"><br>
<br>
> > corrections = [('Dr. ', 'Docteur '),('R. ', 'Rue '),('Av. ', 'Avenue '),<br>
> > ('Bd. ', 'Boulevard '),('Sq.', 'Square'), ('Pl.', 'Place'),<br>
<br>
</div>These are obviously meant for French places, but since I don't see some way to<br>
make the distinction: never run this script on a Dutch place. I also wonder<br>
how safe the "R." is in a French place, since it can easily be the<br>
abbreviation of a first name.<br>
<br>
> > (' De ', ' de ')<br>
<br>
This is problematic. "De" can still be (and most of the times is) uppercase in<br>
Dutch. The only place to check this is the official street name list.<br>
<div class="im"><br>
<br>
> > , (' La ', ' la '), (' Du ', ' du '), ('Des', ' des '),<br>
> > (' Au ', ' au '),(' Aux ', ' aux '),('Ŕ', 'ŕ'),<br>
<br>
> > (' Den ',' den '),<br>
<br>
</div>Same here.<br>
<br>
<br>
> > (" D'"," d'"), (" L'"," l'"),<br>
<br>
> > ("' ","'"),<br>
<br>
Bad idea in Dutch.<br>
<div class="im"><br>
> > ("Ecole ","École "), (" Voor ", " voor "),<br>
<br>
> > (" Op ", " op "),<br>
<br>
</div>In Antwerp we have for example "Jos Op De Beecklaan": uppercase.<br>
<br>
> > (" Pour ", " pour ")]<br>
<br>
<br>
You've probably thought about these things yourself already, but I did want to<br>
point it out before someone took the script and uses it. Also, always manually<br>
check the results from this script before uploading.<br>
<br>
Greetings<br>
<font color="#888888">Ben<br>
</font></blockquote></div><br>