Changed back to the original ordering of the SRS operations, i.e. first
answer the card and then get the new card. No more suspending of the
current card while getting the new card, and then answering it. Since
adding transactions, testing has shown that this order is actually more
responsive. It is also easier to maintain since it is the same as
desktop Anki.
Allows setting option values of 0, which was disallowed for some reason
before. Also creates a temporary table (it is not there in Anki) to get
new cards in random order if that option is selected.
Surround all cursor statements with try...finally to make sure that the
cursor is closed at all times, even when an unexpected exception occurs.
If a cursor is not closed, java will throw an exception, but it is
silently (well, it can be seen in the log) discarded and does not cause
a force close. However, it does cause a noticeable slow-down in the execution.
Card edit activity generates fields based on the underlying Fact instead of the card.
- Each field in the fact generates a seperate EditText
- When saving updated cards
- Facts are saved,
- Then all cards based on the fact are regenerated based on their CardModel
- Some messy code (mostly related to updating and redisplaying the current card)
Reviewing would get one new card more than specified in newCardsPerDay.
This was because decreasing the count of reviewed new cards happend after
getting the next new card.
- New CardEditor Activity created
- Deck, DeckTask, and Ankidroid modified to handle opening the card in the editor, saving changes to the database, and redisplaying updated card.
- TODO: add support for adding new card.
- Create a new card in the deck,
- Edit the new card as if it were an existing card.
- Created utility class RubyParser to convert ruby text from Anki's Japanese support format to html ruby markup
- Updated CSS to include ruby text support
- Updated Ankidroid to send question and answer text through the parser before displaying.
- CSS Ruby support modified from http://web.nickshanks.com/stylesheets/ruby.css
Signed-off-by: brennan-daguilar <brennan.daguilar@gmail.com>
Also, capitals for China, Indonesia, Bangladesh, and Nigeria were added - their inclusion warranted by virtue of being among the 10 most populace countries (ref: http://en.wikipedia.org/wiki/List_of_countries_by_population).
Finally, capitals for South Korea, Mexico, United Kingdom were added due the stature and size of the cities themselves (ref: http://en.wikipedia.org/wiki/List_of_national_capitals_by_population), and because I'm on a roll.
I understand that this deck was likely intended solely to demo Anki-android, but it may as well be accurate and thorough :)