更新readme

This commit is contained in:
xunbu
2025-07-19 19:44:38 +08:00
parent f75f49c4ba
commit a9ce4f7935
2 changed files with 22 additions and 15 deletions

View File

@@ -1,7 +1,10 @@
# DocuTranslate # DocuTranslate
[![GitHub stars](https://img.shields.io/github/stars/xunbu/docutranslate?style=flat&label=Stars&logo=github&color=blue)](https://github.com/xunbu/docutranslate) [![GitHub stars](https://img.shields.io/github/stars/xunbu/docutranslate?style=flats&logo=github&color=blue)](https://github.com/xunbu/docutranslate)
[![PyPI version](https://img.shields.io/pypi/v/docutranslate)](https://github.com/xunbu/docutranslate) [![github下载数](https://img.shields.io/github/downloads/xunbu/docutranslate/total?logo=github)](https://github.com/xunbu/docutranslate/releases)
[![PyPI version](https://img.shields.io/pypi/v/docutranslate)](https://pypi.org/project/docutranslate/)
![python版本](https://img.shields.io/badge/Python-3.11+-3776AB?logo=python&logoColor=white)
![开源协议](https://img.shields.io/github/license/xunbu/docutranslate)
文件翻译工具,借助[docling](https://github.com/docling-project/docling)、[minerU](https://mineru.net/)与大语言模型实现多种格式文件的翻译 文件翻译工具,借助[docling](https://github.com/docling-project/docling)、[minerU](https://mineru.net/)与大语言模型实现多种格式文件的翻译

View File

@@ -248,6 +248,18 @@
<i class="bi bi-eye-slash"></i> <i class="bi bi-eye-slash"></i>
</button> </button>
</div> </div>
</div>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" role="switch"
id="formula_ocr"
name="formula_ocr" checked>
<label class="form-check-label" for="formula_ocr">公式识别</label>
</div>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" role="switch" id="code_ocr"
name="code_ocr" checked>
<label class="form-check-label" for="code_ocr">代码识别</label>
</div> </div>
</div> </div>
</div> </div>
@@ -340,16 +352,6 @@
name="custom_prompt_translate" rows="3" name="custom_prompt_translate" rows="3"
placeholder="可选,如“人名保持原文不翻译”"></textarea> placeholder="可选,如“人名保持原文不翻译”"></textarea>
</div> </div>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" role="switch" id="formula_ocr"
name="formula_ocr" checked>
<label class="form-check-label" for="formula_ocr">公式识别</label>
</div>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" role="switch" id="code_ocr"
name="code_ocr" checked>
<label class="form-check-label" for="code_ocr">代码识别</label>
</div>
<div class="form-check form-switch mb-2"> <div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" role="switch" <input class="form-check-input" type="checkbox" role="switch"
id="refine_markdown" name="refine_markdown"> id="refine_markdown" name="refine_markdown">
@@ -590,7 +592,9 @@
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p><i class="bi bi-camera-video me-2"></i>视频教程可以在b站搜索 <a href="https://search.bilibili.com/all?keyword=docutranslate" target="_blank">docutranslate</a> 获取</p> <p><i class="bi bi-camera-video me-2"></i>视频教程可以在b站搜索 <a
href="https://search.bilibili.com/all?keyword=docutranslate" target="_blank">docutranslate</a>
获取</p>
<p>欢迎使用 DocuTranslate请按照以下步骤完成文档翻译</p> <p>欢迎使用 DocuTranslate请按照以下步骤完成文档翻译</p>
<ol> <ol>
<li> <li>
@@ -1478,8 +1482,8 @@
convertEnginSelect.value = getFromStorage('translator_convert_engin', 'mineru'); convertEnginSelect.value = getFromStorage('translator_convert_engin', 'mineru');
updateConvertEnginUI(); updateConvertEnginUI();
toLangSelect.value = getFromStorage('translator_to_lang', '中文'); toLangSelect.value = getFromStorage('translator_to_lang', '中文');
formulaCheckbox.checked = getFromStorage('translator_formula_ocr','true') === 'true'; formulaCheckbox.checked = getFromStorage('translator_formula_ocr', 'true') === 'true';
codeCheckbox.checked = getFromStorage('translator_code_ocr','true') === 'true'; codeCheckbox.checked = getFromStorage('translator_code_ocr', 'true') === 'true';
refineCheckbox.checked = getFromStorage('translator_refine_markdown') === 'true'; refineCheckbox.checked = getFromStorage('translator_refine_markdown') === 'true';
customPromptTranslateArea.value = getFromStorage("custom_prompt_translate"); customPromptTranslateArea.value = getFromStorage("custom_prompt_translate");