Make Eudict for reviewing example sentences

Recently, I've started copying typical and nice example English sentences from the dictionary to personal Markdown document, which is quite helpful for remembering newly studied glossaries via providing a context and hints. Meanwhile, borrowing the concepts of creating memory chunks and recalling them with irregular repetitions from the book “A Mind for Numbers” being read, I feel it will be valuable if these sentences can be typeset onto flashcards to implement the said learning methods. Luckily, Eudict, which I'm now using everyday for reciting English words, has already provided such mechanism. The only thing left for me is to transform those Markdown texts to CSV file and uploaded to Eudict user books. In this post, I'll introduce the procedures.

  1. When copying the example sentences from the dictionary into Markdown document, insert double vertical bars “||” between the original English text and the interpretation, or you can use any separator as you want.

  2. Export the Markdown document into HTML file.

  3. Paste the contents in the HTML file into LibreOffice Calc as “Unformatted text”.

  4. In the “Text import” dialogue, enable “Merge delimiters” option, select “Separated by” “Other” and input the vertical bar “|” as the separator, and ensure the “Text delimiter” field is empty.

  5. After pasting the sentences, replace the leading white spaces with null, which may exist at the front of each interpretation. The white spaces can be matched by using the regular expression ^\s*.

  6. Select and copy all the processed contents into a simple text file. On my Linux system, I prefer Kate editor.

  7. In the text file, first replace all the English commas with Chinese commas, which is suggested by Eudict, because the English comma will be used as field delimiter. Then replace all TAB characters with English commas.

  8. Save the text file using GBK encoding.

  9. Upload the text file to Eudict user books and you can see your imported sentences.

  10. Click “下载”link on your defined dictionary book and scan the 2D barcode in Eudict APP to download.

Now, you can enjoy your repetitive study using Eudict flashcards according to the forgetting curve.

猜你喜欢

转载自www.cnblogs.com/quantumman/p/9426303.html