english-dictation-paper
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "english-dictation-paper" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4f449d5b81f74ca5891186fc77247c0af2ee7c26e0fd00b39f28cc08efac9fde. Verify the upstream source and version against https://skillhub.cn/skills/user_ce094de0/english-dictation-paper before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generates 'English dictation sheets' (A4, fixed two-column layout: left column view English and write Chinese, right column view Chinese and recall English, including checkboxes and blank lines) and renders the word list as printable HTML for export to PDF for printing or distribution.
Introduction source: third_party · user_ce094de0 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: english-dictation-paper
description: 生成"英语词汇默写纸/听写纸/默写表"(双栏对照:左栏看英文写中文、右栏看中文回忆英文),并保持固定排版风格(A4、双栏、打钩框、空线)。当需要把单词表渲染成可打印的 HTML,并进一步导出 PDF(便于打印/发给同学)时使用本技能。英语默写纸(HTML + PDF)
核心设计:左右同行
每条 (左半 + 右半) 绑为同一 .pair-row,由 CSS 的 page-break-inside: avoid 保证
"序号一致、行高一致、永不被分页拆开"。不要把两栏拆成两个独立列流 —— 那会
让左右两列各自计算行高,一旦右栏中文释义换行高度变化,左右行号就会错位(旧版 bug 修复点)。
文件结构
english-dictation-paper/
├── SKILL.md # 本说明
├── assets/
│ ├── template.html # 排版模板(CSS + 结构),通过占位符注入内容
│ └── example_words.txt # 多格式输入示例
└── scripts/
└── make_dictation_sheet.py # 词表 → HTML → (PDF) 生成器
模板支持的占位符(必须全部出现在 template.html 中):
| 占位符 | 用途 |
|---|---|
{{TITLE}} |
HTML <title> 浏览器标签文字 |
{{HEADER_H1}} |
页面大标题(页头居中大字) |
{{FOOTER_TEXT}} |
页脚说明 |
{{PAIR_ROWS}} |
全部词条(每条左+右绑成一对) |
排版可调项集中在 template.html 的 :root CSS 变量中(gap、字号、列宽等),
不要改结构,只能微调变量。
快速工作流
1) 准备词表输入
支持两种格式:
-
TXT(推荐):每行一条,word 与 meaning 之间允许以下任一分隔符
TAB(最稳)- 半角冒号
:/ 全角冒号: - 半角短横
-/ 全角破折号—/ 短破折号– - 行首可带
1.1、1)(1)等序号,会被自动忽略 - 以
#开头的视为注释
-
CSV:表头必须包含
word, meaning(不区分大小写)
示例 TXT(各种分隔符都支持):
foremost:adj. 最重要的,最好的;adv. 最重要地,首要地
assemble - vi./vt. (使)集合,(使)聚集;vt. 组装,装配
cue n. 暗示,提示,信号;球杆
# 这一行是注释,会被跳过
1. bomb炸…with sth 用…轰炸;对…大量提问
2) 生成 HTML(可选再导出 PDF + 校验对齐)
# 仅 HTML
python scripts/make_dictation_sheet.py -i words.txt -o ./out --name 英语默写纸
# HTML + PDF
python scripts/make_dictation_sheet.py -i words.txt -o ./out --name 英语默写纸 --pdf
# HTML + PDF + 强制校验左右同行(推荐)
python scripts/make_dictation_sheet.py -i words.txt -o ./out --name 英语默写纸 --pdf --validate
输出:
./out/英语默写纸.html(始终生成)./out/英语默写纸.pdf(启用--pdf时)[validate] OK: 240 rows aligned (max Y delta = 0.000px)(启用--validate时)
CLI 参数
| 参数 | 默认 | 说明 |
|---|---|---|
-i, --input |
(必填) | 词表文件(TXT/CSV) |
-o, --out-dir |
./out |
输出目录 |
--template |
内置默认 | 自定义 HTML 模板路径 |
--title |
英语词汇默写纸 - 双栏对照版 |
浏览器标签文字 |
--header |
英 语 词 汇 默 写 纸 |
页面大标题 |
--footer |
(见 --help) |
页脚说明 |
--name |
英语词汇默写纸 |
输出文件主名(不含扩展名) |
--pdf |
关闭 | 同时导出 PDF |
--validate |
关闭 | 渲染后用 Playwright 校验左右同行度 |
排错
| 现象 | 原因 / 处理 |
|---|---|
ModuleNotFoundError: playwright |
没装 Playwright:pip install playwright && python -m playwright install chromium |
无法解析此行(缺少释义或分隔符) |
行内 word/meaning 之间没有受支持的分隔符;改为 TAB / 短横 / 全角冒号 |
对齐校验失败 |
不应该发生;若发生说明模板被改动 —— 检查 .pair-row 是否还在,并保留了 page-break-inside: avoid |
| PDF 是英文而不是中文 | 模板里没有中文字体回退;确认 body 字体包含 "SimSun" 或 "Noto Sans CJK SC" |
注意事项
- 不要把左右两栏改回两个独立
display:grid列(旧 bug 复发点)。 - 不要给
.pair-row加display: flex—— flex 不会触发网格行高对齐,跨页时也会分家。 - 想换字号 / 列宽 / 间距时,只改
template.html的:rootCSS 变量即可。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档未设置独立的 When to Use 章节,使用场景描述融入在 description 和正文中
Recommendation: 建议在正文开头增加显式的 When to Use 章节,提升用户快速理解效率
Highlights
- 解决英语词汇默写纸生成的高频刚需
- 支持多种输入格式(TXT/CSV)和分隔符
- 提供 HTML+PDF 双输出,便于打印和分发
Highlights
- 触发描述完整覆盖核心功能(生成默写纸、HTML 渲染、PDF 导出)
- 使用场景边界清晰,不易与其他 Skill 重叠
Areas to improve
-
文档略长 Reported severity: Minor
SKILL.md 内容较为详尽,接近 500 行限制
Recommendation: 可考虑将部分详细说明移至 assets/example_words.txt 或独立文档,保持主文件简洁
Highlights
- Phase/步骤划分清晰,含快速工作流和 CLI 参数说明
- 提供端到端示例和排错指南
- frontmatter 完整,结构规范
Highlights
- 工具来源明确(Python 脚本),参数定义清晰
- 覆盖主要异常场景(格式解析、依赖缺失、对齐校验)
- 输出路径可控,避免意外覆盖
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 100
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.