Open ghweili opened 2 years ago
alternatively, can bibnote formatter offer the option to allow the user to import the extracted pdf notes in zotero according to the zotero translator? For example, according to the translator that I wrote in the reply above? I guess this is more or less similar to importing the said note just as it is (given that the user has finished the formatting by himself in zotero)?
This would be convenient because it naturally creates a separation and connection between the highlight and comment while preserving the color of the highlight boxes. The colors can be slightly different because zotero offers only five colors while callouts offer more.
Moreover, since I'm using zotero, it would be better if the tags can be displayed on the next line right after the comment, also within the callouts box.
What I have tried:
I tried to use the translator of zotero to change the output style of the extracted pdf annotations in zotero using the following code (see "https://www.zotero.org/support/note_templates" for reference): ` {{if color == '#ff6666'}}
>[!danger] {{highlight}} {{citation}} {{if comment}} {{comment}} {{endif}}
{{if tags}} #{{tags join=' #'}}{{endif}}
{{elseif color == '#ffd400'}}
>[!warning] {{highlight}} {{citation}}{{if comment}} {{comment}} {{endif}}
{{if tags}} #{{tags join=' #'}}{{endif}}
{{elseif color == '#5fb236'}}
>[!done] {{highlight}} {{citation}} {{if comment}} {{comment}} {{endif}}
{{if tags}} #{{tags join=' #'}}{{endif}}
{{elseif color == '#2ea8e5'}}
>[!note] {{highlight}} {{citation}} {{if comment}} {{comment}} {{endif}}
{{if tags}} #{{tags join=' #'}}{{endif}}
{{elseif color == '#a28ae5'}}
>[!example] {{highlight}} {{citation}} {{if comment}} {{comment}} {{endif}}
{{if tags}} #{{tags join=' #'}}{{endif}}
{{else}}
>[!] {{highlight}} {{citation}} {{if comment}} {{comment}} {{endif}}
{{if tags}} #{{tags join=' #'}}{{endif}}
{{endif}} ` this works, for example, if I copy the contents of the note in zotero, then come to obsidian and press Ctrl+Shift+V, the annotations will be displayed in the form of a list of callouts (more precisely, I need to replace the escape sign "\" with "" in the obsidian note, then the callouts blocks will render properly).
However, somehow the comments and tags are not imported properly when using bibnote formatter. Fields of comments and tags can become missing, and the links can be broken (see my comments in #130). I checked the json file and seems that the information are indeed in the json file, so I suspect that this is a bug of bibnotes.
Potential solution: fixing this bug could make things work, or it would be even better if bibnotes could naturally implement the function I request.