From a5077f89a2ce208671333fa52af3d74015318005 Mon Sep 17 00:00:00 2001 From: Wolfang Torres Date: Wed, 6 May 2026 13:24:22 +0800 Subject: [PATCH] add hsk1 --- anki-hsk-creator/__main__.py | 4 +++- data/HSK1-1.tsv | 24 ++++++++++++++++++++++++ data/HSK1-1.txt | 13 +++++++++++++ data/HSK1-2.tsv | 13 +++++++++++++ data/HSK1-2.txt | 6 ++++++ data/HSK1-3.tsv | 24 ++++++++++++++++++++++++ data/HSK1-3.txt | 12 ++++++++++++ data/HSK1-4.tsv | 28 ++++++++++++++++++++++++++++ data/HSK1-4.txt | 12 ++++++++++++ 9 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 data/HSK1-1.tsv create mode 100644 data/HSK1-1.txt create mode 100644 data/HSK1-2.tsv create mode 100644 data/HSK1-2.txt create mode 100644 data/HSK1-3.tsv create mode 100644 data/HSK1-3.txt create mode 100644 data/HSK1-4.tsv create mode 100644 data/HSK1-4.txt diff --git a/anki-hsk-creator/__main__.py b/anki-hsk-creator/__main__.py index 3af3c26..c4cb46d 100644 --- a/anki-hsk-creator/__main__.py +++ b/anki-hsk-creator/__main__.py @@ -60,7 +60,9 @@ def main(): v = v[0] results.append(v) else: - + print("============================================") + print(f"===================>ERROR: {word} not found") + print("============================================") with out_file.open("w", encoding="utf8", newline="") as csvfile: writer = csv.writer(csvfile, delimiter="\t", quotechar='"') for entry in results: diff --git a/data/HSK1-1.tsv b/data/HSK1-1.tsv new file mode 100644 index 0000000..ee30fda --- /dev/null +++ b/data/HSK1-1.tsv @@ -0,0 +1,24 @@ +1. you (informal, as opposed to courteous 您[nin2]) nǐ 你 你 +"1. good + 2. appropriate; proper + 3. all right! + 4. (before a verb) easy to + 5. (before a verb) good to + 6. (before an adjective for exclamatory effect) so + 7. (verb complement indicating completion) + 8. (of two people) close; on intimate terms + 9. (after a personal pronoun) hello" hǎo 好 好 +1. hello; hi nǐ hǎo 你好 你好 +1. you (courteous, as opposed to informal 你[ni3]) nín 您 您 +1. hello (polite) nín hǎo 您好 您好 +1. you (plural) nǐ men 你们 你們 +"1. I'm sorry; excuse me; I beg your pardon + 2. to let (sb) down; to disappoint" duì bu qǐ 对不起 對不起 +1. it doesn't matter méi guān xi 没关系 沒關係 +"1. to go to class + 2. to attend class + 3. to go to teach a class" shàng kè 上课 上課 +"1. to finish class + 2. to get out of class + 3. (fig.) (esp. of a sports coach) to be dismissed + 4. to be fired" xià kè 下课 下課 diff --git a/data/HSK1-1.txt b/data/HSK1-1.txt new file mode 100644 index 0000000..301bde3 --- /dev/null +++ b/data/HSK1-1.txt @@ -0,0 +1,13 @@ +你 +好 +你好 +您 +您好 +你们 +您们 +对不起 +没关系 +上课 +下课 +想再休息 +跟我读 \ No newline at end of file diff --git a/data/HSK1-2.tsv b/data/HSK1-2.tsv new file mode 100644 index 0000000..61685e1 --- /dev/null +++ b/data/HSK1-2.tsv @@ -0,0 +1,13 @@ +"1. to thank + 2. thanks + 3. thank you" xiè xie 谢谢 謝謝 +"1. no; not so + 2. (bound form) not; un-" bù 不 不 +"1. you're welcome + 2. don't mention it + 3. impolite + 4. rude + 5. blunt" bù kè qi 不客气 不客氣 +"1. goodbye + 2. see you again later" zài jiàn 再见 再見 +1. don't mention it; not at all bù xiè 不谢 不謝 diff --git a/data/HSK1-2.txt b/data/HSK1-2.txt new file mode 100644 index 0000000..7eded93 --- /dev/null +++ b/data/HSK1-2.txt @@ -0,0 +1,6 @@ +谢谢 +不 +不客气 +再见 +不谢 +谢谢你 diff --git a/data/HSK1-3.tsv b/data/HSK1-3.tsv new file mode 100644 index 0000000..f683cfb --- /dev/null +++ b/data/HSK1-3.tsv @@ -0,0 +1,24 @@ +"1. to shout + 2. to call + 3. to order + 4. to ask + 5. to be called + 6. by (indicates agent in the passive mood)" jiào 叫 叫 +"1. what? + 2. something; anything" shén me 什么 什麼 +"1. name (of a person or thing) + 2. CL:個|个[ge4]" míng zi 名字 名字 +1. I; me; my wǒ 我 我 +"1. to be (followed by substantives only) + 2. correct; right; true + 3. (respectful acknowledgement of a command) very well + 4. (adverb for emphatic assertion)" shì 是 是 +"1. teacher + 2. CL:個|个[ge4],位[wei4]" lǎo shī 老师 老師 +1. (question particle for 'yes-no' questions) ma 吗 嗎 +"1. student + 2. schoolchild" xué sheng 学生 學生 +"1. person; people + 2. CL:個|个[ge4],位[wei4]" rén 人 人 +1. China Zhōng guó 中国 中國 +1. United States; USA; US Měi guó 美国 美國 diff --git a/data/HSK1-3.txt b/data/HSK1-3.txt new file mode 100644 index 0000000..399d348 --- /dev/null +++ b/data/HSK1-3.txt @@ -0,0 +1,12 @@ +叫 +什么 +名字 +我 +是 +老师 +吗 +学生 +人 +李明 +中国 +美国 diff --git a/data/HSK1-4.tsv b/data/HSK1-4.tsv new file mode 100644 index 0000000..952e12a --- /dev/null +++ b/data/HSK1-4.tsv @@ -0,0 +1,28 @@ +1. she tā 她 她 +"1. (third-person singular) (since the early 20th century, usu. male) he; him; his + 2. (bound form) other; another; some other (as in 他日[ta1 ri4] and 他人[ta1 ren2])" tā 他 他 +"1. who + 2. also pr. [shui2]" shéi 谁 誰 +"1. of; ~'s (possessive particle) + 2. (used after an attribute when it modifies a noun) + 3. (used at the end of a declarative sentence for emphasis) + 4. (used after a noun, verb or adjective to form a nominal expression, as in 皮革的[pi2 ge2 de5] 'one made of leather' or 跑堂兒的|跑堂儿的[pao3 tang2 r5 de5] 'a waiter (literally, one who runs back and forth in a restaurant)' or 新的[xin1 de5] 'new one') + 5. also pr. [di4] or [di5] in poetry and songs" de 的 的 +1. Chinese language Hàn yǔ 汉语 漢語 +1. which? (interrogative, followed by classifier or numeral-classifier) něi 哪 哪 +"1. country; nation; state + 2. (bound form) national" guó 国 國 +"1. particle indicating that a previously asked question is to be applied to the preceding word ('What about ...?', 'And ...?') + 2. particle for inquiring about location ('Where is ...?') + 3. particle signaling a pause, to emphasize the preceding words and allow the listener time to take them on board ('ok?', 'are you with me?') + 4. (at the end of a declarative sentence) particle indicating continuation of a state or action + 5. particle indicating strong affirmation" ne 呢 呢 +"1. (third-person singular) (since the early 20th century, usu. male) he; him; his + 2. (bound form) other; another; some other (as in 他日[ta1 ri4] and 他人[ta1 ren2])" tā 他 他 +"1. to study at the same school + 2. fellow student + 3. classmate + 4. CL:位[wei4],個|个[ge4]" tóng xué 同学 同學 +"1. friend + 2. CL:個|个[ge4],位[wei4]" péng you 朋友 朋友 +1. Venezuela Wěi nèi ruì lā 委内瑞拉 委內瑞拉 diff --git a/data/HSK1-4.txt b/data/HSK1-4.txt new file mode 100644 index 0000000..27da69d --- /dev/null +++ b/data/HSK1-4.txt @@ -0,0 +1,12 @@ +她 +他 +谁 +的 +汉语 +哪 +国 +呢 +他 +同学 +朋友 +委内瑞拉 \ No newline at end of file