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

Add an option to make the cards type-in #32

Open
jthulhu opened this issue Dec 28, 2021 · 1 comment
Open

Add an option to make the cards type-in #32

jthulhu opened this issue Dec 28, 2021 · 1 comment

Comments

@jthulhu
Copy link

jthulhu commented Dec 28, 2021

Sometimes, especially when the spelling of certain rare words is hard, it would be neat to be able to have a type-in like card instead of simply revealing the answer. One way to implement this would be to add an option during the generation of the notes to make the whole poem "type-in", and to have a second note-type roughly equal to the current one, but with type-in in the template.
I currently do this by hand, and the only limitation I see is that it's impossible to have multiple lines with type-in.

@popyoung
Copy link

You could simply modify the card template to implement this.

Front:

<div class="title">{{Title}} {{Sequence}}</div>
{{#Author}}<div class="author">{{Author}}</div>{{/Author}}

<br>
<div class="lines">
    {{Context}}
    <div class="cloze">
        {{#Prompt}}{{Prompt}}{{type:Line}}{{/Prompt}}
        {{^Prompt}}{{type:Line}}{{/Prompt}}
    </div>
</div>

Back:

<div class="title">{{Title}} {{Sequence}}</div>
{{#Author}}<div class="author">{{Author}}</div>{{/Author}}

<br>

<div class="lines">
    {{Context}}
    <div class="cloze">{{type:Line}}</div>
</div>

But the end token will cause a small flaw.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants