krmanik / anki-chinese-grammar-practice Goto Github PK
View Code? Open in Web Editor NEWPractice Chinese language grammar
Practice Chinese language grammar
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:
If you'd like to discuss this privatelly, my semi-public e-mail address is [email protected].
Looking forward to hearing from you.
The Pinyin says "déyǔ hé fǎyǔ dū hěn nán ma?" instead of "déyǔ hé fǎyǔ dōu hěn nán ma?"
Vertical writing doesn't work on mobile
used:
.card {
font-family: arial;
font-size: 30px;
writing-mode:vertical-rl;
color: black;
background-color: white;
}
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.