cleanup
This commit is contained in:
parent
4f52cbe0a0
commit
4f5c7fd7d4
@ -1247,16 +1247,16 @@ local langpacks_package_list = {
|
||||
}
|
||||
|
||||
--Miscellaneous functions
|
||||
local latinlang = { "af", "az", "bs", "ca", "cs", "cy", "da", "de", "en", "es", "et", "fil", "fi", "fo", "fr", "ga", "gd", "gl", "hr", "hu", "id", "is", "it", "kk", "ky", "lb", "lt", "lv", "mk", "mont", "ms", "mt", "nl", "no", "pl", "pt", "ro", "sk", "sl", "sq", "sr", "sv", "sw", "tg", "tk", "tr", "uz" }
|
||||
|
||||
local function is_nonlatin(lang)
|
||||
for i = 1, #latinlang do
|
||||
n, _ = string.find(lang, latinlang[i] .. "[_%a]*")
|
||||
if n == 1 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
return true
|
||||
local latinlang = { "af", "az", "bs", "ca", "cs", "cy", "da", "de", "en", "es", "et", "fil", "fi", "fo", "fr", "ga", "gd", "gl", "hr", "hu", "id", "is", "it", "kk", "ky", "lb", "lt", "lv", "mk", "mont", "ms", "mt", "nl", "no", "pl", "pt", "ro", "sk", "sl", "sq", "sr", "sv", "sw", "tg", "tk", "tr", "uz" }
|
||||
|
||||
for i = 1, #latinlang do
|
||||
n, _ = string.find(lang, latinlang[i] .. "[_%a]*")
|
||||
if n == 1 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
local function is_cjk(lang)
|
||||
@ -1330,7 +1330,7 @@ This package provides %{_langname} core langpacks packages.
|
||||
end
|
||||
|
||||
--
|
||||
--Package template for default-fonts-*
|
||||
--Package template for fonts metapackage like default-fonts-*
|
||||
--
|
||||
local function deffontpkg(pkgname, summary1, summary2, deps)
|
||||
local templ = [[
|
||||
@ -1392,10 +1392,6 @@ end
|
||||
local other_deps = { sans={}, serif={}, mono={} }
|
||||
local cjk_deps = { sans={}, serif={}, mono={} }
|
||||
local face = { "sans", "serif", "mono" }
|
||||
local corefonts = { sans ="default-fonts-core-sans = %{version}-%{release}",
|
||||
serif="default-fonts-core-serif = %{version}-%{release}",
|
||||
mono ="default-fonts-core-mono = %{version}-%{release}"
|
||||
}
|
||||
local sans_deps = {}
|
||||
|
||||
for i = 1, #langpacks_package_list do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user