Coder Social home page Coder Social logo

ja-srs-utils's People

Contributors

sbseltzer avatar

Watchers

 avatar  avatar

ja-srs-utils's Issues

Furigana for non-kanji

Furigana may also be useful for not non-kanji characters, such as katakana (and perhaps other things?) as well. Much like Japanese toddlers, I learned hiragana before katakana, so it's a legit use-case in my eyes.

In any case, a quick solution would be "if furigana braces are encountered and the character before is a non-kanji, seek backwards to the next space" or something. It may be worth considering the merits of making this the general case, since it's a necessary workaround when you only want to specify furigana for a few particular kanji. The spaces could be trimmed after the fact.

Figure out a way to mitigate the JS Booster issue

JS Booster breaks when your Anki User directory path contains non-ASCII characters. For AJATTers who have switched their OS to Japanese, such as I have, this leads to breakage when their Documents folder (which is where Anki stores its media) has been renamed to a Japanese counterpart. Such is the case on my Ubuntu partition.

I see three potential solutions:

  1. Make step-by-step instructions on how to modify your Anki path and username.
  2. Fix JS Booster and resubmit it to AnkiWeb.
  3. Make some kind of conversion script to reconfigure Anki in such a way that it won't break.

Number 2 is attractive since it's the most hands-off approach, but the others still deserve attention.

Consider activator attribute

Some users may prefer hovering over clicking to activate things. Some may want to make a button separate than target content to activate stuff.

Example: font cycling could happen on click of its element, hovering over the element, or clicking some other element. Doing the same for showing/hiding furigana would also be useful.

Consider compressing JS/CSS

Combining/compressing the JS and CSS will be more important as this project grows. See if there's a nice way to do that locally.

Javascript appears to crash in review mode

While reviewing cards, the javascript appears to stop functioning after the first view, that is:

  1. View front face (working)
  2. View back face (not working)
  3. View front of next card (still not working)

And so on...

This does not seem to occur when in edit or preview mode.

Re-instate the non-<ruby> solution for furigana

There is code laying around the stylesheet that was ripped from jisho.org to support furigana displaying similarly to <ruby> tags, which are not supported on all HTML browers. They appear to be available in Linux and Windows versions of Anki, but it may be a good idea to support the CSS replacement in card.js.

Furigana is buggy on Cloze cards

Cloze cards surround your cloze deletion with <span class="cloze"></span> which interferes with furigana parsing.

When furigana braces are set to "()"

Doing text{{c1::kanji(furi)}}text works.

Doing text{{c1::kanji(furi)::placeholder}}text works.

Doing text{{c1::kanji(furi)::placeholder(furi)}}text does NOT work.

Doing text{{c1::kanji::placeholder}}(furi)text does NOT work.

Doing text{{c1::kanji}}(furi)text does NOT work.

Add initial Mnemosyne support

After some initial testing, it looks like Mnemosyne is a definite go.

Media directory on Windows: %APPDATA%/Mnemosyne/default.db_media

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.