Skip to content
/ clac Public

Anki RPA: Cards Language with Audio/examples from Collins dictionary

License

Notifications You must be signed in to change notification settings

tapyu/clac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLAC

CLAC (Cards Language with Audio/examples from Collins dictionary) is a RPA written in Python to automatically create language cards on Anki with audio/examples from Collins.

CLAC works on the following way:

  1. Gather all text/audio information on Collins about the word that you are looking up. The information are:
    1. Meaning (Just the text).
    2. Different conjugations.
    3. Examples.
    4. Tag (verb, noun, phrasal verb, etc...) (Just text)
  2. Create a new card on Anki in with the following structure:
    1. Front:
      1. Audio and text of the word for different conjugations.
      2. Audio and text of an examples
    2. back
      1. Text of the meaning

To do so, CLAC takes over your computer peripherals (mouse and keyboard) and start making the card.


Installing

  • git clone https://github.com/tapyu/clac

In the clac/ folder, run

  • py -m pip install .

To install the required packages.

Alternatively, you can create a virtual environment to separate the CLAC's package requirements from the rest of your system site packages. In this case, you should install the packages from the pyproject.toml file. It is recommended to use Poetry to make the package dependency management.


Usage

The following sintax follows Git's Coding Guidelines

clac <word-or-list> [--yes-rpa|-y]

clac [--help|-h]

  • <word-or-list>: A single word or a path to a line-separated .txt file in which each line is a single word. CLAC will first assume that the argument is a path. If it fails, the argument will be treated as a single word.
  • --yes-rpa|-y: Optional argument to run the RPA as soon as it saves the word.
  • --help|-h: Show a help message.

If you have any question, check this video tutorial.


Contributing

CLAC is a relatively easy project, where any programmer with a basic level in Python and a high level of interest will be welcome! To contribute to this project, take a look at the project or the open issues.


FAQ

  1. Why CLAC isn't a Anki addon? Because I do not have enough knowledge with QT for py to turn CLAC an addons. The current approach to learn about Anki addon is some poor references or learning with the source code from other addons 😑. I do not have time to do it.

  2. How can I turn CLAC an addons? If you are familiar with Anki addon development, you could exploit the web scraping performed on CLAC to collect the necessary information and create an Anki card using the Anki GUI itself. Just let me know making a pull request and let's work together 😄.

About

Anki RPA: Cards Language with Audio/examples from Collins dictionary

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages