MCPcopy Create free account

hub / github.com/Vonng/ddia / functions

Functions19 in github.com/Vonng/ddia

↓ 2 callersFunctionconvert
(zh_folder, tw_folder)
bin/zh-tw.py:70
↓ 2 callersFunctionconvert
read >> convert >> write file Args: infile (str): input file outfile (str): output file cfg (str): config
bin/translate.py:16
↓ 2 callersFunctionprocess_file
处理单个 Markdown 文件 Args: input_path: 输入文件路径 output_path: 输出文件路径
bin/preprocess-epub.py:59
↓ 1 callersFunction_escape_alt_text
Escape `]` in alt text to avoid breaking Markdown image syntax.
bin/preprocess-epub.py:20
↓ 1 callersFunctioncheck_file_status
Check if a file exists and add status marker if needed
bin/toc.py:161
↓ 1 callersFunctioncli
()
bin/translate.py:12
↓ 1 callersFunctionconvert_file
(src_filepath, dst_filepath, src_folder, dst_folder, cfg='s2twp.json')
bin/zh-tw.py:37
↓ 1 callersFunctionconvert_markdown
转换 Hugo figure shortcode 和绝对路径图片引用。 Args: text: Markdown 文本内容 Returns: 转换后的文本
bin/preprocess-epub.py:25
↓ 1 callersFunctionextract_front_matter_title
Extract title from Hugo front matter
bin/toc.py:15
↓ 1 callersFunctionextract_headings
Extract headings up to specified depth from markdown content max_depth=1 -> extract H2 only max_depth=2 -> extract H2-H3 max_depth=3
bin/toc.py:36
↓ 1 callersFunctionformat_toc_entries
Format TOC entries with proper indentation
bin/toc.py:132
↓ 1 callersFunctiongenerate_toc_entry
Generate TOC entry for a file
bin/toc.py:78
↓ 1 callersFunctionmain
()
bin/toc.py:185
↓ 1 callersFunctionmain
主函数
bin/preprocess-epub.py:80
↓ 1 callersFunctionprocess_urls
处理 Markdown 中的相对 URL
bin/zh-tw.py:5
Functionfile
read >> convert >> write file Args: infile (str): input file outfile (str): output file cfg (str): config
bin/translate.py:33
Functionreplace_figure_shortcode
(match)
bin/preprocess-epub.py:35
Functionreplace_func
(match)
bin/zh-tw.py:20
Functionrepo
(infolder, outfolder, cfg)
bin/translate.py:47