Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

docs: describe pinyin search in the design and on the site

baiyuzedcfbc69109ad
diff --git a/design/quick-paste-and-favorites.md b/design/quick-paste-and-favorites.md
index 43608f5..fe58320 100644
--- a/design/quick-paste-and-favorites.md
+++ b/design/quick-paste-and-favorites.md
@@ -80,6 +80,8 @@
- 搜索:
- 先在已加载的记录里过滤,结果即时出现;
- 同时用 `ListHistory` 的 `query` 搜索当前页签的全部历史。
+ - 中文可以按拼音搜(2.4.1 起):两个以上的字母时,后台服务再按拼音找一遍(`internal/pinyin`)。全拼 huiyi、首字母 hy、混着打 huiy 都能找到「会议」;多音字每个读音都算,ü 写 v 或 u,最后一个音节可以只打开头。数据库没法按拼音粗筛,只核对最近 2000 条(收藏全部核对)。
+ - 拼音匹配只有后台服务做得到。新结果回来之前,已加载的记录里又找不到时,列表接着显示上一个搜索词的结果,不闪「没有找到」。
- 只有元数据的大文件(`REMOTE_ONLY`):
- 选中后先下载,进度显示在这一行里,下载完自动粘贴。
- 按 Esc 只取消粘贴,下载照常继续。下载完会照现有逻辑覆盖剪贴板,和点「下载」按钮的效果相同。
diff --git a/docs/en/features/index.html b/docs/en/features/index.html
index 4adf0a7..55a4203 100644
--- a/docs/en/features/index.html
+++ b/docs/en/features/index.html
@@ -181,7 +181,7 @@
</article>
<article class="cell" data-reveal data-search>
<h3>Search what you copied</h3>
- <p>Search by text or file name and put it back on the clipboard in one click. History is kept for 3 days by default, up to 30.</p>
+ <p>Search by text or file name — Chinese text by pinyin, too — and put it back on the clipboard in one click. History is kept for 3 days by default, up to 30.</p>
<div class="mini" aria-hidden="true">
<div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="contract">contract</span><i class="caret"></i></div>
<ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>signed-contract.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>Contract clause 3: switch to quarterly payments</span></li></ul>
diff --git a/docs/features/index.html b/docs/features/index.html
index 24aa67e..0823ea7 100644
--- a/docs/features/index.html
+++ b/docs/features/index.html
@@ -181,7 +181,7 @@
</article>
<article class="cell" data-reveal data-search>
<h3>三天里复制的,搜得到</h3>
- <p>按文字内容或文件名搜索,点一下就放回剪贴板。记录默认保留 3 天,最长可以留 30 天。</p>
+ <p>按文字内容或文件名搜索,中文还能打拼音(hy 就能找到「会议」)。点一下就放回剪贴板,记录默认保留 3 天,最长 30 天。</p>
<div class="mini" aria-hidden="true">
<div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="合同">合同</span><i class="caret"></i></div>
<ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>合同扫描件.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>合同第 3 条改成按季度付款</span></li></ul>
diff --git a/docs/index.html b/docs/index.html
index eec9022..08f125e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -236,7 +236,7 @@
<li class="tile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>
<h3>复制记录</h3>
- <p>所有设备复制过的都在这里,能搜索,能按类型筛选。</p>
+ <p>所有设备复制过的都在这里,能搜索(打拼音也行),能按类型筛选。</p>
</li>
<li class="tile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>
diff --git a/docs/ja/features/index.html b/docs/ja/features/index.html
index ec35cc8..865408a 100644
--- a/docs/ja/features/index.html
+++ b/docs/ja/features/index.html
@@ -181,7 +181,7 @@
</article>
<article class="cell" data-reveal data-search>
<h3>コピーしたものを検索</h3>
- <p>テキストやファイル名で検索し、クリックでクリップボードに戻せます。履歴は既定で 3 日、最長 30 日保存。</p>
+ <p>テキストやファイル名で検索し(中国語はピンインでも)、クリックでクリップボードに戻せます。履歴は既定で 3 日、最長 30 日保存。</p>
<div class="mini" aria-hidden="true">
<div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="契約">契約</span><i class="caret"></i></div>
<ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>契約書_署名済み.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>契約第 3 条を四半期払いに変更</span></li></ul>
diff --git a/docs/zh-hk/features/index.html b/docs/zh-hk/features/index.html
index 845d032..0355e11 100644
--- a/docs/zh-hk/features/index.html
+++ b/docs/zh-hk/features/index.html
@@ -181,7 +181,7 @@
</article>
<article class="cell" data-reveal data-search>
<h3>三日內複製的,搜得到</h3>
- <p>按文字內容或檔案名稱搜尋,按一下就放回剪貼簿。記錄預設保留 3 日,最長可以留 30 日。</p>
+ <p>按文字內容或檔案名稱搜尋,中文還能打拼音(hy 就能找到「會議」)。按一下就放回剪貼簿,記錄預設保留 3 日,最長 30 日。</p>
<div class="mini" aria-hidden="true">
<div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="合約">合約</span><i class="caret"></i></div>
<ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>合約掃描本.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>合約第 3 條改為按季付款</span></li></ul>
diff --git a/docs/zh-hk/index.html b/docs/zh-hk/index.html
index e3458b5..8d76e3a 100644
--- a/docs/zh-hk/index.html
+++ b/docs/zh-hk/index.html
@@ -211,7 +211,7 @@
<li class="tile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>
<h3>複製記錄</h3>
- <p>所有裝置複製過的都在這裏,能搜尋,能按類型篩選。</p>
+ <p>所有裝置複製過的都在這裏,能搜尋(打拼音也可以),能按類型篩選。</p>
</li>
<li class="tile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>
diff --git a/docs/zh-tw/features/index.html b/docs/zh-tw/features/index.html
index 5aa2629..5fd3fc9 100644
--- a/docs/zh-tw/features/index.html
+++ b/docs/zh-tw/features/index.html
@@ -181,7 +181,7 @@
</article>
<article class="cell" data-reveal data-search>
<h3>三天裡複製的,搜得到</h3>
- <p>按文字內容或檔名搜尋,點一下就放回剪貼簿。記錄預設保留 3 天,最長可以留 30 天。</p>
+ <p>按文字內容或檔名搜尋,中文還能打拼音(hy 就能找到「會議」)。點一下就放回剪貼簿,記錄預設保留 3 天,最長 30 天。</p>
<div class="mini" aria-hidden="true">
<div class="mini-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="q" data-q="合約">合約</span><i class="caret"></i></div>
<ul class="mini-rows hits"><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 2.6c0-.5.4-.9.9-.9h4.3L12 4.5v8.9c0 .5-.4.9-.9.9H4.9a.9.9 0 0 1-.9-.9z"/><path d="M9 1.8v3h3"/></svg><span>合約掃描檔.pdf</span></li><li><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span>合約第 3 條改成按季付款</span></li></ul>
diff --git a/docs/zh-tw/index.html b/docs/zh-tw/index.html
index 0d0df58..1a7d059 100644
--- a/docs/zh-tw/index.html
+++ b/docs/zh-tw/index.html
@@ -211,7 +211,7 @@
<li class="tile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>
<h3>複製記錄</h3>
- <p>所有裝置複製過的都在這裡,能搜尋,能按類型篩選。</p>
+ <p>所有裝置複製過的都在這裡,能搜尋(打拼音也行),能按類型篩選。</p>
</li>
<li class="tile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c-2.4 2.3-3.6 5.1-3.6 8.5s1.2 6.2 3.6 8.5M12 3.5c2.4 2.3 3.6 5.1 3.6 8.5s-1.2 6.2-3.6 8.5"/></svg>
diff --git a/tools/site/content/features.py b/tools/site/content/features.py
index d36f6ec..938ca91 100644
--- a/tools/site/content/features.py
+++ b/tools/site/content/features.py
@@ -45,7 +45,7 @@ COPY = {
("keys", "快捷粘贴", "按 {key} 呼出复制记录,选中就粘贴。", True),
("star", "收藏", "常用的内容另存一份,不会过期。", True),
("folder", "文件与文件夹", "50 MB 以内复制时就已传好,更大的需要时再取。", False),
- ("clock", "复制记录", "所有设备复制过的都在这里,能搜索,能按类型筛选。", False),
+ ("clock", "复制记录", "所有设备复制过的都在这里,能搜索(打拼音也行),能按类型筛选。", False),
("globe", "跨网络", "开启官方服务,家里和公司之间也能同步。", False),
("lock", "端到端加密", "优先直连,服务器看不到你复制了什么。", False),
],
@@ -53,7 +53,7 @@ COPY = {
("keys", "快速貼上", "按 {key} 叫出複製記錄,選取就貼上。", True),
("star", "收藏", "常用的內容另存一份,不會過期。", True),
("folder", "檔案與資料夾", "50 MB 以內複製時就已傳好,更大的需要時再取。", False),
- ("clock", "複製記錄", "所有裝置複製過的都在這裡,能搜尋,能按類型篩選。", False),
+ ("clock", "複製記錄", "所有裝置複製過的都在這裡,能搜尋(打拼音也行),能按類型篩選。", False),
("globe", "跨網路", "開啟官方服務,家裡和公司之間也能同步。", False),
("lock", "端對端加密", "優先直連,伺服器看不到你複製了什麼。", False),
],
@@ -61,7 +61,7 @@ COPY = {
("keys", "快速貼上", "按 {key} 叫出複製記錄,選取就貼上。", True),
("star", "收藏", "常用的內容另存一份,不會過期。", True),
("folder", "檔案與資料夾", "50 MB 以內複製時就已傳好,更大的需要時再取。", False),
- ("clock", "複製記錄", "所有裝置複製過的都在這裏,能搜尋,能按類型篩選。", False),
+ ("clock", "複製記錄", "所有裝置複製過的都在這裏,能搜尋(打拼音也可以),能按類型篩選。", False),
("globe", "跨網絡", "開啟官方服務,家裏和公司之間也能同步。", False),
("lock", "端對端加密", "優先直連,伺服器看不到你複製了甚麼。", False),
],
@@ -338,11 +338,11 @@ COPY = {
"search_title": ("三天里复制的,搜得到", "三天裡複製的,搜得到", "三日內複製的,搜得到", "Search what you copied",
"コピーしたものを検索"),
"search_text": (
- "按文字内容或文件名搜索,点一下就放回剪贴板。记录默认保留 3 天,最长可以留 30 天。",
- "按文字內容或檔名搜尋,點一下就放回剪貼簿。記錄預設保留 3 天,最長可以留 30 天。",
- "按文字內容或檔案名稱搜尋,按一下就放回剪貼簿。記錄預設保留 3 日,最長可以留 30 日。",
- "Search by text or file name and put it back on the clipboard in one click. History is kept for 3 days by default, up to 30.",
- "テキストやファイル名で検索し、クリックでクリップボードに戻せます。履歴は既定で 3 日、最長 30 日保存。",
+ "按文字内容或文件名搜索,中文还能打拼音(hy 就能找到「会议」)。点一下就放回剪贴板,记录默认保留 3 天,最长 30 天。",
+ "按文字內容或檔名搜尋,中文還能打拼音(hy 就能找到「會議」)。點一下就放回剪貼簿,記錄預設保留 3 天,最長 30 天。",
+ "按文字內容或檔案名稱搜尋,中文還能打拼音(hy 就能找到「會議」)。按一下就放回剪貼簿,記錄預設保留 3 日,最長 30 日。",
+ "Search by text or file name — Chinese text by pinyin, too — and put it back on the clipboard in one click. History is kept for 3 days by default, up to 30.",
+ "テキストやファイル名で検索し(中国語はピンインでも)、クリックでクリップボードに戻せます。履歴は既定で 3 日、最長 30 日保存。",
),
"search_query": ("合同", "合約", "合約", "contract", "契約"),
"search_hits": (