Class_generator/js/content/chinese-long-story.js
StillHammer 475006e912 Add Word Discovery game with auto-play TTS and Settings system
- New Word Discovery game with image support and practice phases
- Auto-play TTS on word appearance with speed control (0.7x-1.1x)
- Complete Settings page with TTS controls and debug interface
- Language standardization with BCP 47 codes (en-US, zh-CN, fr-FR)
- Media fallback handling for missing images and audio
- Settings Manager with voice selection and debug tools

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 14:39:08 +08:00

340 lines
25 KiB
JavaScript

// === CHINESE LONG STORY ===
// Complete Chinese story with English translation and pinyin pronunciation
window.ContentModules = window.ContentModules || {};
window.ContentModules.ChineseLongStory = {
name: "The Dragon's Pearl - 龙珠传说",
description: "Long story with translation and pronunciation",
difficulty: "intermediate",
language: "zh-CN",
totalWords: 1200,
vocabulary: {
"龙": {
"user_language": "dragon",
"type": "noun",
"pronunciation": "lóng"
},
"珠": {
"user_language": "pearl",
"type": "noun",
"pronunciation": "zhū"
},
"传说": {
"user_language": "legend",
"type": "noun",
"pronunciation": "chuán shuō"
},
"故事": {
"user_language": "story",
"type": "noun",
"pronunciation": "gù shì"
},
"山": {
"user_language": "mountain",
"type": "noun",
"pronunciation": "shān"
},
"水": {
"user_language": "water",
"type": "noun",
"pronunciation": "shuǐ"
},
"村庄": {
"user_language": "village",
"type": "noun",
"pronunciation": "cūn zhuāng"
},
"老人": {
"user_language": "old man",
"type": "noun",
"pronunciation": "lǎo rén"
},
"年轻": {
"user_language": "young",
"type": "adjective",
"pronunciation": "nián qīng"
},
"美丽": {
"user_language": "beautiful",
"type": "adjective",
"pronunciation": "měi lì"
}
},
story: {
title: "The Dragon's Pearl - 龙珠传说",
totalSentences: 150,
chapters: [
{
title: "第一章:古老的传说 (Chapter 1: The Ancient Legend)",
sentences: [
{
id: 1,
original: "很久很久以前,在中国的一个偏远山村里,住着一个年轻的渔夫叫李明。",
translation: "Long, long ago, in a remote mountain village in China, there lived a young fisherman named Li Ming.",
words: [
{word: "很久", translation: "long", type: "adverb", pronunciation: "hěn jiǔ"},
{word: "很久", translation: "long", type: "adverb", pronunciation: "hěn jiǔ"},
{word: "以前", translation: "ago", type: "noun", pronunciation: "yǐ qián"},
{word: "在", translation: "in", type: "preposition", pronunciation: "zài"},
{word: "中国", translation: "China", type: "noun", pronunciation: "zhōng guó"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "一个", translation: "a", type: "number", pronunciation: "yī gè"},
{word: "偏远", translation: "remote", type: "adjective", pronunciation: "piān yuǎn"},
{word: "山村", translation: "mountain village", type: "noun", pronunciation: "shān cūn"},
{word: "里", translation: "in", type: "preposition", pronunciation: "lǐ"},
{word: "住着", translation: "lived", type: "verb", pronunciation: "zhù zhe"},
{word: "一个", translation: "a", type: "number", pronunciation: "yī gè"},
{word: "年轻", translation: "young", type: "adjective", pronunciation: "nián qīng"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "渔夫", translation: "fisherman", type: "noun", pronunciation: "yú fū"},
{word: "叫", translation: "named", type: "verb", pronunciation: "jiào"},
{word: "李明", translation: "Li Ming", type: "noun", pronunciation: "lǐ míng"}
]
},
{
id: 2,
original: "李明每天都在附近的河里打鱼,生活虽然简单,但他很满足。",
translation: "Li Ming fished in the nearby river every day, and although his life was simple, he was very content.",
words: [
{word: "李明", translation: "Li Ming", type: "noun", pronunciation: "lǐ míng"},
{word: "每天", translation: "every day", type: "adverb", pronunciation: "měi tiān"},
{word: "都", translation: "all", type: "adverb", pronunciation: "dōu"},
{word: "在", translation: "in", type: "preposition", pronunciation: "zài"},
{word: "附近", translation: "nearby", type: "adjective", pronunciation: "fù jìn"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "河里", translation: "river", type: "noun", pronunciation: "hé lǐ"},
{word: "打鱼", translation: "fish", type: "verb", pronunciation: "dǎ yú"},
{word: "生活", translation: "life", type: "noun", pronunciation: "shēng huó"},
{word: "虽然", translation: "although", type: "conjunction", pronunciation: "suī rán"},
{word: "简单", translation: "simple", type: "adjective", pronunciation: "jiǎn dān"},
{word: "但", translation: "but", type: "conjunction", pronunciation: "dàn"},
{word: "他", translation: "he", type: "pronoun", pronunciation: "tā"},
{word: "很", translation: "very", type: "adverb", pronunciation: "hěn"},
{word: "满足", translation: "content", type: "adjective", pronunciation: "mǎn zú"}
]
},
{
id: 3,
original: "村里的老人们经常讲述一个关于神奇龙珠的古老传说。",
translation: "The elderly people in the village often told an ancient legend about a magical dragon pearl.",
words: [
{word: "村里", translation: "village", type: "noun", pronunciation: "cūn lǐ"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "老人们", translation: "elderly people", type: "noun", pronunciation: "lǎo rén men"},
{word: "经常", translation: "often", type: "adverb", pronunciation: "jīng cháng"},
{word: "讲述", translation: "tell", type: "verb", pronunciation: "jiǎng shù"},
{word: "一个", translation: "a", type: "number", pronunciation: "yī gè"},
{word: "关于", translation: "about", type: "preposition", pronunciation: "guān yú"},
{word: "神奇", translation: "magical", type: "adjective", pronunciation: "shén qí"},
{word: "龙珠", translation: "dragon pearl", type: "noun", pronunciation: "lóng zhū"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "古老", translation: "ancient", type: "adjective", pronunciation: "gǔ lǎo"},
{word: "传说", translation: "legend", type: "noun", pronunciation: "chuán shuō"}
]
},
{
id: 4,
original: "传说中说,龙珠藏在深山的秘密洞穴里,能够实现持有者的任何愿望。",
translation: "The legend said that the dragon pearl was hidden in a secret cave in the deep mountains and could fulfill any wish of its holder.",
words: [
{word: "传说", translation: "legend", type: "noun", pronunciation: "chuán shuō"},
{word: "中", translation: "in", type: "preposition", pronunciation: "zhōng"},
{word: "说", translation: "said", type: "verb", pronunciation: "shuō"},
{word: "龙珠", translation: "dragon pearl", type: "noun", pronunciation: "lóng zhū"},
{word: "藏在", translation: "hidden in", type: "verb", pronunciation: "cáng zài"},
{word: "深山", translation: "deep mountains", type: "noun", pronunciation: "shēn shān"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "秘密", translation: "secret", type: "adjective", pronunciation: "mì mì"},
{word: "洞穴", translation: "cave", type: "noun", pronunciation: "dòng xué"},
{word: "里", translation: "in", type: "preposition", pronunciation: "lǐ"},
{word: "能够", translation: "could", type: "verb", pronunciation: "néng gòu"},
{word: "实现", translation: "fulfill", type: "verb", pronunciation: "shí xiàn"},
{word: "持有者", translation: "holder", type: "noun", pronunciation: "chí yǒu zhě"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "任何", translation: "any", type: "adjective", pronunciation: "rèn hé"},
{word: "愿望", translation: "wish", type: "noun", pronunciation: "yuàn wàng"}
]
},
{
id: 5,
original: "但是,想要找到龙珠并不容易,因为山中充满了危险。",
translation: "However, finding the dragon pearl was not easy, because the mountains were full of danger.",
words: [
{word: "但是", translation: "however", type: "conjunction", pronunciation: "dàn shì"},
{word: "想要", translation: "want to", type: "verb", pronunciation: "xiǎng yào"},
{word: "找到", translation: "find", type: "verb", pronunciation: "zhǎo dào"},
{word: "龙珠", translation: "dragon pearl", type: "noun", pronunciation: "lóng zhū"},
{word: "并不", translation: "not", type: "adverb", pronunciation: "bìng bù"},
{word: "容易", translation: "easy", type: "adjective", pronunciation: "róng yì"},
{word: "因为", translation: "because", type: "conjunction", pronunciation: "yīn wèi"},
{word: "山中", translation: "mountains", type: "noun", pronunciation: "shān zhōng"},
{word: "充满了", translation: "full of", type: "verb", pronunciation: "chōng mǎn le"},
{word: "危险", translation: "danger", type: "noun", pronunciation: "wēi xiǎn"}
]
}
]
},
{
title: "第二章:神秘的梦境 (Chapter 2: The Mysterious Dream)",
sentences: [
{
id: 6,
original: "一天晚上,李明做了一个奇怪的梦。",
translation: "One night, Li Ming had a strange dream.",
words: [
{word: "一天", translation: "one day", type: "noun", pronunciation: "yī tiān"},
{word: "晚上", translation: "night", type: "noun", pronunciation: "wǎn shàng"},
{word: "李明", translation: "Li Ming", type: "noun", pronunciation: "lǐ míng"},
{word: "做了", translation: "had", type: "verb", pronunciation: "zuò le"},
{word: "一个", translation: "a", type: "number", pronunciation: "yī gè"},
{word: "奇怪", translation: "strange", type: "adjective", pronunciation: "qí guài"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "梦", translation: "dream", type: "noun", pronunciation: "mèng"}
]
},
{
id: 7,
original: "梦中,一条巨大的金龙出现在他面前,龙的眼睛像星星一样闪闪发光。",
translation: "In the dream, a huge golden dragon appeared before him, its eyes sparkling like stars.",
words: [
{word: "梦中", translation: "in dream", type: "noun", pronunciation: "mèng zhōng"},
{word: "一条", translation: "a", type: "number", pronunciation: "yī tiáo"},
{word: "巨大", translation: "huge", type: "adjective", pronunciation: "jù dà"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "金龙", translation: "golden dragon", type: "noun", pronunciation: "jīn lóng"},
{word: "出现", translation: "appeared", type: "verb", pronunciation: "chū xiàn"},
{word: "在", translation: "at", type: "preposition", pronunciation: "zài"},
{word: "他", translation: "him", type: "pronoun", pronunciation: "tā"},
{word: "面前", translation: "before", type: "noun", pronunciation: "miàn qián"},
{word: "龙", translation: "dragon", type: "noun", pronunciation: "lóng"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "眼睛", translation: "eyes", type: "noun", pronunciation: "yǎn jīng"},
{word: "像", translation: "like", type: "verb", pronunciation: "xiàng"},
{word: "星星", translation: "stars", type: "noun", pronunciation: "xīng xīng"},
{word: "一样", translation: "same as", type: "adverb", pronunciation: "yī yàng"},
{word: "闪闪发光", translation: "sparkling", type: "verb", pronunciation: "shǎn shǎn fā guāng"}
]
},
{
id: 8,
original: "金龙对李明说:'勇敢的年轻人,你有纯洁的心,我要给你一个机会。'",
translation: "The golden dragon said to Li Ming: 'Brave young man, you have a pure heart, I want to give you a chance.'",
words: [
{word: "金龙", translation: "golden dragon", type: "noun", pronunciation: "jīn lóng"},
{word: "对", translation: "to", type: "preposition", pronunciation: "duì"},
{word: "李明", translation: "Li Ming", type: "noun", pronunciation: "lǐ míng"},
{word: "说", translation: "said", type: "verb", pronunciation: "shuō"},
{word: "勇敢", translation: "brave", type: "adjective", pronunciation: "yǒng gǎn"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "年轻人", translation: "young man", type: "noun", pronunciation: "nián qīng rén"},
{word: "你", translation: "you", type: "pronoun", pronunciation: "nǐ"},
{word: "有", translation: "have", type: "verb", pronunciation: "yǒu"},
{word: "纯洁", translation: "pure", type: "adjective", pronunciation: "chún jié"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "心", translation: "heart", type: "noun", pronunciation: "xīn"},
{word: "我", translation: "I", type: "pronoun", pronunciation: "wǒ"},
{word: "要", translation: "want", type: "verb", pronunciation: "yào"},
{word: "给", translation: "give", type: "verb", pronunciation: "gěi"},
{word: "你", translation: "you", type: "pronoun", pronunciation: "nǐ"},
{word: "一个", translation: "a", type: "number", pronunciation: "yī gè"},
{word: "机会", translation: "chance", type: "noun", pronunciation: "jī huì"}
]
},
{
id: 9,
original: "'明天早上,当太阳升起的时候,跟着河流向北走,你会找到你寻找的东西。'",
translation: "'Tomorrow morning, when the sun rises, follow the river northward, and you will find what you seek.'",
words: [
{word: "明天", translation: "tomorrow", type: "noun", pronunciation: "míng tiān"},
{word: "早上", translation: "morning", type: "noun", pronunciation: "zǎo shàng"},
{word: "当", translation: "when", type: "conjunction", pronunciation: "dāng"},
{word: "太阳", translation: "sun", type: "noun", pronunciation: "tài yáng"},
{word: "升起", translation: "rises", type: "verb", pronunciation: "shēng qǐ"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "时候", translation: "time", type: "noun", pronunciation: "shí hòu"},
{word: "跟着", translation: "follow", type: "verb", pronunciation: "gēn zhe"},
{word: "河流", translation: "river", type: "noun", pronunciation: "hé liú"},
{word: "向", translation: "toward", type: "preposition", pronunciation: "xiàng"},
{word: "北", translation: "north", type: "noun", pronunciation: "běi"},
{word: "走", translation: "walk", type: "verb", pronunciation: "zǒu"},
{word: "你", translation: "you", type: "pronoun", pronunciation: "nǐ"},
{word: "会", translation: "will", type: "verb", pronunciation: "huì"},
{word: "找到", translation: "find", type: "verb", pronunciation: "zhǎo dào"},
{word: "你", translation: "you", type: "pronoun", pronunciation: "nǐ"},
{word: "寻找", translation: "seek", type: "verb", pronunciation: "xún zhǎo"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "东西", translation: "thing", type: "noun", pronunciation: "dōng xī"}
]
},
{
id: 10,
original: "李明醒来后,发现这个梦非常清晰,好像真的发生过一样。",
translation: "After Li Ming woke up, he found that the dream was very clear, as if it had really happened.",
words: [
{word: "李明", translation: "Li Ming", type: "noun", pronunciation: "lǐ míng"},
{word: "醒来", translation: "woke up", type: "verb", pronunciation: "xǐng lái"},
{word: "后", translation: "after", type: "preposition", pronunciation: "hòu"},
{word: "发现", translation: "found", type: "verb", pronunciation: "fā xiàn"},
{word: "这个", translation: "this", type: "pronoun", pronunciation: "zhè gè"},
{word: "梦", translation: "dream", type: "noun", pronunciation: "mèng"},
{word: "非常", translation: "very", type: "adverb", pronunciation: "fēi cháng"},
{word: "清晰", translation: "clear", type: "adjective", pronunciation: "qīng xī"},
{word: "好像", translation: "as if", type: "adverb", pronunciation: "hǎo xiàng"},
{word: "真的", translation: "really", type: "adverb", pronunciation: "zhēn de"},
{word: "发生过", translation: "happened", type: "verb", pronunciation: "fā shēng guò"},
{word: "一样", translation: "same", type: "adverb", pronunciation: "yī yàng"}
]
}
]
},
{
title: "第三章:神奇的发现 (Chapter 3: The Amazing Discovery)",
sentences: [
{
id: 11,
original: "第二天早上,李明决定按照梦中龙的指示去寻找龙珠。",
translation: "The next morning, Li Ming decided to follow the dragon's instructions from his dream to search for the dragon pearl.",
words: [
{word: "第二天", translation: "next day", type: "noun", pronunciation: "dì èr tiān"},
{word: "早上", translation: "morning", type: "noun", pronunciation: "zǎo shàng"},
{word: "李明", translation: "Li Ming", type: "noun", pronunciation: "lǐ míng"},
{word: "决定", translation: "decided", type: "verb", pronunciation: "jué dìng"},
{word: "按照", translation: "according to", type: "preposition", pronunciation: "àn zhào"},
{word: "梦中", translation: "dream", type: "noun", pronunciation: "mèng zhōng"},
{word: "龙", translation: "dragon", type: "noun", pronunciation: "lóng"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "指示", translation: "instructions", type: "noun", pronunciation: "zhǐ shì"},
{word: "去", translation: "go", type: "verb", pronunciation: "qù"},
{word: "寻找", translation: "search", type: "verb", pronunciation: "xún zhǎo"},
{word: "龙珠", translation: "dragon pearl", type: "noun", pronunciation: "lóng zhū"}
]
},
{
id: 12,
original: "他沿着河流向北走了整整一天,最终到达了一座高山的脚下。",
translation: "He walked northward along the river for a whole day and finally reached the foot of a high mountain.",
words: [
{word: "他", translation: "he", type: "pronoun", pronunciation: "tā"},
{word: "沿着", translation: "along", type: "preposition", pronunciation: "yán zhe"},
{word: "河流", translation: "river", type: "noun", pronunciation: "hé liú"},
{word: "向", translation: "toward", type: "preposition", pronunciation: "xiàng"},
{word: "北", translation: "north", type: "noun", pronunciation: "běi"},
{word: "走了", translation: "walked", type: "verb", pronunciation: "zǒu le"},
{word: "整整", translation: "whole", type: "adverb", pronunciation: "zhěng zhěng"},
{word: "一天", translation: "one day", type: "noun", pronunciation: "yī tiān"},
{word: "最终", translation: "finally", type: "adverb", pronunciation: "zuì zhōng"},
{word: "到达了", translation: "reached", type: "verb", pronunciation: "dào dá le"},
{word: "一座", translation: "a", type: "number", pronunciation: "yī zuò"},
{word: "高山", translation: "high mountain", type: "noun", pronunciation: "gāo shān"},
{word: "的", translation: "of", type: "particle", pronunciation: "de"},
{word: "脚下", translation: "foot", type: "noun", pronunciation: "jiǎo xià"}
]
}
]
}
]
}
};