Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope to remove <sub> or </sub> before search #35

Open
pencilheart opened this issue Nov 21, 2024 · 2 comments
Open

Hope to remove <sub> or </sub> before search #35

pencilheart opened this issue Nov 21, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request explore-solution Dig a bit and find the edges
Milestone

Comments

@pencilheart
Copy link

Superscripts and subscripts in entry titles should be standardized in Zotero, therefore, the title of
《(Y0.25Yb0.25Er0.25Lu0.25)2(Zr0.5Hf0.5)2O7: a defective fluorite structured high entropy ceramic with low thermal conductivity and close thermal expansion coefficient to Al2O3
should be revised to
(Y<sub>0.25</sub>Yb<sub>0.25</sub>Er<sub>0.25</sub>Lu<sub>0.25</sub>)<sub>2</sub>(Zr<sub>0.5</sub>Hf<sub>0.5</sub>)<sub>2</sub>O<sub>7</sub>: a defective fluorite structured high entropy ceramic with low thermal conductivity and close thermal expansion coefficient to Al<sub>2</sub>O<sub>3</sub>.

However, this revised title can not be searched in Google Scholar, the <sub> or </sub> should be removed before searching.

So, can you set detect <sub> or </sub> in the title and remove them before searching?

Thanks.

@justinribeiro justinribeiro self-assigned this Nov 21, 2024
@justinribeiro justinribeiro added enhancement New feature or request explore-solution Dig a bit and find the edges labels Nov 21, 2024
@justinribeiro
Copy link
Owner

justinribeiro commented Nov 21, 2024

So I've been trying to duplicate the behavior from Zotero using that paper, and I'm curious how you get html in the title? The raw PDF reindex won't inject HTML, nor will the web site connector pull.
image
Is this a case of manual title edit to add html?

I ask because while I am very appreciative of the PR, it's very specific to a single case; given HTML could be in the string (which, I hadn't considered in Zotero), I could generalize more using DOMParser().parseFromString() and extract that concern into it's own function to validate and test (as I might stick it behind a preference since I'm not 100% certain as to the impact overall).

Let me give this some thought today. 👍

@pencilheart
Copy link
Author

Thanks for your consider!

The addon Linter for Zotero can manual edit title through the toolbox above info panel.
Xnip2024-11-22_10-26-20

Then the title in main interface will be formatted, meanwhile the reference in Microsoft Word will also be formatted.

Xnip2024-11-22_10-25-10

Yes, keep it in perference is a good idea. I don't really know how many people using this addon like this way. I use this HTML because some journals and my thesis must format the superscript and subscript in title.

Appreciate your addon again❤️

@justinribeiro justinribeiro modified the milestones: v4.1.0, v4.2.0 Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request explore-solution Dig a bit and find the edges
Projects
None yet
Development

No branches or pull requests

2 participants