Open2023/03/18にコメント追加3Zotero の annotation(注釈)を編集する plugin を作りたいTypeScriptZoterowint2023/03/18に更新 モチベ PDF で選択ハイライトをすると、記録される注釈に空白が挟まる。これを除去したい。 参考 references https://www.zotero.org/support/plugins https://www.zotero.org/support/dev/client_coding/plugin_development https://github.com/windingwind/zotero-plugin-toolkit https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.uitool.md sample codes https://www.zotero.org/support/dev/sample_plugin https://github.com/windingwind/zotero-pdf-translate https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/modules/reader.ts#L82-L161 wint2023/03/18に更新 code reading UI 要素としてボタンを追加してる部分 https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/modules/reader.ts#L122-L158 API https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.uitool.insertelementbefore.md https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.elementprops.md functions https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/utils/translate.ts#L179-L185 https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/utils/translate.ts#L106-L177 https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/utils/translate.ts#L6-L72 wint2023/03/18に更新 考察 通信などは しない ので、 task queue などは 必要なさそう。 単に callback を設定する だけで 良さそう。 ref https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.elementprops.listeners.md
wint2023/03/18に更新 モチベ PDF で選択ハイライトをすると、記録される注釈に空白が挟まる。これを除去したい。 参考 references https://www.zotero.org/support/plugins https://www.zotero.org/support/dev/client_coding/plugin_development https://github.com/windingwind/zotero-plugin-toolkit https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.uitool.md sample codes https://www.zotero.org/support/dev/sample_plugin https://github.com/windingwind/zotero-pdf-translate https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/modules/reader.ts#L82-L161
wint2023/03/18に更新 code reading UI 要素としてボタンを追加してる部分 https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/modules/reader.ts#L122-L158 API https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.uitool.insertelementbefore.md https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.elementprops.md functions https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/utils/translate.ts#L179-L185 https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/utils/translate.ts#L106-L177 https://github.com/windingwind/zotero-pdf-translate/blob/c05223db1ce6fe8861f88a7231b0dd95fdcfcb54/src/utils/translate.ts#L6-L72
wint2023/03/18に更新 考察 通信などは しない ので、 task queue などは 必要なさそう。 単に callback を設定する だけで 良さそう。 ref https://github.com/windingwind/zotero-plugin-toolkit/blob/master/docs/zotero-plugin-toolkit.elementprops.listeners.md