Skip to content
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

[Bug] 无法将pdf的英文原文粘贴到笔记 #1163

Closed
2 tasks done
guaguastandup opened this issue Oct 18, 2024 · 7 comments
Closed
2 tasks done

[Bug] 无法将pdf的英文原文粘贴到笔记 #1163

guaguastandup opened this issue Oct 18, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@guaguastandup
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest Zotero and the latest plugin?

  • I have confirmed I'm using the latest Zotero and the latest plugin

Environment

  • OS: MacOS 14.4.1
  • Zotero Version: 7.0.0-beta.104+7e01a7d0e
  • Plugin Version: 2.0.16

Describe the bug

在pdf中复制的英文原文,无法粘贴到笔记中
problem1

Debug Output

1729239925009 addons.xpi WARN Checking /Applications/Zotero.app/Contents/Resources/distribution/extensions for addons

1729239925841 addons.xpi WARN Addon with ID undefined already installed, older version will be disabled

[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1723}]

[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1723}]

[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]

[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]

[JavaScript Error: "TypeError: this.editorView is undefined" {file: "resource://zotero/note-editor/editor.js" line: 6}]

appName => Zotero, version => 7.0.0-beta.104+7e01a7d0e, os => macOS 14.4.1, locale => zh-CN, extensions => Better Notes for Zotero (2.0.16, extension), OpenH264 Video Codec provided by Cisco Systems, Inc. (1.8.1.2, plugin), Widevine Content Decryption Module provided by Google Inc. (4.10.2710.0, plugin), Duplicates Merger for Zotero (1.1.5, extension, disabled), Jasminum (1.0.0-14, extension, disabled), Ethereal Reference (0.7.5, extension, disabled), Awesome GPT (1.0.5, extension, disabled), Ethereal Style (5.1.5, extension, disabled), Translate for Zotero (2.0.4, extension, disabled)
(3)(+0027584): Running /usr/bin/sw_vers '-productVersion'

(3)(+0003613): Starting full-text content processor

(4)(+0000002): Registering notifier observer 'fulltext_e5' for [sync]

(4)(+0002909): Registering notifier observer 'tagsBox_Qq' for [item-tag,setting] with priority 101

(4)(+0000001): Registering notifier observer 'relatedbox_2Q' for [item]

(4)(+0000001): Registering notifier observer 'noteEditor_Lu' for [item,file]

(3)(+0000000): Reloading tags box

(3)(+0000124): Using a custom CSS style:

(3)(+0000000): .output_wrapper { font-size: 16px; color: #3e3e3e; line-height: 1.6; word-spacing: 0px; letter-spacing: 0px; font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; } li { margin-bottom: 0.5em; /* color:#159957; / } .code_size_default { line-height: 18px; font-size: 14px; font-weight: normal; word-spacing: 0px; letter-spacing: 0px; } .code_size_tight { line-height: 15px; font-size: 11px; font-weight: normal; word-spacing: -3px; letter-spacing: 0px; } a { text-decoration: none; color: #1e6bb8; word-wrap: break-word; } strong { font-weight: bold; } em { font-style: italic; } del / 删除线 / { font-style: italic; } strong em / 强调的斜体 / { font-weight: bold; } hr { height: 0.91px; margin: 1.5rem 0px; border: none; border-top: 1px dashed #A5A5A5; } code / 行内代码 / { word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; color: #e96900; background: #f8f8f8; } a, a:visited { / 普通状态和访问过的链接 / color: #42B983; / 深绿色 / text-decoration: underline; / 下划线 / } a:hover, a:focus { / 鼠标悬停和聚焦状态 / color: rgba(255, 69, 0, 0.5); / 更深的绿色 / } blockquote { border-left: 4px solid #4caf50; / 鲜明的绿色边界 / background-color: #e8f5e9; / 浅绿色背景 / color: #2e7d32!important; / 引用文本的深绿色 / padding: 0.01px!important; / 内边距 / margin: 0px 0!important; / 减小上下外边距 / } / 如果您想让所有设置为加粗的文本都变成橙红色,可以使用以下通用规则 / b, strong { font-size: 1em; color: rgba(255, 69, 0, 1); / 橙红色 /; background-color: #f0f0f0; / 淡灰色背景 / padding: 2px 4px; / 加点内边距让背景更明显 / border-radius: 2px; / 可选:为背景添加圆角 / } h1, h2 { letter-spacing: 2px; margin-bottom: 2em; margin-right: 5px; padding: 8px 15px; border-radius: 5px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); / 文字阴影,增强对比 / box-shadow: 1px 1px 2px rgba(51, 51, 51, 0.5); / 盒子阴影,可根据需要调整 / text-align: center; } h1 { font-size: 1.2em; border-left: 10px solid rgba(240, 19, 19, 0.5); / 可以根据需要调整边框颜色 / background: rgba(240, 19, 19, 0.25); } h2 { font-size: 1em; border-left: 10px solid rgba(102, 204, 153, 0.5); / 可以根据需要调整边框颜色 / background: rgba(102, 204, 153, 0.25); } ol, ul { padding-left: 16px; } ol { counter-reset: item; / 重置计数器 / } ul li, ol li { list-style-type: none; / 移除默认列表标记 / position: relative; color: red; / 默认颜色 / } ul li:before { content: '•'; position: absolute; left: -25px; font-size: 22px; color: currentColor; transform: translateY(-15%); } ol li:before { content: counter(item) '.'; counter-increment: item; position: absolute; font-size: 0.9em; left: -20px; color: currentColor; } / 根据嵌套层级改变颜色 / ul li ul li, ul li ol li, ol li ul li, ol li ol li { color: blue; } ul li ul li ul li, ul li ul li ol li, ul li ol li ul li, ul li ol li ol li, ol li ul li ul li, ol li ul li ol li, ol li ol li ul li, ol li ol li ol li { color: green; } / 调整嵌套列表的缩进 / ul ul, ol ol, ul ol, ol ul { padding-left: 2em; / 子列表的缩进大于父列表 / } / 为表格设置边框样式 / table { border-collapse: collapse; width: 100%; table-layout: fixed; / 让列宽更均匀 */ } table th:first-child, table td:first-child { width: 30%; font-size: 0.9em; text-align: center; vertical-align: middle; } table th:nth-child(2), table td:nth-child(2) { width: 70%; font-size: 0.8em; text-align: left; } table th { font-size: 1.3em!important; text-align: center!important; font-weight: bold!important; border: 2px solid black; padding: 5px; color: #1e6bb8!important; background-color: rgba(21, 100, 178, 0.1); } table tr:nth-child(2n) { background-color: #F8F8F8; }

(3)(+0000008): Getting contents of jar:file:///Users/zhangxinyue/Library/Application%20Support/Zotero/Profiles/nq2y6e9g.default/extensions/Knowledge4Zotero@windingwind.com.xpi!/chrome/content/scripts/editorScript.js

(1)(+0000001): Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead

(3)(+0000000): HTTP GET jar:file:///Users/zhangxinyue/Library/Application%20Support/Zotero/Profiles/nq2y6e9g.default/extensions/Knowledge4Zotero@windingwind.com.xpi!/chrome/content/scripts/editorScript.js

(3)(+0000058): HTTP GET jar:file:///Users/zhangxinyue/Library/Application%20Support/Zotero/Profiles/nq2y6e9g.default/extensions/Knowledge4Zotero@windingwind.com.xpi!/chrome/content/scripts/editorScript.js succeeded with 200

(3)(+0000001): [Better Notes for Zotero] [Warning] Creating element script with no namespace specified. Found multiply namespace matches.

(3)(+0000002): Getting contents of jar:file:///Users/zhangxinyue/Library/Application%20Support/Zotero/Profiles/nq2y6e9g.default/extensions/Knowledge4Zotero@windingwind.com.xpi!/chrome/content/styles/editor.css

(1)(+0000001): Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead

(3)(+0000000): HTTP GET jar:file:///Users/zhangxinyue/Library/Application%20Support/Zotero/Profiles/nq2y6e9g.default/extensions/Knowledge4Zotero@windingwind.com.xpi!/chrome/content/styles/editor.css

(3)(+0000062): HTTP GET jar:file:///Users/zhangxinyue/Library/Application%20Support/Zotero/Profiles/nq2y6e9g.default/extensions/Knowledge4Zotero@windingwind.com.xpi!/chrome/content/styles/editor.css succeeded with 200

(3)(+0000001): [Better Notes for Zotero] [Warning] Creating element style with no namespace specified. Found multiply namespace matches.

(3)(+0000049): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.

(3)(+0005239): Using note template:

(3)(+0000001):

{{if comment}}

{{comment}}

{{end if}} 📖原文: {{highlight}}
📌引自: {{citation}}

(3)(+0002545): Writing reader state to /Users/zhangxinyue/Zotero/storage/JXHX252C/.zotero-reader-state

(3)(+0000208): Using note template:

(3)(+0000000):

{{if comment}}

{{comment}}

{{end if}} 📖原文: {{highlight}}
📌引自: {{citation}}

(3)(+0022305): Getting contents of /Users/zhangxinyue/Library/Application Support/Zotero/Profiles/nq2y6e9g.default/treePrefs.json

(3)(+0000003): Writing column prefs of length 11673 to file /Users/zhangxinyue/Library/Application Support/Zotero/Profiles/nq2y6e9g.default/treePrefs.json

Anything else?

No response

@guaguastandup guaguastandup added the bug Something isn't working label Oct 18, 2024
@windingwind
Copy link
Owner

原文没复制上吧,请检查剪贴板

@guaguastandup
Copy link
Author

原文没复制上吧,请检查剪贴板

2
复制上了,可以看右上角maccy软件的提示。

刚才更新了zotero版本到最新,还是一样的。

复制粘贴内容:
nd importance to surface the records needed to inform the agent’s moment-to-moment behavior. The second is reflection, which synthesizes memories into higherlevel inferences over time, enabling the age

@windingwind
Copy link
Owner

录屏看下吧,截图看不出来。复制粘贴不是插件功能

@guaguastandup
Copy link
Author

录屏看下吧,截图看不出来。复制粘贴不是插件功能

好的,谢谢,这是我的录屏。

2024-10-18-17.21.33.1.mp4

@windingwind
Copy link
Owner

帮助- restart in troubleshooting mode,然后重试看是否正常

@guaguastandup
Copy link
Author

帮助- restart in troubleshooting mode,然后重试看是否正常

🥺 抱歉,应该是我本地出了什么问题,开了troubleshooting后一开始无法选中文字,过了一会可以选中文字,也可以复制到剪切板,但是没法粘贴到zotero笔记上

@windingwind
Copy link
Owner

windingwind commented Oct 18, 2024

如果troubleshooting下仍有问题,则与插件无关。请向https://forums.zotero.org/discussions 反馈

@windingwind windingwind closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants