Git Product home page Git Product logo

Comments (6)

ExtremeCoolDude avatar ExtremeCoolDude commented on July 26, 2024

Even better would be to allow usage of custom anki template which only contains fen and move list fields for eg.

from chessli.

pwenker avatar pwenker commented on July 26, 2024

Hey, can you provide an example of how your database of pgn files looks like? I guess in the current version it won't work, but maybe it can be extended with not much effort to make your use case working.

from chessli.

ExtremeCoolDude avatar ExtremeCoolDude commented on July 26, 2024

They would be like these :

https://github.com/xinyangz/chess-tactics-pgn

http://gorgonian.weebly.com/uploads/1/7/2/2/17221082/auerswald.pgn

from chessli.

pwenker avatar pwenker commented on July 26, 2024

Maybe these card templates are a better solution for you?
The second pgn database you mentioned (auerswald collection) is already available for the above card templates here.
Or are the two sets you mentioned above just examples of how yours looks like?
In any case, at the moment chessli is not able to ankify arbitrary pgn databases, but since the above shared decks exist and chessli makes available the > 1 million (and growing) lichess puzzle database, I would need to be convinced that this is a feature worthwhile to be implemented.

from chessli.

pwenker avatar pwenker commented on July 26, 2024

I close this here for now. @ExtremeCoolDude, just comment here if you have further questions.
The "ankification" of arbitrary pgn sources is not possible at the moment, but I will try to tackle it in the future, see #5.

from chessli.

ExtremeCoolDude avatar ExtremeCoolDude commented on July 26, 2024

I think I commented when I was logged in on another account xD, so I did try it but the chess py library doesn't spit out { comments } nicely for the excellent templates, particularly if there are linebreaks on pgn comments, the linebreaks is included in the string, which is very hard to import into anki since anki treats each line as a separate card, other than that simply iterating over games and spitting out fen and SAN separated by tab with game on each line is enough to import into anki as a txt file.

from chessli.

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.