Git Product home page Git Product logo

dmak's People

Contributors

akeru avatar mbilbille avatar waffle-iron 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

dmak's Issues

[REQUEST] Option to start kanji in completed state

๐Ÿ‘‹ Hey there! Great project.

I'd like to request a new feature where the kanji can start in an already-drawn, fully completed form.

Right now, the character/canvas starts empty and draws the kanji stroke by stroke. However, I would like to be able to show it in completed form, so I can use buttons/controls below the character to redraw and/or navigate through the stroke order.

For my use-case, the user would have to wait for the kanji to be fully drawn, which is slower and visually quite busy. Displaying it completed with the stroke order, but having the flexibility to re-draw and navigate through the strokes is what I'm after.

Thank you!

Can I use it in Anki?

I have read something in pull requests. I tried to use it in Anki, but I failed. I don't know why. Could you tell me If your script is working in Anki?

Process KanjiVG groups

(if you'd like ๐Ÿ˜„ )

The really interesting part of KanjiVG data is the grouping of strokes and the kvg:element attribute.

Kanjis are often built upon (parts) of others. ็ทš is composed of ็ณธ and ๆณ‰, which is composed of ๆฐด and ็™ฝ which is composed of ๆ—ฅ and a stroke. Using the information while learning kanjis can be a real time saver.

The old viewer of KanjiVG tries to show this information using the group coloring feature but is is not very user friendly and buggy : it shows 2 colors for ้›ป while there should be three (the lower curve is not part of anything) and clicking through the kanji components is cumbersome.

So, if you feel like it maybe you could come up with some nicer way to display this hierarchy.

click to redraw?

hi. pardon my lack of experience in javascript, how can i make it so that when a user clicks on the Dmak cell it redraws the kanji from 0?

Parse SVG files to include paths data into dmak repo

Suggested by @boberman here https://twitter.com/tangorin/status/474534212595245056 i order to minimize storage and maximize loading time.

Sample: convert 0672c.svg:

<path id="kvg:0672c-s1" kvg:type="ใ‡" d="M20.5,33.5c1.93,0.62,4.91,1.07,8.1,0.75C42.43,32.88,66,30.75,79.64,30c3.2-0.18,7.22,0.25,9.23,0.5"/>

into:

stroke = {
  groups: [ 'kvg:0672c-s1 ' ],
  path: "M20.5,33.5c1.93,0.62,4.91,1.07,8.1,0.75C42.43,32.88,66,30.75,79.64,30c3.2-0.18,7.22,0.25,9.23,0.5",
  text: {
    value: 1,
    x: 13.50,
    y: 34.50
  }
};

TO TRY: to put all of this data into one single unique file

404 when trying to load JS

Is it necessary to have Dmak.js on a live server? I am trying to run it on my dev box but I keep getting 404s. Can I optionally host all the kanji svg on my box and teach Dmak the directory? I think that would be faster that requesting the resources outside the home server.

Add support for animations under IE

I've created a branch with initial support for drawing animations under IE. I did not submit a PR because this is mostly a proof of concept. It works although it is lacking some feature (reverse drawing mainly). You might want to review Akeru@9b99e40
Note : jQuery is a had dependency for this to work.

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.