GithubHelp home page GithubHelp logo

windingwind / zotero-pdf-translate Goto Github PK

View Code? Open in Web Editor NEW
6.1K 18.0 301.0 3.87 MB

Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.

License: GNU Affero General Public License v3.0

JavaScript 8.71% TypeScript 78.61% HTML 3.45% Fluent 9.21% Shell 0.02%
zotero translate translation plugin zotero-plugin pdf zotero7

zotero-pdf-translate's Introduction

Translate for ZoteroTranslate for Zotero

zotero target version Using Zotero Plugin Template

Translate for Zotero, a.k.a. Zotero PDF Translate, is a Zotero plugin.
Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.

中文文档

Quick Start Guide

Install

For Zotero 6, install the latest stable version; For Zotero 7, install the latest prerelease version

From local file

  • Download the latest release (.xpi file) from the Latest Release Page
    Note If you're using Firefox as your browser, right-click the .xpi and select "Save As.."
  • In Zotero click Tools in the top menu bar and then click Addons
  • Go to the Extensions page and then click the gear icon in the top right.
  • Select Install Add-on from file.
  • Browse to where you downloaded the .xpi file and select it.
  • Restart Zotero, by clicking restart now in the extensions list where the Zotero PDF Translate plugin is now listed.

From remote link

  • In Zotero click Tools in the top menu bar and then click Addons.
  • Drag Latest Release and drop it in the Zotero UI.
  • Click install now.
  • Restart Zotero, by clicking restart now in the extensions list where the Zotero PDF Translate plugin is now listed.

Usage

Once you have the plugin installed simply, open any PDF in your collections.

  • Select some text, the translations are shown on the popup and the right sidebar(v0.2.0); Hold Alt/Option to concat selections.

  • Highlight some text, the translations are added to the annotation comment(v0.3.0); Modify & retranslate the annotation text in the sidebar and click the Update Annotation to modify the annotation text and translation(v0.6.6);

  • Add selected text along with translation to note(v0.4.0); Only works when a note editor is active.

  • Translate item titles with right-click menu or shortcut Ctrl+T(v0.6.0).

  • Translate item abstract with right-click menu(v0.8.0). Thanks @iShareStuff

  • Standalone translation window available(v0.7.0). View & compare translations from multiply engines in one window!

  • Dictionary for single word translation(v0.7.1).

  • SentenceBySentence Translation(v1.1.0). After a translation, press shift+P and select Translate Sentences. Only for en2zh and en2en now. Thanks @MuiseDestiny

Q&A

Q I want to translate manually.
A Go to Edit->Preferences->PDF Translate->General, uncheck the Automatic Translation. Click the translate button on the popup or sidebar to translate.

Q I want a translate shortcut.
A Press shortcut Ctrl+T after you selected some text. If you are in the collection view, the titles' translation will show/hide.

Q I want to concat different seletions and translate them together.
A Press Alt/Option when selecting text in PDF.

Q Not the language I want.
A The default target language is the same as your Zotero language. Go to Edit->Preferences->PDF Translate->General and change the language settings.

Q Translation not correct or report an error.
A See Language Settings and #6. Make sure you use the right secret.

Q I want to change the font size.
A Go to Edit->Preferences->PDF Translate->Advanced and set the font size.

Settings

General

  • Enable Translation, default true
  • Automatic Translation, default true
  • Enable Dictionary: single word will be translated using dictionary-engine instead of translate engine, default true
  • Enable Popup: Show results in a right-click popup or only in the sidebar, default true
  • Automatic Annotation Translation: Save annotation's translation as comment, default true
  • Show 'Add to Note(With Translation)' in Popup: default true

    Unvisible if no active note editor opened.

    • Replace Source Text: Use translation to replace the source text when adding to note, default false

Service

The default engine is Google Translate. Currently, we support:

Translate Engine Require Secret Supported Languages
Google Translate No 100+
Google Translate(API) No Use translate.googleapis.com
CNKI No https://dict.cnki.net
Youdao Translate No 100+?
NiuTrans Yes 400+
Youdao Zhiyun Yes 100+
Microsoft Translate Yes(free 2M) 200+
LingoCloud(Caiyun) Translate Yes zh, en, ja, es, fr, ru
DeepL Translate Yes(free 500k) 100+
Aliyun Translate Yes(free-1M) 200+
Baidu Translate Yes(free-QPS1/free-2M) 200+
Baidu Field Yes(free-QPS1/free-2M) en-zh
Tencent Translate Yes(QPS5, free-5M) 15
GPT(OpenAI) Yes(free-$18) Based on the gpt-3.5-turbo model
Gemini Yes(free-) Based on the Gemini Pro model

If the engine you want is not yet supported, please post an issue.

Google Google does not require a secret, but you can put your own API URL in the secret to replace the default URL (translate.google.com/translate.googleapi.com).

Microsoft Translate
Apply here. Copy your secret and paste it into the settings.
The secret format is MY_SECRET.

See this issue for detailed steps to set up the Microsoft Translate.

DeepL Translate
Apply here. The secret format is secretToken or secretToken#glossaryId (if you want to specify some translate glossary).

Youdao Zhiyun Translate 有道智云
Apply here.
The secret format is MY_APPID#MY_SECRET#MY_VOCABID(optional).

About VOCABID
登录控制台,选择文本翻译服务,点击右侧的术语表,选择新建,填写表名称和语言方向,添加需要的术语表,然后获取对应词表 id 即可。

Official Document

NiuTrans
Apply here.
The secret format is MY_APIKEY#dictNo(optional)#memoryNo(optional).

Chinese Document

Aliyun Translate Apply here. The secret format is accessKeyId#accessKeySecret.

Chinere Document

Baidu Translate
Apply here.
The secret format is MY_APPID#MY_KEY#ACTION(optional, see https://api.fanyi.baidu.com/doc/21, default 0)(split with '#').

Baidu Field Translate 百度垂直领域翻译
Apply here.
The secret format is MY_APPID#MY_KEY#DOMAIN_CODE(split with '#').

Domain Code 领域 语言方向
electronics 电子科技领域 中文-->英语
finance 金融财经领域 中文-->英语
finance 金融财经领域 英语-->中文
mechanics 水利机械领域 中文-->英语
medicine 生物医药领域 中文-->英语
medicine 生物医药领域 英语-->中文
novel 网络文学领域 中文-->英语

Chinese Document

Tencent Translate
Apply here.
The secret format is secretId#SecretKey#Region(optional, default ap-shanghai)#ProjectId(optional, default 0)(split with '#').

Chinese Document

OpenL Translate
Apply here.
The secret format is service1,service2,...#apikey(split with '#'; split service codes with ',').

Supported service codes are: deepl,youdao,tencent,aliyun,baidu,caiyun,wechat,sogou,azure,ibm,aws,google, See Service Code

Chinese Document

GPT
Apply here.
The secret format is sk-#SecretKey(split with '#').

Chinese Document

User Interface

  • Font Size: The font size of result text, default 12
  • Line Height: The line height of result text, default 1.5
  • SideBar: Show xxx: Show or hide sidebar elements, default true
  • SideBar: Reverse Raw/Result: Reverse the order of Raw/Result in the sidebar if true, default false
  • Popup: Remember Size: Remember size of popup if true, else automatically adjust the size, default false

Advanced

  • Disable Automatic Translation when File Language is(split with ','): If you want to disable automatic translation in zh and ja files, set zh,ja.
  • Split Character(between text and translation): When translating annotations, the result will be wrapped inside this character to allow safe re-translate. If set to empty, re-translating annotations will replace the annotation comment with the new translate result.

Development & Contributing

This addon is built based on the Zotero Plugin Template. See the setup and debug details there.

To startup, run

git clone https://github.com/windingwind/zotero-pdf-translate.git
cd zotero-pdf-translate
npm install
npm run build

The plugin is built to ./build/*.xpi.

Contributing

Add new translate service

  1. Add service config to src/utils/config.ts > SERVICES;
  2. Add translation task processor under src/modules/services/${serviceId}.ts with the same format with other services. The export function set the translation result to data.result if runs successfully and throw an error if fails;
  3. Import the task processor function in src/modules/services/index.ts.
  4. Add locale string service.${serviceId} in addon/chrome/locale/${lang}/addon.properties.
  5. Build and test.

Extra options for translate service

If the service requires extra options, the minimal implement would be putting them in the secret input in the prefs window, like the existing services does.

If there are complex options, please bind a callback in src/modules/settings/index.ts > secretStatusButtonData which create a highly customizable dialog window with ztoolkit.Dialog. See the example of NiuTrans login here: https://github.com/windingwind/zotero-pdf-translate/blob/main/src/modules/settings/niutrans.ts

Disclaimer

Use this code under AGPL. No warranties are provided. Keep the laws of your locality in mind!

My Other Zotero Addons

Sponsors

Thanks peachgirl100 and other anonymous sponsors!

If you want to leave your name here, please email me or leave a message with the donation.

Contributors

zotero-pdf-translate's People

Contributors

breakertt avatar cerallin avatar dependabot[bot] avatar epitaphial avatar ezellohar avatar frostime avatar grayxu avatar jacketlee avatar joacand avatar kylechoy avatar lol2025 avatar lyk7539511 avatar maasea avatar mariozzj avatar missuo avatar muisedestiny avatar northword avatar polygononon avatar raykr avatar sasaju avatar shevonkuan avatar timetrapzz avatar tylzh97 avatar volatile-static avatar waterlens avatar windingwind avatar yin1999 avatar yuhldr avatar zfb132 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zotero-pdf-translate's Issues

Common Issues

Chinese Documentations/中文文档

如果你能够阅读中文,遇到问题请先查看中文文档。文档中包括几乎所有你可能遇到的问题,提问重复内容不再回复。
中文文档

Translate doesn't work

Select text in the built-in reader and view the result in the popup/right sidebar.

Auto-Translate doesn't work

Check if the current item's language is in the plugin settings' ignore list. See https://github.com/windingwind/zotero-pdf-translate#advanced

Translate Error

Type Detail Reason Solution
Request Error Slow or no result/Error: Request timed out server unavailable change translate engine
Request Error Error: ... failed with status code 4xx invalid secret check secret
Request Error TypeError: xhr.response.trans_result is undefined #30 invalid secret check secret
Request Error Error: ... failed with status code 425 request too fast change translate engine
Request Error Error: ... IP/User Disabled #57 request too fast change translate engine
Others - - post an issue

Sidebar/Popup doesn't show

See #29 #17

Translate Engine & Secret

See https://github.com/windingwind/zotero-pdf-translate#translate-engine
Here are the documents for applying API keys:
#20 (in Chinese)

Poor quality/Why we recommend using services that requires secret

See #56

UI Issues

Show/Hide Popup

Edit->Preferences->PDF Translate->UI->Enable Popup

Font Size

Edit->Preferences->PDF Translate->UI->Font Size

保留各引擎的API/密钥配置 #enhancement

老哥晚上好,我觉得插件非常不错,使用起来非常方便!

有一个小建议,可以保留不同引擎的API配置吗?这样在更换引擎的时候,就不需要重新输入一遍密钥(我个人有多个引擎的密钥,有时候回来会更换)

[Need Help] Purchase Translation API?

I've received some suggestions about supporting more translate engines, like DeepL, Caiyun, etc. However, these translate services usually require payment to get the full API.

This means either requiring the user to go through tedious steps to set up a key (and possibly paying for it), or requiring me to provide a full API with no restrictions. The latter requires a relatively large fee, but I cannot currently afford it.

The prices are listed below:

  • DeepL US$6.99 per month unlimited
  • Microsoft $10 per million chars of standard translation

Looking for suggestions!

Microsoft Translate: Microsoft secret

I don't understand this process. I've used Microsoft translate from the web. Please provide further guidance on your Quick Start Guide about how to format a proper Language Parameter for Microsoft Translate. I am completely naive about the function of "secret" and couldn't find an explanation after a search of the web.

I'm completely without any experience with the programming involved in this plugin. Thus, what I'm about to suggest may be impossibly difficult or impossible. Could you set a PDF Translate service where the user enters the 2-letter ISO code for the source language and the code for the target language and automatically generate the language parameter string?

Target language setting not saved

Describe the bug
Hi, nice tool. I found that it doesn't save the setting for target language. My zotero is set to be in English, the plugin default target language is "English - US". I changed it to Chinese, but when I restart Zotero, it goes back to "English - US". This happens also when I just open the preference for setting. You could see below the environment details I use. Many thanks.

Expected behavior
Save the setting for target language.

Environment

  • OS: Windows 11
  • Zotero Version 6.0.3
  • Addon Version 0.3.5

[Bug] Chinese (simplified) may be set equal to default system language

Describe the bug
The plugin failed to translate English to Chinese (Simplified). The popup only showed the original word. However, when I changed the target language to other Chinese, it would work. I think this may be related to environment variables of default system language because mine is set to English.

To Reproduce
Steps to reproduce the behavior:

  1. Change you default system language to English (United States)
  2. Set the source language to English (US) and the target language to Chinese (Simplified)
  3. Do the translation as the way described in README

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Environment

  • OS: Windows
  • Zotero Version: 6.0.3
  • Addon Version: 0.3.4

[Bug]

Search the Issues Page and make sure this is not a duplicated issue

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Google(CN) and Youdao Translate not working in v0.1.3

Hi, I downloaded and installed the latest version v0.1.3. I tried the translate engines that do not require secrets but only Niu Translate worked. I'm in China and Google Translate(CN) can't work.

2022-03-21_11-11_1

Besides, Youdao Translate returned [object Object].

2022-03-21_11-11

Youdao Translate works fine in v0.1.2. Is there something wrong? My zotero version is 6.0.

有没有开发星标功能的想法

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

是否可以支持手动点击来确定翻译?

当前版本中,选择文本后,对于仅仅只是为了添加颜色的情况下,翻译的自动弹窗略显多余,并且还会带来不必要的翻译请求。

image

不知是否可以支持手动点击来确定翻译的形式?

不打开弹窗翻译,侧边栏不能自动翻译[Feature]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

小建议

请问是否可以增加一个功能,当识别为翻译的目标语言时则不显示翻译,比如设置英文翻译为中文时,对于中文论文进行划词时不显示翻译,或者增加一个翻译快捷键。谢谢!

翻译的最后一行总是只显示一半。希望改善下翻译界面

Before Issue/提问之前

  1. See #6 and search the Issues Page to make sure this is not a duplicated issue;
  2. If this is a bug with Translate, i.e. no result or error, make sure you can access the translate service and the secret is currect;
  3. Remember to delete this section before submit.

Issues not in the template format will be ignored/不按模板格式的提问将不会被回复

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • OS: Windows/macOS/Linux
  • Zotero Version(Help->About Zotero)
  • Addon Version(Tools->Add-ons)

Additional context
Add any other context about the problem here.

[Bug]在空白处拖动鼠标后翻译结果消失

To Reproduce

  1. 用鼠标选中一段文字
  2. 在旁边空白处按下鼠标左键拖动一小段距离(不选中任何文字)

Expected behavior
完成步骤1后正常显示翻译结果,完成步骤2后翻译结果消失,出现报错
[Request Error]
Engine not available, invalid secret, or request too fast.
Please consider using another translate engine or posting issue here: https://github.com/windingwind/zotero-pdf-translate/issues
TypeError: xhr.response[0] is null

Screenshots
image
image

Additional context
我在阅读过程中喜欢取消选中,所以会在旁边空白处进行点击,而有时候点击鼠标过程中鼠标会有少许移动,所以就遇到了这个问题。
是否可以在拖动鼠标后判断选中文字的数量,若未选中文字或选中文字数量少于某个数值则不进行翻译

The side bar is missing when I updated to the v0.3.11

Describe the bug
The side bar is missing when I updated to the v0.3.11
The debug output
[JavaScript Error: "Translators not yet loaded"]

[JavaScript Error: "Translators not yet loaded"]

[JavaScript Error: "Translators not yet loaded"]

[JavaScript Error: "Translators not yet loaded"]

[JavaScript Error: "Translators not yet loaded"]

[JavaScript Error: "XML Parsing Error: no root element found
Location: https://825812523%40qq%2Ecom:@dav.jianguoyun.com/dav/zotero/
Line Number 1, Column 1:" {file: "https://825812523%40qq%2Ecom:
@dav.jianguoyun.com/dav/zotero/" line: 1}]

version => 6.0.4, platform => MacIntel, oscpu => Intel Mac OS X 10.16, locale => zh-CN, appName => Zotero, appVersion => 6.0.4, extensions => Zutilo Zotero 工具箱 (3.10.0, extension), Jasminum (0.1.6, extension), Sci-Hub Plugin for Zotero (1.4.2, extension), Folder Import for Zotero (0.0.4, extension), ZotFile (5.1.1, extension), Zotero LibreOffice Integration (6.0.0.SA.6.0.4, extension), Zotero Word for Mac Integration (6.0.0.SA.6.0.4, extension), Zotero IF Pro Max (2.5.0, extension), Zotero PDF Translate (0.3.11, extension)

(3)(+0104494): ZoteroPDFTranslate: onTranslate

(3)(+0000202): ZoteroPDFTranslate: onTranslate

(4)(+0000004): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [1459, '']

(3)(+0000008): Viewing attachment 1/U7RRRZDL

(3)(+0000004): Opening /Users/HMethod/Zotero/storage/U7RRRZDL/Romero-González et al_2022_EEG abnormalities and clinical phenotypes in pre-school children with autism.pdf

(3)(+0000001): Notifier.trigger('open', 'file', [1480]) called [observers: 5]

(3)(+0000019): Notifier.trigger('add', 'tab', [tab-9jAYCXap], {"tab-9jAYCXap":{"itemID":1480}}) called [observers: 5]

(3)(+0000010): Notifier.trigger('select', 'tab', [tab-9jAYCXap], {"tab-9jAYCXap":{"type":"reader"}}) called [observers: 5]

(3)(+0000011): ZoteroPDFTranslate: open file event detected.

(3)(+0000001): ZoteroPDFTranslate: open file event detected.

(3)(+0000000): ZoteroPDFTranslate: Update Translate Panels

(3)(+0000039): Refreshing item box

(3)(+0000227): Getting contents of /Users/HMethod/Zotero/storage/U7RRRZDL/.zotero-pdf-state

(3)(+0000149): itemTree.render(). Displaying Item Tree

(3)(+0000049): ZoteroPDFTranslate: buildSideBarPanel

(3)(+0004982): ZoteroPDFTranslate: onTranslate

(3)(+0000002): ZoteroPDFTranslate: updatePopupStyle

(3)(+0000002): HTTP GET https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms.

(3)(+0000413): HTTP GET https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms. succeeded with 200

(3)(+0000009): [object XMLHttpRequest] { "open": function open() { [native code] } "setRequestHeader": function setRequestHeader() { [native code] } "send": function send() { [native code] } "abort": function abort() { [native code] } "getResponseHeader": function getResponseHeader() { [native code] } "getAllResponseHeaders": function getAllResponseHeaders() { [native code] } "overrideMimeType": function overrideMimeType() { [native code] } "onreadystatechange": null "readyState": 4 "timeout": 30000 "withCredentials": false "upload": [object XMLHttpRequestUpload] { "onloadstart": null "onprogress": null "onabort": null "onerror": null "onload": null "ontimeout": null "onloadend": null "addEventListener": function addEventListener() { [native code] } "removeEventListener": function removeEventListener() { [native code] } "dispatchEvent": function dispatchEvent() { [native code] } "setEventHandler": function setEventHandler() { [native code] } "getEventHandler": function getEventHandler() { [native code] } "ownerGlobal": null } "responseURL": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "status": 200 "statusText": "OK" "responseType": "json" "response": [ "0": [ "0": [ "0": "背景:脑电图(EEG)结果的异常已以高百分比的自闭症谱系障碍(ASD)报告。" "1": "Background: Abnormalities on electroencephalography (EEG) results have been reported in a high percentage of children with Autism Spectrum Disorder (ASD)." "2": null "3": null "4": 3 "5": null "6": null "7": [ "0": [ "0": null "1": "offline" ] ] "8": [ "0": [ "0": [object Array] <> ] ] ] "1": [ "0": "本研究的目的是探讨患有自闭症谱系疾病的学前儿童临床群体中EEG异常的患病率以及以下表型特征方面的差异:自适应行为,执行功能,自闭症谱系疾病的严重程度核心症状" "1": "The purpose of this study was to explore the prevalence of EEG abnormalities in a clinical population of pre-school children with Autism Spectrum Disorder and the differences in terms of the following phenotypic characteristics: adaptive behavior, executive functioning, severity of Autism Spectrum Disorder core symptoms" "2": null "3": null "4": 3 "5": null "6": null "7": [ "0": [ "0": null "1": "offline" ] ] "8": [ "0": [ "0": [object Array] <> ] ] ] "2": [ "0": "和合并症症状。" "1": ", and comorbidity symptoms." "2": null "3": null "4": 3 "5": null "6": null "7": [ "0": [ "0": null "1": "offline" ] ] "8": [ "0": [ "0": [object Array] <> ] ] ] "3": [ "0": null "1": null "2": "Bèijǐng: Nǎo diàn tú (EEG) jiéguǒ de yìcháng yǐ yǐ gāo bǎifēnbǐ de zì bì zhèng pǔxì zhàng'ài (ASD) bàogào. Běn yánjiū de mùdì shì tàntǎo huàn yǒu zì bì zhèng pǔxì jíbìng de xuéqián értóng línchuáng qúntǐ zhōng EEG yìcháng de huàn bìng lǜ yǐjí yǐxià biǎo xíng tèzhēng fāngmiàn de chāyì: Zì shìyìng xíngwéi, zhíxíng gōngnéng, zì bì zhèng pǔxì jíbìng de yánzhòng chéngdù héxīn zhèngzhuàng hé hébìng zhèng zhèngzhuàng." ] ] "1": null "2": "en" "3": null "4": null "5": [ "0": [ "0": "Background: Abnormalities on electroencephalography (EEG) results have been reported in a high percentage of children with Autism Spectrum Disorder (ASD)." "1": null "2": [ "0": [ "0": "背景:脑电图(EEG)结果的异常已以高百分比的自闭症谱系障碍(ASD)报告。" "1": 0 "2": true "3": false "4": [object Array] <> "5": null "6": [object Array] <> ] "1": [ "0": "背景:脑电图(EEG)结果的异常已以高百分比的自闭症谱系障碍(ASD)报道。" "1": 0 "2": true "3": false "4": [object Array] <> ] ] "3": [ "0": [ "0": 0 "1": 154 ] ] "4": "Background: Abnormalities on electroencephalography (EEG) results have been reported in a high percentage of children with Autism Spectrum Disorder (ASD)." "5": 0 "6": 0 ] "1": [ "0": "The purpose of this study was to explore the prevalence of EEG abnormalities in a clinical population of pre-school children with Autism Spectrum Disorder and the differences in terms of the following phenotypic characteristics: adaptive behavior, executive functioning, severity of Autism Spectrum Disorder core symptoms" "1": null "2": [ "0": [ "0": "本研究的目的是探讨患有自闭症谱系疾病的学前儿童临床群体中EEG异常的患病率以及以下表型特征方面的差异:自适应行为,执行功能,自闭症谱系疾病的严重程度核心症状" "1": 0 "2": true "3": false "4": [object Array] <> "5": null "6": [object Array] <> ] "1": [ "0": "本研究的目的是探讨患有自闭症谱系疾病的学前儿童临床群体中EEG异常的患病率以及以下表型特征方面的差异:自适应行为,高管运作,自闭症谱系疾病的严重程度核心症状" "1": 0 "2": true "3": false "4": [object Array] <> ] ] "3": [ "0": [ "0": 0 "1": 321 ] ] "4": "The purpose of this study was to explore the prevalence of EEG abnormalities in a clinical population of pre-school children with Autism Spectrum Disorder and the differences in terms of the following phenotypic characteristics: adaptive behavior, executive functioning, severity of Autism Spectrum Disorder core symptoms" "5": 0 "6": 0 ] "2": [ "0": ", and comorbidity symptoms." "1": null "2": [ "0": [ "0": "和合并症症状。" "1": 0 "2": true "3": false "4": [object Array] <> "5": null "6": [object Array] <> ] "1": [ "0": ",和合并症症状。" "1": 0 "2": true "3": false "4": [object Array] <> ] ] "3": [ "0": [ "0": 0 "1": 27 ] ] "4": ", and comorbidity symptoms." "5": 0 "6": 0 ] ] "6": 1 "7": [] "8": [ "0": [ "0": "en" ] "1": null "2": [ "0": 1 ] "3": [ "0": "en" ] ] ] "responseText": <> "responseXML": <> "mozAnon": false "mozSystem": true "UNSENT": 0 "OPENED": 1 "HEADERS_RECEIVED": 2 "LOADING": 3 "DONE": 4 "getInterface": function getInterface() { [native code] } "setOriginAttributes": function setOriginAttributes() { [native code] } "sendInputStream": function sendInputStream() { [native code] } "mozBackgroundRequest": true "channel": [object XPCWrappedNative_NoHelper] { "forceAllowThirdPartyCookie": true "QueryInterface": function QueryInterface() { [native code] } "URI": [object XPCWrappedNative_NoHelper] { "spec": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "host": "translate.googleapis.com" "prePath": "https://translate.googleapis.com" "scheme": "https" "userPass": "" "username": "" "password": "" "hostPort": "translate.googleapis.com" "port": -1 "pathQueryRef": "/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "equals": function equals() { [native code] } "schemeIs": function schemeIs() { [native code] } "clone": function clone() { [native code] } "resolve": function resolve() { [native code] } "asciiSpec": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "asciiHostPort": "translate.googleapis.com" "asciiHost": "translate.googleapis.com" "ref": "" "equalsExceptRef": function equalsExceptRef() { [native code] } "cloneIgnoringRef": function cloneIgnoringRef() { [native code] } "cloneWithNewRef": function cloneWithNewRef() { [native code] } "specIgnoringRef": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "hasRef": false "filePath": "/translate_a/single" "query": "client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "displayHost": "translate.googleapis.com" "displayHostPort": "translate.googleapis.com" "displaySpec": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "displayPrePath": "https://translate.googleapis.com" "mutate": function mutate() { [native code] } "QueryInterface": function QueryInterface() { [native code] } } "getRequestHeader": function getRequestHeader() { [native code] } "setRequestHeader": function setRequestHeader() { [native code] } "loadFlags": 557842689 "name": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "isPending": function isPending() { [native code] } "status": 0 "cancel": function cancel() { [native code] } "suspend": function suspend() { [native code] } "resume": function resume() { [native code] } "loadGroup": null "originalURI": [object XPCWrappedNative_NoHelper] { "spec": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "host": "translate.googleapis.com" "prePath": "https://translate.googleapis.com" "scheme": "https" "userPass": "" "username": "" "password": "" "hostPort": "translate.googleapis.com" "port": -1 "pathQueryRef": "/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "equals": function equals() { [native code] } "schemeIs": function schemeIs() { [native code] } "clone": function clone() { [native code] } "resolve": function resolve() { [native code] } "asciiSpec": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "asciiHostPort": "translate.googleapis.com" "asciiHost": "translate.googleapis.com" "ref": "" "equalsExceptRef": function equalsExceptRef() { [native code] } "cloneIgnoringRef": function cloneIgnoringRef() { [native code] } "cloneWithNewRef": function cloneWithNewRef() { [native code] } "specIgnoringRef": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "hasRef": false "filePath": "/translate_a/single" "query": "client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "displayHost": "translate.googleapis.com" "displayHostPort": "translate.googleapis.com" "displaySpec": "https://translate.googleapis.com/translate_a/single?client=webapp&sl=en-US&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=414868.24800&q=Background%3A%20Abnormalities%20on%20electroencephalography%20(EEG)%20results%20have%20been%20reported%20in%20a%20high%20percentage%20of%20children%20with%20Autism%20Spectrum%20Disorder%20(ASD).%20The%20purpose%20of%20this%20study%20was%20to%20explore%20the%20prevalence%20of%20EEG%20abnormalities%20in%20a%20clinical%20population%20of%20pre-school%20children%20with%20Autism%20Spectrum%20Disorder%20and%20the%20differences%20in%20terms%20of%20the%20following%20phenotypic%20characteristics%3A%20adaptive%20behavior%2C%20executive%20functioning%2C%20severity%20of%20Autism%20Spectrum%20Disorder%20core%20symptoms%2C%20and%20comorbidity%20symptoms." "displayPrePath": "https://translate.googleapis.com" "mutate": function mutate() { [native code] } "QueryInterface": function QueryInterface() { [native code] } } "owner": null "notificationCallbacks": null "securityInfo": [object XPCWrappedNative_NoHelper] { "QueryInterface": function QueryInterface() { [native code] } } "contentType": "application/json" "contentCharset": "utf-8" "contentLength": -1 "open": function open() { [native code] } "open2": function open2() { [native code] } "asyncOpen": function asyncOpen() { [native code] } "asyncOpen2": function asyncOpen2() { [native code] } "contentDisposition": 1 "contentDispositionFilename": "json.txt" "contentDispositionHeader": "attachment; filename="json.txt"; filename*=UTF-8''json.txt" "loadInfo": [object XPCWrappedNative_NoHelper] { "QueryInterface": function QueryInterface() { [native code] } "loadingPrincipal": [object XPCWrappedNative_NoHelper] { "QueryInterface": function QueryInterface() { [native code] } "read": function read() { [native code] } "write": function write() { [native code] } "equals": function equals() { [native code] } "equalsConsideringDomain": function equalsConsideringDomain() { [native code] } "URI": null "subsumes": function subsumes() { [native code] } "subsumesConsideringDomain": function subsumesConsideringDomain() { [native code] } "subsumesConsideringDomainIgnoringFPD": function subsumesConsideringDomainIgnoringFPD() { [native code] } "checkMayLoad": function checkMayLoad() { [native code] } "cspJSON": "{}" "originAttributes": { "appId": 0 "firstPartyDomain": "" "inIsolatedMozBrowser": false "privateBrowsingId": 0 "userContextId": 0 } "origin": "[System Principal]" "originNoSuffix": "[System Principal]" "originSuffix": "" "baseDomain": "" "appId": 0 "addonId": "" "addonPolicy": null "userContextId": 0 "privateBrowsingId": 0 "isInIsolatedMozBrowserElement": false "isNullPrincipal": false "isCodebasePrincipal": false "isExpandedPrincipal": false "isSystemPrincipal": true } "triggeringPrincipal": [object XPCWrappedNative_NoHelper] { "QueryInterface": function QueryInterface() { [native code] } "read": function read() { [native code] } "write": function write() { [native code] } "equals": function equals() { [native code] } "equalsConsideringDomain": function equalsConsideringDomain() { [native code] } "URI": null "subsumes": function subsumes() { [native code] } "subsumesConsideringDomain": function subsumesConsideringDomain() { [native code] } "subsumesConsideringDomainIgnoringFPD": function subsumesConsideringDomainIgnoringFPD() { [native code] } "checkMayLoad": function checkMayLoad() { [native code] } "cspJSON": "{}" "originAttributes": { "appId": 0 "firstPartyDomain": "" "inIsolatedMozBrowser": false "privateBrowsingId": 0 "userContextId": 0 } "origin": "[System Principal]" "originNoSuffix": "[System Principal]" "originSuffix": "" "baseDomain": "" "appId": 0 "addonId": "" "addonPolicy": null "userContextId": 0 "privateBrowsingId": 0 "isInIsolatedMozBrowserElement": false "isNullPrincipal": false "isCodebasePrincipal": false "isExpandedPrincipal": false "isSystemPrincipal": true } "principalToInherit": null "loadingDocument": null "securityFlags": 264 "securityMode": 8 "isInThirdPartyContext": false "cookiePolicy": 32 "forceInheritPrincipal": false "forceInheritPrincipalOverruleOwner": false "loadingSandboxed": true "aboutBlankInherits": false "allowChrome": false "disallowScript": false "dontFollowRedirects": false "loadErrorPage": false "isDocshellReload": false "externalContentPolicyType": 11 "upgradeInsecureRequests": false "browserUpgradeInsecureRequests": false "verifySignedContent": false "enforceSRI": false "forceAllowDataURI": false "allowInsecureRedirectToDataURI": false "originalFrameSrcLoad": false "forceInheritPrincipalDropped": false "innerWindowID": 0 "outerWindowID": 0 "parentOuterWindowID": 0 "topOuterWindowID": 0 "frameOuterWindowID": 0 "resetPrincipalToInheritToNullPrincipal": function resetPrincipalToInheritToNullPrincipal() { [native code] } "allowDocumentToBeAgnosticToCSP": false "originAttributes": { "appId": 0 "firstPartyDomain": "" "inIsolatedMozBrowser": false "privateBrowsingId": 0 "userContextId": 0 } "enforceSecurity": true "initialSecurityCheckDone": true "loadTriggeredFromExternal": false "appendRedirectHistoryEntry": function appendRedirectHistoryEntry() { [native code] } "redirectChainIncludingInternalRedirects": [] "redirectChain": [] "forcePreflight": false "isPreflight": false "tainting": 0 "maybeIncreaseTainting": function maybeIncreaseTainting() { [native code] } "isTopLevelLoad": true "resultPrincipalURI": null "isFromProcessingFrameAttributes": false "SEC_REQUIRE_SAME_ORIGIN_DATA_INHERITS": 1 "SEC_REQUIRE_SAME_ORIGIN_DATA_IS_BLOCKED": 2 "SEC_ALLOW_CROSS_ORIGIN_DATA_INHERITS": 4 "SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL": 8 "SEC_REQUIRE_CORS_DATA_INHERITS": 16 "SEC_COOKIES_DEFAULT": 0 "SEC_COOKIES_INCLUDE": 32 "SEC_COOKIES_SAME_ORIGIN": 64 "SEC_COOKIES_OMIT": 96 "SEC_FORCE_INHERIT_PRINCIPAL": 128 "SEC_SANDBOXED": 256 "SEC_ABOUT_BLANK_INHERITS": 512 "SEC_ALLOW_CHROME": 1024 "SEC_DISALLOW_SCRIPT": 2048 "SEC_DONT_FOLLOW_REDIRECTS": 4096 "SEC_LOAD_ERROR_PAGE": 8192 "SEC_FORCE_INHERIT_PRINCIPAL_OVERRULE_OWNER": 16384 "TAINTING_BASIC": 0 "TAINTING_CORS": 1 "TAINTING_OPAQUE": 2 } "isDocument": false "LOAD_REQUESTMASK": 65535 "LOAD_NORMAL": 0 "LOAD_BACKGROUND": 1 "LOAD_HTML_OBJECT_DATA": 2 "LOAD_DOCUMENT_NEEDS_COOKIE": 4 "INHIBIT_CACHING": 128 "INHIBIT_PERSISTENT_CACHING": 256 "LOAD_BYPASS_CACHE": 512 "LOAD_FROM_CACHE": 1024 "VALIDATE_ALWAYS": 2048 "VALIDATE_NEVER": 4096 "VALIDATE_ONCE_PER_SESSION": 8192 "LOAD_ANONYMOUS": 16384 "LOAD_FRESH_CONNECTION": 32768 "LOAD_DOCUMENT_URI": 65536 "LOAD_RETARGETED_DOCUMENT_URI": 131072 "LOAD_REPLACE": 262144 "LOAD_INITIAL_DOCUMENT_URI": 524288 "LOAD_TARGETED": 1048576 "LOAD_CALL_CONTENT_SNIFFERS": 2097152 "LOAD_CLASSIFY_URI": 4194304 "LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE": 8388608 "LOAD_EXPLICIT_CREDENTIALS": 16777216 "LOAD_BYPASS_SERVICE_WORKER": 33554432 "DISPOSITION_INLINE": 0 "DISPOSITION_ATTACHMENT": 1 "documentURI": null "getRequestVersion": function getRequestVersion() { [native code] } "getResponseVersion": function getResponseVersion() { [native code] } "setCookie": function setCookie() { [native code] } "setupFallbackChannel": function setupFallbackChannel() { [native code] } "thirdPartyFlags": 1 "canceled": false "channelIsForDownload": false "localAddress": "192.168.31.80" "localPort": 49287 "remoteAddress": "220.181.174.161" "remotePort": 443 "HTTPUpgrade": function HTTPUpgrade() { [native code] } "allowSpdy": true "responseTimeoutEnabled": false "initialRwin": 0 "apiRedirectToURI": null "allowAltSvc": true "beConservative": false "tlsFlags": 0 "lastModifiedTime": <> "responseSynthesized": false "corsIncludeCredentials": false "corsMode": 1 "redirectMode": 0 "fetchCacheMode": 0 "topWindowURI": <> "setTopWindowURIIfUnknown": function setTopWindowURIIfUnknown() { [native code] } "networkInterfaceId": "" "proxyURI": null "blockAuthPrompt": false "integrityMetadata": "" "connectionInfoHashKey": ".S.....[tlsflags0x00000000]translate.googleapis.com:443" "THIRD_PARTY_FORCE_ALLOW": 1 "CORS_MODE_SAME_ORIGIN": 0 "CORS_MODE_NO_CORS": 1 "CORS_MODE_CORS": 2 "CORS_MODE_NAVIGATE": 3 "REDIRECT_MODE_FOLLOW": 0 "REDIRECT_MODE_ERROR": 1 "REDIRECT_MODE_MANUAL": 2 "FETCH_CACHE_MODE_DEFAULT": 0 "FETCH_CACHE_MODE_NO_STORE": 1 "FETCH_CACHE_MODE_RELOAD": 2 "FETCH_CACHE_MODE_NO_CACHE": 3 "FETCH_CACHE_MODE_FORCE_CACHE": 4 "FETCH_CACHE_MODE_ONLY_IF_CACHED": 5 "requestMethod": "GET" "referrer": null "referrerPolicy": 1 "setReferrerWithPolicy": function setReferrerWithPolicy() { [native code] } "protocolVersion": "h2" "transferSize": 2390 "decodedBodySize": 3736 "encodedBodySize": 1169 "setEmptyRequestHeader": function setEmptyRequestHeader() { [native code] } "visitRequestHeaders": function visitRequestHeaders() { [native code] } "visitNonDefaultRequestHeaders": function visitNonDefaultRequestHeaders() { [native code] } "allowPipelining": false "allowSTS": true "redirectionLimit": 20 "responseStatus": 200 "responseStatusText": "OK" "requestSucceeded": true "isMainDocumentChannel": false "getResponseHeader": function getResponseHeader() { [native code] } "setResponseHeader": function setResponseHeader() { [native code] } "visitResponseHeaders": function visitResponseHeaders() { [native code] } "getOriginalResponseHeader": function getOriginalResponseHeader() { [native code] } "visitOriginalResponseHeaders": function visitOriginalResponseHeaders() { [native code] } "isNoStoreResponse": function isNoStoreResponse() { [native code] } "isNoCacheResponse": function isNoCacheResponse() { [native code] } "isPrivateResponse": function isPrivateResponse() { [native code] } "redirectTo": function redirectTo() { [native code] } "upgradeToSecure": function upgradeToSecure() { [native code] } "channelId": 1971389988881 "topLevelContentWindowId": 0 "isTrackingResource": false "topLevelOuterContentWindowId": 0 "logBlockedCORSRequest": function logBlockedCORSRequest() { [native code] } "REFERRER_POLICY_UNSET": 0 "REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE": 1 "REFERRER_POLICY_NO_REFERRER": 2 "REFERRER_POLICY_ORIGIN": 3 "REFERRER_POLICY_ORIGIN_WHEN_XORIGIN": 4 "REFERRER_POLICY_UNSAFE_URL": 5 "REFERRER_POLICY_SAME_ORIGIN": 6 "REFERRER_POLICY_STRICT_ORIGIN": 7 "REFERRER_POLICY_STRICT_ORIGIN_WHEN_XORIGIN": 8 } "networkInterfaceId": "" "errorCode": 0 "onloadstart": null "onprogress": null "onabort": null "onerror": null "onload": null "ontimeout": function () {...} "onloadend": function bound () { [native code] } "addEventListener": function addEventListener() { [native code] } "removeEventListener": function removeEventListener() { [native code] } "dispatchEvent": function dispatchEvent() { [native code] } "setEventHandler": function setEventHandler() { [native code] } "getEventHandler": function getEventHandler() { [native code] } "ownerGlobal": null }

(3)(+0000012): 背景:脑电图(EEG)结果的异常已以高百分比的自闭症谱系障碍(ASD)报告。本研究的目的是探讨患有自闭症谱系疾病的学前儿童临床群体中EEG异常的患病率以及以下表型特征方面的差异:自适应行为,执行功能,自闭症谱系疾病的严重程度核心症状和合并症症状。

(3)(+0000001): ZoteroPDFTranslate: Translate return true

(3)(+0000000): ZoteroPDFTranslate: updatePopupStyle

Screenshots
截屏2022-03-28 19 11 39

Environment

  • OS: macOS
  • Zotero Version(6.0.4)
  • Addon Version(0.3.11)

翻译框未弹出

FC715847-FECF-40FD-9CDD-0DF68FDEE82D
EDDA85AC-1542-4103-96C8-432D8061A398
重启后依旧没有翻译框弹出,请问如何解决这个问题,谢谢

Option for not adding translation to annotation

From my point of view and paper reading habits, the annotation is independent from translation, I thus suggest to add a setting checkbox to decide whether adding translation to annotation or not.
by the way, you made a plugin that I was wondering to make all these days, thanks a lot.

您的IP“218.61.108.113”存在异常请求,且已被系统自动加入黑名单,请不要恶意进行爬取数据,谢谢。[Bug]

Before Issue/提问之前

  1. See #6 and search the Issues Page to make sure this is not a duplicated issue;
  2. If this is a bug with Translate, i.e. no result or error, make sure you can access the translate service and the secret is currect;
  3. Remember to delete this section before submit.

Issues not in the template format will be ignored/不按模板格式的提问将不会被回复

Edit the template below/编辑以下模版

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • OS: Windows/macOS/Linux
  • Zotero Version(Help->About Zotero)
  • Addon Version(Tools->Add-ons)

Additional context
Add any other context about the problem here.

[Bug] Language settings cannot be saved.

Describe the bug
Language settings cannot be saved. When you restart Zotero, it will reset to default.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'preferences'
  2. Click on 'translate from English-US to Chinese-China'
  3. Restart Zotero
  4. See error

Expected behavior
'Translate from English-US to Chinese-China' should be saved when you restart Zotero.

Environment

  • OS: Windows 11 21H2
  • Zotero Version(6.0.3)
  • Addon Version(0.3.5)

Additional context
Zotero language is set to English.

[Bug]选择文献内容翻译后,添加图片笔记会自动将上一次翻译的内容添加到图片备注

Search the Issues Page and make sure this is not a duplicated issue

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Please make it easier to change source language

If I am using this plugin correctly it seems that I must go to Zotero preferences and manually change the 2-letter code for the source language. It would be really nice to be able to make this change from within the plugin. Thank you for a wonderful plugin.

Is it possible to add the ability to display the results of multiple translation engines at the same time[Feature]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

能改善下翻译的界面吗?看着挺别扭

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[Feature Request] Binding Shortcuts

I usually turn off auto translation cuz I'd like to select some sentence while reading.
So I have to click the button if I want to translate, and it's very easy to mis-click the highlight option.
It would be a lot helpful if there is a key binding to the translation.

[Feature]快速切换翻译引擎

1.有时候对一种翻译引擎的结果不满意,希望能够在翻译界面快速在不同引擎之间切换,以对照不同引擎的翻译结果
2.有时阅读的文献不局限于英文,如果遇到其他语言的文献需要手动切换源语言,能否实现源语言的自动识别?
3.我们重点关注的是应该是翻译结果,而非原文,现在原文和译文在屏幕中所占的显示比例差不多,能否手动调整原文和译文的显示比例?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.