mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
🎨 桌面端和浏览器端支持英文拼写检查 https://github.com/siyuan-note/siyuan/issues/597
This commit is contained in:
parent
40bbc6cc98
commit
fc66472637
13 changed files with 29 additions and 3 deletions
|
|
@ -806,6 +806,8 @@
|
|||
"outdent": "Outdent",
|
||||
"outlineOutdent": "List outline outdent",
|
||||
"outlineOutdentTip": "After enabling, the outdent will be using the list outline logic, i.e. moving the list items below the parent",
|
||||
"spellcheck": "Spell Check",
|
||||
"spellcheckTip": "After enabling, the browser's built-in spell check function will be used. Currently, only English spell check is supported",
|
||||
"over": "over",
|
||||
"preview": "Export Preview",
|
||||
"quote": "Blockquote",
|
||||
|
|
|
|||
|
|
@ -806,6 +806,8 @@
|
|||
"outdent": "anular la sangría",
|
||||
"outlineOutdent": "Lista de contorno sin sangría",
|
||||
"outlineOutdentTip": "Después de habilitar, el outdent utilizará la lógica de esquema de la lista, es decir, moviendo los elementos de la lista debajo del padre",
|
||||
"spellcheck": "Corrección ortográfica",
|
||||
"spellcheckTip": "Después de habilitar, se utilizará la función de revisión ortográfica integrada del navegador. Actualmente, solo se admite la revisión ortográfica en inglés",
|
||||
"over": "sobre",
|
||||
"preview": "Vista previa de la exportación",
|
||||
"quote": "Párrafo cita",
|
||||
|
|
|
|||
|
|
@ -806,6 +806,8 @@
|
|||
"outdent": "Outdent",
|
||||
"outlineOutdent": "Liste des retraits excessifs du contour",
|
||||
"outlineOutdentTip": "Après l'activation, le retrait négatif utilisera la logique de contour de la liste, c'est-à-dire en déplaçant les éléments de la liste sous le parent",
|
||||
"spellcheck": "Vérification orthographique",
|
||||
"spellcheckTip": "Après l'activation, la fonction de vérification orthographique intégrée du navigateur sera utilisée. Actuellement, seule la vérification orthographique en anglais est prise en charge",
|
||||
"over": "over",
|
||||
"preview": "Aperçu de l'exportation",
|
||||
"quote": "Citation de bloc",
|
||||
|
|
|
|||
|
|
@ -806,6 +806,8 @@
|
|||
"outdent": "列表反向縮進",
|
||||
"outlineOutdent": "列表大綱反向縮進",
|
||||
"outlineOutdentTip": "啟用後將使用列表大綱式邏輯反向縮進,即將列表項移動到父級下方",
|
||||
"spellcheck": "拼寫檢查",
|
||||
"spellcheckTip": "啟用後將使用瀏覽器內置的拼寫檢查功能,目前僅支持英文拼寫檢查",
|
||||
"over": "超過",
|
||||
"preview": "匯出預覽",
|
||||
"quote": "引述",
|
||||
|
|
|
|||
|
|
@ -806,6 +806,8 @@
|
|||
"outdent": "列表反向缩进",
|
||||
"outlineOutdent": "列表大纲反向缩进",
|
||||
"outlineOutdentTip": "启用后将使用列表大纲式逻辑反向缩进,即将列表项移动到父级下方",
|
||||
"spellcheck": "拼写检查",
|
||||
"spellcheckTip": "启用后将使用浏览器内置的拼写检查功能,目前仅支持英文拼写检查",
|
||||
"over": "超过",
|
||||
"preview": "导出预览",
|
||||
"quote": "引述",
|
||||
|
|
|
|||
|
|
@ -199,6 +199,8 @@ const boot = () => {
|
|||
mainWindow.webContents.userAgent = 'SiYuan/' + appVer +
|
||||
' https://b3log.org/siyuan Electron'
|
||||
|
||||
mainWindow.webContents.session.setSpellCheckerLanguages(['en-US'])
|
||||
|
||||
// 发起互联网服务请求时绕过安全策略 https://github.com/siyuan-note/siyuan/issues/5516
|
||||
mainWindow.webContents.session.webRequest.onBeforeSendHeaders(
|
||||
(details, cb) => {
|
||||
|
|
|
|||
|
|
@ -133,6 +133,14 @@ export const editor = {
|
|||
<span class="fn__space"></span>
|
||||
<input class="b3-switch fn__flex-center" id="listLogicalOutdent" type="checkbox"${window.siyuan.config.editor.listLogicalOutdent ? " checked" : ""}/>
|
||||
</label>
|
||||
<label class="fn__flex b3-label">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.spellcheck}
|
||||
<div class="b3-label__text">${window.siyuan.languages.spellcheckTip}</div>
|
||||
</div>
|
||||
<span class="fn__space"></span>
|
||||
<input class="b3-switch fn__flex-center" id="spellcheck" type="checkbox"${window.siyuan.config.editor.spellcheck ? " checked" : ""}/>
|
||||
</label>
|
||||
<label class="fn__flex b3-label">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.md31}
|
||||
|
|
@ -298,6 +306,7 @@ export const editor = {
|
|||
codeSyntaxHighlightLineNum: (editor.element.querySelector("#codeSyntaxHighlightLineNum") as HTMLInputElement).checked,
|
||||
embedBlockBreadcrumb: (editor.element.querySelector("#embedBlockBreadcrumb") as HTMLInputElement).checked,
|
||||
listLogicalOutdent: (editor.element.querySelector("#listLogicalOutdent") as HTMLInputElement).checked,
|
||||
spellcheck: (editor.element.querySelector("#spellcheck") as HTMLInputElement).checked,
|
||||
floatWindowMode: (editor.element.querySelector("#floatWindowMode") as HTMLInputElement).checked ? 0 : 1,
|
||||
plantUMLServePath: (editor.element.querySelector("#plantUMLServePath") as HTMLInputElement).value,
|
||||
katexMacros: (editor.element.querySelector("#katexMacros") as HTMLTextAreaElement).value,
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -283,6 +283,7 @@ declare interface IEditor {
|
|||
rtl: boolean;
|
||||
readOnly: boolean;
|
||||
listLogicalOutdent: boolean;
|
||||
spellcheck: boolean;
|
||||
katexMacros: string;
|
||||
fullWidth: boolean;
|
||||
floatWindowMode: number;
|
||||
|
|
|
|||
4
app/stage/protyle/js/lute/lute.min.js
vendored
4
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue