Giter Club home page Giter Club logo

Comments (9)

luoliyan avatar luoliyan commented on June 1, 2024

I'll try to work out a solution, if IR is causing it. The problem is probably related to the %20, which is how browsers encode spaces in URLs. I suspect it isn't being unescaped.

I'll see what I can come up with.

from incremental-reading.

pkbs121 avatar pkbs121 commented on June 1, 2024

Ok so I have tried a couple things. First, I am screen shotting out of PDFs (I have had no trouble with this in other addons like image occlusion)

So I noticed if I had the PDF open on my browser that the URL would have the file name with 20%s in there so I thought maybe If i opened the PDFs on my computer and screen shotted from there i wouldn't have the same problem. But, It seems that the images are still dropping from the cards. A weird thing is that if its the first time viewing the IR card, the images will be there, but when I reschedule them the next time I see them they will be gone frequently.

Also for example today. I was reading an IR card and the image was there. I extracted part of the text for a cloze deletion and when I came back to the IR card the image had been replaced by a small blue question mark.

from incremental-reading.

pkbs121 avatar pkbs121 commented on June 1, 2024

Yeah, the images are there and as soon as I take a close deletion from the source IR card then they disappear

from incremental-reading.

aleksejrs avatar aleksejrs commented on June 1, 2024

#17

from incremental-reading.

luoliyan avatar luoliyan commented on June 1, 2024

I don't think this is related to #17, but we will find out when I fix that one.

@pkbs121 Can you try the following:

  1. Open one of those problem cards for editing
  2. Click in the Text field
  3. Open the HTML editor (Ctrl+Shift+X)
  4. Replace each %20 with a space
  5. Close the editor

Does the image then display properly?

from incremental-reading.

pkbs121 avatar pkbs121 commented on June 1, 2024

Yes. If I go in and remove the %20 manually the images will come back. But theres a couple things. As seen below, its not always just %20 that is put in between the spaces (I dont know if this is relevant). Also, I went in manually and removed the %252520 listed below.. The images reappeared. Then I took a cloze deletion from the card and the images once again disappeared. Upon checking the HTML, the spaces had then been replaced by %20 as seen below in the second example.

Three patients were
not seen for follow-up 1 week later. Of&nbsp;</div><div><img src="Screen%252520Shot%2525202017-09-09%252520at%2525205.00.56%252520PM.png" /><img src="Screen%252520Shot%2525202017-09-09%252520at%2525205.01.04%252520PM.png" /></div><div>those 3 patients lost to follow-up, 2 of
them noted an immediate reduction in
pain greater than 2 points on the NPRS
postmanipulation.
Three patients were
not seen for follow-up 1 week later. Of&nbsp;</div><div><img src="Screen%20Shot%202017-09-09%20at%205.00.56%20PM.png" /><img src="Screen%20Shot%202017-09-09%20at%205.01.04%20PM.png" /></div><div>those 3 patients lost to follow-up, 2 of
them noted an immediate reduction in
pain greater than 2 points on the NPRS
postmanipulation.

from incremental-reading.

luoliyan avatar luoliyan commented on June 1, 2024

In the development code, I've made a change that should prevent this from happening. However, it won't affect existing cards - only new extracts.

Let me know if it solves the problem.

(If you aren't using Anki 2.1, I'll think about back-porting this change to the older version of the add-on.)

from incremental-reading.

pkbs121 avatar pkbs121 commented on June 1, 2024

Ok so the file names are no longer being altered but heres whats happening. The images will be there, I make a cloze deletion and they disappear. I open up the HTML and all the image file names are correct. If I do not change anything and simply close the HTML editor, the images will once again reappear.

Also, I updated to anki 2.1, but now there is no options button for IR and when I try to view the card organizer it is just blank.

from incremental-reading.

luoliyan avatar luoliyan commented on June 1, 2024

I'm really not sure if this is some weirdness with the toolkit or not. I'll keep working on it, but I'm a little stumped by it at the moment.

from incremental-reading.

Related Issues (20)

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.