Script recognition module

Fragment of a discussion from User talk:Rua

Yeah, something like that.

CodeCat01:35, 28 July 2016

I added the parent in all scripts of Module:scripts/data. Feel free to check if I did it right. I'm not sure what to do with cases like Jpan, Hira, Kana, Hani, Hans, where scripts overlap, so when in doubt I used parent = "top", in all cases.

I also created a function :getParent(). I tested it; it's working.

I don't know yet if I would be able to make findBestScript give priority to scripts that have parent = "top",. If you'd like to do it, please be my guest. Otherwise, I think I should try later.

--Daniel Carrero (talk)08:37, 29 July 2016

I think there should just be no parent when there isn't any, rather than "top".

CodeCat15:44, 29 July 2016

Woopsie! Could we add ancestor information too? Sorry I'm such a goofus!

JohnC503:22, 1 August 2016
 

Ok. I removed all instances of parent="top".

--Daniel Carrero (talk)21:52, 9 August 2016