求问pdf里面怎么用兼容翻译

用pdf-tools的PDFview mode ,我想用有道翻译随时翻译文章里面不认识的单词,怎么才可以做到呢?

没有过有道, 用goldendict,先用鼠标选中单词,然后用goldendict的屏幕取词功能查, 不过还是有些麻烦…

如果 pdf-tools 中实现了thing-at-point,youdao 应该就能正确翻译了

直接用的centaur,好像没梯子

目前只有选中后通过(car (pdf-view-active-region-text))转出字符串传递给有道,也不太方便的,虽然能用,因为没法从at-point的地方弹出,固定在一个地方有时候遮挡。

谢谢,大佬,实际我的工作看的pdf一般都是那种10來页的论文,工作流是通过master pdf,只不过现在我看着emacs有现成的package所以就想用下,不过现在发现,就差一个翻译麻烦点,其他的还是不错

那就直接用 youdao-dictionary-search-from-input好了

Check out this:

https://github.com/stardiviner/goldendict.el

1 个赞

这个在普通emacs buffer中比较好用,可以自动识别光标下的单词, 但是在pdf-tools中不太好用, 无法识别单词…

It will translate text in Emacs region or kill ring. It means if you have text select, press the global keybinding will pass to goldendict to raise a popup window.