User Dictionary Duplicates

Shun

状元
Hi, is there a way to remove all duplicate (or triple, or more) identical User Dictionary entries, so that all flashcards referencing them will point to a single entry? I got into this by doing multiple flashcard imports over time. Thanks!
 

HW60

状元
Export all flashcards into a txt file, import the txt file into a new user dictionary. If that was successful, delete the old user dictionary.
 

Shun

状元
Thanks for the suggestion, I can actually export only User Dictionary-based flashcards using Find and Select All. But if I export them using Batch, their categories will be removed in the text file, unfortunately. So re-importing would result in one category with all cards, without their original category structure.
 
Last edited:

HW60

状元
When you export all your flashcards with Edit/Batch/Export Cards, you should get all cards if you mark export "Card definitions" and "Dictionary definitions" and "Remap if forbidden".

When you import the txt file into a user dictionary, you do not need categories.
 

Shun

状元
Ah great, so they will automatically be found again by the flashcards! Thank you very much.

But before I do this, how do I make sure the newly made user dictionary will be seen by Pleco like the old one? Does the user dictionary's abbreviation have to be the same? Otherwise, I would get the duplicate-free user dictionary, but the flashcards will all say, the dictionary they linked to is not available.
 

HW60

状元
After you tap "Add User" (-Dictionary) for your new user dictionary, you select a name and then change the Icon Abbreviation to whatever 3 characters you like.
 

Shun

状元
Thanks, I've also just found this older post in the forum, which solves the problem, in case it arises.

"To fix your broken cards, "Search Cards" for "incomplete" cards, then tap "Edit," "Batch," choose a new dictionary under Dictionary / Remap to Dictionary, and tap "Remap now." That will switch those cards over to the new dictionary (assuming Pleco can find entries in it for them)."

Best, Shun
 

Shun

状元
Hi HW60,

I'm sorry to report that after exporting the user dictionary and re-importing into a new, empty user dictionary, the duplicates weren't eliminated. I attach a screenshot:

image.png

Edit: I will try removing identical lines using Excel.
 
Last edited:

HW60

状元
Yes, Excel should be the easiest solution.

I have only custom cards. Therefore I can delete the user dictionary as soon as I entered some new flashcards, and then create a new user dictionary made of my exported flascards. With other words I add new words only to flashcards, not to a user dictionary. In flashcards you can use to some extent the Search for duplicates to eliminate duplicates.

In the long awaited big update I think and hope that Mike will combine user dictionary and flashcards in some way.
 
Top