novelws 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +100 -623
- package/README.md +79 -594
- package/dist/cli.js +1 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +12 -99
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +17 -108
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/core/config.d.ts +1 -37
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +6 -45
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors.d.ts +0 -31
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +0 -58
- package/dist/core/errors.js.map +1 -1
- package/dist/utils/diagnostics.d.ts +2 -16
- package/dist/utils/diagnostics.d.ts.map +1 -1
- package/dist/utils/diagnostics.js +5 -72
- package/dist/utils/diagnostics.js.map +1 -1
- package/dist/utils/project.d.ts +1 -1
- package/dist/utils/project.d.ts.map +1 -1
- package/dist/utils/project.js +3 -3
- package/dist/utils/project.js.map +1 -1
- package/package.json +1 -2
- package/templates/commands/analyze.md +65 -265
- package/templates/commands/expand.md +70 -0
- package/templates/commands/plan.md +47 -452
- package/templates/commands/specify.md +43 -869
- package/templates/commands/write.md +49 -643
- package/templates/dot-claude/CLAUDE.md +38 -202
- package/templates/resources/anti-ai.md +16 -0
- package/templates/resources/style-reference.md +19 -0
- package/templates/tracking/character-state.json +1 -76
- package/templates/tracking/plot-tracker.json +3 -60
- package/templates/tracking/relationships.json +1 -68
- package/templates/tracking/timeline.json +1 -47
- package/dist/commands/plugin.d.ts +0 -6
- package/dist/commands/plugin.d.ts.map +0 -1
- package/dist/commands/plugin.js +0 -135
- package/dist/commands/plugin.js.map +0 -1
- package/dist/plugins/identifier.d.ts +0 -13
- package/dist/plugins/identifier.d.ts.map +0 -1
- package/dist/plugins/identifier.js +0 -72
- package/dist/plugins/identifier.js.map +0 -1
- package/dist/plugins/installers/base.d.ts +0 -27
- package/dist/plugins/installers/base.d.ts.map +0 -1
- package/dist/plugins/installers/base.js +0 -30
- package/dist/plugins/installers/base.js.map +0 -1
- package/dist/plugins/installers/github.d.ts +0 -22
- package/dist/plugins/installers/github.d.ts.map +0 -1
- package/dist/plugins/installers/github.js +0 -133
- package/dist/plugins/installers/github.js.map +0 -1
- package/dist/plugins/installers/local.d.ts +0 -16
- package/dist/plugins/installers/local.d.ts.map +0 -1
- package/dist/plugins/installers/local.js +0 -69
- package/dist/plugins/installers/local.js.map +0 -1
- package/dist/plugins/installers/npm.d.ts +0 -20
- package/dist/plugins/installers/npm.d.ts.map +0 -1
- package/dist/plugins/installers/npm.js +0 -99
- package/dist/plugins/installers/npm.js.map +0 -1
- package/dist/plugins/manager.d.ts +0 -77
- package/dist/plugins/manager.d.ts.map +0 -1
- package/dist/plugins/manager.js +0 -349
- package/dist/plugins/manager.js.map +0 -1
- package/dist/plugins/registry.d.ts +0 -48
- package/dist/plugins/registry.d.ts.map +0 -1
- package/dist/plugins/registry.js +0 -111
- package/dist/plugins/registry.js.map +0 -1
- package/dist/plugins/types.d.ts +0 -66
- package/dist/plugins/types.d.ts.map +0 -1
- package/dist/plugins/types.js +0 -2
- package/dist/plugins/types.js.map +0 -1
- package/dist/plugins/validator.d.ts +0 -19
- package/dist/plugins/validator.d.ts.map +0 -1
- package/dist/plugins/validator.js +0 -164
- package/dist/plugins/validator.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -13
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -48
- package/dist/utils/logger.js.map +0 -1
- package/plugins/authentic-voice/README.md +0 -31
- package/plugins/authentic-voice/commands/authentic-voice.md +0 -73
- package/plugins/authentic-voice/commands/authenticity-audit.md +0 -37
- package/plugins/authentic-voice/config.yaml +0 -30
- package/plugins/authentic-voice/experts/authentic-editor.md +0 -27
- package/plugins/export/README.md +0 -319
- package/plugins/export/commands/export.md +0 -460
- package/plugins/export/commands/generate-cover.md +0 -256
- package/plugins/export/commands/metadata.md +0 -309
- package/plugins/export/config.yaml +0 -47
- package/plugins/export/experts/publishing-expert.md +0 -171
- package/plugins/export/templates/epub/chapter-template.html +0 -13
- package/plugins/export/templates/epub/cover-template.html +0 -14
- package/plugins/export/templates/epub/stylesheet.css +0 -200
- package/plugins/export/templates/pdf/ebook-style.css +0 -137
- package/plugins/export/templates/pdf/print-style.css +0 -179
- package/plugins/export/templates/platforms/jinjiang-format.md +0 -101
- package/plugins/export/templates/platforms/qidian-format.md +0 -108
- package/plugins/export/templates/platforms/tomato-format.md +0 -95
- package/plugins/translate/README.md +0 -265
- package/plugins/translate/commands/glossary.md +0 -731
- package/plugins/translate/commands/translate-preview.md +0 -543
- package/plugins/translate/commands/translate.md +0 -649
- package/plugins/translate/config.yaml +0 -43
- package/plugins/translate/experts/literary-translator.md +0 -605
- package/templates/commands/character.md +0 -287
- package/templates/commands/checklist.md +0 -744
- package/templates/commands/clarify.md +0 -269
- package/templates/commands/constitution.md +0 -269
- package/templates/commands/expert.md +0 -188
- package/templates/commands/facts.md +0 -552
- package/templates/commands/guide.md +0 -900
- package/templates/commands/help-me.md +0 -221
- package/templates/commands/recap.md +0 -748
- package/templates/commands/relations.md +0 -385
- package/templates/commands/revise.md +0 -450
- package/templates/commands/search.md +0 -531
- package/templates/commands/tasks.md +0 -396
- package/templates/commands/timeline.md +0 -309
- package/templates/commands/track-init.md +0 -149
- package/templates/commands/track.md +0 -704
- package/templates/commands/volume-summary.md +0 -471
- package/templates/knowledge/audit-config.json +0 -26
- package/templates/knowledge/character-profiles.md +0 -152
- package/templates/knowledge/character-voices.md +0 -137
- package/templates/knowledge/locations.md +0 -184
- package/templates/knowledge/world-setting.md +0 -121
- package/templates/resources/character-archetypes/01-hero.md +0 -233
- package/templates/resources/character-archetypes/02-mentor.md +0 -177
- package/templates/resources/character-archetypes/03-shadow.md +0 -221
- package/templates/resources/character-archetypes/04-ally.md +0 -178
- package/templates/resources/character-archetypes/05-shapeshifter.md +0 -177
- package/templates/resources/character-archetypes/06-trickster.md +0 -181
- package/templates/resources/character-archetypes/07-threshold-guardian.md +0 -177
- package/templates/resources/character-archetypes/08-herald.md +0 -180
- package/templates/resources/character-archetypes/09-father.md +0 -249
- package/templates/resources/character-archetypes/10-mother.md +0 -202
- package/templates/resources/character-archetypes/11-child.md +0 -183
- package/templates/resources/character-archetypes/12-sage.md +0 -202
- package/templates/resources/character-archetypes/README.md +0 -60
- package/templates/resources/character-archetypes/application-guide.md +0 -222
- package/templates/resources/character-archetypes/archetype-combinations.md +0 -242
- package/templates/resources/character-archetypes/config.yaml +0 -28
- package/templates/resources/character-archetypes/examples-analysis.md +0 -223
- package/templates/resources/config/keyword-mappings.json +0 -226
- package/templates/resources/config/specification-example.md +0 -146
- package/templates/resources/craft/character-arc.md +0 -1153
- package/templates/resources/craft/dialogue.md +0 -1170
- package/templates/resources/craft/hook-design.md +0 -345
- package/templates/resources/craft/pacing.md +0 -1200
- package/templates/resources/craft/power-system.md +0 -254
- package/templates/resources/craft/scene-structure.md +0 -1136
- package/templates/resources/craft/show-not-tell.md +0 -1012
- package/templates/resources/craft/story-structures.md +0 -134
- package/templates/resources/craft/tension-management.md +0 -168
- package/templates/resources/emotional-beats/01-first-meeting.md +0 -145
- package/templates/resources/emotional-beats/02-bonding-moment.md +0 -226
- package/templates/resources/emotional-beats/03-declaration.md +0 -284
- package/templates/resources/emotional-beats/04-triumph.md +0 -240
- package/templates/resources/emotional-beats/05-reunion.md +0 -396
- package/templates/resources/emotional-beats/06-forgiveness.md +0 -204
- package/templates/resources/emotional-beats/07-betrayal.md +0 -204
- package/templates/resources/emotional-beats/08-loss.md +0 -214
- package/templates/resources/emotional-beats/09-rejection.md +0 -254
- package/templates/resources/emotional-beats/10-failure.md +0 -244
- package/templates/resources/emotional-beats/11-misunderstanding.md +0 -205
- package/templates/resources/emotional-beats/12-farewell.md +0 -283
- package/templates/resources/emotional-beats/13-revelation.md +0 -242
- package/templates/resources/emotional-beats/14-point-of-no-return.md +0 -215
- package/templates/resources/emotional-beats/15-dark-night.md +0 -244
- package/templates/resources/emotional-beats/16-sacrifice.md +0 -246
- package/templates/resources/emotional-beats/17-awakening.md +0 -246
- package/templates/resources/emotional-beats/18-confrontation.md +0 -217
- package/templates/resources/emotional-beats/19-bittersweet-goodbye.md +0 -368
- package/templates/resources/emotional-beats/20-moral-dilemma.md +0 -248
- package/templates/resources/emotional-beats/21-temptation.md +0 -240
- package/templates/resources/emotional-beats/22-redemption.md +0 -210
- package/templates/resources/emotional-beats/README.md +0 -104
- package/templates/resources/emotional-beats/beat-sequences.md +0 -276
- package/templates/resources/emotional-beats/config.yaml +0 -30
- package/templates/resources/emotional-beats/pacing-guide.md +0 -390
- package/templates/resources/genres/game-lit.md +0 -174
- package/templates/resources/genres/historical.md +0 -1127
- package/templates/resources/genres/horror.md +0 -211
- package/templates/resources/genres/military.md +0 -209
- package/templates/resources/genres/mystery.md +0 -1123
- package/templates/resources/genres/rebirth.md +0 -177
- package/templates/resources/genres/revenge.md +0 -846
- package/templates/resources/genres/romance.md +0 -948
- package/templates/resources/genres/sci-fi.md +0 -156
- package/templates/resources/genres/sports.md +0 -216
- package/templates/resources/genres/thriller.md +0 -166
- package/templates/resources/genres/urban.md +0 -170
- package/templates/resources/genres/workplace.md +0 -214
- package/templates/resources/genres/wuxia.md +0 -143
- package/templates/resources/genres/xuanhuan.md +0 -234
- package/templates/resources/genres/youth.md +0 -219
- package/templates/resources/memory/personal-voice.md +0 -113
- package/templates/resources/references/README.md +0 -96
- package/templates/resources/references/china-1920s/culture.md +0 -423
- package/templates/resources/references/china-1920s/daily-life.md +0 -616
- package/templates/resources/references/china-1920s/overview.md +0 -298
- package/templates/resources/references/china-1920s/society.md +0 -703
- package/templates/resources/references/china-1920s/warlords.md +0 -427
- package/templates/resources/references/cultivation-world/daily-life.md +0 -108
- package/templates/resources/references/cultivation-world/overview.md +0 -64
- package/templates/resources/references/cultivation-world/power-system.md +0 -108
- package/templates/resources/references/cultivation-world/sects.md +0 -104
- package/templates/resources/references/cultivation-world/world-setting.md +0 -108
- package/templates/resources/references/modern-workplace/corporate.md +0 -115
- package/templates/resources/references/modern-workplace/daily-life.md +0 -129
- package/templates/resources/references/modern-workplace/overview.md +0 -73
- package/templates/resources/references/modern-workplace/relationships.md +0 -107
- package/templates/resources/references/modern-workplace/tech-industry.md +0 -131
- package/templates/resources/references/tang-dynasty/culture.md +0 -135
- package/templates/resources/references/tang-dynasty/daily-life.md +0 -139
- package/templates/resources/references/tang-dynasty/overview.md +0 -76
- package/templates/resources/references/tang-dynasty/politics.md +0 -121
- package/templates/resources/references/tang-dynasty/society.md +0 -126
- package/templates/resources/requirements/README.md +0 -240
- package/templates/resources/requirements/anti-ai-v3.md +0 -46
- package/templates/resources/requirements/anti-ai-v4-deprecated.md +0 -442
- package/templates/resources/requirements/anti-ai-v5-balanced.md +0 -203
- package/templates/resources/requirements/concretization.md +0 -90
- package/templates/resources/requirements/fast-paced.md +0 -552
- package/templates/resources/requirements/no-poison.md +0 -60
- package/templates/resources/requirements/romance-angst.md +0 -102
- package/templates/resources/requirements/romance-sweet.md +0 -63
- package/templates/resources/requirements/serious-literature.md +0 -45
- package/templates/resources/requirements/strong-emotion.md +0 -60
- package/templates/resources/scripts/README.md +0 -187
- package/templates/resources/scripts/bash/analyze-story.sh +0 -170
- package/templates/resources/scripts/bash/check-analyze-stage.sh +0 -108
- package/templates/resources/scripts/bash/check-consistency.sh +0 -463
- package/templates/resources/scripts/bash/check-facts.sh +0 -214
- package/templates/resources/scripts/bash/check-plot.sh +0 -374
- package/templates/resources/scripts/bash/check-timeline.sh +0 -346
- package/templates/resources/scripts/bash/check-world.sh +0 -395
- package/templates/resources/scripts/bash/check-writing-state.sh +0 -854
- package/templates/resources/scripts/bash/clarify-story.sh +0 -117
- package/templates/resources/scripts/bash/common.sh +0 -151
- package/templates/resources/scripts/bash/constitution.sh +0 -114
- package/templates/resources/scripts/bash/generate-tasks.sh +0 -65
- package/templates/resources/scripts/bash/init-tracking.sh +0 -183
- package/templates/resources/scripts/bash/manage-relations.sh +0 -174
- package/templates/resources/scripts/bash/migrate-tracking.sh +0 -183
- package/templates/resources/scripts/bash/plan-story.sh +0 -100
- package/templates/resources/scripts/bash/specify-story.sh +0 -93
- package/templates/resources/scripts/bash/tasks-story.sh +0 -96
- package/templates/resources/scripts/bash/test-word-count.sh +0 -182
- package/templates/resources/scripts/bash/tests/bench-preload-cache.sh +0 -100
- package/templates/resources/scripts/bash/tests/run-all-benchmarks.sh +0 -16
- package/templates/resources/scripts/bash/tests/test-cache-semantics.sh +0 -199
- package/templates/resources/scripts/bash/tests/test-cross-platform.sh +0 -35
- package/templates/resources/scripts/bash/tests/test-edge-cases-bash.sh +0 -60
- package/templates/resources/scripts/bash/tests/test-phase1-bash.sh +0 -28
- package/templates/resources/scripts/bash/tests/test-preload-cache.sh +0 -123
- package/templates/resources/scripts/bash/tests/test-regex-precompile.sh +0 -89
- package/templates/resources/scripts/bash/tests/test-regression-bash.sh +0 -42
- package/templates/resources/scripts/bash/tests/test-task6-verification.sh +0 -200
- package/templates/resources/scripts/bash/text-audit.sh +0 -144
- package/templates/resources/scripts/bash/track-progress.sh +0 -194
- package/templates/resources/scripts/powershell/analyze-story.ps1 +0 -174
- package/templates/resources/scripts/powershell/check-analyze-stage.ps1 +0 -110
- package/templates/resources/scripts/powershell/check-consistency.ps1 +0 -138
- package/templates/resources/scripts/powershell/check-facts.ps1 +0 -195
- package/templates/resources/scripts/powershell/check-plot.ps1 +0 -139
- package/templates/resources/scripts/powershell/check-timeline.ps1 +0 -112
- package/templates/resources/scripts/powershell/check-writing-state.ps1 +0 -486
- package/templates/resources/scripts/powershell/clarify-story.ps1 +0 -107
- package/templates/resources/scripts/powershell/common.ps1 +0 -36
- package/templates/resources/scripts/powershell/constitution.ps1 +0 -145
- package/templates/resources/scripts/powershell/generate-tasks.ps1 +0 -70
- package/templates/resources/scripts/powershell/init-tracking.ps1 +0 -98
- package/templates/resources/scripts/powershell/manage-relations.ps1 +0 -134
- package/templates/resources/scripts/powershell/migrate-tracking.ps1 +0 -145
- package/templates/resources/scripts/powershell/plan-story.ps1 +0 -99
- package/templates/resources/scripts/powershell/specify-story.ps1 +0 -85
- package/templates/resources/scripts/powershell/tests/bench-ps-cache.ps1 +0 -80
- package/templates/resources/scripts/powershell/tests/test-cross-platform.ps1 +0 -27
- package/templates/resources/scripts/powershell/tests/test-edge-cases-ps.ps1 +0 -29
- package/templates/resources/scripts/powershell/tests/test-phase1-ps.ps1 +0 -28
- package/templates/resources/scripts/powershell/tests/test-ps-cache.ps1 +0 -73
- package/templates/resources/scripts/powershell/tests/test-regression-ps.ps1 +0 -40
- package/templates/resources/scripts/powershell/text-audit.ps1 +0 -102
- package/templates/resources/scripts/powershell/track-progress.ps1 +0 -105
- package/templates/resources/styles/README.md +0 -302
- package/templates/resources/styles/ancient-style.md +0 -579
- package/templates/resources/styles/literary.md +0 -439
- package/templates/resources/styles/minimal.md +0 -472
- package/templates/resources/styles/natural-voice.md +0 -930
- package/templates/resources/styles/web-novel.md +0 -525
- package/templates/skills/analysis/character-analysis/SKILL.md +0 -71
- package/templates/skills/analysis/foreshadow-analysis/SKILL.md +0 -45
- package/templates/skills/analysis/hook-analysis/SKILL.md +0 -111
- package/templates/skills/analysis/logic-analysis/SKILL.md +0 -58
- package/templates/skills/analysis/opening-analysis/SKILL.md +0 -59
- package/templates/skills/analysis/pacing-analysis/SKILL.md +0 -55
- package/templates/skills/analysis/power-analysis/SKILL.md +0 -148
- package/templates/skills/analysis/reader-analysis/SKILL.md +0 -117
- package/templates/skills/analysis/style-analysis/SKILL.md +0 -60
- package/templates/skills/analysis/voice-analysis/SKILL.md +0 -42
- package/templates/skills/auto-tracking/SKILL.md +0 -280
- package/templates/skills/genre-knowledge/fantasy/SKILL.md +0 -355
- package/templates/skills/genre-knowledge/mystery/SKILL.md +0 -337
- package/templates/skills/genre-knowledge/romance/SKILL.md +0 -228
- package/templates/skills/genre-knowledge/sci-fi/SKILL.md +0 -65
- package/templates/skills/genre-knowledge/thriller/SKILL.md +0 -95
- package/templates/skills/planning/volume-detail/SKILL.md +0 -219
- package/templates/skills/quality-assurance/consistency-checker/SKILL.md +0 -412
- package/templates/skills/quality-assurance/continuity-tracker/SKILL.md +0 -157
- package/templates/skills/quality-assurance/facts-checker/SKILL.md +0 -405
- package/templates/skills/quality-assurance/forgotten-elements/SKILL.md +0 -147
- package/templates/skills/quality-assurance/getting-started/SKILL.md +0 -224
- package/templates/skills/quality-assurance/hook-checker/SKILL.md +0 -164
- package/templates/skills/quality-assurance/hook-checker/experts/hook-analyst.md +0 -33
- package/templates/skills/quality-assurance/long-series-continuity/SKILL.md +0 -570
- package/templates/skills/quality-assurance/pacing-monitor/SKILL.md +0 -143
- package/templates/skills/quality-assurance/pov-validator/SKILL.md +0 -135
- package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +0 -583
- package/templates/skills/quality-assurance/requirement-detector/CONFLICT_RESOLUTION.md +0 -119
- package/templates/skills/quality-assurance/requirement-detector/EXAMPLES.md +0 -146
- package/templates/skills/quality-assurance/requirement-detector/KEYWORDS.md +0 -160
- package/templates/skills/quality-assurance/requirement-detector/SKILL.md +0 -149
- package/templates/skills/quality-assurance/setting-detector/SKILL.md +0 -611
- package/templates/skills/quality-assurance/style-detector/CONFLICT_RESOLUTION.md +0 -126
- package/templates/skills/quality-assurance/style-detector/EXAMPLES.md +0 -206
- package/templates/skills/quality-assurance/style-detector/KEYWORDS.md +0 -207
- package/templates/skills/quality-assurance/style-detector/SKILL.md +0 -264
- package/templates/skills/quality-assurance/voice-consistency-checker/SKILL.md +0 -103
- package/templates/skills/quality-assurance/voice-consistency-checker/experts/voice-analyst.md +0 -21
- package/templates/skills/quality-assurance/workflow-guide/SKILL.md +0 -381
- package/templates/skills/writing-techniques/character-arc/SKILL.md +0 -267
- package/templates/skills/writing-techniques/dialogue-techniques/SKILL.md +0 -366
- package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +0 -708
- package/templates/skills/writing-techniques/multi-thread-narrative/experts/thread-analyst.md +0 -226
- package/templates/skills/writing-techniques/pacing-control/SKILL.md +0 -480
- package/templates/skills/writing-techniques/reader-expectation/SKILL.md +0 -1026
- package/templates/skills/writing-techniques/reader-expectation/experts/expectation-analyst.md +0 -209
- package/templates/skills/writing-techniques/revision-polish/SKILL.md +0 -496
- package/templates/skills/writing-techniques/revision-polish/experts/revision-editor.md +0 -221
- package/templates/skills/writing-techniques/scene-structure/SKILL.md +0 -361
- package/templates/skills/writing-techniques/style-learning/SKILL.md +0 -436
- package/templates/skills/writing-techniques/writing-balance/.gitkeep +0 -0
- package/templates/skills/writing-techniques/writing-balance/SKILL.md +0 -460
- package/templates/skills/writing-techniques/writing-techniques/SKILL.md +0 -727
- package/templates/tracking/story-facts.json +0 -5
- package/templates/tracking/summary/characters-summary.json +0 -7
- package/templates/tracking/summary/plot-summary.json +0 -13
- package/templates/tracking/summary/timeline-summary.json +0 -8
- package/templates/tracking/summary/volume-summaries.json +0 -5
- package/templates/tracking/tracking-log.md +0 -110
- package/templates/tracking/validation-rules.json +0 -128
- /package/templates/resources/{memory/constitution.md → constitution.md} +0 -0
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 导出小说 - /export
|
|
3
|
-
description: 将小说导出为可发布格式(EPUB/PDF/网文平台),自动目录、封面和元数据
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 导出小说
|
|
7
|
-
|
|
8
|
-
## 使用方法
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
/export [选项]
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
### 基本用法
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
/export --format epub # 导出 EPUB
|
|
18
|
-
/export --format pdf # 导出 PDF
|
|
19
|
-
/export --format qidian # 导出起点格式
|
|
20
|
-
/export --format tomato # 导出番茄格式
|
|
21
|
-
/export --format jinjiang # 导出晋江格式
|
|
22
|
-
/export --format markdown # 导出 Markdown 合集
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### 选项
|
|
26
|
-
|
|
27
|
-
| 选项 | 说明 | 默认值 |
|
|
28
|
-
|------|------|--------|
|
|
29
|
-
| `--format <格式>` | 导出格式(必需) | - |
|
|
30
|
-
| `--output <路径>` | 输出路径 | stories/[name]/exports/ |
|
|
31
|
-
| `--chapters <范围>` | 导出章节范围(如 `1-10`) | 全部 |
|
|
32
|
-
| `--cover <文件>` | 指定封面图 | 自动生成 |
|
|
33
|
-
| `--template <模板>` | 使用自定义模板 | 默认模板 |
|
|
34
|
-
| `--include-appendix` | 包含附录(角色表、世界观) | false |
|
|
35
|
-
| `--lang <语言>` | 导出语言版本(需先翻译) | 原文 |
|
|
36
|
-
|
|
37
|
-
### 导出格式
|
|
38
|
-
|
|
39
|
-
| 格式 | 代码 | 适用场景 |
|
|
40
|
-
|------|------|---------|
|
|
41
|
-
| EPUB | `epub` | Kindle, Apple Books, Google Play Books |
|
|
42
|
-
| PDF | `pdf` | 打印、PDF 阅读器 |
|
|
43
|
-
| 起点 | `qidian` | 起点中文网 |
|
|
44
|
-
| 番茄 | `tomato` | 番茄小说 |
|
|
45
|
-
| 晋江 | `jinjiang` | 晋江文学城 |
|
|
46
|
-
| Markdown | `markdown` | 单文件合集备份 |
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## 功能详解
|
|
51
|
-
|
|
52
|
-
### 1. EPUB 导出
|
|
53
|
-
|
|
54
|
-
**完整流程:**
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
读取章节文件(stories/[name]/content/)
|
|
58
|
-
|
|
|
59
|
-
读取元数据(metadata.json 或 specification.md)
|
|
60
|
-
|
|
|
61
|
-
读取封面(cover.jpg 或自动生成)
|
|
62
|
-
|
|
|
63
|
-
Markdown -> XHTML 转换
|
|
64
|
-
|
|
|
65
|
-
生成目录(nav.xhtml + toc.ncx)
|
|
66
|
-
|
|
|
67
|
-
生成 content.opf(元数据 + manifest + spine)
|
|
68
|
-
|
|
|
69
|
-
打包为 EPUB(ZIP 格式)
|
|
70
|
-
|
|
|
71
|
-
验证(EPUBCheck 规则)
|
|
72
|
-
|
|
|
73
|
-
输出 .epub 文件
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**EPUB 文件结构:**
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
my-novel.epub (ZIP)
|
|
80
|
-
├── mimetype # 必须是第一个文件,不压缩
|
|
81
|
-
├── META-INF/
|
|
82
|
-
│ └── container.xml # 指向 content.opf
|
|
83
|
-
└── OEBPS/
|
|
84
|
-
├── content.opf # 包文件(元数据 + manifest + spine)
|
|
85
|
-
├── toc.ncx # 目录(EPUB 2 兼容)
|
|
86
|
-
├── nav.xhtml # 导航(EPUB 3)
|
|
87
|
-
├── cover.xhtml # 封面页
|
|
88
|
-
├── cover.jpg # 封面图片
|
|
89
|
-
├── stylesheet.css # 样式表
|
|
90
|
-
├── chapter-01.xhtml # 章节内容
|
|
91
|
-
├── chapter-02.xhtml
|
|
92
|
-
└── ...
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**元数据(Dublin Core):**
|
|
96
|
-
|
|
97
|
-
```xml
|
|
98
|
-
<dc:title>我的小说</dc:title>
|
|
99
|
-
<dc:creator>作者名</dc:creator>
|
|
100
|
-
<dc:language>zh-CN</dc:language>
|
|
101
|
-
<dc:identifier>urn:uuid:xxx</dc:identifier>
|
|
102
|
-
<dc:publisher>自出版</dc:publisher>
|
|
103
|
-
<dc:date>2025-02-09</dc:date>
|
|
104
|
-
<dc:description>一句话简介...</dc:description>
|
|
105
|
-
<dc:subject>玄幻</dc:subject>
|
|
106
|
-
<dc:rights>作者版权声明</dc:rights>
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
**Markdown -> XHTML 转换规则:**
|
|
110
|
-
|
|
111
|
-
| Markdown | XHTML | 说明 |
|
|
112
|
-
|----------|-------|------|
|
|
113
|
-
| `# 标题` | `<h1 class="chapter-title">标题</h1>` | 章节标题 |
|
|
114
|
-
| 普通段落 | `<p>段落内容</p>` | 自动缩进 2em |
|
|
115
|
-
| `"对话"` | `<p class="dialogue">"对话"</p>` | 对话段落 |
|
|
116
|
-
| `---` | `<hr class="scene-break" />` | 场景分隔 |
|
|
117
|
-
| `**粗体**` | `<strong>粗体</strong>` | 强调 |
|
|
118
|
-
| `*斜体*` | `<em>斜体</em>` | 强调 |
|
|
119
|
-
|
|
120
|
-
**输出示例:**
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
导出 EPUB 完成
|
|
124
|
-
|
|
125
|
-
文件:my-novel.epub
|
|
126
|
-
大小:856 KB
|
|
127
|
-
章节:30 章
|
|
128
|
-
字数:256,000 字
|
|
129
|
-
封面:自动生成
|
|
130
|
-
目录:30 项
|
|
131
|
-
验证:通过
|
|
132
|
-
|
|
133
|
-
位置:stories/my-novel/exports/epub/my-novel.epub
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
### 2. PDF 导出
|
|
139
|
-
|
|
140
|
-
**方案 A - 基础方案(无需外部依赖):**
|
|
141
|
-
|
|
142
|
-
```
|
|
143
|
-
Markdown -> HTML(内置解析器)
|
|
144
|
-
-> 嵌入 CSS 样式
|
|
145
|
-
-> 生成可打印 HTML 文件
|
|
146
|
-
-> 用户用浏览器"打印为 PDF"
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
**方案 B - 高级方案(需要 Pandoc):**
|
|
150
|
-
|
|
151
|
-
```
|
|
152
|
-
Markdown -> Pandoc -> HTML + CSS -> PDF
|
|
153
|
-
-> 或 LaTeX -> PDF(最佳排版质量)
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**页面设置预设:**
|
|
157
|
-
|
|
158
|
-
| 预设 | 纸张 | 字体 | 行距 | 适用 |
|
|
159
|
-
|------|------|------|------|------|
|
|
160
|
-
| `a5-print` | A5 (148x210mm) | 思源宋体 | 1.5 | 实体书打印 |
|
|
161
|
-
| `a4-read` | A4 (210x297mm) | 思源黑体 | 1.3 | 屏幕阅读 |
|
|
162
|
-
| `6x9-publish` | 6x9 英寸 | Times New Roman | 1.4 | 国际出版 |
|
|
163
|
-
| `custom` | 自定义 | 自定义 | 自定义 | 高级用户 |
|
|
164
|
-
|
|
165
|
-
**PDF 排版要求:**
|
|
166
|
-
|
|
167
|
-
| 维度 | 默认值 | 可选范围 |
|
|
168
|
-
|------|--------|---------|
|
|
169
|
-
| 纸张 | A5 | A4, B5, 6x9 英寸 |
|
|
170
|
-
| 边距 | 上下 2cm,左右 1.5cm | 自定义 |
|
|
171
|
-
| 字体 | 思源宋体(中文)/ Times New Roman(英文) | 自定义 |
|
|
172
|
-
| 字号 | 11pt | 10-14pt |
|
|
173
|
-
| 行距 | 1.5 倍 | 1.2-2.0 |
|
|
174
|
-
| 页码 | 居中底部 | 右下角 / 无 |
|
|
175
|
-
| 页眉 | 书名 | 章节名 / 无 |
|
|
176
|
-
|
|
177
|
-
**输出示例:**
|
|
178
|
-
|
|
179
|
-
```
|
|
180
|
-
导出 PDF 完成
|
|
181
|
-
|
|
182
|
-
文件:my-novel.pdf
|
|
183
|
-
大小:3.2 MB
|
|
184
|
-
页数:324 页
|
|
185
|
-
纸张:A5
|
|
186
|
-
字体:思源宋体
|
|
187
|
-
|
|
188
|
-
位置:stories/my-novel/exports/pdf/my-novel.pdf
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
### 3. 网文平台格式
|
|
194
|
-
|
|
195
|
-
#### 起点中文网(qidian)
|
|
196
|
-
|
|
197
|
-
```
|
|
198
|
-
转换规则:
|
|
199
|
-
1. 章节标题:# 标题 -> 第X章 标题(自动编号)
|
|
200
|
-
2. 去除所有 Markdown 格式标记
|
|
201
|
-
3. 段落空两个全角空格
|
|
202
|
-
4. 引号转换:""'' -> 「」『』(直角引号)
|
|
203
|
-
5. 场景分隔:--- -> 空行
|
|
204
|
-
6. 合并为单文件 TXT,UTF-8 编码
|
|
205
|
-
|
|
206
|
-
输出:stories/[name]/exports/platforms/qidian/my-novel.txt
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
#### 番茄小说(tomato)
|
|
210
|
-
|
|
211
|
-
```
|
|
212
|
-
转换规则:
|
|
213
|
-
1. 章节标题:# 标题 -> X. 标题
|
|
214
|
-
2. 去除 Markdown 格式
|
|
215
|
-
3. 段落间空一行
|
|
216
|
-
4. 每章独立文件
|
|
217
|
-
5. 章节 < 3000 字(超出自动提示拆分)
|
|
218
|
-
6. UTF-8 编码
|
|
219
|
-
|
|
220
|
-
输出:
|
|
221
|
-
stories/[name]/exports/platforms/tomato/
|
|
222
|
-
├── 001-chapter-title.txt
|
|
223
|
-
├── 002-chapter-title.txt
|
|
224
|
-
└── ...
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
#### 晋江文学城(jinjiang)
|
|
228
|
-
|
|
229
|
-
```
|
|
230
|
-
转换规则:
|
|
231
|
-
1. Markdown -> 简单 HTML(保留 <b>, <i>, <br>)
|
|
232
|
-
2. 章节标题自定义格式
|
|
233
|
-
3. UTF-8 编码
|
|
234
|
-
|
|
235
|
-
输出:stories/[name]/exports/platforms/jinjiang/my-novel.html
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**输出示例(起点格式):**
|
|
239
|
-
|
|
240
|
-
```
|
|
241
|
-
导出起点格式完成
|
|
242
|
-
|
|
243
|
-
文件:my-novel.txt
|
|
244
|
-
大小:512 KB
|
|
245
|
-
章节:30 章
|
|
246
|
-
总字数:256,000 字
|
|
247
|
-
格式检查:通过
|
|
248
|
-
- 章节标题格式正确
|
|
249
|
-
- 段落空两格
|
|
250
|
-
- 引号已转换为直角引号
|
|
251
|
-
|
|
252
|
-
位置:stories/my-novel/exports/platforms/qidian/my-novel.txt
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
---
|
|
256
|
-
|
|
257
|
-
### 4. Markdown 合集
|
|
258
|
-
|
|
259
|
-
将所有章节合并为单个 Markdown 文件,便于备份和分享。
|
|
260
|
-
|
|
261
|
-
```
|
|
262
|
-
转换规则:
|
|
263
|
-
1. 按章节顺序合并
|
|
264
|
-
2. 每章之间插入分隔线(---)
|
|
265
|
-
3. 在文件开头添加目录
|
|
266
|
-
4. 保留原始 Markdown 格式
|
|
267
|
-
|
|
268
|
-
输出:stories/[name]/exports/my-novel-complete.md
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
---
|
|
272
|
-
|
|
273
|
-
### 5. 自动目录生成
|
|
274
|
-
|
|
275
|
-
从章节文件自动生成目录:
|
|
276
|
-
|
|
277
|
-
```markdown
|
|
278
|
-
# 目录
|
|
279
|
-
|
|
280
|
-
- 第一章 开端 .................. 1
|
|
281
|
-
- 第二章 转折 .................. 15
|
|
282
|
-
- 第三章 冲突 .................. 28
|
|
283
|
-
...
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
**规则:**
|
|
287
|
-
- 读取每个章节文件的一级标题(`# 标题`)
|
|
288
|
-
- 自动编号(如果原文没有编号)
|
|
289
|
-
- EPUB:嵌入式导航(nav.xhtml + toc.ncx)
|
|
290
|
-
- PDF:带页码的目录
|
|
291
|
-
- TXT:文本目录(无页码)
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
### 6. 附录生成(可选)
|
|
296
|
-
|
|
297
|
-
当使用 `--include-appendix` 时,自动从 `spec/knowledge/` 提取:
|
|
298
|
-
|
|
299
|
-
```markdown
|
|
300
|
-
# 附录 A:角色表
|
|
301
|
-
|
|
302
|
-
| 角色 | 身份 | 关系 |
|
|
303
|
-
|------|------|------|
|
|
304
|
-
| 李明 | 青云宗弟子 | 主角 |
|
|
305
|
-
| 苏婉儿 | 天都城才女 | 女主角 |
|
|
306
|
-
| ... | ... | ... |
|
|
307
|
-
|
|
308
|
-
# 附录 B:世界观设定
|
|
309
|
-
|
|
310
|
-
[从 spec/knowledge/ 中的世界观文档提取]
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
---
|
|
314
|
-
|
|
315
|
-
## 输出目录结构
|
|
316
|
-
|
|
317
|
-
```
|
|
318
|
-
stories/[story-name]/exports/
|
|
319
|
-
├── epub/
|
|
320
|
-
│ └── my-novel.epub
|
|
321
|
-
├── pdf/
|
|
322
|
-
│ └── my-novel.pdf
|
|
323
|
-
├── platforms/
|
|
324
|
-
│ ├── qidian/
|
|
325
|
-
│ │ └── my-novel.txt
|
|
326
|
-
│ ├── tomato/
|
|
327
|
-
│ │ ├── 001-chapter-title.txt
|
|
328
|
-
│ │ └── ...
|
|
329
|
-
│ └── jinjiang/
|
|
330
|
-
│ └── my-novel.html
|
|
331
|
-
├── my-novel-complete.md # Markdown 合集
|
|
332
|
-
└── metadata.json # 导出时使用的元数据快照
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
---
|
|
336
|
-
|
|
337
|
-
## 与其他命令集成
|
|
338
|
-
|
|
339
|
-
### 与 /write 集成
|
|
340
|
-
|
|
341
|
-
```
|
|
342
|
-
全书写完 ->
|
|
343
|
-
提示:"恭喜完成全书!是否导出为 EPUB?"
|
|
344
|
-
用户确认 -> 自动引导:
|
|
345
|
-
1. /metadata edit(检查元数据)
|
|
346
|
-
2. /generate-cover(生成封面)
|
|
347
|
-
3. /export --format epub
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
### 与 /translate 集成
|
|
351
|
-
|
|
352
|
-
```
|
|
353
|
-
/export --format epub --lang en
|
|
354
|
-
-> 检查 translations/en/ 是否存在
|
|
355
|
-
-> 存在:导出英文版 EPUB
|
|
356
|
-
-> 不存在:提示先运行 /translate --to en --all
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
### 与 /analyze 集成
|
|
360
|
-
|
|
361
|
-
```
|
|
362
|
-
/analyze --export-ready
|
|
363
|
-
-> 检查导出准备状态:
|
|
364
|
-
- 所有章节完整
|
|
365
|
-
- 元数据已设置
|
|
366
|
-
- 封面已准备
|
|
367
|
-
- 无严重格式错误
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
### 与 /track 集成
|
|
371
|
-
|
|
372
|
-
```
|
|
373
|
-
/track 显示进度时,包含导出状态:
|
|
374
|
-
导出状态:
|
|
375
|
-
- EPUB:已导出(2025-02-09)
|
|
376
|
-
- PDF:未导出
|
|
377
|
-
- 起点:未导出
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
---
|
|
381
|
-
|
|
382
|
-
## 导出质量检查
|
|
383
|
-
|
|
384
|
-
### 导出前自动检查
|
|
385
|
-
|
|
386
|
-
| 检查项 | 说明 | 处理 |
|
|
387
|
-
|--------|------|------|
|
|
388
|
-
| 章节完整性 | 所有预期章节文件是否存在 | 错误 -> 列出缺失章节 |
|
|
389
|
-
| 元数据 | 书名、作者是否设置 | 警告 -> 使用默认值 |
|
|
390
|
-
| 封面 | 封面图是否存在 | 警告 -> 自动生成基础封面 |
|
|
391
|
-
| Markdown 格式 | 标题层级是否正确 | 警告 -> 自动修正 |
|
|
392
|
-
| 特殊字符 | 是否有不兼容字符 | 自动转义 |
|
|
393
|
-
| 文件大小 | 封面图是否过大 | 警告 -> 建议压缩 |
|
|
394
|
-
|
|
395
|
-
### 导出后验证
|
|
396
|
-
|
|
397
|
-
```
|
|
398
|
-
导出完成
|
|
399
|
-
|
|
400
|
-
质量检查:
|
|
401
|
-
章节完整性:30/30
|
|
402
|
-
元数据:完整
|
|
403
|
-
封面:1600x2400 (OK)
|
|
404
|
-
格式验证:通过
|
|
405
|
-
文件大小:856 KB (OK)
|
|
406
|
-
|
|
407
|
-
警告:
|
|
408
|
-
第 15 章标题层级异常(## 应该是 #)
|
|
409
|
-
封面图较大(2.1 MB),建议压缩到 < 1 MB
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
---
|
|
413
|
-
|
|
414
|
-
## 常见陷阱
|
|
415
|
-
|
|
416
|
-
### 1. 封面尺寸不对
|
|
417
|
-
|
|
418
|
-
**症状**:EPUB 封面在阅读器中显示被拉伸或裁剪
|
|
419
|
-
**解决**:使用 2:3 比例(推荐 1600x2400 像素),可通过 `/generate-cover` 自动处理
|
|
420
|
-
|
|
421
|
-
### 2. PDF 文件过大
|
|
422
|
-
|
|
423
|
-
**症状**:PDF 超过 10MB
|
|
424
|
-
**原因**:封面图片未压缩
|
|
425
|
-
**解决**:压缩封面图到 < 1MB,或使用纯文本封面
|
|
426
|
-
|
|
427
|
-
### 3. 网文平台上传被拒
|
|
428
|
-
|
|
429
|
-
**症状**:格式不符合平台要求
|
|
430
|
-
**解决**:使用对应平台的专用格式命令(如 `--format qidian`),系统会自动处理格式规范
|
|
431
|
-
|
|
432
|
-
### 4. 目录显示不正确
|
|
433
|
-
|
|
434
|
-
**症状**:EPUB 目录缺少章节
|
|
435
|
-
**原因**:章节文件缺少一级标题
|
|
436
|
-
**解决**:确保每个章节文件有 `# 章节标题`
|
|
437
|
-
|
|
438
|
-
### 5. 中文字体不显示
|
|
439
|
-
|
|
440
|
-
**症状**:PDF 中文字显示为方块
|
|
441
|
-
**原因**:系统缺少中文字体
|
|
442
|
-
**解决**:安装思源宋体(Source Han Serif),或使用 EPUB 格式(阅读器自带字体)
|
|
443
|
-
|
|
444
|
-
---
|
|
445
|
-
|
|
446
|
-
## 检查清单
|
|
447
|
-
|
|
448
|
-
**导出前:**
|
|
449
|
-
- [ ] 所有章节已完成?
|
|
450
|
-
- [ ] 元数据已设置?(`/metadata edit`)
|
|
451
|
-
- [ ] 封面已准备?(`/generate-cover`)
|
|
452
|
-
- [ ] 章节顺序正确?
|
|
453
|
-
- [ ] 章节标题格式统一(`# 标题`)?
|
|
454
|
-
|
|
455
|
-
**导出后:**
|
|
456
|
-
- [ ] 文件能正常打开?
|
|
457
|
-
- [ ] 目录显示正确?
|
|
458
|
-
- [ ] 封面显示正常?
|
|
459
|
-
- [ ] 排版美观?
|
|
460
|
-
- [ ] 字数统计正确?
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 封面生成 - /generate-cover
|
|
3
|
-
description: 生成或上传小说封面图片
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 封面生成
|
|
7
|
-
|
|
8
|
-
## 使用方法
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
/generate-cover [选项]
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
### 基本用法
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
/generate-cover # 自动生成基础封面
|
|
18
|
-
/generate-cover --upload cover.jpg # 上传自定义封面
|
|
19
|
-
/generate-cover --template modern # 使用指定模板
|
|
20
|
-
/generate-cover --template classic --color "#2c3e50" # 指定模板和颜色
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### 选项
|
|
24
|
-
|
|
25
|
-
| 选项 | 说明 | 默认值 |
|
|
26
|
-
|------|------|--------|
|
|
27
|
-
| `--upload <文件>` | 上传自定义封面图片 | - |
|
|
28
|
-
| `--template <模板>` | 选择封面模板 | minimal |
|
|
29
|
-
| `--color <颜色>` | 背景颜色(HEX) | 模板默认色 |
|
|
30
|
-
| `--output <路径>` | 输出路径 | stories/[name]/cover.jpg |
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## 封面模板
|
|
35
|
-
|
|
36
|
-
| 模板 | 风格 | 默认颜色 | 适用题材 |
|
|
37
|
-
|------|------|---------|---------|
|
|
38
|
-
| `modern` | 现代简约,大字标题,渐变背景 | #1a1a2e -> #16213e | 都市、现代、科幻 |
|
|
39
|
-
| `classic` | 古典风格,竖排书名,纹理背景 | #2c1810 | 古代、武侠、仙侠 |
|
|
40
|
-
| `minimal` | 极简风格,白底黑字,留白多 | #ffffff | 通用、文学 |
|
|
41
|
-
| `dark` | 暗色系,粗体标题,压迫感 | #0d0d0d | 悬疑、恐怖、黑暗 |
|
|
42
|
-
|
|
43
|
-
### 模板详细说明
|
|
44
|
-
|
|
45
|
-
#### modern - 现代简约
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
┌─────────────────────┐
|
|
49
|
-
│ │
|
|
50
|
-
│ ▓▓▓▓▓▓▓▓▓▓▓▓▓ │ 渐变背景
|
|
51
|
-
│ │
|
|
52
|
-
│ │
|
|
53
|
-
│ 我 的 小 说 │ 书名(大号,居中)
|
|
54
|
-
│ │
|
|
55
|
-
│ ── 副标题 ── │ 副标题(可选)
|
|
56
|
-
│ │
|
|
57
|
-
│ │
|
|
58
|
-
│ │
|
|
59
|
-
│ 作 者 名 │ 作者名(底部)
|
|
60
|
-
│ │
|
|
61
|
-
└─────────────────────┘
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
#### classic - 古典风格
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
┌─────────────────────┐
|
|
68
|
-
│ ╔═══════════════╗ │
|
|
69
|
-
│ ║ ║ │ 纹理边框
|
|
70
|
-
│ ║ 我 ║ │
|
|
71
|
-
│ ║ 的 ║ │ 竖排书名
|
|
72
|
-
│ ║ 小 ║ │
|
|
73
|
-
│ ║ 说 ║ │
|
|
74
|
-
│ ║ ║ │
|
|
75
|
-
│ ║ ───── ║ │
|
|
76
|
-
│ ║ 作者名 ║ │
|
|
77
|
-
│ ║ ║ │
|
|
78
|
-
│ ╚═══════════════╝ │
|
|
79
|
-
└─────────────────────┘
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
#### minimal - 极简风格
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
┌─────────────────────┐
|
|
86
|
-
│ │
|
|
87
|
-
│ │
|
|
88
|
-
│ │
|
|
89
|
-
│ │
|
|
90
|
-
│ 我的小说 │ 书名(左对齐或居中)
|
|
91
|
-
│ ───────── │ 分隔线
|
|
92
|
-
│ 作者名 │ 作者名
|
|
93
|
-
│ │
|
|
94
|
-
│ │
|
|
95
|
-
│ │
|
|
96
|
-
│ │
|
|
97
|
-
│ │
|
|
98
|
-
└─────────────────────┘
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
#### dark - 暗色系
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
┌─────────────────────┐
|
|
105
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
|
|
106
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ 暗色纹理背景
|
|
107
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
|
|
108
|
-
│ │
|
|
109
|
-
│ 我 的 小 说 │ 书名(粗体,白色)
|
|
110
|
-
│ │
|
|
111
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
|
|
112
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
|
|
113
|
-
│ │
|
|
114
|
-
│ 作 者 名 │ 作者名(灰色)
|
|
115
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
|
|
116
|
-
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│
|
|
117
|
-
└─────────────────────┘
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## 封面要求
|
|
123
|
-
|
|
124
|
-
| 维度 | 推荐值 | 说明 |
|
|
125
|
-
|------|--------|------|
|
|
126
|
-
| 尺寸 | 1600 x 2400 像素 | 2:3 比例(EPUB 标准) |
|
|
127
|
-
| 格式 | JPG 或 PNG | JPG 较小,PNG 更清晰 |
|
|
128
|
-
| 大小 | < 1 MB | 太大影响 EPUB 文件大小 |
|
|
129
|
-
| 色彩 | RGB | 不使用 CMYK(CMYK 用于印刷) |
|
|
130
|
-
| 分辨率 | >= 300 DPI | 适合打印(72 DPI 仅适合屏幕) |
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## 上传封面
|
|
135
|
-
|
|
136
|
-
### 流程
|
|
137
|
-
|
|
138
|
-
```
|
|
139
|
-
/generate-cover --upload ~/Desktop/my-cover.jpg
|
|
140
|
-
|
|
|
141
|
-
验证图片:
|
|
142
|
-
- 格式:JPG/PNG?
|
|
143
|
-
- 尺寸:接近 2:3?
|
|
144
|
-
- 大小:< 1 MB?
|
|
145
|
-
- 色彩:RGB?
|
|
146
|
-
|
|
|
147
|
-
通过 -> 复制到 stories/[name]/cover.jpg
|
|
148
|
-
不通过 -> 提示问题和建议
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### 验证规则
|
|
152
|
-
|
|
153
|
-
| 检查项 | 通过条件 | 不通过处理 |
|
|
154
|
-
|--------|---------|-----------|
|
|
155
|
-
| 格式 | JPG 或 PNG | 错误:请转换格式 |
|
|
156
|
-
| 比例 | 2:3 +/- 5% | 警告:建议裁剪为 2:3 |
|
|
157
|
-
| 大小 | < 1 MB | 警告:建议压缩 |
|
|
158
|
-
| 最小尺寸 | >= 800x1200 | 警告:分辨率偏低 |
|
|
159
|
-
| 最大尺寸 | <= 4000x6000 | 警告:建议缩小 |
|
|
160
|
-
|
|
161
|
-
### 示例
|
|
162
|
-
|
|
163
|
-
```
|
|
164
|
-
/generate-cover --upload ~/Desktop/my-cover.jpg
|
|
165
|
-
|
|
166
|
-
封面验证:
|
|
167
|
-
格式:JPG
|
|
168
|
-
尺寸:1600x2400 (2:3)
|
|
169
|
-
大小:450 KB
|
|
170
|
-
色彩:RGB
|
|
171
|
-
|
|
172
|
-
已保存到:stories/my-novel/cover.jpg
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## 自动生成封面
|
|
178
|
-
|
|
179
|
-
### 流程
|
|
180
|
-
|
|
181
|
-
```
|
|
182
|
-
/generate-cover --template modern
|
|
183
|
-
|
|
|
184
|
-
读取元数据:
|
|
185
|
-
- 书名(metadata.json 或 specification.md)
|
|
186
|
-
- 副标题(可选)
|
|
187
|
-
- 作者名
|
|
188
|
-
|
|
|
189
|
-
应用模板:
|
|
190
|
-
- 背景色/渐变
|
|
191
|
-
- 文字排版
|
|
192
|
-
- 装饰元素
|
|
193
|
-
|
|
|
194
|
-
生成 1600x2400 图片
|
|
195
|
-
|
|
|
196
|
-
保存到 stories/[name]/cover.jpg
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### 生成封面的元素
|
|
200
|
-
|
|
201
|
-
| 元素 | 来源 | 必需 |
|
|
202
|
-
|------|------|------|
|
|
203
|
-
| 书名 | metadata.json -> title | 是 |
|
|
204
|
-
| 副标题 | metadata.json -> subtitle | 否 |
|
|
205
|
-
| 作者名 | metadata.json -> author | 是 |
|
|
206
|
-
| 背景色 | 模板默认或 `--color` 指定 | 自动 |
|
|
207
|
-
|
|
208
|
-
### 示例
|
|
209
|
-
|
|
210
|
-
```
|
|
211
|
-
/generate-cover --template modern
|
|
212
|
-
|
|
213
|
-
封面生成完成:
|
|
214
|
-
模板:modern
|
|
215
|
-
书名:我的小说
|
|
216
|
-
作者:作者名
|
|
217
|
-
尺寸:1600x2400
|
|
218
|
-
大小:128 KB
|
|
219
|
-
|
|
220
|
-
已保存到:stories/my-novel/cover.jpg
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
---
|
|
224
|
-
|
|
225
|
-
## 封面与导出格式的关系
|
|
226
|
-
|
|
227
|
-
| 格式 | 封面用途 | 要求 |
|
|
228
|
-
|------|---------|------|
|
|
229
|
-
| EPUB | 嵌入电子书,阅读器显示 | 必需,1600x2400 |
|
|
230
|
-
| PDF | 第一页封面 | 推荐,按纸张尺寸缩放 |
|
|
231
|
-
| 网文平台 | 不嵌入,平台单独上传 | 不需要 |
|
|
232
|
-
| Markdown | 不嵌入 | 不需要 |
|
|
233
|
-
|
|
234
|
-
---
|
|
235
|
-
|
|
236
|
-
## 常见陷阱
|
|
237
|
-
|
|
238
|
-
### 1. 封面比例不对
|
|
239
|
-
|
|
240
|
-
**症状**:在阅读器中被拉伸或出现黑边
|
|
241
|
-
**解决**:严格使用 2:3 比例(1600x2400),上传时系统会自动检测
|
|
242
|
-
|
|
243
|
-
### 2. 封面文件过大
|
|
244
|
-
|
|
245
|
-
**症状**:EPUB 文件超过 5MB
|
|
246
|
-
**解决**:压缩封面到 < 1MB,JPG 质量 80% 通常足够
|
|
247
|
-
|
|
248
|
-
### 3. 文字看不清
|
|
249
|
-
|
|
250
|
-
**症状**:自动生成的封面文字与背景对比度不够
|
|
251
|
-
**解决**:选择与书名颜色对比明显的背景色,或换用其他模板
|
|
252
|
-
|
|
253
|
-
### 4. 打印封面模糊
|
|
254
|
-
|
|
255
|
-
**症状**:打印出来的封面不清晰
|
|
256
|
-
**解决**:使用 >= 300 DPI 的高分辨率图片,推荐 2400x3600 或更高
|