Hunspell support for Central Thai (th-TH)

This commit is contained in:
toastal 2021-12-03 12:29:22 +07:00
parent 41513de1fd
commit 30255e685b

View file

@ -266,7 +266,8 @@ let
, dictFileName , dictFileName
, license , license
, readmeFile ? "README_${dictFileName}.txt" , readmeFile ? "README_${dictFileName}.txt"
, sourceRoot ? dictFileName }: , sourceRoot ? dictFileName
}:
mkDict rec { mkDict rec {
pname = "hunspell-dict-${shortName}-libreoffice"; pname = "hunspell-dict-${shortName}-libreoffice";
version = "6.3.0.4"; version = "6.3.0.4";
@ -289,7 +290,8 @@ let
}; };
}; };
in rec { in
rec {
/* ENGLISH */ /* ENGLISH */
@ -821,4 +823,27 @@ in rec {
readmeFile = "README_he_IL.txt"; readmeFile = "README_he_IL.txt";
license = with lib.licenses; [ agpl3Plus ]; license = with lib.licenses; [ agpl3Plus ];
}; };
/* THAI */
th_TH = th-th;
th-th = mkDict {
pname = "hunspell-dict-th-th";
version = "experimental-2021-12-20";
dictFileName = "th_TH";
readmeFile = "README.md";
src = fetchFromGitHub {
owner = "SyafiqHadzir";
repo = "Hunspell-TH";
rev = "f119e58e5f6954965d6abd683e7d4c4b9be2684f";
sha256 = "sha256-hwqKvuLxbtzxfyQ5YhC/sdb3QQwxCfzgDOHeatxDjxM=";
};
meta = with lib; {
description = "Hunspell dictionary for Central Thai (Thailand)";
homepage = "https://github.com/SyafiqHadzir/Hunspell-TH";
license = with licenses; [ gpl3 ];
maintainers = with maintainers; [ toastal ]; # looking for a native speaker
platforms = platforms.all;
};
};
} }