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

Fix Colors in Highlight PMC Script #48

Open
cannin opened this issue Jul 2, 2019 · 9 comments
Open

Fix Colors in Highlight PMC Script #48

cannin opened this issue Jul 2, 2019 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@cannin
Copy link
Owner

cannin commented Jul 2, 2019

Here is the userscript (https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) for highlighting text:

https://gist.github.com/cannin/4a30c1e3551b83f059c2206e491a082a

Configure mark.js to have the same color as the find() command.

@RohitChattopadhyay
Copy link
Collaborator

RohitChattopadhyay commented Jul 2, 2019

Can you please if this satisfies the requirements
https://gist.github.com/RohitChattopadhyay/112eaee64e6ce0e27bff919f606b6df0

Color reference
Thanks

@RohitChattopadhyay
Copy link
Collaborator

RohitChattopadhyay commented Jul 2, 2019

Example
Example

@RohitChattopadhyay
Copy link
Collaborator

Please note that the script is not working in case the sentence has greek letters in it
For example https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4359854?text=kappa-receptor%20agonist%20could%20inhibit%20norepinephrine

@cannin
Copy link
Owner Author

cannin commented Jul 2, 2019

We need to make a list of common greek letters.

@RohitChattopadhyay
Copy link
Collaborator

RohitChattopadhyay commented Jul 2, 2019

We need to make a list of common greek letters.

Since REACH is converting greek(κ) letters to normal English(kappa) word, there should exist a mapping in the NLP, Can you please guide me to the source of the NLP extraction code
Thanks

@cannin
Copy link
Owner Author

cannin commented Jul 2, 2019 via email

@cannin cannin added the enhancement New feature or request label Jul 2, 2019
@RohitChattopadhyay
Copy link
Collaborator

Sentences in page chebi:CHEBI:10006 are also not being highlighted in ncbi.nlm.nih.gov
This is because, in our NLP based documents it is written 540nm while in ncbi.nlm.nih.gov it is 540 nm.

@cannin
Copy link
Owner Author

cannin commented Jul 3, 2019

If you can think of any clever ideas with the regex, that would be appreciated.

@RohitChattopadhyay
Copy link
Collaborator

Please note that the script is not working in case the sentence has greek letters in it
For example https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4359854?text=kappa-receptor%20agonist%20could%20inhibit%20norepinephrine

Gist has been updated with some Geek letter conversions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants