Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZeroxZhang/huashu-bookwriter
/ functions
Functions
32 in github.com/ZeroxZhang/huashu-bookwriter
⨍
Functions
32
◇
Types & classes
9
↓ 6 callers
Method
add_error
添加验证错误
scripts/validate_structure.py:39
↓ 4 callers
Function
get_system
获取操作系统类型
scripts/export_pdf.py:24
↓ 3 callers
Method
_save_state
保存状态到文件
scripts/agent_scheduler.py:284
↓ 2 callers
Function
check_pandoc
检查pandoc是否安装
scripts/export_pdf.py:70
↓ 2 callers
Function
check_xelatex
检查xelatex是否安装
scripts/export_pdf.py:83
↓ 2 callers
Function
get_chinese_fonts
根据系统返回可用的中文字体列表
scripts/export_pdf.py:29
↓ 2 callers
Function
get_install_instructions
返回安装指南
scripts/export_pdf.py:109
↓ 1 callers
Method
_generate_prompt
生成Agent执行提示
scripts/agent_scheduler.py:205
↓ 1 callers
Method
advance_phase
推进到下一阶段
scripts/agent_scheduler.py:176
↓ 1 callers
Method
can_spawn
检查是否可以启动该角色的Agent
scripts/agent_scheduler.py:127
↓ 1 callers
Method
check_chapters
检查章节结构
scripts/validate_structure.py:136
↓ 1 callers
Function
check_fc_list
检查fc-list是否可用(用于字体检测)
scripts/export_pdf.py:96
↓ 1 callers
Method
check_forbidden_words_optimized
检查禁用词(优化版本:使用单次正则扫描)
scripts/validate_structure.py:159
↓ 1 callers
Method
check_metadata
检查元数据块
scripts/validate_structure.py:110
↓ 1 callers
Method
check_structure
检查章节结构
scripts/validate_structure.py:170
↓ 1 callers
Method
complete_task
标记任务完成
scripts/agent_scheduler.py:166
↓ 1 callers
Function
export_pdf
将Markdown转换为PDF Args: input_file: 输入的Markdown文件路径 output_file: 输出的PDF文件路径 toc: 是否生成目录 toc_depth: 目录深度
scripts/export_pdf.py:133
↓ 1 callers
Function
find_available_font
尝试找到系统中可用的字体 Args: fonts: 字体列表 Returns: 第一个可用的字体名称,如果都不可用返回None
scripts/export_pdf.py:42
↓ 1 callers
Method
get_next_tasks
获取下一批任务
scripts/agent_scheduler.py:187
↓ 1 callers
Function
list_fonts
列出系统可用的中文字体
scripts/export_pdf.py:213
↓ 1 callers
Method
load_state
从文件加载状态
scripts/agent_scheduler.py:290
↓ 1 callers
Function
main
()
scripts/agent_scheduler.py:313
↓ 1 callers
Function
main
()
scripts/validate_structure.py:231
↓ 1 callers
Function
main
()
scripts/export_pdf.py:250
↓ 1 callers
Method
print_results
输出验证结果
scripts/validate_structure.py:208
↓ 1 callers
Method
spawn_agent
启动Agent执行任务 Args: role: Agent角色 task: 任务描述 Returns: 执行结果
scripts/agent_scheduler.py:131
↓ 1 callers
Method
to_dict
转换为字典
scripts/agent_scheduler.py:60
↓ 1 callers
Method
validate
执行完整验证
scripts/validate_structure.py:98
Method
__init__
初始化调度器 Args: book_id: 书籍ID work_dir: 工作目录
scripts/agent_scheduler.py:107
Method
__init__
(self, content: str)
scripts/validate_structure.py:88
Method
error_count
错误数量
scripts/validate_structure.py:44
Method
warning_count
警告数量
scripts/validate_structure.py:49