View Single Post
Old 01-28-2017, 08:15 AM   #3
scratch
Junior Member
scratch began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Location: Austria
Device: none.
Thank you for your quick answer.
I tried this already. What I changed was

(\w+)\s*-\s*(\w+)
to simple this line
(\w+)\s(\w+)

But unfortunately it does not work. Maybe it's due to me beeing complete Python blind.

And there should also be a line which asks if neighbouring words are both not in the library before linking - which I cannot see in the example (or it's there and I do not understand it)
Thanks anyway

...and now I noticed something else.
In this sentence
<p>Solange Menschen auf die Welt kommen</p>
(\w+)\s(\w+)
finds word number 1+2 then 3+4 and then 5+6
so if a mistake would be between #2-#3 it is ignored.
Like this
<p>Solange Men schen auf die Welt kommen</p>
I understand why - but I don't be not able to find out how to avoid this
Again - any further advice is welcom.

Last edited by scratch; 01-28-2017 at 09:30 AM.
scratch is offline   Reply With Quote