From 42d09f95ddaae87e8ec66f8a96f034786b1df693 Mon Sep 17 00:00:00 2001 From: catus felis Date: Tue, 3 Jan 2023 21:24:13 +0700 Subject: [PATCH] Use pandoc to create test docs --- TODO.md | 1 + bin/install_linux_packages.sh | 2 +- tests/make_test.sh | 1 + tests/tests-inflection.docx | Bin 0 -> 11016 bytes tests/tests-inflection.html | 43 ---------------------------------- tests/tests-inflection.md | 2 ++ 6 files changed, 5 insertions(+), 44 deletions(-) create mode 100755 tests/make_test.sh create mode 100644 tests/tests-inflection.docx delete mode 100644 tests/tests-inflection.html diff --git a/TODO.md b/TODO.md index 5506919..4bc1524 100644 --- a/TODO.md +++ b/TODO.md @@ -5,6 +5,7 @@ - [ ] Update to an up-to-date Ubuntu distro when Wine is updated (error on Ubuntu v20 and 22) - [ ] Copy back star_hanviet.tab and star_vietnhat.tab to dict files in ext-stardict-vi - [ ] Handle error code from script and exit (subprocess.call/run) so error stop remaining steps +- [ ] Make use of CMake - [X] Check if dictionaries have inflections - [X] Add inflections files for different languages https://stackoverflow.com/questions/51097463/snowball-stemmer-poor-french-stemming - [x] Add inflections for comparatives diff --git a/bin/install_linux_packages.sh b/bin/install_linux_packages.sh index 8b183c2..c43ccca 100755 --- a/bin/install_linux_packages.sh +++ b/bin/install_linux_packages.sh @@ -1,7 +1,7 @@ #!/bin/bash sudo apt-get update && -sudo apt-get install dictzip systemd markdown && +sudo apt-get install dictzip systemd pandoc && sudo apt install ruby-full && ruby -v && #sudo gem install bundler && diff --git a/tests/make_test.sh b/tests/make_test.sh new file mode 100755 index 0000000..1c47c83 --- /dev/null +++ b/tests/make_test.sh @@ -0,0 +1 @@ +pandoc -s -o ./tests/tests-inflection.docx ./tests/tests-inflection.md \ No newline at end of file diff --git a/tests/tests-inflection.docx b/tests/tests-inflection.docx new file mode 100644 index 0000000000000000000000000000000000000000..89776c672943af3468163c1749677f472168af8f GIT binary patch literal 11016 zcmZ{KWmH_-vUTI`*0>YgHNoB8-5nZt3mPD}ySo$I-8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Vg9F|b~iIt`PZ|f7yS;oj~P|;A+yg( z!Il~|;tEaf8(Cowm~1^ovMp%05j}cZSV)NH`wwvyPNwq#_&EAd=`&{rs9-P&{9@^K z(CHaP##=gwL*pO`6dD%NUiI9-73nD&h7e`;iA|)v7D20h7!<<#5j0I!c>{YK}%l!|{H%6biaeOT!?u<>Pu|KHK2*YMY)>fi92mv`FV@c(0Q z{W{X?neFdLT=0KH`okpqdxHBq)a#+@?@(L+3H8T_^)>$Wc<(np1@WJy{2unb2ER7; zeuI}^cIw}Z{BZ}b@vrTy-*^h_fAIe{w_d|vdqBV8j5z<6%>Ot-ui>vj1BH^6vm6F9H5n)%-fd>-Ok(2u#xd^8c@9={5d!P5zDF tAo~aZ?+X1I{`$@I8xExU2mb0kr6>dS;tc#{GNA$xUrv1Nzx)pX_Test file for inflections - -

English

- -

think thinks - thought - thinking -thought think - thoughts - thinks - thinking -love loves - loved - loving

- -

French

- -

aimer aimâmes - aimes - aimerions - aimions - aimasses - aimai - aimasse - aimait - aimeras - aimassions - aimerons - aime - aimant - aimerai - aimeraient - aimerait - aimerez - aimassiez - aimaient - aimassent - aimerais - aimais - aimât - aimèrent - aimera - aimeriez - aimeront - aimas - aimons - aimé - aiment - aimiez - aimez - aimâtes - aima

- -

German

- -

lieben geliebt - liebe - liebte - liebest - liebtest - lieb - liebet - liebtet - liebend - liebst - liebt - liebten

- -

Norwegian

- -

synge syngast - syngande - sunge - song - syng

- -

Czech

- -

milovat milují - miluješ - milovavši - miluji - milujte - milovalo - miluj - milovaly - milovali - milováno - milován - milována - milujíc - milujíce - milujme - milujete - milující - milováni - milujeme - milovavše - milovav - milovány - milování - miluje - miloval - milovala

- -

Italian

- -

amare amate - amerò - amo - amavano - amavo - amerà - amerebbe - amerei - amammo - amiate - amato - amino - amerete - amassi - amereste - amava - amasti - amavi - amassero - ameremo - amante - amavate - amaste - amassimo - ameranno - amando - amiamo - ameremmo - amai - ameresti - amò - amarono - amavamo - amerai - amerebbero - ami - amano - ama - amasse

- -

Portugese

- -

amar amaríamos - amavam - ame - amais - amáramos - amarmos - amavas - amamos - ama - amares - amávamos - amareis - amando - amarei - amarias - amados - ameis - amemos - amou - amaras - amariam - amámos - amassem - amei - amarás - amado - amava - amaremos - ames - amará - amarem - amardes - amásseis - amássemos - amo - amaríeis - amarão - amaram - amasses - amáveis - amam - amai - amara - amaste - amasse - amada - amastes - amáreis - amas - amaria - amadas - amem

- -

Russian

- -

любовный любовному - любовным - любовное - любовной - любовная - любовных - любовными - любовного - любовную - любовном - любовные

- -

Spanish

- -

amar amémosles - amándoos - amareis - amemos - amaban - amabais - amáremos - amamos - ámenlos - amándonos - amásemos - aman - amasteis - amémoslas - amás - amaréis - amaríamos - amadnos - ámalas - amará - amáramos - ama - amó - amándola - ámeles - amadles - amadlo - ámese - ámenlo - amaríais - amo - ámalos - ámenlas - amen - amaré - amaos - ámense - amarais - amada - amaba - amares - amarse - amaros - ámales - amas - amarás - amándolas - ámame - ámanos - amadle - amémoos - amándolo - amarme - ámela - amándolos - amarías - amándole - ame - ámala - ámelos - amarte - amaste - amarla - amases - ámenme - amábamos - amarles - amarlos - amaría - ámelas - amémonos - ámate - amadlas - amándoles - amé - amad - amasen - ámalo - ámelo - ámenos - amarían - améis - ames - amémoslo - amáis - amase - ámeme - ámele - amá - ámenle - amarle - amando - amaremos - ámennos - amado - amaseis - amadas - amémosle - amadla - amaron - amarlas - amare - amándome - ámenles - amarlo - amadme - amarnos - ámenla - amémoste - amándote - amés - amándose - amabas - ámale - amaras - amaren - amadlos - amaran - amara - amémoslos - amémosla - amarán - amados

- -

Hán Việt

- -

不 bất - phầu - phủ - phi | 金 kim | 今 kim

diff --git a/tests/tests-inflection.md b/tests/tests-inflection.md index 26aade9..43a8d04 100644 --- a/tests/tests-inflection.md +++ b/tests/tests-inflection.md @@ -2,7 +2,9 @@ ## English think thinks - thought - thinking + thought think - thoughts - thinks - thinking + love loves - loved - loving ## French