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

Improve concards syntax for flip sides. #42

Closed
alanxoc3 opened this issue Jul 29, 2020 · 2 comments
Closed

Improve concards syntax for flip sides. #42

alanxoc3 opened this issue Jul 29, 2020 · 2 comments

Comments

@alanxoc3
Copy link
Owner

alanxoc3 commented Jul 29, 2020

When you have "sides" to a flashcard, normally, you only have two sides. The colon ":" syntax allows the parent to be reversed to the front side. Right now there can be one front side and multiple back sides, but what if there were multiple "front" sides? There would need to be some sort of syntax improvement for this.

@alanxoc3
Copy link
Owner Author

I figured this out. See #43. I will have a :: syntax instead of the current : syntax. This new syntax will also be more powerful than the current : syntax. It will take precedence over the |, which will allow for cards like this:

This flashcard section:
:> 你好世界 | 嘿世界
:: Hello World | Greetings World
:: Saluton al la mundo
<:

Will generate all these:
:> 你好世界 | Hello World | Greetings World | Saluton al la mundo
:> 嘿世界 | Hello World | Greetings World | Saluton al la mundo
:> Hello World | 你好世界 | 嘿世界 | Saluton al la mundo
:> Greetings World | 你好世界 | 嘿世界 | Saluton al la mundo
:> Saluton al la mundo | 你好世界 | 嘿世界 | Greetings World
<:

alanxoc3 added a commit that referenced this issue Oct 11, 2020
It is unit tested as well. Adding cloze syntax should be much easier
now.
alanxoc3 added a commit that referenced this issue Oct 11, 2020
Curly brace was a token I was parsing, but I need to move that logic
elsewhere for the cloze syntax.
@alanxoc3
Copy link
Owner Author

Has been merged into master already.

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

No branches or pull requests

1 participant