detect_script

Fragment of a discussion from User talk:Rua
Jump to navigation Jump to search

I did a search in Module:languages, here is a list of all of the scripts that are used alongside other script(s) and doesn't have "characters" field in Module:scripts yet (we should only be worried about these ones for now): Batk, Egyp, Mero, Bali, Ethi, Bugi, Dupl, CGK, Cans, Cyrs, Glag, Egyp, Egyd, Runr, Hmng, Jpan, Java, Knda, Mlym, Mend, Phlv, Phlp, Teng, Brah, Gran, Khar, Knda, Orya, Shrd, Telu, Tibt, Saur, Zzzz?, Mani, Sund, Tglg, Hani, Ogam

Z17:25, 18 August 2013

I added character ranges for some more scripts. What should we do with "None" and "Zyyy"? We can do two things. Either they match on "." so that a language that uses one of them never triggers fallback, or they match on some nonexistant character only, so that there never is a match and fallback is always triggered.

CodeCat18:37, 18 August 2013

I think it should always trigger the fallback. Why do you think we should do this through adding a nonexistent character to Module:scripts? Why not doing that simply with an "if" in detect_script?

Z18:50, 18 August 2013