[[Template:catfix]]
Fragment of a discussion from User talk:Rua
Good point. What Lua could do is put in the default script to wherever the sc=
would have went.
Right now, script detection counts characters in each of the language's scripts, and returns the one with the most characters matched. So there's no "default". However, if all of a language's scripts return 0 matches, then "None" is returned as the script. So perhaps that's where the default could fit in; it would be a fallback. But keep in mind it would only apply if there are no characters from ANY of the language's scripts. Just a single "a" when Latn is included in the list of scripts will make it pick Latn, even if the remaining characters are all gibberish.