47,726
edits
![]() | We're back! Sorry, bad combo of sickness, funeral and a month-long trip abroad. The site is back now. ![]() |
No edit summary |
No edit summary |
||
Line 798: | Line 798: | ||
-- the pagename, and that headwords that are in different scripts from the pagename aren't first. This seems to be | -- the pagename, and that headwords that are in different scripts from the pagename aren't first. This seems to be | ||
-- about the best we can do (alternatively we could potentially do script detection on the pagename). | -- about the best we can do (alternatively we could potentially do script detection on the pagename). | ||
local dt_script = data.heads[1]. | local dt_script = data.lang:findBestScript(data.heads[1].term) | ||
local dt_script_code = dt_script:getCode() | local dt_script_code = dt_script:getCode() | ||
local page_non_ascii = page.namespace == "" and not page.pagename:find("^[%z\1-\127]+$") | local page_non_ascii = page.namespace == "" and not page.pagename:find("^[%z\1-\127]+$") |