Problems with annotation color codes when importing to Obsidian

I have been trying to implement a workflow revolving around zotero, obsidian, and my android tablet, to read, annotate, and extract knowledge from research articles.

zotero v6.0.36

Installed plugins:
zotfile
Better BibTeX

I find an article, import all the meta info into my library, download the pdf and attach it to the entry. I then use zotfile to send the corresponding pdf to a google drive folder, so that i can access it from my tablet using the Xodo app. Here, I add annotations to the pdf file, and send it back to zotero using the zotfile pipeline again.
Finally, I use the Zotero Integration plugin to and a custom template to import the article meta info and the annotations to Obsidian, so that the annotations are color coded with the corresponding colors in the resulting note

Importantly, in Xodo, i adjusted the annotation colors to match the ones that zotero uses. I took the ones I found here: https://github.com/zotero/reader/commit/f720ff8348cfe2b0b548fe9683e02523ef2f378b

The problem is, however, that annotations of some colors get exported to the Obsidian note, and some don't. When I annotate on my tablet in red (#ff6666), yellow (#ffd400), or gray (#aaaaaa), the annotations turn up in the obsidian note. The other colors do not.

Interestingly, when I use a color picker to check the color code as displayed in the pdf reader within zotero after getting the file back from the tablet, the code does not match the one I set on the tablet, and subsequently not the one that Zotero supposedly uses.

I'd really like to be able to use more than three colors and continue to read and annotate on my tablet, and integrate it with my main note-taking app.

Does anyone have an idea what the issue could be?
  • edited August 22, 2024
    I think you have too many variables here, and a lot related to plugins.

    A few questions:

    Are these annotations editable in Zotero when imported back to Zotero from Xodo? If so, you may try changing the color of a few to see if that causes them to be recognized.

    If you add annotations directly in the Desktop app with those colors that are not being imported, and run them through the Obsidian import plugin, do they work?

    You could also give it a shot on using Zotero 7 (optional, but more up to date) and the Android app, as this would keep all the annotations in the standard format, and I bet the Obsidian plugin would behave better with that than annotations done on another app (see question 2 if that works)
  • The annotations from xodo are not editable when imported back to zotero from Xodo. There is a little lock icon in the corner of each annotation in the annotation column on the left.

    If I add annotations in the desktop app (green, blue, orange, magenta, or purple), it seems they are correctly displayed in the resulting Obsidian note.

    I just saw today that Zotero 7 is available, and might try that. But the android app is still in its beta, and I cannot download it at the moment, as it says the targeted number of users is reached for now.

    The only reason why I implemented the workflow using zotfile and xodo on my tablet is that there is a missing android app. I'd use that in an instant if it was available.

    What I don't understand is the fact that, although I set the colors in Xodo to the supposedly correct hex code, it seems to change when the file is back in Zotero. Zotfile just moves the file to Google Drive, and then back to the directory where all my pdf attachments are stored.
Sign In or Register to comment.