diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml
index 55adc1fc..97098505 100644
--- a/.github/workflows/ci-linux.yml
+++ b/.github/workflows/ci-linux.yml
@@ -10,7 +10,7 @@ on:
workflow_dispatch:
env:
- VNOTE_VER: 3.1.0
+ VNOTE_VER: 3.2.0
jobs:
build-linux:
diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml
index a7a6219b..b673aa8b 100644
--- a/.github/workflows/ci-macos.yml
+++ b/.github/workflows/ci-macos.yml
@@ -10,7 +10,7 @@ on:
workflow_dispatch:
env:
- VNOTE_VER: 3.1.0
+ VNOTE_VER: 3.2.0
jobs:
build-linux:
diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml
index 4f3d36ba..52dce7fa 100644
--- a/.github/workflows/ci-win.yml
+++ b/.github/workflows/ci-win.yml
@@ -10,7 +10,7 @@ on:
workflow_dispatch:
env:
- VNOTE_VER: 3.1.0
+ VNOTE_VER: 3.2.0
jobs:
build:
diff --git a/changes.md b/changes.md
index 1068c626..da82d6a8 100644
--- a/changes.md
+++ b/changes.md
@@ -1,4 +1,9 @@
# Changes
+## v3.2.0
+* Support local PlantUml and Graphviz rendering
+* Add shortcuts to tab navigation in ViewSplit
+* Editor: support auto bracket and overridding font family
+
## v3.1.0
* Support Japanese translation (Thanks @miurahr)
* MarkdownEditor: guess image suffix when fetching to local
diff --git a/src/data/core/translations/vnote_zh_CN.qm b/src/data/core/translations/vnote_zh_CN.qm
index e19ba826..95994890 100644
Binary files a/src/data/core/translations/vnote_zh_CN.qm and b/src/data/core/translations/vnote_zh_CN.qm differ
diff --git a/src/data/core/translations/vnote_zh_CN.ts b/src/data/core/translations/vnote_zh_CN.ts
index 723bd2fe..7a2f30d3 100644
--- a/src/data/core/translations/vnote_zh_CN.ts
+++ b/src/data/core/translations/vnote_zh_CN.ts
@@ -644,7 +644,12 @@
查找替换
-
+
+ Close
+ 关闭
+
+
+ Find:查找:
@@ -653,62 +658,62 @@
输入以开始查找
-
+ Search查找
-
+ Find &Next查找下一个(&N)
-
+ Find &Previous查找上一个(&P)
-
+ Replace with:替换为:
-
+ \1, \2 for back reference in regular expression在正则表达式中使用 \1, \2 来后向引用
-
+ Replace替换
-
+ Replace And Find替换并查找
-
+ Replace All替换全部
-
+ &Case sensitive大小写敏感(&C)
-
+ &Whole word only匹配完整词(&W)
-
+ Re&gular expression正则表达式(&G)
-
+ &Incremental search增量查找(&I)
@@ -1053,7 +1058,7 @@
vnotex::LocationInputWithBrowseButton
-
+ Browse浏览
@@ -1487,129 +1492,129 @@ Use the "Close" button if you just want to remove it from %2.
vnotex::MarkdownEditor
-
-
+
+ Insert Link插入链接
-
+ Insert Image插入图片
-
+ Insert Table插入表格
-
+ For advanced paste, try the "Rich Paste" and "Parse To Markdown And Paste" on the editor's context menu更多高级粘贴,请尝试编辑器上下文菜单中的“多功能粘贴”和“解析为 Markdown 并粘贴”功能
-
-
-
+
+
+ Insert From Clipboard从剪切板插入
-
+ Insert From URL从URL插入
-
+ Insert From Image Data从图片数据插入
-
-
-
+
+
+ Insert As Image Link插入为图片链接
-
-
+
+ Insert As Image插入为图片
-
-
+
+ Insert As Text插入为文本
-
+ Insert As Relative Image Link插入为相对图片链接
-
+ Insert As Link插入为链接
-
+ Insert As Relative Link插入为相对链接
-
+ Attach And Insert Link添加为附件并插入链接
-
+ Insert File Content插入文件内容
-
+ Insert Image From Clipboard从剪切板插入图片
-
+ Insert Image From URL从URL插入图片
-
+ &Read阅读(&R)
-
+ Rich Paste多功能粘贴
-
+ Parse To Markdown And Paste解析为 Markodwn 并粘贴
-
+ Fetching images to local...正在获取图片到本地...
-
+ Abort终止
-
+ Fetch Images To Local获取图片到本地
-
+ Fetching image (%1)正在获取图片 (%1)
@@ -1617,12 +1622,12 @@ Use the "Close" button if you just want to remove it from %2.
vnotex::MarkdownEditorPage
-
+ Insert file name as title将文件名作为标题
-
+ Insert file name as title when creating note创建笔记时将文件名作为标题插入
@@ -1635,155 +1640,275 @@ Use the "Close" button if you just want to remove it from %2.
在阅读模式中为标题显示小节序号
-
-
+
+ Read阅读
-
+ Constrain image width限制图片宽度
-
+ Constrain image width to the window将图片宽度限制在窗口内
-
+ Zoom factor in read mode阅读模式缩放
-
+ Zoom factor:缩放:
-
+ HTML tagHTML 标签
-
+ Allow HTML tags in source源文件中允许 HTML 标签
-
+ Auto break自动换行
-
+ Automatically break a line with '\n'遇到 '\n' 则自动换行
-
+ Linkify链接化
-
+ Convert URL-like text to links转换类 URL 的文本为链接
-
+ Indent first line首行缩进
-
+ Indent the first line of each paragraph缩进每个段落的第一行
-
-
+
+ Edit编辑
-
+ Constrain in-place preview width限制原地预览宽度
-
+ Constrain in-place preview width to the window将原地预览宽度限制在窗口内
-
+ Fetch images to local in Parse And Paste在解析并粘贴时,获取图片到本地
-
+ Fetch images to local in Parse To Markdown And Paste在解析为 Markdown 并粘贴时,获取图片到本地
-
+ Smart table智能表格
-
+ Smart table formation智能表格格式化
-
-
+
+ Spell check拼写检查
-
+
+ Override font
+ 覆盖字体
+
+
+
+ Override editor font family of theme
+ 覆盖主题编辑器的字体
+
+
+ General通用
-
+ Section number mode小节序号模式
-
+ None无
-
+ Base level to start section numbering in edit mode编辑模式中开始小节序号计数的基础层级
-
+ Section number style小节序号样式
-
+ 1.1.1.1.
-
+ 1.11.1
-
+ Section number:小节序号:
-
+
+ Use online service or local JAR file to render PlantUml graphs
+ 使用在线服务或者本地 JAR 文件来渲染 PlantUml 图表
+
+
+
+
+ Online Service
+ 在线服务
+
+
+
+ Local JAR
+ 本地 JAR
+
+
+
+ PlantUml:
+ PlantUml:
+
+
+
+ Local JAR file to render PlantUml graphs
+ 用于渲染 PlantUml 图表的本地 JAR 文件
+
+
+
+ Select PlantUml JAR File
+ 选择 PlantUml JAR 文件
+
+
+
+
+ Test
+ 测试
+
+
+
+ Test PlantUml JAR and Java Runtime Environment
+ 测试 PlantUml JAR 以及 Java 运行时环境
+
+
+
+ The JAR file (%1) specified does not exist.
+ 指定的 JAR 文件 (%1) 不存在。
+
+
+
+
+ Test %1.
+ 测试 %1。
+
+
+
+
+ succeeded
+ 成功
+
+
+
+
+ failed
+ 失败
+
+
+
+ PlantUml JAR file:
+ PlantUml JAR 文件:
+
+
+
+ Use online service or local executable file to render Graphviz graphs
+ 使用在线服务或者本地可执行文件来渲染 Graphviz 图表
+
+
+
+ Local Executable
+ 本地可执行文件
+
+
+
+ Graphviz:
+ Graphviz:
+
+
+
+ Local executable file to render Graphviz graphs
+ 用于渲染 Graphviz 图表的本地可执行文件
+
+
+
+ Select Graphviz Executable File
+ 选择 Graphviz 可执行文件
+
+
+
+ Test Graphviz executable file
+ 测试 Graphviz 可执行文件
+
+
+
+ The executable file (%1) specified does not exist.
+ 指定的可执行文件 (%1) 不存在。
+
+
+
+ Graphviz executable file:
+ Graphviz 可执行文件:
+
+
+ Markdown EditorMarkdown 编辑器
@@ -1795,28 +1920,28 @@ Use the "Close" button if you just want to remove it from %2.
Markdown 查看器
-
+ Markdown ViewerMarkdown 查看器
-
+ Clear Obsolete Images清空无用图片
-
+ These images seems not in use anymore. Please confirm the deletion of them.这些图片似乎已经不再使用。请确认并删除。
-
+ Deleted images could be found in the recycle bin of notebook if it is from a bundle notebook.如果这是一个自包含笔记本,已删除的图片可以在笔记本回收站中找回。
-
-
+
+ Replace is not supported in read mode阅读模式不支持替换
@@ -1837,32 +1962,32 @@ Use the "Close" button if you just want to remove it from %2.
vnotex::MarkdownViewerAdapter
-
+ No Background无背景
-
+ Evernote印象笔记
-
+ OneNoteOneNote
-
+ Microsoft WordMicrosoft Word
-
+ WeChat Public Account Editor微信公众号编辑器
-
+ Raw HTML原始HTML
@@ -3282,107 +3407,111 @@ Description: %3
vnotex::ViewSplit
-
+ Windows List窗口列表
-
+ Workspaces and Splits工作空间和拆分
- No window to show here
- 没有窗口可以展示
+ 没有窗口可以展示
-
+
+ No Window To Show
+ 没有可以展示的窗口
+
+
+ Workspaces工作空间
-
+ Workspace %1工作空间 %1
-
+ New Workspace新建工作空间
-
+ Remove Workspace移除工作空间
-
+ Split拆分
-
+ Vertical Split竖直拆分
-
+ Horizontal Split水平拆分
-
+ Maximize Split最大化拆分
-
+ Distribute Splits平均分配拆分
-
+ Remove Split移除拆分
-
+ Remove Split And Workspace移除拆分和工作空间
-
+ Close Tab关闭标签页
-
+ Close Other Tabs关闭其他标签页
-
+ Close Tabs To The Right关闭右侧标签页
-
+ Copy Path复制路径
-
+ Copied path: %1已复制路径: %1
-
+ Open Location打开路径
-
+ Locate Node定位节点
@@ -3397,39 +3526,39 @@ Description: %3
-
-
+
+ [No Buffer][无缓冲区]
-
+ Save changes before closing note (%1)?关闭笔记 (%1) 前是否保存更改?
-
-
+
+ Note path (%1).笔记路径 (%1)。
-
+ Discard changes to note (%1)?放弃对笔记 (%1) 的更改?
-
+ Found backup file (%1) of file (%2). Do you want to recover from backup file?发现文件 (%2) 的备份文件 (%1)。是否要从备份文件中恢复?
-
+ 'Yes' to recover from backup file, 'No' to discard it, and 'Cancel' to exit.“是” 以从备份文件中恢复,“否” 以放弃该备份文件,“取消” 以退出。
-
+ It may be caused by crash while editing this file before.
File last modified time: %1
@@ -3440,32 +3569,32 @@ Backup file last modified time: %2
备份文件最后修改时间: %2
-
+ Drag And Drop Files To Attach拖拽文件以添加为附件
-
+ File is missing on disk (%1).文件在磁盘中丢失 (%1)。
-
+ Do you want to force to save the buffer to the file?是否强制保存缓冲区内容到文件?
-
+ The file may be deleted from outside. Please choose to save the buffer to a new file or just discard it.该文件可能已经被删除。请选择将缓冲区的内容保存为新文件或者放弃缓冲区。
-
+ File is changed from outside (%1).文件被更改 (%1)。
-
+ Do you want to save the buffer to the file to override, or discard the buffer?是否保存缓冲区覆盖到文件,或者放弃缓冲区?
@@ -3474,58 +3603,58 @@ Backup file last modified time: %2
是否用缓冲区的内容覆盖该文件?
-
+ The file is changed from outside. Please choose to save the buffer to the file or just discard the buffer and reload the file.该文件已经被更改。请选择保存缓冲区到该文件或者放弃缓冲区并重新加载文件。
-
+ This is a read-only note (%1), on which modification is not allowed.这是一个只读笔记 (%1),不支持修改。
-
+ Please save your changes to another note.请保存更改到另一个笔记。
-
+ Failed to save note (%1).无法保存笔记 (%1)。
-
+ Please check the file (%1) and try it again.请检查文件 (%1) 并重试。
-
+ Maybe the file is occupied by another service temporarily.可能该文件正在被第三方应用临时占用。
-
+ Zoomed: %1%缩放: %1%
-
+ Zoomed: %1%2缩放: %1%2
-
-
+
+ Pattern not found: %1无法找到模式: %1
-
+ Match found: %1/%2找到匹配: %1/%2
-
+ Replaced %n match(es)替换 %n 处匹配
diff --git a/src/data/core/vnotex.json b/src/data/core/vnotex.json
index 12b94637..7f836616 100644
--- a/src/data/core/vnotex.json
+++ b/src/data/core/vnotex.json
@@ -3,7 +3,7 @@
"metadata" : {
"//comment": "When releasing new version, please go through the following configs to check if override is needed.",
"//Comment": "markdown_editor#override_viewer_resource",
- "version" : "3.1.0"
+ "version" : "3.2.0"
},
"core" : {
"theme" : "pure",
diff --git a/src/widgets/dialogs/settings/markdowneditorpage.cpp b/src/widgets/dialogs/settings/markdowneditorpage.cpp
index 93ebef65..9fe654bd 100644
--- a/src/widgets/dialogs/settings/markdowneditorpage.cpp
+++ b/src/widgets/dialogs/settings/markdowneditorpage.cpp
@@ -394,7 +394,7 @@ QGroupBox *MarkdownEditorPage::setupGeneralGroup()
jarLayout->setContentsMargins(0, 0, 0, 0);
m_plantUmlJarFileInput = new LocationInputWithBrowseButton(box);
- m_plantUmlJarFileInput->setToolTip(tr("Local JAR file to render PlantUML graphs"));
+ m_plantUmlJarFileInput->setToolTip(tr("Local JAR file to render PlantUml graphs"));
connect(m_plantUmlJarFileInput, &LocationInputWithBrowseButton::clicked,
this, [this]() {
auto filePath = QFileDialog::getOpenFileName(this,