Code Monkey home page Code Monkey logo

kanjiextract's Introduction

kanjiextract

The script was created to simplify the study of the Japanese language by breaking down texts.

As input, it receives the path to a text file, finds all the kanji in it, and prints the jisho.org links for all the kanji to the console. It also has an ignore list feature to skip already known kanji.

Screenshot

Installation

  1. Clone the repository
  2. Run pip install . in it

Usage

Command Description
kanjiextract extract <path> Find all kanji in the text file and print kanji and jisho.org links
kanjiextract ignore add <kanji> Add one or multiple kanji to the ignore list
kanjiextract ignore add --file <path> Find all kanji in file and add to the ignore list
kanjiextract ignore remove <kanji> Remove one or multiple kanji from the ignore list
kanjiextract ignore remove --file <path> Remove from the ignore list all kanji found in the file
kanjiextract ignore list [--no_spaces] Print the kanji contained in the ignore list
kanjiextract ignore set <kanji> Overwrite the ignore list with new contents
kanjiextract ignore set --file <path> Overwrite the ignore list with contents of the file
kanjiextract ignore file set <path> [--move] Set custom location for ignore list file (--move - move the contents of internal storage to new file). Empty path - use internal storage again.
kanjiextract ignore file path Print the path of the custom ignore list file (if used)

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.