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 518: | Line 518: | ||
-- sorted based on the default MediaWiki sortkey, so we check against | -- sorted based on the default MediaWiki sortkey, so we check against | ||
-- that. | -- that. | ||
local redundant, different | local redundant, different | ||
for k in pairs(tbl) do | for k in pairs(tbl) do | ||
Line 531: | Line 525: | ||
different = true | different = true | ||
end | end | ||
end | end | ||
return sortkey | return sortkey | ||
Line 732: | Line 720: | ||
local auto_sc = data.lang:findBestScript(head.term) | local auto_sc = data.lang:findBestScript(head.term) | ||
if not (head.sc or data.sc) then -- No script code given, so use autodetected script. | if not (head.sc or data.sc) then -- No script code given, so use autodetected script. | ||
head.sc = auto_sc | head.sc = auto_sc | ||
Line 743: | Line 726: | ||
if not head.sc then -- Overall script code given. | if not head.sc then -- Overall script code given. | ||
head.sc = data.sc | head.sc = data.sc | ||
end | end | ||
end | end | ||
Line 784: | Line 761: | ||
if automated_tr or head.tr_fail then | if automated_tr or head.tr_fail then | ||
local manual_tr = head.tr | local manual_tr = head.tr | ||
if not manual_tr then | if not manual_tr then | ||
Line 875: | Line 844: | ||
------------ 8. Insert additional categories. ------------ | ------------ 8. Insert additional categories. ------------ | ||
-- If the first head is multiword (after removing links), maybe insert into "LANG multiword terms". | -- If the first head is multiword (after removing links), maybe insert into "LANG multiword terms". | ||
Line 1,050: | Line 1,013: | ||
char = upper | char = upper | ||
end | end | ||
end | end | ||
end | end | ||
Line 1,057: | Line 1,019: | ||
-- If a diacritic doesn't appear in any of the standard characters, also categorise for it generally. | -- If a diacritic doesn't appear in any of the standard characters, also categorise for it generally. | ||
sc_standard = toNFD(sc_standard) | sc_standard = toNFD(sc_standard) | ||
end | end | ||
end | end | ||
Line 1,076: | Line 1,028: | ||
character = upper | character = upper | ||
end | end | ||
end | end | ||
end | end | ||
Line 1,085: | Line 1,036: | ||
while rmatch(pagename, "(%a)" .. ("%1"):rep(i)) do | while rmatch(pagename, "(%a)" .. ("%1"):rep(i)) do | ||
i = i + 1 | i = i + 1 | ||
end | end | ||
end | end |