Code Monkey home page Code Monkey logo

anki-chinese-grammar-practice's People

Contributors

krmanik avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

aeviou

anki-chinese-grammar-practice's Issues

Update notification feature

Hello.

I'd write you an e-mail instead, but you don't have it set as publically visible on your profile, so I'm writing here.

I've read your (now kinda old) issue on the AnkiDroid repo (ankidroid/Anki-Android#6669) and your comment (ankidroid/Anki-Android#8184 (comment)) and I see that you tried to implement an update check feature for this deck (or perhaps some others).

I coincidentally had the same idea, but took a slightly different approach. Instead of depending on JavaScript, fetching a version number from GitHub servers and then dynamically affecting the HTML of the description, I created a web application (in PHP), where deck creators can upload their decks, publish updates and update notifications to their users by including an <img> element in their deck description that requests an image from my webserver (using a link that contains the currently installed version of the Anki deck). In a nutshell, I'm building a better alternative to the "Shared decks" list on Anki web, that is in my opinion stupidly restricting and doesn't even allow permanent storage of the decks uploaded.

My webserver compares the number in the link and the version number for the deck in its database and either returns an image with text saying "You're Anki deck is up to date" or "An update is available for this Anki deck, click here to update". If the user clicks the image (which itself is envelopped in an <a> tag, they are redirected to the download page the user specified (currently, it's just one sub-page on my webserver) where they can download the new version.

I made the service as user-friendly as possible and anyone can publish Anki decks with the update-check feature and easily publish updates.

You can check the app here (the URL of the current live beta-version is on the right sidebar).

The problem is, my update system is struggeling with the same problem as yours – AnkiDroid will not display images in deck description (or, in your cae, load JavaScript). But while one of the AnkiDroid admins somewhere in the thread said, that JavaScript is planned to be disabled in the desktop version as well, he said that images (even remote ones) are likely to be allowed, when they implement a WebView for the deck description.

I write this issue with two goal:

  1. Ask you to help with pushing the development of AnkiDroid in the direction that allows our (or, sadly, likely just mine) update systems to work. Looking at your repo list, I suppose that you have much more knowledge of the Anki ecosystem than me, so perhaps you could tell me about what's the holdup with the issue.
  2. Offer you to use my service to share and update this deck, if you still plan to maintain it and perhaps even give me feedback or spread the word of it.

If you'd like to discuss this privatelly, my semi-public e-mail address is [email protected].

Looking forward to hearing from you.

Context Version Feature Request

I was curious if it may be possible to create a version of this note type that optionally supports context before and after the construction portion? The card would look something like this:

Text Context [ Construction Portion ] Text Context
_________
Options
[Check] [Reset] [Hint]

Clicking the options would have the same functionality as the current note type, but it would place the buttons in the construction portion aligned with the text on the left and right hand side. It would be great if it would be possible to have the construction portion appear anywhere as well (optional context before, after, or both before and after the construction portion).

         Text Context [ Construction Portion ]
                              _________
                                Options
                     [Check] [Reset] [Hint]

         [ Construction Portion ] Text Context
                              _________
                                Options
                     [Check] [Reset] [Hint]

I think the current implementation of the note type is great, but I feel having the ability to optionally place context anywhere around the construction will add a significant amount of utility to this note type. I noticed that some questions in the Chinese grammar deck are not intuitive to assemble without the context available (questions with dates in the sentence for example can be ambiguous).

I think this addition would manifest itself in 2 additional fields on the note type that would cover context before, after, and both when both fields are filled in. I tried coding it up a little bit myself, but I was having issues getting the alignment correct between the outside text and the construction area where the buttons are placed. Ideally the location of the buttons should align exactly with the outside text vertically to look like you filled in a complete sentence. Any help with implementing this would be very much appreciated. Thanks for making this great note type!

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.