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

Allow same word to be bookmarked twice #17

Closed
offbynull opened this issue Jul 7, 2019 · 4 comments

Comments

Projects
None yet
1 participant
@offbynull
Copy link
Owner

commented Jul 7, 2019

The following problem came up...

  • The word base is defined differently based on if you're talking about pH or DNA/RNA.

How to handle this? Make a tag to output a bookmark glossary section. When multiple bookmarks are defined for the same phrase, allow the bookmark but point it to the glossary section so they can choose the correct definition.

Fail it the glossary isn't being output (the user didn't inject the tag for glossary output anywhere). Fail if the bookmark tag doesn't have a parameter that explicitly allows it live alongside duplicates -- we should still get failures in the default cause because we don't want to be redefining the same thing in multiple places by accident.

@offbynull

This comment has been minimized.

Copy link
Owner Author

commented Jul 7, 2019

Once this is complete, go to the pH section and add in a bookmark for the word base (it should live next to the bookmark for basic, just like acid lives next to acidic).

@offbynull

This comment has been minimized.

Copy link
Owner Author

commented Jul 8, 2019

{bm-error searchStr:beforeRegex:afterRegex}
{bm searchStr:displayCaptureRegex:beforeRegex:afterRegex}

{bm-error base:beforeRegex:afterRegex}              <-- this will throw an error telling you that you need to disambiguate
{bm base_pH:(.*)_pH:beforeRegex:afterRegex}         <-- this will take any word that says base_pH, replace it with base, and point it to this bookmark
{bm base_DNA:(.*)_DNA:beforeRegex:afterRegex}       <-- this will take any word that says base_DNA, replace it with base, and point it to this bookmark
@offbynull

This comment has been minimized.

Copy link
Owner Author

commented Jul 13, 2019

Bookmark error tag isn't working. Longer matches aren't overriding it.

`{bm-e} Disambiguate base by adding _nucleotide or _Ph/\b(base)\b/i`

The order the appear in defines the genetic information/instructions of that organism. Because they are the unit by which genetic information is encoded, each nucleotide is also called a `{bm-a} base/\b(bases|base)_nucleotide\b/i`. For example, a string/sequence of DNA bases_nucleotide: ATATTTTCGATATCCACCA.

```{note}
When counting the number of bases, it’s typical to use kilo, mega, giga, etc.. For example, 5000 bases would be referred to as 5 kilobases (e.g. 5Kb). Maybe the best way to think about this is that information in DNA is organized like memory on a computer, but your byte size is 2 bits instead of 8.
```

The two nucleotides/molecules that make up a connection are called a `{bm-a} base pair/(base pairs|base pair)/i`. The rules to base pairs are…
@offbynull

This comment has been minimized.

Copy link
Owner Author

commented Jul 14, 2019

Bookmark error tag is now working.

@offbynull offbynull closed this Jul 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.