Python-Script zum Aufspüren häufiger Tippfehler

Felix Schweighofer felix.schweighofer at googlemail.com
Wed Dec 22 20:22:16 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

ich habe aufgrund meiner doch recht häufigen Tippfehler ein kleines
Python-Script geschrieben, das diese aufspüren soll.

Momentan findet es folgende potentielle Fehler:
- - Englische Anführungszeichen in der Übersetzung
- - Fehlende Anführungszeichen (einfach und doppelt)
- - Fehlende Klammern (rund und eckig)
- - Den Fehler "z.B." (ohne Leerzeichen)

Das Skript ist leicht erweiterbar, wenn man sich mit regulären
Ausdrücken einigermaßen auskennt.

Vielleicht kann es auch von Euch jemand brauchen, daher anbei die
Dateien. Ich wäre dankbar für Feedback und weitere reguläre Ausdrücke
zur Fehlersuche ;-)

Grüße,
Felix

PS: Ich übernehme selbstverständlich keine Garantie ;-)
"i18n_check.py" in einen beliebigen Ordner kopieren, "checks.py" und
"__init__.py" in einen Unterordner "i18n"
Programmaufruf über /Pfad/zu/checks.py [Datei.po]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0ST98ACgkQYnmexcjIJ0XhUACeMYiEcE8sux6ZNbKhu8iEe9N6
yZcAnA7J6DVGCso203WWKcpD71RR2AtT
=0y6w
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i18n_check.py
Type: text/x-python
Size: 2450 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-i18n-de/attachments/20101222/5f57d403/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checks.py
Type: text/x-python
Size: 1667 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-i18n-de/attachments/20101222/5f57d403/attachment-0001.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: __init__.py
Type: text/x-python
Size: 0 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-i18n-de/attachments/20101222/5f57d403/attachment-0002.py 


More information about the kde-i18n-de mailing list