Oh, Sensei, I am bowing… It seems it really works (except only one
thing /potentially dangerous/ I have figured right now).
In case of capitalized names of organizations (which should remain so),
it behaves strangely (Rubular does not help, there it works).
It apparently takes the whole name as a first founded char and according
to the arranging of the substitution it places that like a single char!
Damn, can’t understand why!
It makes this:
A school-based intervention for diabetes risk reduction.HEALTHY STUDY
GROUP et al. (2010). N. Engl. J. Med., 29, 363 (5), 443–53.
from this:
HEALTHY STUDY GROUP et al. (2010). A school-based intervention for
diabetes risk reduction. N. Engl. J. Med., 29, 363 (5), 443–53.
I wanted to add the last one function, converting initials like J.S. to
J. S., it was the same problem, it took the whole name and returned
nonsenses. Rubular does not see the name, the app itself sees It
seems it somewhat ignores . in the regex and maybe sees that like
simple [A-Z.]…
@subst01 =
“(?<=([A-ZÁÉĚÍÓÚŮÝČĎŇŘŠŤŽ]{1}))([A-ZÁÉĚÍÓÚŮÝČĎŇŘŠŤŽ][^.a-z\s>]{0,}),([\s\r\n])([A-ZÁÉĚÍÓÚŮÝČĎŇŘŠŤŽ.])”
@subst02 =
“([A-ZÁÉĚÍÓÚŮÝČĎŇŘŠŤŽ.])([;,])\s([A-ZÁÉĚÍÓÚŮÝČĎŇŘŠŤŽ])([a-záéěíóúůýčďňřšťž])”
Everything other works perfectly.
However, great work, thank you again!