Coder Social home page Coder Social logo

rhetttien / batch-editor-tools Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 671 KB

Batch add tags according to the specified vocabulary list, batch changes the content of the field.

Home Page: https://ankiweb.net/shared/info/1609139780

License: GNU General Public License v3.0

Python 100.00%
anki-addon anki python3 pyqt

batch-editor-tools's Introduction

Batch Edit Tools

简体中文 | English

If you have a need to batch edit card tag or field or audio, you should try this plugin.

NOTE: The plug-in only in the windows operating system has been tested, the test text for the English language, if you edit the text of other languages, please make a backup first!

Tested version:

Win 11 23H2(10-10.0.22621), Anki 23.10.1 (Pyqt6), Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
Win 10 22H2(10-10.0.19045), Anki 2.1.61 (Pyqt5), Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
Win 10 21H2(10-10.0.22621), Anki 23.10.1 (Pyqt6), Python 3.9.15 Qt 5.15.2 PyQt 5.15.5

white

black


Plugin Launch Portal:

black


Batch add tags according to the specified vocabulary list.

black

Filter the cards according to the specified tags, then look up the contents of the card field, compare it with the word list, and add the specified tags to this card after a successful match.

The tag item is optional, it can make the search to the scope of more accurate, if you want to find the card does not contain the tag can be unselected.

As you can see, the word list file only supports the .txt .xls .xlsx file format.

For .xls .xlsx files, the plug-in reads only the first column of the first sheet.

Please check your list of words carefully to make sure each is a complete word!

You need to reopen the browser window to see the new add tags.


Batch Replaces(or Empty ) the contents of the specified fields.

black

NOTE: If the field contains hypertext elements such as HTML, you need to be aware that incorrect text substitution can cause display problems for your card!

Filter the cards according to the specified tags, find the text of the specified fields in the card, and match the part of the text to be replaced.

Batch Empty Field Content: Clicking the All button will populate the totally-all-content character, the plugin will select the content of the specified field of the card, and if the Input New Some Content text box is left empty, it will perform a field clearing operation.


Batch add word pronunciations based on API.

black

Get the pronunciation of the word through the API, then save the media file locally and add the media file to the specified field of the card.

The plugin uses Youdao API by default, you can also use other APIs, but be careful to make sure the format matches. The plugin gets the address of the audio file in the format api_link + word + sound_type, which will eventually be combined into a link that can be accessed in the browser, all the plugin does is to simulate accessing and saving the file in the browser.


If you trigger this error message, don't worry, the plugin will still work fine, I haven't figured out what's going on yet.

Caught exception:
Traceback (most recent call last):
  File "aqt.main", line 275, in on_focus_changed
  File "_aqt.hooks", line 3460, in __call__
  File "aqt.main", line 822, in on_focus_did_change
AttributeError: 'QObject' object has no attribute 'window'

If you trigger another bug, please copy the detailed error message and submit an issue, and I'll fix it as soon as possible.


Gets the plug-in installation number: AnkiWeb

batch-editor-tools's People

Contributors

rhetttien avatar

Stargazers

 avatar

batch-editor-tools's Issues

Please update the add-on

Please update the add-on so that it can work in new versions of Anki. Your idea is excellent.

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.