Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnjp committed Feb 9, 2024
1 parent 32d7fd4 commit 9a78827
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/texdoclib-score.tlu
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ local function set_score(df, original_kw)
if not is_alias then
local file_lang

-- from its catalog
-- from its catalogue
if df.lang then
-- take first two letters; it may have country codes
file_lang = df.lang:sub(1, 2)
Expand All @@ -232,7 +232,8 @@ local function set_score(df, original_kw)
dbg_score('Locale match bonus: +1.0')
elseif file_lang ~= nil and file_lang ~= 'en' then
-- normally, english documents do not have file_lang,
-- but sometimes the catalog includes en info (e.g., geometry)
-- but sometimes catalogue includes en info (e.g., geometry)
-- we want to treat both cases similar
score = score - 0.1
dbg_score('Locale unmatch: -0.1')
end
Expand Down

0 comments on commit 9a78827

Please sign in to comment.