Giter Club home page Giter Club logo

incremental-reading's Introduction

2021 Project Status: Active development will resume on Saturday the 27th of February.

Incremental Reading for Anki

Build Status

Note: Version 4 of the add-on is only available for Anki 2.1+. Some features will be missing from the earlier versions.

Introduction

This is a rewrite of the Incremental Reading add-on, which aims to provide features that support incremental reading in Anki. The idea of working with long-form content within a spaced-repetition program appears to have originated with SuperMemo, which offers an elaborate implementation of the technique (see their help article for more information). This add-on for Anki is comparatively bare-bones, providing a minimal set of tools for iterating over long texts and creating new flashcards from existing ones. For an overview of these features, see below.

Main Features

  • Import content from web feeds (RSS/Atom), webpages, or Pocket (v4 only)
  • Extract selected text into a new card by pressing x
  • Highlight selected text by pressing h
  • Remove selected text by pressing z
  • Undo changes to the text by pressing u
  • Apply rich text formatting while reading
  • Create custom shortcuts to quickly add cards
  • Maintain scroll position and zoom on a per-card basis
  • Rearrange cards in the built-in organiser
  • Control the scheduling of incremental reading cards
  • Limit the width of cards (useful on large screens) (v4 only)

New to Version 4

  • Compatible with Anki 2.1
  • Import single webpages (Alt+3)
  • Import web feeds (Alt+4)
  • Import Pocket articles (Alt+5)
  • Apply bold, italics, underline or strikethrough (Ctrl+B, I, U, or S)
  • Toggle formatting on and off (Ctrl+Shift+O)
  • Choose maximum width of cards (see options: Alt+1)
  • Control initial scheduling of extracts (see options: Alt+1)

New to Version 3

  • Remove unwanted text with a single key-press (z)
  • Multi-level undo, for reverting text changes (u)
  • New options to control how text is extracted:
    • Open the full note editor for each extraction (slow), or simply a title entry box (fast)
    • Extract selected text as HTML (retain color and formatting) or plain text (remove all formatting)
    • Choose a destination deck for extracts
  • New options for several aspects of zoom and scroll functionality:
    • Zoom Step (the amount that magnification changes when zooming in or out)
    • General Zoom (the zoom level for the deck browser and overview screens)
    • Line Step (the amount the page moves up or down when the Up or Down direction keys are used)
    • Page Step (same as above, but with the Page Up and Page Down keys)
  • Highlighting:
    • Both the background color and text color used for highlighting can be customized
    • A drop-down list of available colors is provided
    • A preview is now displayed when selecting highlight colors
    • The colors applied to text extracted with x can now be set independently
  • Quick Keys
    • A list of all existing Quick Keys is now shown, to allow easy modification
    • Unwanted Quick Keys can be easily deleted
    • A plain text extraction option has also been added
  • All options have been consolidated into a single tabbed dialog

Screenshots

Note: These are fairly outdated.

Screenshot #1 Screenshot #2 Screenshot #3

Installation

You will first need to have Anki installed. Download the relevant installer here.

To install through Anki, navigate to Tools → Add-ons → Get Add-ons..., and enter the code 935264945. To install manually, download the GitHub repository (here) and place the ir folder into your add-ons folder.

Usage

Experimentation should lead to a pretty quick understanding of how the add-on works. If in doubt, start with the following:

  1. Create a new IR note with an article you want to study (the easiest way to do this is to import a webpage, by pressing Alt+3 while on the deck overview screen)
  2. Set up a shortcut for creating regular Anki cards from IR cards (press Alt+1, or go to the menu, then go to the Quick Keys tab)
  3. Review the IR card that was created, and extract any text you find interesting (by selecting the text and pressing x)
  4. Choose Soon or Later when you want to move to the next card (which will be a portion of text you extracted)
  5. Whenever you want to create a regular Anki note, simply select the desired text and use the shortcut you created earlier

Outdated instructions can be found here. They were written for v2, but the basic behaviour of the add-on is still similar.

Support

If any issues are encountered, please post details to the Anki add-ons forum. It’s best if you post in the existing thread (here) so I receive an email notification. Otherwise, note an issue or make a pull request on GitHub.

Please include the following information in your post:

  • The version of Anki you are using (e.g., v2.1.0-beta5; can be found in Help → About...)
  • The version of IR you are using (this can be found in Read → About...)
  • The operating system you are using
  • Details of the problem
  • Steps needed to reproduce the problem

License

Multiple people have contributed to this add-on, and it’s somewhat unclear who to credit for which changes and which licenses to apply.

Tiago Barroso appears to have initiated the project, and he has stated that he releases all of his add-ons under the ISC license. Frank Kmiec later vastly expanded the add-on, but it’s unclear which license his changes were released under. Presuming he didn’t specify one, the AnkiWeb terms and conditions suggest they were automatically released under the AGPL v3. Aleksej’s changes to Frank’s version are multi-licensed under the GPL and ISC licenses.

For the sake of simplicity, my changes are also released under the ISC license. For each author, I have placed a copyright lines where appropriate, with what I believe are correct dates. If I have made a mistake in this respect, please let me know.

Frank Raiser released an Anki 1 add-on under a similar name, but it doesn’t appear to share any code with the current project and functions quite differently. For more information, see Anki Incremental Reading.

incremental-reading's People

Contributors

abdnh avatar aleksejrs avatar cesarrodrig avatar glutanimate avatar jyore avatar kerizane avatar levodopa avatar luoliyan avatar mowsmith avatar tvhong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

incremental-reading's Issues

[v3] Scheduling is broken, card is always moved to 1

Anki 2.0.47 (v4 on Anki 2.1.0 beta 26 seems to work, and the first card is different). I have 3453 cards in my IR deck. The Scheduling settings are 10 and 50 %. The card is always moved to 1. The Organizer is too manual and not convenient (certainly not for 10 and 50 %).

“<class 'IndexError'>: list index out of range” when extracting

Error 
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. 
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. 
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. 
Debug info:
Anki 2.1.0beta23 Python 3.6.2 Qt 5.9.2 PyQt 5.9
Platform: Linux
Flags: frz=True ao=True

Caught exception:
  File "/home/fc/.local/share/Anki2/addons21/1152164089/text.py", line 84, in create
    newNote.cards()[0], SCHEDULE_EXTRACT)
<class 'IndexError'>: list index out of range

How to create the intial card for incremental reading ?

How to create the initial card for incremental reading ?

Should a new deck be created ?

I created a new deck and when i select "Organizer" it says "

please select an incremental reading deck

How does this addon work ?

is there a guide ?

Suggestion: considering extracts as flashcards rather than articles

Merry Christmas! As is the case in SuperMemo (from what I've read), extracts should probably be scheduled with spaced repetition rather than inside the prioritized reading list as new independent articles.

  • When a flashcard is created out of an extract, its past reviews would be those of the extract. But this raises an issue: if the extract isn't deleted afterward, both the extract and the associated flashcards are going to be shown again the same day next time, and this will continue as long as they get the same answer. 2 possible solutions:
    • some randomization is necessary, keeping in mind that the flashcard has to appear before the extract to avoid interference of passive review with active recall. Perhaps set the intervals for extracts as slightly longer than the intervals for regular flashcards?
    • (this could be an independent suggestion) instead of highlighting portions that have been processed into extracts or flashcards, hide them. But make it possible to show them again (highlighted) by a simple shortcut (and button). This is to avoid interference. And it might be more satisfying to see text disappearing rather than being highlighted.

Now the question of decks arises.

  • I see having everything in the same deck − articles, extracts and flashcards − as the ideal solution. The user would be confronted to items from all those categories in random order, which might boost their creativity and attention span. There are several issues with this, however:

    • IR articles and extracts should keep their attributes while being in a normal deck. This is probably not too hard.
    • people who use to review on their phones probably don't want to stumble upon extracts and articles, since those objects require specific actions that can currently only be done from a computer. If articles were tagged as "IRarticle" and extracts as "IRextract", a DIY solution could be (before reviewing on the mobile version) to create a filtered deck with the following options:
      ir add-on filtered deck options
      And in the far future, the add-on could propose an option for that.
    • the organizer should handle both spaced repetition and priorities. I think this is the hardest issue. We would have two organizers: one for articles and another (hidden) one for extracts and flashcards. Everyday, both would be merged. But how?
      • articles, extracts and flashcards should ideally be mixed and presented in random order. But we need to ensure that all due cards are reviewed today! So finding out a good distribution would be hard. Does anyone know how SuperMemo does it? Or have an idea for this distribution?
      • an easier solution would be to present due extracts and due flashcards before articles.
  • rather than putting everything in the same deck, it would be a lot easier to have at least 3 decks: a deck for IR articles, a deck for IR extracts, and a deck for regular flashcards. This solves the previous issues, but what's lost is the apparition in random order of articles, extracts and flashcards. This could be a temporary solution though (or a less than perfect but already better than the current state solution).

Removing text does not work properly

I remove some sections of my cards by using the remove shortcut but when the cards show up again the removed section was not removed, it just there.
Also, sometimes I extract some sections to other IR Cards, then when they show up again they are not highlighted by 'extracted' color.

Only two zoom levels / one step

I installed 4.2.7 from master onto Anki 2.1b16, and I have only two zoom levels (one step that is configured in the addon). Why?

Bug when creating flashcards with quickkeys and an empty selection

It can be useful to use a shortcut to create a basic note, or a cloze deletion note, without selecting any text. For example, if the user wants to reformulate the sentence(s).

However a bug sometimes happens when I try to do that. It specifically happens when I use a shortcut after having used another (or the same) shortcut, without clicking on the text between both. It never happens when I simple-click on the text between shortcut uses.
The bug also happens when I select a piece of text, then click once on the text, then use the shortcut.
And when I use a shortcut having never clicked on the text before.

With a shortcut creating a Basic note, pasting text to Front field (these settings):
bug ir add-on shortcut config basic front

2 error windows are opened:

Error
...
Debug info:
Anki 2.1.0beta27 Python 3.6.2 Qt 5.9.2 PyQt 5.9
Platform: Linux
Flags: frz=True ao=True

Caught exception:
File "/home/.../.local/share/Anki2/addons21/1081195335/main.py", line 169, in createNote
addCards.editor.setNote(newNote)
File "aqt/editor.py", line 289, in setNote
File "aqt/editor.py", line 304, in loadNote
File "anki/media.py", line 251, in escapeImages
File "/home/dae/Local/py59/lib/python3.6/re.py", line 191, in sub
<class 'TypeError'>: expected string or bytes-like object

Then:

Error
...
Debug info:
Anki 2.1.0beta27 Python 3.6.2 Qt 5.9.2 PyQt 5.9
Platform: Linux
Flags: frz=True ao=True

Caught exception:
File "aqt/editor.py", line 312, in oncallback
File "aqt/editor.py", line 340, in checkValid
File "anki/notes.py", line 136, in dupeOrEmpty
<class 'AttributeError'>: 'NoneType' object has no attribute 'strip'
Caught exception:
File "aqt/editor.py", line 312, in oncallback
File "aqt/editor.py", line 340, in checkValid
File "anki/notes.py", line 136, in dupeOrEmpty
<class 'AttributeError'>: 'NoneType' object has no attribute 'strip'

With a shortcut creating a Basic note, pasting text to Back field (these settings):
bug ir add-on 2017 12 16 config basic back

Only the first error window appears.

And with a shortcut creating a Cloze Deletion note, pasting text to Text field (these settings):
bug ir add-on 2017 12 16 config cloze text

Both errors happen.

Then in each case I find myself in front of an empty IR3 note, instead of an empty Basic or Cloze Deletion note:
bug ir add-on 2017 12 16

Highlights not saving

Hi,
I'm currently using Anki Version 2.0.48, IR v3.8.2 on my Mac OS 10.12.6. For some reason none of my highlights will save on my IR cards, whether I'm just highlighting it, or extracting text. The highlights will show up on the card but when I come back to review them they will be gone.

I think I've seen others with macs post about this problem before but I was unsure if there has been a solution with a newer version of Anki/IR. I'm unable to update at this time because I need the Image Occlusion feature.

On an unrelated note, is there a way to make the title of my card scroll down with me as I move down through longer cards? This would be really helpful for me on cards where I pick up where I left off and naming extracted pieces of the articles.

I pretty much nothing about computers so any help would be really appreciated and please let me know if there is any other information that would be helpful. Thank you for all you do with this add on!

Need option to mark Pocket articles on import

Anki 2.1.0beta20 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True

Caught exception:
  File "D:\system\documents\Anki\addons21\1081195335\importer.py", line 142, in importPocket
    for i, article in enumerate(response.json()['list'].values(), start=1):
<class 'AttributeError'>: 'list' object has no attribute 'values'

It pops up when I'm trying to load the articles (the auth is ready). Also I wasn't able to open organizer – it said I should select IR deck. Extraction of some webpage eventually happened to work and it fixed the problem, but the pocket issue still persists. Am I doing something wrong?

Attribute Error after installing the newest extension supporting the remove key (r)

This Error occurs after finishing the learning session:

Traceback (most recent call last):
  File "/usr/share/anki/aqt/main.py", line 629, in keyPressEvent
    if self.keyHandler(evt):
  File "/usr/share/anki/anki/hooks.py", line 56, in repl
    return new(*args, **kwargs)
  File "/home/pietro/Documents/Anki/addons/ir/main.py", line 791, in keyHandler
    if self.card.note().model()['name'] == IR_MODEL_NAME:
AttributeError: 'NoneType' object has no attribute 'note'

Keep up the great work!

Following issue: setdefaultencoding

First thank you very much for working on this Haddon. I really do use it and it's amazing you can code this. Thank you very much!

An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "aqt/addons.pyc", line 41, in loadAddons
File "/Users/mac/Library/Application Support/Anki2/addons/ir_addon.py", line 24, in
File "/Users/mac/Library/Application Support/Anki2/addons/ir/init.py", line 1, in
File "/Users/mac/Library/Application Support/Anki2/addons/ir/main.py", line 23, in
AttributeError: 'module' object has no attribute 'setdefaultencoding'

a new suggestion

hello dear Luolian
I have a great suggestion for your addons
well, my biggest problem with using this addon is its weakness to import pdf files. well, i think if you add a code to convert a pdf file as a picture for each page and store each page in a new card, most important problem to read pdf files will be solved. you can ask users how they want to import their pdf pages? on a4 size or custom size. when they click for example a4 size, a new card will be created wit for example 28 lines with numbers and a picture will insert next to numbers.
as bellow:
1 (
2 picture
3
... )
each time the users want to highlight that line, they can highlight the number of each line in the card. or they can put some sign on that line if they want to delete or ignore the line for next review.
according to the numbers of pdf pages, each card can have a specific number to find them in the Anki's browser. by browsing the Anki, they can merge some cards that are linked together and see the whole part in one card.
by this add-on, we can import our pdf files in other languages that OCR technology are not supported in those languages, or we can use the whole pdf files that can not convert to the text line.
so we can use incremental reading for almost every texts that are in the web and text files, or those that are in the pdf files.
thank you.

Pourya Mazaheri.

<class 'TypeError'>: 'NoneType' object is not subscriptable

Hi, I'm testing Anki 2.1 and I saw your extension, I wanted to try it, but I'm getting this error on Anki startup:

Caught exception: File "aqt/progress.py", line 65, in handler File "aqt/main.py", line 115, in setupProfile File "aqt/main.py", line 254, in loadProfile File "anki/hooks.py", line 28, in runHook File "/Users/piotr/Library/Application Support/Anki2/addons21/ir/main.py", line 39, in onProfileLoaded self.importer = Importer(mw.settingsManager.settings) File "/Users/piotr/Library/Application Support/Anki2/addons21/ir/importer.py", line 17, in __init__ self.did = mw.col.decks.byName(settings['importDeck'])['id'] <class 'TypeError'>: 'NoneType' object is not subscriptable

Doesn't matter if I install this by pasting code from Anki addons website or by copying 'ir' from github master.

Some feature requests..

During my work with IR I got some ideas for features/improvements that would be really helpful for me:

  1. Organizer: Ignore HTML-code from "title"-field in the schedule organizer
  2. Put extracts in the schedule directly after the original extracted card
  3. In Card Browser, set creation date of the extract directly after the original extracted card.
  4. The posibillity to use IR e.g. the extract or highlighting keys in the preview browser (I don't know if it would cause a bug like I reported some days ago)
  5. the posibillity to use IR3 like cardtypes with IR-Plugin, when they have the fields title, text and source, so it would be possible to generate different stylesheets for different IR-importers

Import Error (from Pocket)

When trying to import from pocket I get this error:

Debug info:
Anki 2.1.0beta24 Python 3.6.3 Qt 5.10.0 PyQt 5.9.2
Platform: Linux
Flags: frz=False ao=True

Caught exception:
  File "/home/hart/.local/share/Anki2/addons21/1081195335/importer.py", line 143, in importPocket
  File "/home/hart/.local/share/Anki2/addons21/1081195335/importer.py", line 59, in importWebpage
    def importWebpage(self, url=None):
  File "/home/hart/.local/share/Anki2/addons21/1081195335/importer.py", line 31, in _fetchWebpage
    url = 'http://' + url
<class 'UnicodeDecodeError'>: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Suggestions: copying sources and handling titles

Hi luoliyan! First, thanks for your work. Incremental reading is critical for me.

Here are a few suggestions:

  1. When creating a card out of a portion of text, automatically copying the source field into the extra field (cloze type), or back field (basic type, whatever the field the text is entered into)
  2. Having to make up a title for every extract of text is annoying, at least for me. Titles could be pre-written on the (ideally customizable) model: title of source note.n where n equals 1 if first extract etc. Other possible syntax: title of source note ex ex ex... But several extracts will have the same title. Other possible syntax: title of source note (then the user might or might not add something at the end of this title to describe the extract). This title suggestion should appear already selected so as to be changed easily by the user.
  3. In the organizer, showing the first characters of the note as well as the title.
  4. If 3. is implemented, titles can be made optional. The organizer would show either the title plus the first characters, or the first characters of the text if there is no title.

UnicodeDecodeError when trying to open Options menu

Hi Luoliyan.

When I try to open the "Options" menu, I get an error and nothing is displayed

I found the legacy version of the addon and tried it, but I still get an error:


Traceback (most recent call last):
File "C:\Users\Sebasti�n\AppData\Roaming\Anki2\addons\ir\settings.py", line 132, in showDialog
tabWidget.addTab(self.createHighlightingTab(), 'Highlighting')
File "C:\Users\Sebasti�n\AppData\Roaming\Anki2\addons\ir\settings.py", line 309, in createHighlightingTab
colorsGroupBox = self.createColorsGroupBox()
File "C:\Users\Sebasti�n\AppData\Roaming\Anki2\addons\ir\settings.py", line 357, in createColorsGroupBox
colors = self.getColorList()
File "C:\Users\Sebasti�n\AppData\Roaming\Anki2\addons\ir\settings.py", line 415, in getColorList
moduleDir = moduleDir.decode('utf-8')
File "encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe1 in position 16: invalid continuation byte


Thanks in advance.

IR 3.6.10 Erratic behaviour when zooming

Zooming doesn't work at first on the main screen or after opening a deck (I mean the screen where you see the deck's name, new/learning/review count and "Study now" button). Once I start actually doing reviews, though, zoom starts working not just on the reviewing screen, but also in both screens previously mentioned. It doesn't work on the stats screen, but I guess that could be how it's supposed to work?

I use IR 3.6.10 on Anki 2.0.47 on Windows 10.

Important suggestion: a different prioritization system

As Alexsejrs pointed out, the organizer is too manual and not convenient. If you manually put your top priority articles at the top of the list (which is already annoying if you've got a long list), then you cannot randomize anymore. But randomizing is important.

The priority of each article should be set by the user on a 1-10 scale. (or another 1-n scale)

  • the "soon" and "later" buttons would disappear, along with their associated values (10% and 50%)
  • the "show answer" button would be replaced by a "next" button, which would directly show the next article
  • randomizing the articles in the organizer would be consistent with priorities: articles with high priorities would remain highly ranked in the reading list.
  • the default priority of an extract would be the priority of the original article, but it could be changed by the user when extracting (or afterward) (by the way extracts should probably be scheduled with spaced repetition, but that's another issue)
  • defining the priority should be fast (using shortcuts)
  • changing the priority of an article would be possible at any time (in the course of reading, from the organizer, and from the deck browser)
  • when importing several articles at the same time (e.g. from Pocket), the user should be able to choose between:
    • defining the same priority for all imported articles
    • defining the priority of each article (in a series of dialog boxes)
    • defining no priority at all (to define them later)
  • so the priority "no priority" should be handled. Those articles would be randomized as all currently are, following a uniform distribution. And they would be emphasized in the organizer as priority-less.

Any thoughts?

Incremental Reading Add-On: Change of Highlight background color

Amazing add-on for the record. Still trying to figure out how to put it to optimal use.
To sum up beforehand, the issues are:

  1. What does this # icon do that "h" short-cutting highlight would not achieve?
  2. Could we set the background and text color respectively when highlighting?

The issue is about the highlight background color, it seems that the auto one is pitch black and I do not see any editing options. (I have looked, real closely).
FYI, when using the "h" to highlight the text, it's not permanent once you exit the current card. There is a small # icon and clicking it the text would be "double" highlighted with the black color. That seems to the issue.
Again, it's good add-on and thank you all for you work.
review

Cannot add Ctrl+B/Ctrl+F for PgUp/PgDown any more.

I've been adding Ctrl+B (PgUp), Ctrl+F (PgDn), Ctrl+D (half PgDn) and maybe Ctrl+U (half PgUp) Vim-like shortcuts, but recently that stopped working on IR v4 (Anki 2.1b20).

Doesn't work with 4.7.5 + 1 commit and newer:

                          ('Up', self.viewManager.lineUp),
                          ('Down', self.viewManager.lineDown),
                          ('Ctrl+B', self.viewManager.pageUp),
                          ('Ctrl+F', self.viewManager.pageDown),
                          ('PgUp', self.viewManager.pageUp),
                          ('PgDown', self.viewManager.pageDown)]

It still works on 3.8.2 (Anki 2.0.x)

    def addShortcuts(self):
        addShortcut(self.lineUp, 'Up')
        addShortcut(self.lineDown, 'Down')
        addShortcut(self.pageUp, 'PgUp')
        addShortcut(self.pageDown, 'PgDown')
        addShortcut(self.pageUp, 'Ctrl+B')
        addShortcut(self.pageDown, 'Ctrl+F')
        addShortcut(self.zoomIn, 'Ctrl+=')

IR card scheduling

Hello,
I am trying to figure out how to schedule my IR cards effectively. Basically, I want to be able to randomize the card order once and then maintain their position. Then I can see a card and choose to review it "soon", "later" or "much later" while still having the card order be initially randomized. If I could select all the cards in my reading organizer and hit "randomize" I think It would solve my problem. Also If i could somehow choose how to set scheduling for text that I extract from articles that would be amazing. Does that makes sense?

RSS and/or «Pocket» sync.

Please, could you implement a function to update reading list automatically? I've found this addon just right now and I was surprised that someone use this technique (it even has its own name). However, personally I really don't like to copypaste anything, wasting too much time. Is there a possibility to make it synchronize with RSS… For your reference:

https://github.com/luminousspice/anki-addons (see «FeedToAnki»)

…or «Pocket» service? If you're not familiar with it, it's pretty mainstream tool to save articles you like to read them later. It's built into firefox by default and has a chrome addon.

https://getpocket.com/

I hope it's possible. The pocket saves all the articles to its own domain, so all of them are unified to read/crawl by some beautifulSoup library or something like that.

When I setup the Quick Keys, press save and close the Preferences box, this message is displayed.

Traceback (most recent call last):
File "C:\Users\Mahesh\Documents\Anki\addons\ir\main.py", line 105, in showSettingsDialog mw.settingsManager.showSettingsDialog() File "C:\Users\Mahesh\Documents\Anki\addons\ir\settings.py", line 166, in showSettingsDialog mw.viewManager.resetZoom(mw.state) AttributeError: ViewManager instance has no attribute 'resetZoom'

I have also mentioned it here:

https://anki.tenderapp.com/discussions/add-ons/9028-incremental-reading-v360-error

Code to download AddOn is faulty in `README.md`

Downloading the add on using the code provided in the README.md file fails with Download failed: Error downloading: 404. However, the one provided here, 1081195335 works for installing conveniently.

Just out of curiosity, I cannot find the add ons folder from anki to save the ir package manually.
I installed anki in /usr/local/share/anki/.

Images lost in IR deck

Hello,
I am experiencing a problem where screen shots I have inserted into my IR cards are now appearing as small blue question marks. When I go to Tools>Check media, I have many files that are "in the media folder, but not used by cards". Also, I have many of the same files that are altered and appear in the "used on cards but missing from media folder". When I check my anki media collection on my computer, all my original screenshot files are there with no alterations.

The media files that are "used on cards but missing from media folder" are variations of the original files in my media folder.

Heres an example:
"in media folder, not used by cards" - Screen Shot 2017-09-09 at 9.32.01 PM.png
but I also have
"used on cards, missing from media file"- Screen%20Shot%202017-09-09%20at%202.43.19%20PM.png

I am not overly tech savy so Im not sure what to make of this. Given that I have had no issues using screen shots in my other cards/decks I have to assume its specific to IR?

I appreciate your time and effort on this app.

I am using V 3.6.10, on anki 2.0.47 for mac.

It shouldn't be possible to create already used shortcuts

(v4.7.14, Anki v2.1beta27, Linux)
For example, I can create a shortcut Alt + H. But when I then try to use this shortcut, the help menu opens.
Already used shortcuts seem to have precedence over newly created ones.

This is admittedly a minor issue, that only arises a few times when first discovering the add-on. But I think that to avoid losing new users, everything must work perfectly from the beginning.

Exception after updating to newest version of IR

Anki 2.1.0beta20 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True

Caught exception:
File "aqt\progress.py", line 65, in handler
File "aqt\clayout.py", line 303, in _renderPreview
File "anki\hooks.py", line 34, in runFilter
File "O:\OneDrive\AnkiData 2.1\addons21\1081195335\view.py", line 33, in prepareCard
self.setZoom()
File "O:\OneDrive\AnkiData 2.1\addons21\1081195335\view.py", line 57, in setZoom
self.settings['zoom'][str(mw.reviewer.card.id)])
<class 'AttributeError'>: 'NoneType' object has no attribute 'id'

I got this exception after adding additional fields to a empty and by the addon new generated IR3 model. The fields "Title", "Text" and "Source" have not been changed.
The error occurs, when I now try to preview a card or to edit the template
I added fields for images, overlays and image-caption as i have been used to it in former versions of IR3.

image

ViewManager instance has no attribute 'acsCount'

Installed incremental reading addon. After restart received error below:

anki

An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "aqt\webview.py", line 21, in link
File "aqt\overview.py", line 37, in _linkHandler
File "anki\hooks.py", line 59, in repl
File "aqt\main.py", line 388, in moveToState
File "anki\hooks.py", line 61, in repl
File "C:\Users\ljtys\OneDrive\Documents\Anki\addons\View_Size_Adjust.py", line 770, in vsa_reviewState
if(self.viewManager.acsCount - self.viewManager.rsCount == 1):
AttributeError: ViewManager instance has no attribute 'acsCount'

Exception caused by moving up the schedule in organizer.

Hey there,
when I started to try the extraction feature I found a new bug :)

For explanation I wrote a plugin for importing IR Cards directly from the website of my learning system. This allows me to split down the whole content of a chapter into more subchapters to anki. I reused the just the importer part of your plugin in a separate plugin, what works so far and seems not to collide with your plugin.

But to come to the point. For me it is important that the order of the cards in review mode stays the same, so i marked in "Options" - "Scheduling" to shedule by position and turned off "Randomize".

During review the card order stays, but when i did use the extraction function to reduce the learning card to a more smaller card. It put the new card to the end of the scheduler (and of course to the end of the cardbrowser because of generating a new card with a newer date)

To get the extract in the correct schedule order again I tried to move it in the schedule in the organizer widow.
Below in the screenshot you see the situation before I press the Up-Button:
image
Now I get the following exception:

Anki 2.1.0beta23 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True

Caught exception:
File "O:\OneDrive\AnkiData 2.1\addons21\1081195335\schedule.py", line 91, in _moveUp
self.cardListWidget.insertItem(newRow, row)
<class 'TypeError'>: arguments did not match any overloaded call:
insertItem(self, int, QListWidgetItem): argument 2 has unexpected type 'int'
insertItem(self, int, str): argument 2 has unexpected type 'int'
And as you see Position 7 in the order has vanished.
image
After clicking on "Save" and reopening the original position 7 has moved to the end of the schedule.
image
Moving down the schedule works!

Sorry that I wrote that much. Big thanks for your work! Your Plugin is really great!

Suggestion: marking the last reading point

The add-on already allows to maintain the scroll position for each article between two reading sessions.

I think it would be even better if another option was added: marking the last reading point.

  • text before the last reading point would be displayed in grey in future sessions
  • when the user hits the "show answer" button (or ideally the "next" button (see issue #48)) but hasn't specified or changed the last reading point, a message would warn the user of this fact while making clear that the user can decide not to specify a last reading point (e.g. if the article has only been superficially read to assess his priority). In this case, hitting the "next" button a second time would move the user to the next article.
  • when the last reading point and the last scroll position are conflicting, scroll to the last reading point.
  • when there is no last reading point, keep the last scroll position as before.
  • marking the last reading point should be fast. Double-clicking might work, or if it's easier to implement selecting the last read characters and using a shortcut (or a button, as always).

This procedure would be especially useful with large reading lists, when the intervals between successive reads of articles will be long enough to forget the last reading point and hesitate a few seconds before moving on.

Delete text in an article

Is it possible to delete text in an article?
It can be useful to delete garbage and/or uninteresting text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.