Open ohbendy opened 3 months ago
It can be done with jQuery and this DataTable library. I've tried it, but we have an issue because the first column (Script) does not have enough data. So it will be considered empty.
Here's when sorted by Script.
Here's when searched.
Thanks for looking at this! I did wonder what would happen with the empty spaces. I'm not sure how to deal with those, it's going to add extra clutter if every script name is repeated for every language, and if we also have to add an 'orthography name' to every language, to be able to sort by orthography, we'll have to invent names for the orthographies that don't really have names. Thoughts?
I think this issue has been solved already. Closing now.
I noticed we've got the same problem of empty cells when filtering. Here we see Tai Sar is listed under Round Script (reformed) but when we filter and the Shan row is not included, that category disappears. Will that be easier to manage with a .js source instead of .md?
This is from the v2 codebase search/filter. Can you confirm this is correct?
Sorry I see I didn't explain properly. Here's the problem:
Tai Sar appears with various orthographies in the full list before searching:
But when searching for it, the orthographies disappear because they're on lines that aren't displayed, but we need those to show:
Ah I see. Technically, in the current data/table, there isn't Long script (traditional) (Lik Hto Ngouk, Lik To Yao)
, etc. in those rows, so it's not showing. I'd suggest repeating the text for those rows.
Currently, we are grouping the rows by script; if we are to also group them by Orthography and it's happening in all other rows, we can consider updating the code.
Right, but also the script isnt repeated in those rows, but it shows when searching. Can't it do the same for orthographies? I don't want to fill up the table with repeated info
Some people will want to sort by country, language, perhaps Unicode status.