detect_script
Fragment of a discussion from User talk:Rua
The solution is simply adding the remaining scriptinfo.characters, most of them are already added, the remaining ones are mostly not-so-highly-used scripts and mostly those which are not used beside another script or other scripts, so the problem you said would rarely happen.
Z