From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- runtime/spell/th/main.aap | 66 +++++++++++++ runtime/spell/th/th.diff | 247 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 313 insertions(+) create mode 100644 runtime/spell/th/main.aap create mode 100644 runtime/spell/th/th.diff (limited to 'runtime/spell/th') diff --git a/runtime/spell/th/main.aap b/runtime/spell/th/main.aap new file mode 100644 index 0000000..e2ec660 --- /dev/null +++ b/runtime/spell/th/main.aap @@ -0,0 +1,66 @@ +# Aap recipe for Thai Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = th.aff th.dic + +all: $SPELLDIR/th.utf-8.spl ../README_th.txt + +$SPELLDIR/th.utf-8.spl : $FILES + :sys $VIM -u NONE -e -c "set enc=utf-8" + -c "mkspell! $SPELLDIR/th th" -c q + +../README_th.txt: README_th.txt + :copy $source $target + +# +# Fetching the files from http://sesrc.th.net +# +HTTPDIR = http://seasrc.th.net/dict +ZIPNAME = th_18057.zip +FNAME = TH_18057.TXT + +:attr {fetch = $HTTPDIR/%file%} $ZIPNAME + +# The files don't depend on the .zip file so that we can delete it. +# Only download the zip file if the targets don't exist. +# This is a bit tricky, since the file name includes the date. +# +# We get a plain list of Thai words and make the .dic file from that. The .aff +# file is made from scratch. +th.aff th.dic: {buildcheck=} + :assertpkg unzip iconv + :fetch $ZIPNAME + :sys unzip $ZIPNAME + :sys {force} iconv -c -f TIS-620 -t UTF-8 <$FNAME >th.dic + :delete $ZIPNAME $FNAME + + :delete {force} th.aff + :touch {force} th.aff + @if not os.path.exists('th.orig.aff'): + :touch {force} th.orig.aff + @if not os.path.exists('th.orig.dic'): + :copy th.dic th.orig.dic + @if os.path.exists('th.diff'): + :sys patch th.diff + :sys {force} diff -a -C 1 th.orig.dic th.dic >>th.diff + + +# Check for updated spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :print Sorry, not supported. diff --git a/runtime/spell/th/th.diff b/runtime/spell/th/th.diff new file mode 100644 index 0000000..3b750ec --- /dev/null +++ b/runtime/spell/th/th.diff @@ -0,0 +1,247 @@ +*** th.orig.aff Tue Aug 23 22:53:30 2005 +--- th.aff Tue Aug 23 22:53:46 2005 +*************** +*** 0 **** +--- 1,3 ---- ++ SET UTF-8 ++ ++ NOBREAK +*** th.orig.dic Tue Aug 23 22:54:10 2005 +--- th.dic Thu Aug 25 15:00:09 2005 +*************** +*** 1 **** +--- 1,2 ---- ++ 99999 + ก +*************** +*** 458,460 **** + กระต๊อบ +! กระต่อม { กฺระต่อม } + กระต้อยตีวิด +--- 459,462 ---- + กระต๊อบ +! กระต่อม +! กฺระต่อม + กระต้อยตีวิด +*************** +*** 507,509 **** + กระทรวง +! กระทวย { กฺระทวย } + กระทอก +--- 509,512 ---- + กระทรวง +! กระทวย +! กฺระทวย + กระทอก +*************** +*** 575,577 **** + กระบาย +! กระบาล { กฺระบาน } + กระบิ +--- 578,581 ---- + กระบาย +! กระบาล +! กฺระบาน + กระบิ +*************** +*** 625,627 **** + กระเปาะ +! กระเปี้ย { กฺระเปี้ย } + กระแป้ +--- 629,632 ---- + กระเปาะ +! กระเปี้ย +! กฺระเปี้ย + กระแป้ +*************** +*** 653,655 **** + กระพา +! กระพาก { กฺระพาก } + กระพี้ +--- 658,661 ---- + กระพา +! กระพาก +! กฺระพาก + กระพี้ +*************** +*** 784,786 **** + กระแสง +! กระแสะ { กฺระแสะ } + กระโสง +--- 790,793 ---- + กระแสง +! กระแสะ +! กฺระแสะ + กระโสง +*************** +*** 824,826 **** + กระหัด +! กระหาง { กฺระหาง } + กระหาย +--- 831,834 ---- + กระหัด +! กระหาง +! กฺระหาง + กระหาย +*************** +*** 16104,16262 **** + ห้อม +- หอม0 +- +- +- Q +- ` +- q +- w +- +- +- +- +- ช +- +- +- ั +- +- ใ +- +- ๔ +- +-  +- +- & +- +- < +- +- X +- f +- +- { +- +- +- +- ฏ +- +- +- ฯ +- ๅ +- +- +- +- +-  +- +- +- 8 +- +- +- W +- +- k +- +- +- +- +- +- +- +- +- +- ะ +- +- +- ๓ +- +- +- +- +- +- 9 +- A +- +- +- +- +- +- +- +- +- +- ธ +- +- +- +- +- +- +-  +- # +- +- +- +- +- +- l +- +- +- +- +- +- +- +- ฟ +- +- +- ๎ +- +- +- +- +- +- +- +- +- +- +- +- +- +- ธ +- +- +- +- ้ +- ๚ +- +- +- " +- +- +- +- +- +- j +- +- +- +- +- +- +- +- +- +- +-  +- " +- 0 +- +- J +- +- +- t +- +- +- +- +- + เหมันต์ +--- 16112,16113 ---- -- cgit v1.2.3