You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support RTL flashcards specified by frontmatter "direction" attribute (#935)
* Nearly completed
* Added RTL support for flashcards edit modal
* Changes as part of the merge
* post upstream master merge fixes
* Minor code improvement
* lint and format
* Change log and documentation update
* Minor code change
* Fixed EditModal RTL
* lint and format
* Updated test cases to fix global coverage error
* Format & lint
Copy file name to clipboardExpand all lines: docs/en/flashcards.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,24 @@ The plugin will automatically search for folders that contain flashcards & use t
154
154
155
155
This is an alternative to the tagging option and can be enabled in settings.
156
156
157
+
## RTL Support
158
+
159
+
There are two ways that the plugin can be used with RTL languages, such as Arabic, Hebrew, Persian (Farsi).
160
+
161
+
If all cards are in a RTL language, then simply enable the global Obsidian option `Editor → Right-to-left (RTL)`.
162
+
163
+
If all cards within a single note have the same LTR/RTL direction, then frontmatter can be used to specify the text direction. For example:
164
+
165
+
```
166
+
---
167
+
direction: rtl
168
+
---
169
+
```
170
+
171
+
This is the same way text direction is specified to the `RTL Support` plugin.
172
+
173
+
Note that there is no current support for cards with different text directions within the same note.
174
+
157
175
## Reviewing
158
176
159
177
Once done creating cards, click on the flashcards button on the left ribbon to start reviewing the flashcards. After a card is reviewed, a HTML comment is added containing the next review day, the interval, and the card's ease.
0 commit comments