Skip to content

Commit 0c1f41f

Browse files
authored
[222_39] 选择性粘贴窗口添加引导信息 (#2754)
1 parent 216323d commit 0c1f41f

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

TeXmacs/plugins/lang/dic/en_US/zh_CN.scm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,8 @@
23472347
("triangle" "三角形")
23482348
("trigonometry" "三角函数")
23492349
("try to import formulas using LaTeX annotations" "尝试使用 LaTeX 注释导入公式")
2350+
("Try Ctrl/⌘+Shift+v, auto-detects format." "试试Ctrl/⌘+Shift+v,自动识别格式。")
2351+
("Wrong result? Use Selective Paste here." "结果不准确?请用此处的选择性粘贴。")
23502352
("tuple" "元组")
23512353
("turkish" "土耳其文")
23522354
("tutorial" "入门教程")

TeXmacs/progs/generic/paste-widget.scm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
(selected-format "verbatim")
100100
(tips1 "Please select...")
101101
(tips2 "")
102-
(tips3 (string-append (translate "shortcut") ": " (translate "none")))
102+
(tips3 (translate "Try Ctrl/⌘+Shift+v, auto-detects format."))
103+
(tips4 (translate "Wrong result? Use Selective Paste here."))
103104
(plain-format-list (list "Markdown" "LaTeX" "HTML" (translate "Plain text")))
104105
(math-format-list (list "LaTeX" "MathML"))
105106
(program-format-list (list (translate "Code")))
@@ -116,8 +117,7 @@
116117
(invisible (set! selected-format (convert-format-string-to-symbol (car l))))
117118
(invisible (set! tips1 (translate (get-tips selected-format))))
118119
(invisible (set! tips2 (translate "ENTER to confirm, ESC to cancel")))
119-
(invisible (set! tips3 (string-append (translate "shortcut") ": " (shortcut selected-format))))
120-
(resize "320px" "270px"
120+
(resize "320px" "310px"
121121
(padded
122122
(vertical
123123
(horizontal
@@ -137,19 +137,18 @@
137137
(choice (begin
138138
(set! selected-format (convert-format-string-to-symbol (translate answer)))
139139
(set! tips1 (translate (get-tips selected-format)))
140-
(set! tips3 (string-append (translate "shortcut") ": " (shortcut selected-format)))
141140
(refresh-now "format-explanation")
142141
(refresh-now "paste-shortcut"))
143142
l
144143
(car l))))))
145144
===
146145
(refreshable "format-explanation"
147146
(bold (text "Tips"))
148-
(resize "320px" "90px"
147+
(resize "320px" "110px"
149148
(texmacs-output
150149
`(with "bg-color" "white"
151150
"font-base-size" "18"
152-
(document ,tips1 ,tips3 ,tips2))
151+
(document ,tips1 ,tips2 ,tips3 ,tips4))
153152
'(style "generic")))))))
154153
(bottom-buttons
155154
>> ("ok" (cmd selected-format)) // ("cancel" (cmd #f)))))

devel/222_39.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [222_39] 选择性粘贴窗口添加引导信息
2+
3+
## 如何测试
4+
Ctrl/Command+Alt+v触发选择性粘贴窗口,查看说明区域是否存在文本:
5+
```text
6+
Try Ctrl+Shift+v, auto-detects format.
7+
Wrong result? Use Selective Paste here.
8+
```
9+
或者是中文:
10+
```text
11+
试试Ctrl+Shift+v,自动识别格式。
12+
结果不准确?请用此处的选择性粘贴。
13+
```
14+
15+
## 2026/02/04 选择性粘贴窗口添加引导信息

0 commit comments

Comments
 (0)