Skip to content

希望增加到PANTHERBAR extensions #605

zhxiyao started this conversation in Show and tell
希望增加到PANTHERBAR extensions #605
Dec 27, 2019 · 10 comments · 11 replies

RT,Windows 下的 PopClip, 貌似这个软件还比较新鲜,上面能用的插件还比较少,但的确和mac下的POPCLIP神似,希望SaladDict可以通过PantherBar呼出,Quicher需要点击中键且出来的菜单也蛮大的,体验还是不如PopClip。
https://www.microsoft.com/zh-cn/p/pantherbar/9npz2tvkjvt7?rtc=1&activetab=pivot:overviewtab
https://pantherbar-app.com/

Replies

10 comments
·
11 replies

原理都是一样的(剪贴板 + Saladict 全局快捷键),你可以自行配置。

0 replies

这个也是可以的,使用文档中的 keyCombo 选项或者在 PowerShell 脚本中调用快捷键就可以。

Pantherbar 大部分场合可用,在少数网页跟软件内不可用(例如 Acrobat)

效果展示

划词操作

PantherbarSaladict

分段识别

Segment

PantherBar 沙拉查词扩展下载

快捷键设置项【在独立窗口中搜索剪贴板内容】为 Alt+L,全局(沙拉查词快捷键具体设置参考 #493 )。下载文件后缀.zip 改为 .pbar,双击安装。

自定义快捷键: 如需自定义调用快捷键,下载压缩包后修改 .ps1 文件内的 $ShortCut 变量,重新压缩修改后缀即可。
custom shortcuts

SaladictTranslate v1.8.zip
fix: 删除空行
add: 标题判断

历史版本


SaladictTranslate v1.6.zip
fix: 误判行末空白字符为分段


SaladictTranslate v1.4.zip

  1. 解决 Powershell 输出到剪贴板的编码问题
  2. 完善识别分段功能,基本能够还原 PDF 的分段格式
  3. 替换 LaTeX 生成 PDF 中 fl ffi fi ff 字符
    (插件基本完美可用了)
    Snipaste_2019-12-28_22-21-53_compress

SaladictTranslate v1.2.zip
增加标点识别分段


SaladictTranslate.zip v1.1
增加是否删除分段选项
text


SaladictTranslate.zip v1.0
快捷键调用复制以及呼出沙拉查词窗口。

1 reply
@funnybones2015

SaladictTranslate v1.8.zip

现在PantherBar更名为Snip.Do了,这个插件貌似不起作用了,无法调起沙拉查词的查词窗口了,重装也不行了。望解决~~

Quicker感觉不如PantherBar简单直观吧 还是更习惯PantherBar

Awesome!

0 replies

Awesome!

我今晚把 Quicker 动作文本处理部分都搬了过来,PDF 中识别分段效果很好。除了没法截图翻译,作为桌面划词完全没问题!

0 replies

快捷鍵定義爲 ^(cc) 可用於goldendict 或者歐陸詞典

0 replies

This comment has been hidden.

PDF-XChange Editor

0 replies

请问在其它pdf阅读器里可以使用么?比如在福昕阅读器里划词后正常出现pantherbar,但无法使用沙拉查词

0 replies

请问在其它 pdf 阅读器里可以使用么?比如在福昕阅读器里划词后正常出现 pantherbar,但无法使用沙拉查词

检查下是否按照说明配置了沙拉查词的全局快捷键为 Alt+L。

注:
pantherbar限制比较多,我目前没有使用了,扩展也有很长一段时间没有维护,无法确保正常使用。
Windows系统的沙拉查词我更推荐使用 Quicker #493

0 replies

现在PantherBar更名为Snip.Do了,这个插件貌似不起作用了,无法调起沙拉查词的查词窗口了,重装也不行了。望解决~~

Quicker感觉不如PantherBar简单直观吧 还是更习惯PantherBar

10 replies
@z0ow

我已经给Snip.Do反馈了这个问题

[10:10:14:847] RunScript
[10:10:14:856] Path.GetDirectoryName(path) C:\Users\small\AppData\Local\SnipDo\Data\156950082
[10:10:14:856] adding paramter PLAIN_TEXT:Total scan times are dependent on resolution required and the
apparent count rate during the survey. A standard resolution
scan takes up to 2 hours and a high-resolution scan takes up to
8 hours.
[10:10:14:856] adding paramter URLENCODED_ALT_TEXT:Total%20scan%20times%20are%20dependent%20on%20resolution%20required%20and%20the%0D%0Aapparent%20count%20rate%20during%20the%20survey.%20A%20standard%20resolution%0D%0Ascan%20takes%20up%20to%202%20hours%20and%20a%20high-resolution%20scan%20takes%20up%20to%0D%0A8%20hours.
[10:10:14:856] adding paramter URLENCODED_TEXT:Total+scan+times+are+dependent+on+resolution+required+and+the%0d%0aapparent+count+rate+during+the+survey.+A+standard+resolution%0d%0ascan+takes+up+to+2+hours+and+a+high-resolution+scan+takes+up+to%0d%0a8+hours.
[10:10:14:856] adding paramter TextProcess:process
[10:10:14:856] adding paramter HTMLENCODED_TEXT:Total scan times are dependent on resolution required and the
apparent count rate during the survey. A standard resolution
scan takes up to 2 hours and a high-resolution scan takes up to
8 hours.
[10:10:14:871] Result:  .ExitCode: 
在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。
[10:10:14:878] Window_Loaded
[10:10:14:883] ShowControlled
[10:10:20:346] AbortHideIfNotOnForm[10:10:20:516]  success
[10:10:22:582] AbortHideIfNotOnForm[10:10:22:631]  success
[10:10:23:593] AbortHideIfNotOnForm

这是我得到的Snip.Do的错误,正在找为什么会这样……

@z0ow

我已经给Snip.Do反馈了这个问题

[10:10:14:847] RunScript
[10:10:14:856] Path.GetDirectoryName(path) C:\Users\small\AppData\Local\SnipDo\Data\156950082
[10:10:14:856] adding paramter PLAIN_TEXT:Total scan times are dependent on resolution required and the
apparent count rate during the survey. A standard resolution
scan takes up to 2 hours and a high-resolution scan takes up to
8 hours.
[10:10:14:856] adding paramter URLENCODED_ALT_TEXT:Total%20scan%20times%20are%20dependent%20on%20resolution%20required%20and%20the%0D%0Aapparent%20count%20rate%20during%20the%20survey.%20A%20standard%20resolution%0D%0Ascan%20takes%20up%20to%202%20hours%20and%20a%20high-resolution%20scan%20takes%20up%20to%0D%0A8%20hours.
[10:10:14:856] adding paramter URLENCODED_TEXT:Total+scan+times+are+dependent+on+resolution+required+and+the%0d%0aapparent+count+rate+during+the+survey.+A+standard+resolution%0d%0ascan+takes+up+to+2+hours+and+a+high-resolution+scan+takes+up+to%0d%0a8+hours.
[10:10:14:856] adding paramter TextProcess:process
[10:10:14:856] adding paramter HTMLENCODED_TEXT:Total scan times are dependent on resolution required and the
apparent count rate during the survey. A standard resolution
scan takes up to 2 hours and a high-resolution scan takes up to
8 hours.
[10:10:14:871] Result:  .ExitCode: 
在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。
[10:10:14:878] Window_Loaded
[10:10:14:883] ShowControlled
[10:10:20:346] AbortHideIfNotOnForm[10:10:20:516]  success
[10:10:22:582] AbortHideIfNotOnForm[10:10:22:631]  success
[10:10:23:593] AbortHideIfNotOnForm

这是我得到的Snip.Do的错误,正在找为什么会这样……

感觉是Snip.D自己的锅,而且它的插件说明页还没搞好https://snipdo-app.com/create-extension ,作者这么匆匆把PantherBar换成SnipD真的翻大车 😞

@z0ow

我已经给Snip.Do反馈了这个问题

[10:10:14:847] RunScript
[10:10:14:856] Path.GetDirectoryName(path) C:\Users\small\AppData\Local\SnipDo\Data\156950082
[10:10:14:856] adding paramter PLAIN_TEXT:Total scan times are dependent on resolution required and the
apparent count rate during the survey. A standard resolution
scan takes up to 2 hours and a high-resolution scan takes up to
8 hours.
[10:10:14:856] adding paramter URLENCODED_ALT_TEXT:Total%20scan%20times%20are%20dependent%20on%20resolution%20required%20and%20the%0D%0Aapparent%20count%20rate%20during%20the%20survey.%20A%20standard%20resolution%0D%0Ascan%20takes%20up%20to%202%20hours%20and%20a%20high-resolution%20scan%20takes%20up%20to%0D%0A8%20hours.
[10:10:14:856] adding paramter URLENCODED_TEXT:Total+scan+times+are+dependent+on+resolution+required+and+the%0d%0aapparent+count+rate+during+the+survey.+A+standard+resolution%0d%0ascan+takes+up+to+2+hours+and+a+high-resolution+scan+takes+up+to%0d%0a8+hours.
[10:10:14:856] adding paramter TextProcess:process
[10:10:14:856] adding paramter HTMLENCODED_TEXT:Total scan times are dependent on resolution required and the
apparent count rate during the survey. A standard resolution
scan takes up to 2 hours and a high-resolution scan takes up to
8 hours.
[10:10:14:871] Result:  .ExitCode: 
在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。
[10:10:14:878] Window_Loaded
[10:10:14:883] ShowControlled
[10:10:20:346] AbortHideIfNotOnForm[10:10:20:516]  success
[10:10:22:582] AbortHideIfNotOnForm[10:10:22:631]  success
[10:10:23:593] AbortHideIfNotOnForm

这是我得到的Snip.Do的错误,正在找为什么会这样……

感觉是Snip.D自己的锅,而且它的插件说明页还没搞好https://snipdo-app.com/create-extension ,作者这么匆匆把PantherBar换成SnipD真的翻大车 😞

经过Debug,应该是powershell代码的Set-Clipboard触发了这个问题,原因很简单……SnipD没有给Main设置STAThread Attribute 😢只能等作者修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants
Converted from issue