更新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

@@ -248,6 +248,18 @@
<i class="bi bi-eye-slash"></i>
</button>
</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>
@@ -340,16 +352,6 @@
name="custom_prompt_translate" rows="3"
placeholder="可选,如“人名保持原文不翻译”"></textarea>
</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">
<input class="form-check-input" type="checkbox" role="switch"
id="refine_markdown" name="refine_markdown">
@@ -590,7 +592,9 @@
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<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>
<ol>
<li>
@@ -1478,8 +1482,8 @@
convertEnginSelect.value = getFromStorage('translator_convert_engin', 'mineru');
updateConvertEnginUI();
toLangSelect.value = getFromStorage('translator_to_lang', '中文');
formulaCheckbox.checked = getFromStorage('translator_formula_ocr','true') === 'true';
codeCheckbox.checked = getFromStorage('translator_code_ocr','true') === 'true';
formulaCheckbox.checked = getFromStorage('translator_formula_ocr', 'true') === 'true';
codeCheckbox.checked = getFromStorage('translator_code_ocr', 'true') === 'true';
refineCheckbox.checked = getFromStorage('translator_refine_markdown') === 'true';
customPromptTranslateArea.value = getFromStorage("custom_prompt_translate");