Git Product home page Git Product logo

anki-to-json's Introduction

Sic Parvis Magna


Hello, I am Craig O'Connor 🤙

/kreɪɡ oʊˈkɒnər/



I have a mission to help push GIS into the next Era.

I'm actively working on Open S2 - Modern tools built using the latest technology available. Create your next geo service using the most advanced digital software in the world. If this project interests you, or you want to connect with me about GIS, feel free to join my Discord.


💠 My Dots


Projects I Work On:

Project Role Languages Description
s2maps-gpu author Typescript & Rust High-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.
open-vector-tile author Typescript & Rust A new Vector Tile Spec that is backwards compatible with mapbox-vector-tile.
earclip author Typescript & Rust Fast and small polygon triangulation library with builtin tesselation.
glyph-gen author Typescript & C++ Build MSDF glyphs from fonts and icons sets to be rendered by a GPU.
pbf-rs author Rust Zero dependency, no_std, lightweight and fast library for protobuffers.
unicode-shaper-rs author Rust Zero dep, no_std, light & fast library to prepare complex unicode patters for rendering.
s2-pmtiles author Typescript & Rust This library reads/writes PMTiles V3.0 as well as S2PMTiles V1.0
s2json author Typescript & Rust S2JSON is a new standard build ontop of GeoJSON including 3D and S2 Geometry.


Projects I Love:

Project Languages Description
helix Rust Vim like editor in the terminal. Fast and powerful.
monkeytype Typescript Lightweight and minimal design typing speed test tool.
Herbie Python Herbie helps you discover, download, and read data from many GIS live services.
Spyglass Rust A personal search engine that indexes your data locally.
hyperfine Rust A command-line benchmarking tool.


Longing seizes people more powerfully than poison and more deeply than illness.
Once it catches hold of you, there is absolutely no escape. This is quite a 'curse',
and yet the adventurers all willingly devote themselves to its pursuit.
For them, a life without longing is more terrifying than death itself.

anki-to-json's People

Contributors

craiggleso avatar seankemp 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

Watchers

 avatar  avatar  avatar

anki-to-json's Issues

Missing character

The tool is so perfect <3.
Btw the media URL exported doesn't have the first character of each image.

Media skipping a sound file when there is more than one

When there are multiple sound files (e.g. ...[sound:jp_aru_word.mp3]\n[sound:jp_aru_sentence.mp3]) the note.media does not pick up the second one.
This is most likely due to the slicing of the note.back, and not updating the new open and closed bracket indexes to match this slicing. I have a fix for it I will just send in.

TypeError: note.sfld.replace is not a function

When I execute the script, I get the following error:

TypeError: note.sfld.replace is not a function

This is related to the following line:

note.front = note.sfld.replace(/\u001f/g, '\n').replace('<div>', '\n').replace('<br>', '\n').replace(/<(?:.|\n)*?>/gm, '')
By looking at the logs, I see that the property in my apkg file is named flds and not sfld. If I replace the line above and replace the property name, everything works fine:

note.front = note.flds.replace(/\u001f/g, '\n').replace('<div>', '\n').replace('<br>', '\n').replace(/<(?:.|\n)*?>/gm, '')

installation problem

Hi, sir! I'm trying to download npm install anki-to-json , but I'm facing some errors and not installing the library. please help me out.

Running command from shell throws new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);

Running
ankiToJson N2_Grammar.apkg

I get the following error:
node:internal/fs/utils:693
throw new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance
of Buffer or URL. Received null
at Object.mkdirSync (node:fs:1389:10)
at ankiToJson (C:\Users...\AppData\Roaming\npm\node_modules\anki-to-json\lib\index.js:1:1668)
at Object. (C:\Users...\AppData\Roaming\npm\node_modules\anki-to-json\bin\index.js:14:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'ERR_INVALID_ARG_TYPE'
}

using Node.js v18.15.0 on Win 10 vs code shell

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.