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

Configure note prologues and epilogues #33

Closed
8 tasks done
ogallagher opened this issue Feb 16, 2024 · 1 comment
Closed
8 tasks done

Configure note prologues and epilogues #33

ogallagher opened this issue Feb 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ogallagher
Copy link
Owner

ogallagher commented Feb 16, 2024

Prologues and epilogues are additional text from neighboring notes' sentences, which will not be rendered with any testable words.

  • add prologue and epilogue fields to note type
  • store sentence prologues and epilogues in quizgen
  • configure lengths of prologue and epilogue from cli
  • document new fields in readme
  • update notes export column list comment for 2 new columns
  • configure lengths from web UI
  • show prologue and epilogue in web card preview
  • update card template to display prologue and epilogue fields around the question text.
    Eventually, showing and hiding these will be done via control tags Use Anki tags to customize card render #32.
@ogallagher ogallagher changed the title Notes could also optionally include prologues and epilogues, being text from neighboring sentences that are not rendered with any testable words. Configure note prologues and epilogues Feb 16, 2024
@ogallagher ogallagher added the enhancement New feature or request label Feb 16, 2024
@ogallagher
Copy link
Owner Author

ogallagher commented Feb 17, 2024

Note that the current implementation limits prologues to 1 sentence before, and 1 after. So if the requested epilogue token count is greater than the length of the next sentence, only the tokens from the next sentence are included.

However, this could be easily changed to enable longer prologues and epilogues by traversing references to neighboring sentences until the requested token count is reached.

ogallagher added a commit that referenced this issue Feb 17, 2024
ogallagher added a commit to ogallagher/wordsearch_generator that referenced this issue Feb 17, 2024
ogallagher added a commit to ogallagher/wordsearch_generator that referenced this issue Feb 17, 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
Projects
None yet
Development

No branches or pull requests

1 participant