🧩 Text Field Transformer for Anki / Công cụ Chuyển đổi Text field cho Anki
English | Tiếng Việt
🇬🇧 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
- Open Anki Browser and select the notes you want to edit.
- Click Edit and go to Transform Field....
- Choose the target Field (e.g., "Front").
- Choose the Transformation Type (e.g.,
lower, replace, etc.).
- Click Apply Transformation.
🔢 How to use Sequential ID (New)
- Select multiple notes in the Browser. The order matters (IDs will be assigned top-to-bottom).
- Right-click -> Transform Field....
- Select Transformation Type:
add_id (Sequential ID).
- Enter a Prefix in the input box (e.g.,
JPVC_).
- 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.
🇻🇳 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
- Mở Trình duyệt (Browser) của Anki và quét chọn các thẻ cần sửa.
- Chọn Edit -> Chọn Transform Field....
- Chọn Field (Trường) muốn sửa (ví dụ: "Mặt trước").
- Chọn Transformation Type (Kiểu chuyển đổi).
- Nhấn Apply Transformation.
🔢 Cách đánh số ID tự động (Tính năng mới)
- Chọn các thẻ trong Browser (Thứ tự chọn/sắp xếp sẽ quyết định số thứ tự).
- Chuột phải -> Transform Field....
- Chọn kiểu:
add_id (Sequential ID).
- Nhập Prefix (Tiền tố) vào ô nhập liệu (ví dụ:
JPVC_).
- 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.