about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-30 10:34:38 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-30 10:34:46 +0700
commit6aeeca08457fe735accd78407a1c635070ab93e4 (patch)
tree17ef30006d6532f1d6b7b20f7c768c6d51c3d46a
parent7a2762169c0e637a304ae07809e69f5403d5c415 (diff)
downloadhaasdaiga-6aeeca08457fe735accd78407a1c635070ab93e4.tar.gz
Update dictionary setting
-rw-r--r--src/SUMMARY.md1
-rwxr-xr-xsrc/haasdaiga/compile-dict.sh3
-rwxr-xr-xsrc/haasdaiga/dict2md.sh10
-rw-r--r--src/haasdaiga/lexicon.dict.txt13
-rw-r--r--src/haasdaiga/lexicon.md116
-rw-r--r--src/haasdaiga/lexicon.temp106
-rw-r--r--src/haasdaiga/lexicon.template.md10
7 files changed, 256 insertions, 3 deletions
diff --git a/src/SUMMARY.md b/src/SUMMARY.md
index ed1af1b..5fcbe9b 100644
--- a/src/SUMMARY.md
+++ b/src/SUMMARY.md
@@ -13,3 +13,4 @@
     - [Pronoun](./haasdaiga/pos/pronoun.md)
     - [Verb](./haasdaiga/pos/verb.md)
     - [Postposition](./haasdaiga/pos/pp.md)
+  - [Lexicon](./haasdaiga/lexicon.md)
diff --git a/src/haasdaiga/compile-dict.sh b/src/haasdaiga/compile-dict.sh
index 271a4d5..b6097d0 100755
--- a/src/haasdaiga/compile-dict.sh
+++ b/src/haasdaiga/compile-dict.sh
@@ -1,3 +1,4 @@
-cat lexicon.dict.txt | sed "/^=/d" | dictfmt -j --utf8 --utf8\
+cat lexicon.dict.txt | sed "/^=/d" | sed -e '/./b' -e :n -e 'N;s/\n$//;tn' |\
+	dictfmt -j --utf8 --utf8 \
 	-s "Hàäsdáïga-English dictionary" \
 	-u https://git.disroot.org/huyngo/conlang hdg-eng
diff --git a/src/haasdaiga/dict2md.sh b/src/haasdaiga/dict2md.sh
new file mode 100755
index 0000000..04d5273
--- /dev/null
+++ b/src/haasdaiga/dict2md.sh
@@ -0,0 +1,10 @@
+# Convert lexicon.dict.txt to better markdown
+
+cp lexicon.dict.txt lexicon.temp
+sed "s/=/##/g" lexicon.temp > lexicon.tmp
+mv lexicon.tmp lexicon.temp
+sed "s/#*$//g" lexicon.temp > lexicon.tmp
+mv lexicon.tmp lexicon.temp
+sed "s/:/**/g" lexicon.temp > lexicon.tmp
+mv lexicon.tmp lexicon.temp
+{ cat lexicon.template.md ; cat lexicon.temp; } > lexicon.md;
diff --git a/src/haasdaiga/lexicon.dict.txt b/src/haasdaiga/lexicon.dict.txt
index 1ee9354..2c118a8 100644
--- a/src/haasdaiga/lexicon.dict.txt
+++ b/src/haasdaiga/lexicon.dict.txt
@@ -1,5 +1,3 @@
-H
-
 = C =
 =====
 
@@ -11,6 +9,7 @@ H
 
 :cong:
    1. (pp.) opposite of
+
 = D =
 =====
 
@@ -19,6 +18,7 @@ H
 
 :dún:
    1. (pp.) up
+
 = F =
 =====
 
@@ -32,6 +32,7 @@ H
 :fènvynsỳ:
    1. (pron.) we (inclusive), the nominative case of the dual pronoun
    for the first person
+
 = J =
 =====
 
@@ -40,6 +41,7 @@ H
 
 :jos:
    1. (pp.) inside
+
 = L =
 =====
 
@@ -48,6 +50,7 @@ H
 
 :long:
    1. (pp.) between
+
 = M =
 =====
 
@@ -59,6 +62,7 @@ H
 
 :mỳfgháä:
    1. (pp.) before
+
 = N =
 =====
 
@@ -67,16 +71,19 @@ H
 
 :njongù:
    1. (pp.) during
+
 = P =
 =====
 
 :pam:
    1. (pp.) over
+
 = R =
 =====
 
 :rung:
    1. (pp.) outside
+
 = S =
 =====
 
@@ -85,11 +92,13 @@ H
 
 :sés:
    1. (pp.) until
+
 = T =
 =====
 
 :tèf:
    1. (pp.) behind
+
 = V =
 =====
 
diff --git a/src/haasdaiga/lexicon.md b/src/haasdaiga/lexicon.md
new file mode 100644
index 0000000..3310742
--- /dev/null
+++ b/src/haasdaiga/lexicon.md
@@ -0,0 +1,116 @@
+# Lexicon
+
+Below are the list of words in the lexicon.
+
+Abbreviations:
+
+| abbreviation | meaning     |
+|--------------|-------------|
+| pp.          | postposition|
+| pron.        | pronoun     |
+## C 
+
+
+**chát**
+   1. (pp.) with
+
+**chỳc**
+   1. (pp.) near
+
+**cong**
+   1. (pp.) opposite of
+
+## D 
+
+
+**dàm**
+   1. (pp.) beyond
+
+**dún**
+   1. (pp.) up
+
+## F 
+
+
+**fá**
+   1. (pp.) across, through
+
+**fènsy**
+   1. (pron.) I, the nominative case of the singular pronoun for the
+   first person
+
+**fènvynsỳ**
+   1. (pron.) we (inclusive), the nominative case of the dual pronoun
+   for the first person
+
+## J 
+
+
+**jím**
+   1. (pp.) under, below
+
+**jos**
+   1. (pp.) inside
+
+## L 
+
+
+**lòn**
+   1. (pp.) down
+
+**long**
+   1. (pp.) between
+
+## M 
+
+
+**mèng**
+   1. (pp.) in front of
+
+**músnech**
+   1. (pp.) after
+
+**mỳfgháä**
+   1. (pp.) before
+
+## N 
+
+
+**ngỳch**
+   1. (pp.) above
+
+**njongù**
+   1. (pp.) during
+
+## P 
+
+
+**pam**
+   1. (pp.) over
+
+## R 
+
+
+**rung**
+   1. (pp.) outside
+
+## S 
+
+
+**sànj**
+   1. (pp.) without
+
+**sés**
+   1. (pp.) until
+
+## T 
+
+
+**tèf**
+   1. (pp.) behind
+
+## V 
+
+
+**váp**
+   1. (pp.) to
diff --git a/src/haasdaiga/lexicon.temp b/src/haasdaiga/lexicon.temp
new file mode 100644
index 0000000..16439b8
--- /dev/null
+++ b/src/haasdaiga/lexicon.temp
@@ -0,0 +1,106 @@
+## C 
+
+
+**chát**
+   1. (pp.) with
+
+**chỳc**
+   1. (pp.) near
+
+**cong**
+   1. (pp.) opposite of
+
+## D 
+
+
+**dàm**
+   1. (pp.) beyond
+
+**dún**
+   1. (pp.) up
+
+## F 
+
+
+**fá**
+   1. (pp.) across, through
+
+**fènsy**
+   1. (pron.) I, the nominative case of the singular pronoun for the
+   first person
+
+**fènvynsỳ**
+   1. (pron.) we (inclusive), the nominative case of the dual pronoun
+   for the first person
+
+## J 
+
+
+**jím**
+   1. (pp.) under, below
+
+**jos**
+   1. (pp.) inside
+
+## L 
+
+
+**lòn**
+   1. (pp.) down
+
+**long**
+   1. (pp.) between
+
+## M 
+
+
+**mèng**
+   1. (pp.) in front of
+
+**músnech**
+   1. (pp.) after
+
+**mỳfgháä**
+   1. (pp.) before
+
+## N 
+
+
+**ngỳch**
+   1. (pp.) above
+
+**njongù**
+   1. (pp.) during
+
+## P 
+
+
+**pam**
+   1. (pp.) over
+
+## R 
+
+
+**rung**
+   1. (pp.) outside
+
+## S 
+
+
+**sànj**
+   1. (pp.) without
+
+**sés**
+   1. (pp.) until
+
+## T 
+
+
+**tèf**
+   1. (pp.) behind
+
+## V 
+
+
+**váp**
+   1. (pp.) to
diff --git a/src/haasdaiga/lexicon.template.md b/src/haasdaiga/lexicon.template.md
new file mode 100644
index 0000000..e5440a9
--- /dev/null
+++ b/src/haasdaiga/lexicon.template.md
@@ -0,0 +1,10 @@
+# Lexicon
+
+Below are the list of words in the lexicon.
+
+Abbreviations:
+
+| abbreviation | meaning     |
+|--------------|-------------|
+| pp.          | postposition|
+| pron.        | pronoun     |