Module:headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
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].sc
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]+$")

Navigation menu