Skip to content

Some thoughts on the scope of this plugin #3

@northword

Description

@northword

Hello, ManuelaRunge! I was browsing GitHub and came across this plugin by accident, great idea on your part! Thank you! Also, I have some ideas as follows:

  1. Zotero is about to release its 7th major update, so for the convenience of compatibility, I think we can target Zotero 7 1. Of course, it's up to you.
  2. The official Zotero documentation suggests always storing the title in sentence capitalization, so that the CSL handles "sentence capitalization" correctly 2.
  3. Conversion to sentence capitalization has already been added to Zotero.Untilies, and the new function is adapted to cover most cases and most proper nouns 3, so I don't think we need to duplicate this part of the wheel, and can pr more exceptions to this repository. This function is already available in Zotero 7.
  4. The plugin can directly call Zotero.Untilies to implement sentence-style case and additionally add features such as custom terms.

I have also developed a plugin that extends the official sentence case conversion for your reference: https://github.com/northword/zotero-format-metadata/blob/ae46c80ef83d5903411991111c55054c36f5759b/src/utils/str.ts#L75-L156 , looking forward to communicate with you.

In addition, I recommend you to browse the Zotero plugin template maintained by windingwind, which supports typescript type checking and uses zotero-types for type hints! 4 I think it can greatly facilitate plugin development!

Footnotes

  1. https://www.zotero.org/support/dev/zotero_7_for_developers

  2. https://www.zotero.org/support/kb/sentence_casing

  3. https://github.com/zotero/utilities/blob/master/utilities.js

  4. https://github.com/windingwind/zotero-plugin-template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions