ZDT to Pleco (flashcards + categories) [iPhone]

First of all, the new Flashcards module is absolutely great. Programmers did a great job. Thank you very much !

Here is now a quick tip to convert in mass your flashcards from ZDT to Pleco format.

1) Make a backup of your ZDT data (File-> Backup Data)
Choose the categories you want to backup.

2) Find an editor supporting the Regex (regular expressions).
If you don't have one, just go here : http://myregexp.com/ (use multiline mode) ; open the ZDT Backup in any editor, copy the text, go to the website and paste it.

3) Make the following replacements :
3.1) Search :
Code:
^(\S*)\s*(\S*)\s*(.*)\s*/(.*)/(.*)
Replace :
Code:
$2[$1]	$3	$4
3.2) Search :
Code:
\[\[(.*)\]\]
Replace :
Code:
//$1
3.3) Check if everything seems to be ok

4)Copy the new text and paste it into any file.

5) Import with Pleco

Your ZDT categories are also working fine :)

3500 cards imported in a few minutes. Great.
 

vagnar

Member
Re: ZDT to Pleco (flashcards + categories)

Hi!

Thanks for your message. I think it's a great idea to transfer ZDT card to Pleco!

However, could you explain more into details the procedure?

for example, where to copy the text? into regular expression? where to search? how to proceed to replacement? etc...

sorry I'm totally computer unliterate.

THanks in advance
 
Re: ZDT to Pleco (flashcards + categories)

Once you're on the website, you delete the demonstration line, then you click on "Replace".
There are now three boxes to input data and one to get result :
1)Regular expression (delete also there the demonstration line) [SEARCH]
2)Replacement [REPLACE]
3)The left big box [ORIGINAL ZDT TEXT]
4)The right big box (the one inside which the result will be displayed, it's from this one you've to copy the final result) [TEXT FORMATTED TO USE WITH PLECO]
 
Top