-
Notifications
You must be signed in to change notification settings - Fork 93
[222_68] 完善启动引导流程 #3141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[222_68] 完善启动引导流程 #3141
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="zh-CN"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>知乎回答示例 - 魔法粘贴体验</title> | ||
| </head> | ||
| <body> | ||
| <main> | ||
| <h1>为什么数学公式在排版软件里经常显得难编辑?</h1> | ||
| <p>因为大多数编辑器只擅长处理纯文本,而不擅长处理结构化内容。</p> | ||
| <p>当一段内容同时包含标题、正文、列表、强调和公式时,编辑器需要理解它的语义结构,而不只是把它当成一串字符。</p> | ||
| <blockquote> | ||
| <p>真正高效的编辑体验,不是“把格式补回来”,而是“粘贴进来时就尽量保留结构”。</p> | ||
| </blockquote> | ||
| <h2>一个简单例子</h2> | ||
| <p>如果原文里有如下结论:</p> | ||
| <p>对于任意实数 <strong>a</strong> 与 <strong>b</strong>,都有</p> | ||
| <p>$$ (a+b)^2 = a^2 + 2ab + b^2 $$</p> | ||
| <p>那么理想的粘贴结果应该尽量保留:</p> | ||
| <ul> | ||
| <li>标题层级</li> | ||
| <li>段落结构</li> | ||
| <li>强调样式</li> | ||
| <li>公式表达</li> | ||
| </ul> | ||
| <p>这也是“魔法粘贴”存在的意义:让来自网页、问答平台和 AI 对话的内容,进入文档后仍然尽量可编辑、可继续排版。</p> | ||
| </main> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,8 +69,11 @@ QTMImagePopup::QTMImagePopup (QWidget* parent, qt_simple_widget_rep* owner) | |
| call ("set-image-alignment", current_tree, "center"); | ||
| else if (button == rightBtn) | ||
| call ("set-image-alignment", current_tree, "right"); | ||
| else if (button == ocrBtn) | ||
| else if (button == ocrBtn) { | ||
| call ("ocr-to-latex-by-image", current_tree); | ||
| eval ("(when (defined? 'tutorial-notify-action) " | ||
| "(tutorial-notify-action \"ocr-paste\"))"); | ||
|
Comment on lines
73
to
+75
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 点击浮动菜单中的 OCR 按钮时,无论 建议让通知仅在 |
||
| } | ||
| current_align= | ||
| as_string (call ("get-image-alignment", current_tree)); | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clipboard-set-export "verbatim"与clipboard-set-export old-export之间的clipboard-set "primary" html若抛出异常,导出模式将保持"verbatim"而无法恢复,影响后续粘贴操作。建议使用dynamic-wind保证清理代码必定执行: