View_Size_Adjust and Incremental_Reading_Extension addons
103 posts by 27 authors
|
Frank |
3/11/13
|
- Adjusting the size of the text when reading longer articles (Ctrl++ or Ctrl+-)
- Navigation keys for arrow up/down, page up and page down
- Ability to save the position in an article to support coming back at a later point in time and picking up where you left off (hence the term 'incremental')
- Ability to highlight text to indicate where cards have already been extracted, or simply to highlight the text if you plan to keep the longer article and read it with highlighted portions.
- Ability to add custom shortcuts for extracting and adding cards to Anki using specific card models and decks
- Added ability to specify shortcuts with any combination of Ctrl + Alt + Shift + Key. This includes the ability to set single key shortcuts. This allows the ability to override the default behavior of the 'x' and 'c' shortcuts.
- Added the 'showEditCurrent' dialog option when creating a new shortcut. This is unchecked by default. It mirrors the original 'x' and 'c' shortcut operation and opens the 'Edit Current' window to allow you to edit the current card while you are also adding another card in the separate 'Add Cards' dialog.
Frank |
3/19/13
|
Incremental Reading Extension
Incremental Reading is a way to read many articles concurrently and efficiently add spaced repetition cards to Anki in the process. In essence, you add reading material to an Incremental Reading deck in Anki and read it as time permits. As you read, you can highlight important passages and extract them into separate cards in Anki, either for further refinement, or as final SRS cards in another Anki deck. When you have finished reading an article, you will have incorporated all the important knowledge into your Anki deck(s) and can delete it, confident that the knowledge will be continually reinforced by Anki’s core SRS function.
Example using Add Cards Shortcut defined to create a new card in Incremental Reading 2 deck with IRead2 model and using yellow highlight to mark the extracted text in the original article.
The Incremental Reading Extension addon relies on the View Size Adjust addon for several important navigation and keyboard shortcut capabilities. Be sure to add both addons before you begin.
NOTE on UPGRADING: This version changes the IRead2 model. Changing the model will require you to modify your existing IRead2 cards (removing little used Model and Deck fields, adding Title) or delete the IRead2 model and all associated cards before installing the upgrade.
NOTE on the original Incremental Reading addon: The Incremental Reading Extension addon is a fork (an alternative) of the original Incremental Reading addon. Do not attempt to install both concurrently.
Features
The Incremental Reading Extension, along with the View Size Adjust addon, supports incremental reading in Anki with the following features:
· Keyboard navigation
o PgUp, PgDn, ArrowUp, ArrowDown
o Also available from the Edit menu
· Keeping track of where you left off in each article
o Scroll to last viewed text when the card is loaded
o Uses same ‘zoom factor’ you last used for the same card
· Adjust the size of the text as needed
o Ctrl-- to increase text size
o Ctrl-- to decrease text size
o Saves selected size with each card and reapplies when shown
o Also available from the Edit menu
· Highlighting of text
o Select and hit ‘h’
o Custom colors (Hit Alt-2 to open a dialog. Also available from Edit menu)
o Anti-highlighting option (color text, rather than background)
· Custom keyboard shortcuts for adding cards efficiently
o Alt-1 to create a custom shortcut
o Choose deck, card model, shortcut key combination, highlighting, field into which to paste selected text, and to whether or not you want to see the add/edit dialogs.
o Automatically copies Tags from source Incremental Reading card to the new card created using the keyboard shortcut.
o Automatically copies Source field from Incremental Reading card to the new card created using the keyboard shortcut (if new card model has a Source field).
o Shortcuts are added to the Edit menu as they are created.
o Removing a shortcut is done by disabling it using the same dialog. Hit Alt-1, choose the same key combination and uncheck ‘Enabled’ checkbox.
· (NEW) Independent scheduling algorithm more suitable to Incremental Reading
o Queue depth based, rather than time-based
o Configurable ‘Soon’ and ‘Later’ scheduling buttons. Dialog for editing these options is available in the Tools menu (‘Incremental Reading Scheduler Options’). Options include:
§ Push a card to a specific depth (count or position) in the queue
§ Push a card to a percentage depth into the queue
§ Apply randomness to either approach
o Custom organizer dialog.
§ Move any card to any position in the queue
§ Bulk moves
§ Opened from Tools menu (‘Incremental Reading Organizer’).
§ Also opened from ‘custom’ answer button when working with Incremental Reading cards in the Anki Reviewer.
To Show Editor or Not to Show Editor
A couple of options on the Add Shortcut dialog (Alt-1) require explanation:
Show Add Cards dialog – This checkbox is checked by default. When you invoke the keyboard shortcut, the Add Cards dialog will be opened as it normally is when you add cards in Anki. It will be prepopulated with the Deck and Card Model you’ve chosen. If this checkbox is unchecked, the shortcut will add the card automatically without opening the Add Cards dialog. This is a convenience for incremental reading where a frequent activity is creating smaller, but still large, extracts from a source article and feeding those back into the Incremental Reading deck. The shortcut takes care of populating all fields with reasonable values in that case, making opening the dialog inconvenient (because you then have to close it).
Show Edit Current dialog – The original Incremental Reading addon opened two dialogs every time you attempted to add a new card. First it opened the Edit Current dialog, which contains the same card you were just looking at, but in editing mode. Second it opened the Add Cards dialog that you would normally expect. The advantage to this option is that you can delete the text from the original article as you do extracts, rather than highlighting. Personally, I prefer highlighting and deleting the entire original article at the end when I’m done with it.
Scheduling Algorithm for Incremental Reading
Anki’s normal scheduling algorithm is designed to support Spaced Repetition and address the “forgetting curve.” It makes very little sense to try to schedule reading material using the “forgetting curve” and its increasing intervals. Instead, incremental reading is really a matter of prioritizing a large number of articles based on your interest level and the importance you place on each article. Accordingly, a different scheduling algorithm is required.
For incremental reading, the goal is to manage a queue of articles and to be able to reprioritize each article every time you read it. It should also be possible to find an article you want to see, no matter where it is in the queue, and bring it forward. And periodically, you may want to review the entire queue and organize it in a specific way.
The scheduling algorithm attempts to meet the above goals without interfering with Anki’s normal scheduler or dramatically changing the Anki interface. To do so, it effectively removes the Incremental Reading cards from the Anki scheduler and keeps all the incremental reading cards permanently in the NEW queue. This keeps all Incremental Reading cards available all the time (not hidden away in a REVIEW queue to be shown again in a few days, weeks or months).
An incremental reading card will always have three buttons labeled ‘Soon’, ‘Later’ and ‘Custom’. The meaning of ‘Soon’ and ‘Later’ is configurable, but essentially means ‘This is important and I want to see it again Soon’ or ‘This is less important, don’t show it to me again until Later.’ If, despite configuration, you don’t get the behavior you want, or if you want to handle a card specially, there is the ‘Custom’ button, which opens the Organizer dialog to let you put that card wherever you want in the queue.
Configuration of the ‘Soon’ and ‘Later’ scheduling options is available from the Tools -> Incremental Reading Scheduler Options menu item. Options include:
· Position – Treat the configured value as a simple position number.
· Percent – Treat the configured value as a percentage value
· Random – Apply some randomness to the placement of the item using the configured count or percentage value.
· Value – The numeric value. It represents either a count or a percentage.
Position vs Percent
If you choose Position and don’t apply Random, then hitting the button in question will directly place the card at the position you indicated. If you apply Random, it will place the card at a random position between 1 and the Position you indicated.
If you choose Percent and don’t apply Random, then hitting the button in question will calculate the position as a percentage of the queue depth and place the card at that position. If you apply Random, it will place the card at a random position between 1 and the calculated position by percentage.
The above explanations apply for the ‘Soon’ button. The ‘Later’ button differs only in that the placement of the card will be between the Position or Percentage given for ‘Soon’ and the Position or Percentage given for ‘Later’. Thus, if you specify 10 Percent for ‘Soon’ and 50 Percent for ‘Later’, the ‘Later’ button will place the card at a position between 10 and 50 percent into the queue.
Organizer
The Organizer is a dialog that shows a list of all the cards in the Incremental Reading deck. It can be accessed from the Tools menu.
There is a checkbox next to each card that can be used to select an individual card or many cards and move them up or down in the queue. To move a card up, check the box next to that card and click the ‘Up’ button. To move a card down, click the ‘Down’ button. If multiple cards are checked, they move up or down together.
If a selected card cannot be moved up because it has hit the top of the queue or because the card above it is also selected, it will not be moved. Cards selected below it can move up until all selected cards make a contiguous block. The same applies for moving cards down alone or in bulk.
The ‘Pin Top/Bottom’ checkbox at the top locks the top-most (or bottom-most) item in place while ‘Up’ or ‘Down’ are clicked to move other selected items, allowing you to ‘anchor’ a block of selected items anywhere in the queue.
The Card Position field at the top of the Organizer allows you to specify a position to directly move the top-most selected item to. If multiple items are selected, they move up or down together.
Compatibility and Upgrading
Update your View Size Adjust addon. You need the most recent of both the Incremental Reading Extension addon and the View Size Adjust addon.
IRead2 Card Model has changed.
· Removed Model and Deck fields. The original IRead2 card has Model and Deck fields that were needed by the predecessor Incremental Reading addon. With the custom shortcuts approach used by Incremental Reading Extension, they are no longer needed. Accordingly, they have been removed.
· Added ‘Title’ field. Using the Organizer requires you to be able to identify each card sufficiently to be able to prioritize it in the queue. Adding a ‘Title’ field makes that possible.
Changing the IRead2 model means that for those of you who are upgrading, there is a little work. Here are the options for doing the upgrade.
Option 1 – Delete the IRead2 card model before applying the new addons. This will delete all IRead2 cards in your collections. The addons will create the new IRead2 card model when installed.
Option 2 – Modify the IRead2 model before updating the addon.
· Delete the Anki Deck field and the Model field. Anki will warn you that it will be modifying your collection in a way that makes it incompatible with the copy in the cloud or on other devices. You will need to do a full sync afterwards.
· Add the Title field and position it as the first field in the model. Also check the radio button that says to use that field for sorting in the Browser.
tmbb |
3/19/13
|
Frank |
3/19/13
|
- show quoted text ---- show quoted text -
You received this message because you are subscribed to a topic in the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons?hl=en .
Frank |
3/21/13
|
On Tuesday, March 19, 2013, Jay Dugger wrote:
Frank:Thank you for reworking the scheduler.An error message appears when I try to open the Incremental Reading Organizer: "Please select an Incremental Reading deck." I've a deck open with cards of type other than IRead2. I assume that's the source of the error. Does that seem right to you?--
You received this message because you are subscribed to a topic in the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons?hl=en .
Aleksej |
3/29/13
|
1. The Alt+1 window's values are not retained.
2. The Alt+1 window's "Paste Text to Field" drop-down shows fields of
the last note type in the alphabetical list of note types. That's not
IRead2.
3. I've created an IRead2 card yesterday, but deleted it. Today, at
some point, shutting Anki down started to crash it, so the reviews are
lost every time. Creating an IRead2 card didn't help.
$ anki
Traceback (most recent call last):
File "/usr/share/anki/aqt/main.py", line 607, in closeEvent
self.onClose()
File "/usr/share/anki/aqt/main.py", line 613, in onClose
self.unloadProfile(browser=
File "/usr/share/anki/aqt/main.py", line 234, in unloadProfile
runHook("unloadProfile")
File "/usr/share/anki/anki/hooks.
func(*args)
File "/home/fca/Anki/addons/
104, in savePluginData
self.ir2data =
{'zoomAndScroll':self.
AttributeError: 'IRead2' object has no attribute 'doHighlightFont'
Arthur Chen |
4/3/13
|
I'm getting errors with switching profiles.
When switching profiles:
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.main", line 234, in unloadProfile
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 26, in runHook
File "C:\Users\Art\Documents\Anki\addons\Incremental_Reading_Extension.py", line 104, in savePluginData
self.ir2data = {'zoomAndScroll':self.zoomAndScroll,'highlightColor':self.highlightColor,'doHighlightFont':self.doHighlightFont,'schedIROptions':self.schedIROptions}
AttributeError: 'IRead2' object has no attribute 'doHighlightFont'
When using Check Database:
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.main", line 843, in onCheckDB
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.main", line 376, in reset
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.main", line 329, in moveToState
AttributeError: 'AnkiQt' object has no attribute '_profileManagerState'
Frank |
4/3/13
|
Frank |
4/3/13
|
Aleksej |
4/3/13
|
window opens:
JS error on line 126: SyntaxError: Parse error
JS error on line 0: ReferenceError: Can't find variable: setFieldsForModel
Also, because of this it is not really clear what the deck is target
for; I had thought that you could define multiple Alt+n shortcuts for
different target decks, to make final cards, which are not IRead anymore.
A smaller issue with the window:
The drop-down lists are not easy to use with a very big number of
entries (subdecks in my case). I can only click them, and while
holding, press the first letter of an entry, which scrolls the list so
that the first entry with that first letter is at the bottom. The list
cannot be overviewed using only keyboard or without holding the click.
3. Thanks, it didn't crash right away.
> You received this message because you are subscribed to the Google
Frank |
4/3/13
|
Aleksej |
4/3/13
|
So maybe a field. I have over 90 models...
Aleksej |
4/3/13
|
it should work. Thanks.
Frank |
4/4/13
|
Aleksej |
4/4/13
|
Traceback (most recent call last):
showAddCardQuickKeysDialog
javascript += "var pasteToFieldValue = '" +
self.lastDialogQuickKey.get('
TypeError: cannot concatenate 'str' and 'NoneType' objects
Aleksej |
4/4/13
|
seems to fix it.
Accessibility: the window's width and height are about 55% of what it
needs, at least with my font (DejaVu Sans size 15, Bold in qtconfit-qt4,
Book in GTK).
Aleksej |
4/5/13
|
images from it, and encountered a problem: when IRE adds yellow
highlighting to a card, the "+" signs in the image names become %-escaped.
I am looking for good ways to make cards from web pages. The biggest
question with most of them is whether and how to copy formatting. The
manual is one of those pages.
Did you use MS Office to write the manual? The HTML code contains some
uses of CSS (non-semantic and thus seemingly bigger than needed) with
mentions of it. That doesn't affect the resulting view, but maybe the
code will be more readable if you use something like Markdown or
ReStructuredText.
Frank |
4/5/13
|
Aleksej |
4/5/13
|
1. Yes, that manual.
2. The issue of MS HTML is that the code is not readable.
3. By "Markdown or ReStructuredText" I meant to say "an editor that uses
a simpler markup language".
* The editor I took the language names from (but haven't used before) is
ReText <http://sourceforge.net/p/
<http://sourceforge.net/p/
left is the editor, on the right is the auto-updated preview; there is
no information on whether it works on Windows.
* Another editor, which is WYSIWYG and according to the FAQ runs also on
Windows, is a desktop wiki called Zim (the site says it was written in
it): http://www.zim-wiki.org/
4. The real issue is what happens to the image names (%-encoding). It
doesn't happen with manual editing.
5. Yes, entering HTML code from web pages works, of course. Only some
articles like "sleep.htm" at supermemo.com are too long to be used in
Anki without splitting. Also, images do not get included by copying the
code.
But I would like to be able to copy links to paste into my browser.
Anki and the browser are running from different accounts, and I don't
really want to connect them. But maybe link copying could be added to Anki.
Soren Bjornstad |
4/5/13
|
- show quoted text -- show quoted text ---
You received this message because you are subscribed to the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons?hl=en .
Aleksej |
4/7/13
|
"Incremental Reading Scheduler Options" also suffers this.
Aleksej |
4/7/13
|
2. IR Organizer does not open if a title contains non-ASCII text:
Traceback (most recent call last):
375, in callIRSchedulerDialog
self.showIRSchedulerDialog(
File "/home/fca/Anki/addons/
389, in showIRSchedulerDialog
cardDataList = self.getCardDataList(deckID, cardID);
File "/home/fca/Anki/addons/
683, in getCardDataList
if(note.model()['name'] == 'IRead2'): cardData['title'] =
str(note['Title'])[:64].
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0430' in
position 25: ordinal not in range(128)
Aleksej |
4/15/13
|
include any HTML formatting.
==============================
diff --git a/Incremental_Reading_
b/Incremental_Reading_
index 4242ced..d7323dd 100644
--- a/Incremental_Reading_
+++ b/Incremental_Reading_
@@ -680,7 +680,9 @@ class IRead2(object):
cardData['nid'] = nid;
note = mw.col.getNote(nid);
- if(note.model()['name'] == 'IRead2'): cardData['title']
= str(note['Title'])[:64].
+ if(note.model()['name'] == 'IRead2'):
+ cardData['title'] = (note['Title'][:64].encode('
+
errors='xmlcharrefreplace')).
else: cardData['title'] = 'No Title';
#cardData['title'] = 'No Title';
==============================
On 2013-04-07 00:18, Aleksej wrote:
> 2. IR Organizer does not open if a title contains non-ASCII text:
>
> Traceback (most recent call last):
> File "/home/fca/Anki/addons/
> 375, in callIRSchedulerDialog
> self.showIRSchedulerDialog(
> File "/home/fca/Anki/addons/
> 389, in showIRSchedulerDialog
> cardDataList = self.getCardDataList(deckID, cardID);
> File "/home/fca/Anki/addons/
> 683, in getCardDataList
> if(note.model()['name'] == 'IRead2'): cardData['title'] =
> str(note['Title'])[:64].
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u0430' in
> position 25: ordinal not in range(128)
Aleksej |
4/20/13
|
version. This issue complicates non-English use a lot if you need the
Organizer.
Aleksej |
4/25/13
|
"unused media", so Anki deletes them as such.
Aleksej |
4/28/13
|
Ryan Moore |
5/13/13
|
On Friday, April 5, 2013 6:45:15 AM UTC-4, Aleksej wrote:
Sorry, I was writing that at night and without good thinking.
1. Yes, that manual.
2. The issue of MS HTML is that the code is not readable.
3. By "Markdown or ReStructuredText" I meant to say "an editor that uses
a simpler markup language".
* The editor I took the language names from (but haven't used before) is
ReText <http://sourceforge.net/p/retext/ >; a screenshot
<http://sourceforge.net/p/retext/screenshot/retext-kde. > — on thepng
left is the editor, on the right is the auto-updated preview; there is
no information on whether it works on Windows.
* Another editor, which is WYSIWYG and according to the FAQ runs also on
Windows, is a desktop wiki called Zim (the site says it was written in
it): http://www.zim-wiki.org/
4. The real issue is what happens to the image names (%-encoding). It
doesn't happen with manual editing.
5. Yes, entering HTML code from web pages works, of course. Only some
articles like "sleep.htm" at supermemo.com are too long to be used in
Anki without splitting. Also, images do not get included by copying the
code.
But I would like to be able to copy links to paste into my browser.
Anki and the browser are running from different accounts, and I don't
really want to connect them. But maybe link copying could be added to Anki.
On 2013-04-05 06:03, Frank wrote:
> If by "the manual", you mean the first entry in this forum post, then yes,
> I used MS Word. It never occurred to me that anyone would attempt to paste
> that content into Anki, but I can see why it could cause issues. MS HTML is
> awful. In my experience, most content added to Anki from web pages is
> entered smoothly and there are no issues.
>
> On Thursday, April 4, 2013 5:12:18 PM UTC-5, Aleksej wrote:
>>
>> I want to start IR with the manual for the add-ons. I've added the
>> images from it, and encountered a problem: when IRE adds yellow
>> highlighting to a card, the "+" signs in the image names become %-escaped.
>>
>> I am looking for good ways to make cards from web pages. The biggest
>> question with most of them is whether and how to copy formatting. The
>> manual is one of those pages.
>> Did you use MS Office to write the manual? The HTML code contains some
>> uses of CSS (non-semantic and thus seemingly bigger than needed) with
>> mentions of it. That doesn't affect the resulting view, but maybe the
>> code will be more readable if you use something like Markdown or
>> ReStructuredText.
>>
>
Aleksej |
5/13/13
|
<http://ankisrs.net/docs/
> You received this message because you are subscribed to the Google
> Groups "Anki Add-ons" group.
> Visit this group at http://groups.google.com/
>
>
Ryan Moore |
5/21/13
|
Aleksej |
5/21/13
|
here on 2013-04-15 fixes it:
diff --git a/Incremental_Reading_
b/Incremental_Reading_
index 4242ced..d7323dd 100644
--- a/Incremental_Reading_
+++ b/Incremental_Reading_
@@ -680,7 +680,9 @@ class IRead2(object):
cardData['nid'] = nid;
note = mw.col.getNote(nid);
+ cardData['title'] = (note['Title'][:64].encode('
+ errors='xmlcharrefreplace')).
else: cardData['title'] = 'No Title';
#cardData['title'] = 'No Title';
Ryan Moore |
5/21/13
|
Aleksej |
5/21/13
|
something like git (which is used for Anki). The lines starting with
"-" show what to remove, and those starting with "+" show what to add.
Actually, the patch should look like this (I copied it from my comment
at https://ankiweb.net/shared/
formatting...):
==============================
b/Incremental_Reading_
index 4242ced..d7323dd 100644
--- a/Incremental_Reading_
+++ b/Incremental_Reading_
@@ -680,7 +680,9 @@ class IRead2(object):
cardData['nid'] = nid;
note = mw.col.getNote(nid);
- if(note.model()['name'] == 'IRead2'): cardData['title']
= str(note['Title'])[:64].
+ if(note.model()['name'] == 'IRead2'):
+ cardData['title'] = (note['Title'][:64].encode('
+
errors='xmlcharrefreplace')).
else: cardData['title'] = 'No Title';
#cardData['title'] = 'No Title';
Aleksej |
5/21/13
|
Aleksej |
5/21/13
|
https://gitorious.org/vsa_and_
Peter DeBiase |
5/28/13
|
Your IR implementation is the bees knees. I'm just getting started, but loving every minute of it.
I have a quick question for you: how can I make the title field "sticky" so that when I extract cards from the Incremental Reading deck to the destination deck, they will inherit the IRead2 card's title field like they inherit the source field and tags?
I've been digging around in the source code a little bit, but I'm just getting started with coding too. So far I've tried uncommenting the following line:
setField(new_note, TITLE_FIELD_NAME, getField(cur_note, TITLE_FIELD_NAME))
and adding the following lines (trying to mirror the source field-related code):
- model_field['sticky'] = True #Added this beneath the `model_field = mm.newField(TITLE_FIELD_NAME)` line
- title_field['sticky'] = True #Added this beneath the `title_ord, title_field = fmap[TITLE_FIELD_NAME]` line
but I'm not getting the same sticky behavior that the source field exhibits. I apologize in advance if this is a dumb question. Like I said, just getting started with programming stuff.
Dazed and confused,
Pete
Soren Bjornstad |
5/29/13
|
On Sunday, March 10, 2013 6:55:03 PM UTC-5, Frank wrote:
As suggested, I am adding a topic for a couple of related addons that I've contributed: The View_Size_Adjust addon and the Incremental_Reading_Extension addon. They are related in that the Incremental Reading Extension is much more useful with the View Size Adjust addon, which provides several functionalities that while generally useful in Anki, are critical to an effective Incremental Reading capability:
- Adjusting the size of the text when reading longer articles (Ctrl++ or Ctrl+-)
- Navigation keys for arrow up/down, page up and page down
- Ability to save the position in an article to support coming back at a later point in time and picking up where you left off (hence the term 'incremental')
- Ability to highlight text to indicate where cards have already been extracted, or simply to highlight the text if you plan to keep the longer article and read it with highlighted portions.
- Ability to add custom shortcuts for extracting and adding cards to Anki using specific card models and decks
Most of these capabilities are useful independent of the Incremental Reading concept, so I have View Size Adjust as a separate addon. Arguably, it is poorly named at this point since the majority of functionality is really about navigation and shortcuts, but in order to avoid littering the Anki addon landscape with previously named versions, I kept it the same.Latest update added some more customization options to the custom shortcuts:
- Added ability to specify shortcuts with any combination of Ctrl + Alt + Shift + Key. This includes the ability to set single key shortcuts. This allows the ability to override the default behavior of the 'x' and 'c' shortcuts.
- Added the 'showEditCurrent' dialog option when creating a new shortcut. This is unchecked by default. It mirrors the original 'x' and 'c' shortcut operation and opens the 'Edit Current' window to allow you to edit the current card while you are also adding another card in the separate 'Add Cards' dialog.
I will try to monitor this thread, but please understand that this is a purely voluntary effort as time permits. Hope that you can get some use out these plugins.
--Frank
Soren Bjornstad |
5/29/13
|
nom...@gmail.com |
5/29/13
|
Anki 2.0.9 Beat
Fedora Linux
After installing the add-on, Anki pops up an error message (see: below).
I don't understand this: "Once you have a new deck, add a new IRead2 card to the deck".
- Does it mean that a New Note Type "IRead2" should be available? If so, then it is missing.
msg:
https://groups.google.com/
Traceback (most recent call last):
File "/usr/share/anki/aqt/addons.
__import__(file.replace(".py", ""))
File "/home/mt/Anki/addons/
from View_Size_Adjust import ViewManager
ImportError: No module named View_Size_Adjust
/home/mt/Anki/addons/code_
import pkg_resources
nom...@gmail.com |
5/29/13
|
Effectively, I don't have a IRead note type, and the Tools menu has not Incremental Reading entries (looking at the print-screens on the top of this page).
Aleksej |
5/29/13
|
nomnex |
5/30/13
|
> Aleksej <deletes...@gmail.com> wrote:
>
> You need to install the View Size Adjust add-on too.
--
nomnex <nom...@gmail.com>
Freenode: nomnex
Registered Linux user #505281. Be counted at: http://linuxcounter.net
Nico |
6/7/13
|
Nico |
6/8/13
|
nom...@gmail.com |
6/8/13
|
I copy the content of an article (first card creation)
Title
Text
Source
Then I select some text to create a new card using Ctrl-0 (preferences: Past text to field: Text). (second card creation)
The title field is empty
Text
Source
My question is related to the text field, and more generally about the cards created from the main article. I first copied the title in each new card, but anki uses the first field to check duplicates and the Incremental Reading Organizer uses the title field. That was not a very good idea.
So please tell me
A. do you add a custom title for each new card extract? e.g. (original title) "Want to Remember Everything You'll Ever Learn? Surrender to This Algorithm". What title would you give to the subsequent cards created from the original article?
B. Do you extract the text of the main card in the Title field (default setting)? That does not seem right to me, but it would solve question A. Then, do you keep the Text field empty?
nom...@gmail.com |
6/8/13
|
<b>{{Title}}</b>
<br /><br />
{{Text}}
That's the result after reviewing the card and highlighting some text (see:print-screen)
The HMTL added is pretty dense. Looks like I can't modify the template to my liking. Any thought on that?
---
<style>
button {
font-weight: normal;
}
hr { background-color:#ccc; margin: 1em; }
body { margin:1.5em; }
img { max-width: 95%; max-height: 95%; }
.marked { position:absolute; right: 7px; top: 7px; display: none; }
#typeans { width: 100%; }
.typeGood { background: #0f0; }
.typeBad { background: #f00; }
.typeMissed { background: #ccc; }
</style>
<img src="qrc:/icons/rating.png" draggable="false" />
<div id="qa"><style>.card {
font-family: arial;
font-size: 20px;
text-align: left;
color: black;
background-color: white;
}
</style><b>Cognition</b><br />
<br /><style>
button {
font-weight: normal;
}
hr { background-color:#ccc; margin: 1em; }
body { margin:1.5em; }
img { max-width: 95%; max-height: 95%; }
.marked { position:absolute; right: 7px; top: 7px; display: none; }
#typeans { width: 100%; }
.typeGood { background: #0f0; }
.typeBad { background: #f00; }
.typeMissed { background: #ccc; }
</style>
<img src="qrc%3A/icons/rating.png" />
<div id="qa"><style>.card {
font-family: arial;
font-size: 20px;
text-align: left;
color: black;
background-color: white;
}
</style><b>Cognition</b><br />
<br /><div><span id="s13706858007" hiclr="yellow" hifont="false"></span>In science, cognition is a group of mental processes that includes attention, memory, producing and understanding language, learning, reasoning, problem solving, and decision making<span id="e13706858007" style="font-size:xx-small"><a href="javascript:" onclick="unhighlight(
---
Viktor Tábori |
6/9/13
|
Please post on the add-on forum:
https://groups.google.com/
Traceback (most recent call last):
File "aqt/addons.pyc", line 39, in loadAddons
File "/Users/sved/Documents/Anki/
How can I fix it?
nom...@gmail.com |
6/9/13
|
A. I assume the common usage to generate new cards from the main article is to use (Ctrl+0) "Past text to field: Text", and to input a custom title for each new card. That's what appears in Frank's print-screen.
Say, the original title of my article is "Cognition", I could name the subsequent cards as "Cognition, Social Process" or "Cognition, Part 1", etc.
B. "Show add cards dialog: If this checkbox is unchecked, the shortcut will add the card automatically without opening the Add Cards dialog": The only way I can have it work is by swapping the fields Title < --> Text (Text become the first field) and keeping the shortcut setting "Past text to field: Text". The cards are automatically generated with an empty Title field. They will have to be edited later, so I see little benefit comparing to point A. -- perhaps, the manual could be updated?
Damien Elmes |
6/9/13
|
- show quoted text ---
You received this message because you are subscribed to the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons?hl=en .
nom...@gmail.com |
6/9/13
|
I have a problem with the highlighting function, and I think it's a bug.
* In my previous posts, I pasted some HTML. I though that was some garbage, but it is not. I had to correct that.
* I also claimed the bug was triggered when I was highlighting the first line of text in the Text field. The location is irrelevant. I had to correct that too.
This is what I experience:
1. When I highlight some text (any paragraph), and I use the default IR card template (a single front {{Text}} field)
=> The card will display some artifact at the top (usually a graphic placeholder) as soon as I edit the card (see: print-screen)
2. When I highlight some text (any paragraph), and I use a modified IR front card template such as:
<b>{{Title}}</b>
<div style="margin-top: 14px;">{{Text}}</div>
=> The card will display some artifact at the top, and the titles will be duplicated two or three times (see: print-screen)
nom...@gmail.com |
6/9/13
|
nom...@gmail.com |
6/10/13
|
Could you take a look at this post: https://anki.tenderapp.com/
I have experienced a warning window with misaligned text while using you add-on. Damien asks if the message is generated by the ad-don. Thank you.
nom...@gmail.com |
6/15/13
|
My Incremental deck setting is: 5 new cards/day.
Every time I open this deck, all cards are new (that's explained in the add-on documentation).
I have only 5 cards in my deck. When I study this deck, the new count cards goes from 5 to 1, but then all the cards are shown again in a loop. Why doesn't the study session terminate after displaying the fifth card?
Viktor Tábori |
6/17/13
|
Damien Elmes |
6/18/13
|
Visit this group at http://groups.google.com/- show quoted text -group/anki-addons .
Pietro Speroni di Fenizio |
6/24/13
|
Soren Bjornstad |
6/24/13
|
I do like the concept of IR, and that something I effectively wanted to try but could not. One "problem" I see using this ad-don is with the stats. I think it's best to create a separate profile to keep IR and Study separated. What do you think?
--
You received this message because you are subscribed to the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons?hl=en .
nom...@gmail.com |
6/25/13
|
On Monday, June 24, 2013 10:32:45 PM UTC-9, Soren Bjornstad wrote:
I dealt with this issue by putting all my study decks under a superdeck called "Collection", so when I want to view stats for everything, I select the Collection deck and then view stats for the "deck". It's kind of a hack, but it works a lot better than having a separate profile and having to move cards across.
That's effectively a better idea. Thanks Soren.
Peter Pan |
6/25/13
|
It always says Back and Front no matter what Model I chose. This leads to an error message when I try to create a new IR card with the shortcut.
Could you give me any advise. It used to work. Thanks.
Arthur Chen |
7/11/13
|
在 2013年3月18日星期一UTC-4下午8时44分51秒,
New Incremental Reading Extension update includes a NEW Queue-Based Scheduler (independent of SRS scheduling) and Organizer.Full rewritten explanation of the Incremental Reading Extension below (formatting works better in the forum than in the Anki Addons site). Search for the Scheduler to see what's new.Incremental Reading Extension
Incremental Reading is a way to read many articles concurrently and efficiently add spaced repetition cards to Anki in the process. In essence, you add reading material to an Incremental Reading deck in Anki and read it as time permits. As you read, you can highlight important passages and extract them into separate cards in Anki, either for further refinement, or as final SRS cards in another Anki deck. When you have finished reading an article, you will have incorporated all the important knowledge into your Anki deck(s) and can delete it, confident that the knowledge will be continually reinforced by Anki’s core SRS function.
Example using Add Cards Shortcut defined to create a new card in Incremental Reading 2 deck with IRead2 model and using yellow highlight to mark the extracted text in the original article.
The Incremental Reading Extension addon relies on the View Size Adjust addon for several important navigation and keyboard shortcut capabilities. Be sure to add both addons before you begin.
NOTE on UPGRADING: This version changes the IRead2 model. Changing the model will require you to modify your existing IRead2 cards (removing little used Model and Deck fields, adding Title) or delete the IRead2 model and all associated cards before installing the upgrade.
NOTE on the original Incremental Reading addon: The Incremental Reading Extension addon is a fork (an alternative) of the original Incremental Reading addon. Do not attempt to install both concurrently.
Features
The Incremental Reading Extension, along with the View Size Adjust addon, supports incremental reading in Anki with the following features:
· Keyboard navigation
o PgUp, PgDn, ArrowUp, ArrowDown
o Also available from the Edit menu
· Keeping track of where you left off in each article
o Scroll to last viewed text when the card is loaded
o Uses same ‘zoom factor’ you last used for the same card
· Adjust the size of the text as needed
o Ctrl-- to increase text size
o Ctrl-- to decrease text size
o Saves selected size with each card and reapplies when shown
o Also available from the Edit menu
· Highlighting of text
o Select and hit ‘h’
o Custom colors (Hit Alt-2 to open a dialog. Also available from Edit menu)
o Anti-highlighting option (color text, rather than background)
· Custom keyboard shortcuts for adding cards efficiently
o Alt-1 to create a custom shortcut
o Choose deck, card model, shortcut key combination, highlighting, field into which to paste selected text, and to whether or not you want to see the add/edit dialogs.
o Automatically copies Tags from source Incremental Reading card to the new card created using the keyboard shortcut.
o Automatically copies Source field from Incremental Reading card to the new card created using the keyboard shortcut (if new card model has a Source field).
o Shortcuts are added to the Edit menu as they are created.
o Removing a shortcut is done by disabling it using the same dialog. Hit Alt-1, choose the same key combination and uncheck ‘Enabled’ checkbox.
· (NEW) Independent scheduling algorithm more suitable to Incremental Reading
o Queue depth based, rather than time-based
o Configurable ‘Soon’ and ‘Later’ scheduling buttons. Dialog for editing these options is available in the Tools menu (‘Incremental Reading Scheduler Options’). Options include:
§ Push a card to a specific depth (count or position) in the queue
§ Push a card to a percentage depth into the queue
§ Apply randomness to either approach
o Custom organizer dialog.
§ Move any card to any position in the queue
§ Bulk moves
§ Opened from Tools menu (‘Incremental Reading Organizer’).
§ Also opened from ‘custom’ answer button when working with Incremental Reading cards in the Anki Reviewer.
To Show Editor or Not to Show Editor
A couple of options on the Add Shortcut dialog (Alt-1) require explanation:
Show Add Cards dialog – This checkbox is checked by default. When you invoke the keyboard shortcut, the Add Cards dialog will be opened as it normally is when you add cards in Anki. It will be prepopulated with the Deck and Card Model you’ve chosen. If this checkbox is unchecked, the shortcut will add the card automatically without opening the Add Cards dialog. This is a convenience for incremental reading where a frequent activity is creating smaller, but still large, extracts from a source article and feeding those back into the Incremental Reading deck. The shortcut takes care of populating all fields with reasonable values in that case, making opening the dialog inconvenient (because you then have to close it).
Show Edit Current dialog – The original Incremental Reading addon opened two dialogs every time you attempted to add a new card. First it opened the Edit Current dialog, which contains the same card you were just looking at, but in editing mode. Second it opened the Add Cards dialog that you would normally expect. The advantage to this option is that you can delete the text from the original article as you do extracts, rather than highlighting. Personally, I prefer highlighting and deleting the entire original article at the end when I’m done with it.
Scheduling Algorithm for Incremental Reading
Anki’s normal scheduling algorithm is designed to support Spaced Repetition and address the “forgetting curve.” It makes very little sense to try to schedule reading material using the “forgetting curve” and its increasing intervals. Instead, incremental reading is really a matter of prioritizing a large number of articles based on your interest level and the importance you place on each article. Accordingly, a different scheduling algorithm is required.
For incremental reading, the goal is to manage a queue of articles and to be able to reprioritize each article every time you read it. It should also be possible to find an article you want to see, no matter where it is in the queue, and bring it forward. And periodically, you may want to review the entire queue and organize it in a specific way.
The scheduling algorithm attempts to meet the above goals without interfering with Anki’s normal scheduler or dramatically changing the Anki interface. To do so, it effectively removes the Incremental Reading cards from the Anki scheduler and keeps all the incremental reading cards permanently in the NEW queue. This keeps all Incremental Reading cards available all the time (not hidden away in a REVIEW queue to be shown again in a few days, weeks or months).
An incremental reading card will always have three buttons labeled ‘Soon’, ‘Later’ and ‘Custom’. The meaning of ‘Soon’ and ‘Later’ is configurable, but essentially means ‘This is important and I want to see it again Soon’ or ‘This is less important, don’t show it to me again until Later.’ If, despite configuration, you don’t get the behavior you want, or if you want to handle a card specially, there is the ‘Custom’ button, which opens the Organizer dialog to let you put that card wherever you want in the queue.
Configuration of the ‘Soon’ and ‘Later’ scheduling options is available from the Tools -> Incremental Reading Scheduler Options menu item. Options include:
· Position – Treat the configured value as a simple position number.
· Percent – Treat the configured value as a percentage value
· Random – Apply some randomness to the placement of the item using the configured count or percentage value.
· Value – The numeric value. It represents either a count or a percentage.
Position vs Percent
If you choose Position and don’t apply Random, then hitting the button in question will directly place the card at the position you indicated. If you apply Random, it will place the card at a random position between 1 and the Position you indicated.
If you choose Percent and don’t apply Random, then hitting the button in question will calculate the position as a percentage of the queue depth and place the card at that position. If you apply Random, it will place the card at a random position between 1 and the calculated position by percentage.
The above explanations apply for the ‘Soon’ button. The ‘Later’ button differs only in that the placement of the card will be between the Position or Percentage given for ‘Soon’ and the Position or Percentage given for ‘Later’. Thus, if you specify 10 Percent for ‘Soon’ and 50 Percent for ‘Later’, the ‘Later’ button will place the card at a position between 10 and 50 percent into the queue.
Organizer
The Organizer is a dialog that shows a list of all the cards in the Incremental Reading deck. It can be accessed from the Tools menu.
There is a checkbox next to each card that can be used to select an individual card or many cards and move them up or down in the queue. To move a card up, check the box next to that card and click the ‘Up’ button. To move a card down, click the ‘Down’ button. If multiple cards are checked, they move up or down together.
If a selected card cannot be moved up because it has hit the top of the queue or because the card above it is also selected, it will not be moved. Cards selected below it can move up until all selected cards make a contiguous block. The same applies for moving cards down alone or in bulk.
The ‘Pin Top/Bottom’ checkbox at the top locks the top-most (or bottom-most) item in place while ‘Up’ or ‘Down’ are clicked to move other selected items, allowing you to ‘anchor’ a block of selected items anywhere in the queue.
The Card Position field at the top of the Organizer allows you to specify a position to directly move the top-most selected item to. If multiple items are selected, they move up or down together.
Compatibility and Upgrading
Update your View Size Adjust addon. You need the most recent of both the Incremental Reading Extension addon and the View Size Adjust addon.
IRead2 Card Model has changed.
· Removed Model and Deck fields. The original IRead2 card has Model and Deck fields that were needed by the predecessor Incremental Reading addon. With the custom shortcuts approach used by Incremental Reading Extension, they are no longer needed. Accordingly, they have been removed.
· Added ‘Title’ field. Using the Organizer requires you to be able to identify each card sufficiently to be able to prioritize it in the queue. Adding a ‘Title’ field makes that possible.
Changing the IRead2 model means that for those of you who are upgrading, there is a little work. Here are the options for doing the upgrade.
Option 1 – Delete the IRead2 card model before applying the new addons. This will delete all IRead2 cards in your collections. The addons will create the new IRead2 card model when installed.
Option 2 – Modify the IRead2 model before updating the addon.
· Delete the Anki Deck field and the Model field. Anki will warn you that it will be modifying your collection in a way that makes it incompatible with the copy in the cloud or on other devices. You will need to do a full sync afterwards.
· Add the Title field and position it as the first field in the model. Also check the radio button that says to use that field for sorting in the Browser.
On Sunday, March 10, 2013 6:55:03 PM UTC-5, Frank wrote:As suggested, I am adding a topic for a couple of related addons that I've contributed: The View_Size_Adjust addon and the Incremental_Reading_Extension addon. They are related in that the Incremental Reading Extension is much more useful with the View Size Adjust addon, which provides several functionalities that while generally useful in Anki, are critical to an effective Incremental Reading capability:
- Adjusting the size of the text when reading longer articles (Ctrl-- or Ctrl--)
- Navigation keys for arrow up/down, page up and page down
- Ability to save the position in an article to support coming back at a later point in time and picking up where you left off (hence the term 'incremental')
- Ability to highlight text to indicate where cards have already been extracted, or simply to highlight the text if you plan to keep the longer article and read it with highlighted portions.
- Ability to add custom shortcuts for extracting and adding cards to Anki using specific card models and decks
Most of these capabilities are useful independent of the Incremental Reading concept, so I have View Size Adjust as a separate addon. Arguably, it is poorly named at this point since the majority of functionality is really about navigation and shortcuts, but in order to avoid littering the Anki addon landscape with previously named versions, I kept it the same.Latest update added some more customization options to the custom shortcuts:
- Added ability to specify shortcuts with any combination of Ctrl - Alt - Shift - Key. This includes the ability to set single key shortcuts. This allows the ability to override the default behavior of the 'x' and 'c' shortcuts.
- Added the 'showEditCurrent' dialog option when creating a new shortcut. This is unchecked by default. It mirrors the original 'x' and 'c' shortcut operation and opens the 'Edit Current' window to allow you to edit the current card while you are also adding another card in the separate 'Add Cards' dialog.
I will try to monitor this thread, but please understand that this is a purely voluntary effort as time permits. Hope that you can get some use out these plugins.
--Frank
TehOtServer |
7/12/13
|
Soren Bjornstad |
7/14/13
|
run it through a PDF-to-HTML converter first. The formatting doesn't
look great, but it usually works.
The way I usually add website content is by simply copying and pasting
right out of the browser instead of from the source code, and I don't
generally run into issues like that, so you might consider trying that.
> You received this message because you are subscribed to the Google Groups "Anki Add-ons" group.
>
>
Susan Gmeiner |
7/22/13
|
An error occurred in an add-on.
Please post on the add-on forum:
https://groups.google.com/
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\
File "C:\cygwin\home\dae\win\build\
File "C:\cygwin\home\dae\win\build\
File "C:\cygwin\home\dae\win\build\
File "C:\cygwin\home\dae\win\build\
File "C:\Users\Susan\Documents\
self.web.setHtml(curNote['
File "C:\cygwin\home\dae\win\build\
File "C:\cygwin\home\dae\win\build\
KeyError: 'Text'
The screen then says waiting for editing to finish. The Resume Now button doesn't work. I ahve to reopen the Incremental Reading deck. My place is not saved so I need to scroll down to wear I was.
Thanks.
Susan
Aleksej |
7/27/13
|
> KeyError: 'Text'
Have you renamed that field in the note type?
Or maybe the wrong note type is being used (related to the requirement
to update one when switching to IRE?).
Susan Gmeiner |
7/29/13
|
Kacper Zieliński |
8/6/13
|
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\Samsung\Documents\
from View_Size_Adjust import ViewManager
File "c:\pyi\iu.py", line 455, in importHook
Aleksej |
8/6/13
|
Frank |
11/4/13
|
Hello,--Is there a way I can delete redundant Add Card shortcuts that I have created in the Edit menu?Thanks in advance.Tom
On Monday, 11 March 2013 10:55:03 UTC+11, Frank wrote:As suggested, I am adding a topic for a couple of related addons that I've contributed: The View_Size_Adjust addon and the Incremental_Reading_Extension addon. They are related in that the Incremental Reading Extension is much more useful with the View Size Adjust addon, which provides several functionalities that while generally useful in Anki, are critical to an effective Incremental Reading capability:
- Adjusting the size of the text when reading longer articles (Ctrl++ or Ctrl+-)
- Navigation keys for arrow up/down, page up and page down
- Ability to save the position in an article to support coming back at a later point in time and picking up where you left off (hence the term 'incremental')
- Ability to highlight text to indicate where cards have already been extracted, or simply to highlight the text if you plan to keep the longer article and read it with highlighted portions.
- Ability to add custom shortcuts for extracting and adding cards to Anki using specific card models and decks
Most of these capabilities are useful independent of the Incremental Reading concept, so I have View Size Adjust as a separate addon. Arguably, it is poorly named at this point since the majority of functionality is really about navigation and shortcuts, but in order to avoid littering the Anki addon landscape with previously named versions, I kept it the same.Latest update added some more customization options to the custom shortcuts:
- Added ability to specify shortcuts with any combination of Ctrl + Alt + Shift + Key. This includes the ability to set single key shortcuts. This allows the ability to override the default behavior of the 'x' and 'c' shortcuts.
- Added the 'showEditCurrent' dialog option when creating a new shortcut. This is unchecked by default. It mirrors the original 'x' and 'c' shortcut operation and opens the 'Edit Current' window to allow you to edit the current card while you are also adding another card in the separate 'Add Cards' dialog.
I will try to monitor this thread, but please understand that this is a purely voluntary effort as time permits. Hope that you can get some use out these plugins.
--Frank
You received this message because you are subscribed to a topic in the Google Groups "Anki Add-ons" group.
Jevon Hill |
11/7/13
|
Frank |
11/10/13
|
I have the same issue as Susan Gmeiner. After highlighting a portion of the card that is being shown and pressing Ctrl+0 for Add Card, when the add card dialog opens, the highlighted text is not inserted into the specified field. This happens with any card type and field I choose. The only field that works is source when picking the IRead2 card type. Any idea? I am using Anki 2.0.16 and have done a complete re-install.--
You received this message because you are subscribed to a topic in the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons .
Michael Fogleman |
11/10/13
|
Thanks everybody.
MWF
Jevon Hill |
11/12/13
|
Diego José Vigueras |
11/19/13
|
"Traceback (most recent call last):
File "/Users/Diego/Documents/Anki/
self.showIRSchedulerDialog(
File "/Users/Diego/Documents/Anki/
cardDataList = self.getCardDataList(deckID, cardID);
File "/Users/Diego/Documents/Anki/
if(note.model()['name'] == 'IRead2'): cardData['title'] = str(note['Title'])[:64].
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 38: ordinal not in range(128)"
Thank you very much. I'd like to use Incremental Reading.
Cheers
Diego
Aleksej |
11/19/13
|
https://gitorious.org/vsa_and_
Diego José Vigueras |
11/19/13
|
Aleksej |
11/19/13
|
using the "patch" utility from diffutils, or manually.
Look at this version:
https://gitorious.org/vsa_and_
The file is in Anki/addons directory.
Diego José Vigueras |
11/19/13
|
Jonathan Leathwood |
11/25/13
|
Traceback (most recent call last):
File "/Users/jonathanleathwood/
colorTextField = "<span style='font-weight:bold'>
TypeError: cannot concatenate 'str' and 'NoneType' objects
Soren Bjornstad |
12/7/13
|
On Sunday, March 10, 2013 6:55:03 PM UTC-5, Frank wrote:
As suggested, I am adding a topic for a couple of related addons that I've contributed: The View_Size_Adjust addon and the Incremental_Reading_Extension addon. They are related in that the Incremental Reading Extension is much more useful with the View Size Adjust addon, which provides several functionalities that while generally useful in Anki, are critical to an effective Incremental Reading capability:
- Adjusting the size of the text when reading longer articles (Ctrl++ or Ctrl+-)
- Navigation keys for arrow up/down, page up and page down
- Ability to save the position in an article to support coming back at a later point in time and picking up where you left off (hence the term 'incremental')
- Ability to highlight text to indicate where cards have already been extracted, or simply to highlight the text if you plan to keep the longer article and read it with highlighted portions.
- Ability to add custom shortcuts for extracting and adding cards to Anki using specific card models and decks
Most of these capabilities are useful independent of the Incremental Reading concept, so I have View Size Adjust as a separate addon. Arguably, it is poorly named at this point since the majority of functionality is really about navigation and shortcuts, but in order to avoid littering the Anki addon landscape with previously named versions, I kept it the same.Latest update added some more customization options to the custom shortcuts:
- Added ability to specify shortcuts with any combination of Ctrl + Alt + Shift + Key. This includes the ability to set single key shortcuts. This allows the ability to override the default behavior of the 'x' and 'c' shortcuts.
- Added the 'showEditCurrent' dialog option when creating a new shortcut. This is unchecked by default. It mirrors the original 'x' and 'c' shortcut operation and opens the 'Edit Current' window to allow you to edit the current card while you are also adding another card in the separate 'Add Cards' dialog.
I will try to monitor this thread, but please understand that this is a purely voluntary effort as time permits. Hope that you can get some use out these plugins.
--Frank
Aleksej |
12/11/13
|
(Anki 2.0.19):
Traceback (most recent call last):
File "/usr/share/anki/aqt/reviewer.
File "/usr/share/anki/anki/hooks.
File "/home/fca/Anki/addons/
909, in my_reviewer_answerCard
File "/usr/share/anki/aqt/reviewer.
File "/usr/share/anki/aqt/reviewer.
File "/usr/share/anki/aqt/reviewer.
File "/usr/share/anki/anki/hooks.
File "/home/ankiuser/Anki/addons/
line 192, in adjustZoomAndScroll
File "/home/ankiuser/Anki/addons/
setZoomFactor
File "/home/ankiuser/Anki/addons/
savePluginData
IOError: [Errno 24] Too many open files: u'/home/ankiuser/Anki/User
1/collection.media/_
Jae Hoon |
12/20/13
|
Thank you for these great add-ons! I find them to be incredibly helpful in my studies. As of late, however, I am encountering a bug I have not been able to find a solution for.
Aleksej |
12/20/13
|
https://gitorious.org/vsa_and_
miq...@gmail.com |
12/20/13
|
Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/main.pyc", line 109, in setupProfile
File "aqt/main.pyc", line 243, in loadProfile
File "anki/hooks.pyc", line 26, in runHook
File "/Users/mika/Documents/Anki/
addons/Incremental_Reading_ Extension.py", line 90, in loadPluginData self.ir2data = pickle.loads(tmp);
File "pickle.pyc", line 1382, in loads
File "pickle.pyc", line 858, in load
File "pickle.pyc", line 966, in load_string
ValueError: insecure string pickle
Konrad |
1/7/14
|
System: Ubuntu
Anki Version 2.0.19
Qt 4.8.1 PyQt 4.9.1
thanks
Konrad
Lookanio |
1/18/14
|
I have v. similar issue but with View_Size_Adjuct (when I press Alt+1):
Traceback (most recent call last):
File "/home/luser_name/Anki/addons/
javascript += "var pasteToFieldValue = '" + str(self.lastDialogQuickKey.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 3: ordinal not in range(128)
I will appreciate for any help. Thank you in advance.
Lookanio |
1/20/14
|
I solved it by myself :-) Put:
import sys
reload(sys)
sys.setdefaultencoding("utf-8"
into View_Size_Adjust.py
Seems to work out :-)
BTW Thank you for you keeping this extension better and better.
Marius V |
2/11/14
|
Hello ppl, have a question here. as per copying content from the web, as we now, original html formating gets stripped all away (or is it just mine? :)), and when there's specific text formatting like italicizing, bolding, sub and superscripting is gone, that's very inconvenient when considering text readability. So the question is - are there any possible roundabouts for this kind of problem? smth like editing the paste or card options in anki? btw i'm new but old to anki :) so there;s no need to hold back :)
Marius V |
2/11/14
|
2014 m. vasaris 11 d., antradienis 10:41:02 UTC+2, Marius V rašė:
Hello ppl, have a question here. as per copying content from the web, as we now, original html formating gets stripped all away (or is it just mine? :)), and when there's specific text formatting like italicizing, bolding, sub and superscripting is gone, that's very inconvenient when considering text readability. So the question is - are there any possible roundabouts for this kind of problem? smth like editing the paste or card options in anki? btw i'm new but old to anki :) so there;s no need to hold back :)
Aleksej |
2/11/14
|
Python 2.7 documentation says in python-doc/html/library/
Warning
The pickle module is not intended to be secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source.
There is also a faster implementation called cPickle. I hope "import cPickle as pickle" is the right way to make IRE use cPickle instead of pickle.
However, I have found some time ago when working with tables of megabytes in size, that the csv module works much faster than cPickle does, and has no security issue. However, switching to it requires some coding.
--- show quoted text -
You received this message because you are subscribed to the Google Groups "Anki Add-ons" group.
solve...@gmail.com |
2/18/14
|
HI,
Thanks for the addon. Really like the scheduling.
What about the load from url feature of the first ankiIR?
Does anyone know of a automated way to load from browser?
Would love to have a keyboard shortcut that lets me just load to my IR queue from the browser...
(right now have a break in workflow, copy paste into anki...)
Aleksej |
2/20/14
|
On 2014-01-07 03:52, Konrad wrote:
Thanks a lot for your great extension and this patch.
solve...@gmail.com |
2/21/14
|
Well Ive been looking at the codebase this evening for the Incremental_Reading_Extension.
And I dont quite understand how the initial IRead2 type is saved after we manually paste into the editor fields, ie Title, Text, Source. (I guess this is built into Anki editor functions, so when we hit the add button, that is a built-in feature...?)
The first author, Frank, in the AnkiIR.py (first one), made a doAddURL() function to just load the page into anki. But that uses Fact, tidyHTML.. none of which is available in Anki2, which uses note, type, ...
In the new version, there is an extract function, which uses setField to pull in the copied mimeData to the next note? ..(sorry if confusing the terminology between anki1/2), and i guess it just uses the builtin editor options to save the IRead2 type.
Im new to anki, but does anyone know where I should look to insert into the editor field?
In the aqt folder there's:
field.py (has a promising sounding fillFields(),
models.py (has a onAdd function )
editor.py (some js functions like setFields, saveField)
a pointer in the right direction, on how to auto-fill fields and save from url, would be great!
-thanks
Aleksej |
2/21/14
|
Well Ive been looking at the codebase this evening for the Incremental_Reading_Extension.py
And I dont quite understand how the initial IRead2 type is saved after we manually paste into the editor fields, ie Title, Text, Source. (I guess this is built into Anki editor functions, so when we hit the add button, that is a built-in feature...?)
There is also an add-on to toggle that near the fields themselves: Frozen Fields by tmbb https://ankiweb.net/shared/
In the new version, there is an extract function, which uses setField to pull in the copied mimeData to the next note? ..(sorry if confusing the terminology between anki1/2), and i guess it just uses the builtin editor options to save the IRead2 type.
solve...@gmail.com |
2/26/14
|
Sorry for the questions(new to anki/busy)
Why do the images not display for all websites? (meaning when i copy paste the html, sometimes images render, somethimes not) is there a way to 'deep copy' a web-page and paste it.
Or(there is no deep-copy) the images are normally dwnld and stored as well, but mine are just not getting set somehow ?
again thank you for this wonderful tool !
Aleksej |
2/26/14
|
2. The image download question concerns Anki itself. I enabled HTML pasting only recently, and noticed this problem, too.
The add-on also has an image-related issue, which is that images sometimes disappear when extracting. Also, highlights *might* be disappearing when I open the HTML code editor.
3. I have previously criticized the add-on's prioritization capabilities. While they indeed look weak compared to SuperMemo's micromanagement-friendly UI, I have found some details I had been missing:
a) I had "Later" configured with "60%", which meant the cards in the farther 40% would not be shown until I removed or cut down some of the cards in the nearer 60%. Now I changed it to 100% and can get to the newest cards without repositioning them manually.
b) You can reposition cards without touching Anki's scheduling algorithm, and thus without touching statistics! For that, *instead of* pressing "Show answer", press "1" or "2" on your keyboard (or "3" for "Custom"). The card's queue position will be changed, but the card won't be closed. If you are satisfied with the position, press "s" twice to go to the next card without "rating" this one. There will be no record in the card's history.
--- show quoted text -
You received this message because you are subscribed to the Google Groups "Anki Add-ons" group.
Visit this group at http://groups.google.com/group/anki-addons .