Text Field Transformer

AnkiWeb addon 1314064850

Transform selected or all Anki note fields using lowercase, uppercase, replace, sequential IDs, or custom Python lambdas via Browser context menu.
AI-generated summary; may contain mistakes.

note-management

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
1 (👍 1 · 👎 0)
Updated
2025-12-13
Anki versions
25.09.2~
Description language
vi

Maintenance

stale

  • Last update or commit was 292 days before the snapshot (2025-12-13).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.01.125.09.2+2025-12-13
History across monthly snapshots

Loading…

Similar addons

Text Lowercase/Uppercase Converter

Adds Uppercase and Lowercase buttons to the card editor to convert selected text, doing nothing if no safe selection exists.

formatting

Rating 2 👍 2 · 👎 0 ⭐ 0 Anki 2.1.1~ Updated 2026-07-21
field_injection_extraction

Bulk exports and imports selected Anki note fields via TSV, supporting HTML or plain text, replace/prepend/append modes, exact NID matching, tags, review, and undo.

importexportnote-management

Rating 0 👍 0 · 👎 0 ⭐ 0 Anki 2.1.1~ Updated 2026-08-30
anki-automatic-case

Capitalizes the first letter and lowercases the rest of type notes while uppercasing "i", reducing case-based highlights, with configurable deck selection via config files.

formattingquiz

Rating 3 👍 3 · 👎 0 Anki 2.1.16~ Updated 2021-10-25

README

🧩 Text Field Transformer for Anki / Công cụ Chuyển đổi Văn bản cho Anki

English | Tiếng Việt


<a name="english"></a>

🇬🇧 English Description

Transform your Anki note fields easily — lowercase, uppercase, title case, trim, sequential IDs, or even custom Python lambdas.

🚀 Features

  • Apply transformations to selected notes or all notes.
  • Built-in types: lower, upper, capitalize, title, strip, replace, remove, prepend, append.
  • Sequential IDs NEW!: Automatically assign valid sequential IDs (e.g., JPVC_001, JPVC_002) to selected cards.
  • Custom Python lambda: Advanced users can write their own transformation logic (e.g., lambda x: x[::-1]).
  • Integrations:
    • Browser Context Menu: Select notes -> Right-click -> Transform Field...

🧠 Usage

General Transformations

  1. Open Anki Browser and select the notes you want to edit.
  2. Right-click and go to Transform Field....
  3. Choose the target Field (e.g., "Front").
  4. Choose the Transformation Type (e.g., lower, replace, etc.).
  5. Click Apply Transformation.

🔢 How to use Sequential ID (New)

  1. Select multiple notes in the Browser. The order matters (IDs will be assigned top-to-bottom).
  2. Right-click -> Transform Field....
  3. Select Transformation Type: add_id (Sequential ID).
  4. Enter a Prefix in the input box (e.g., JPVC_).
  5. Click Apply Transformation.
    • Result: JPVC_001, JPVC_002, JPVC_003...
    • Note: If you select >1000 cards, it automatically adjusts padding (e.g., JPVC_0001).

⚠️ Notes

  • Backup: Always back up your collection before performing bulk operations.
  • Undo: You can use Anki's Undo feature (Ctrl+Z) if you make a mistake immediately after applying.

<a name="tiếng-việt"></a>

🇻🇳 Hướng dẫn Tiếng Việt

Công cụ giúp bạn thay đổi hàng loạt nội dung trong các trường (field) của thẻ Anki một cách dễ dàng — đổi chữ hoa/thường, tìm kiếm & thay thế, thêm ID tự động, hoặc dùng code Python tùy chỉnh.

🚀 Tính năng nổi bật

  • Chuyển đổi hàng loạt: Áp dụng cho các thẻ đang chọn hoặc toàn bộ thẻ.
  • Các kiểu chuyển đổi:
    • lower (chữ thường), upper (IN HOA), capitalize (Viết hoa chữ đầu).
    • replace (Tìm & Thay thế), remove (Xóa văn bản), prepend/append (Thêm đầu/cuối).
  • Sequential IDs (Mới): Tự động đánh số thứ tự ID cho thẻ (ví dụ JPVC_001, JPVC_002).
  • Tùy chỉnh cao: Hỗ trợ viết hàm Python lambda (ví dụ lambda x: x.replace('a', 'b')).

🧠 Cách sử dụng

Chức năng cơ bản

  1. Mở Trình duyệt (Browser) của Anki và quét chọn các thẻ cần sửa.
  2. Chuột phải -> Chọn Transform Field....
  3. Chọn Field (Trường) muốn sửa (ví dụ: "Mặt trước").
  4. Chọn Transformation Type (Kiểu chuyển đổi).
  5. Nhấn Apply Transformation.

🔢 Cách đánh số ID tự động (Tính năng mới)

  1. Chọn các thẻ trong Browser (Thứ tự chọn/sắp xếp sẽ quyết định số thứ tự).
  2. Chuột phải -> Transform Field....
  3. Chọn kiểu: add_id (Sequential ID).
  4. Nhập Prefix (Tiền tố) vào ô nhập liệu (ví dụ: JPVC_).
  5. Nhấn Apply Transformation.
    • Kết quả: Các thẻ sẽ được đánh số JPVC_001, JPVC_002, JPVC_003...
    • Lưu ý: Code tự động tính toán số lượng số 0 dựa trên tổng số thẻ bạn chọn (ví dụ chọn 1500 thẻ sẽ thành JPVC_0001).

⚠️ Lưu ý quan trọng

  • Sao lưu: Luôn backup dữ liệu trước khi chỉnh sửa hàng loạt để tránh rủi ro.
  • Hoàn tác: Nếu lỡ tay làm sai, bạn có thể nhấn Ctrl+Z (Undo) trong Anki để quay lại trạng thái cũ ngay lập tức.