German
<< previous  -   contents  -   next >>


SuperMemo Manual
Chapter 2.12


Using the SuperMemo Software:
Import and Backup




This chapter explains the cooperation of the SuperMemo software with your desktop computer. You will learn how SuperMemo backs up its databases on your desktop, and how to prepare new SuperMemo databases using your desktop computer.

You will find more information in the following sections:


back to top ^

*  Database backup

Your SuperMemo databases are backed up on your desktop computer automatically whenever you HotSync your device. You can find the backed up databases in your system Backup folder. Depending on your desktop installation, the folder is something like "C:\Palm\YourName\Backup\". In this folder you will find saved databases of many applications that you have installed on your handheld device.

SuperMemo databases saved on your desktop begin with three characters "sm_", followed by the name you gave it on your device, and terminated with a ".PDB" file extension. Any spaces in the name are replaced by underscore characters. For instance, a database called "World Geography" on your handheld will be saved as "sm_World_Geography.PDB" on your desktop computer.

In case you have some accident and lose all your data on the handheld, these databases will be reinstalled automatically. You can also install them manually by double clicking the appropriate file. This is useful when you have accidentally deleted the database on your handheld device or if you want to overwrite the database on the handheld because you did something wrong to it, and wish to revert to the state saved at the last HotSync. You can also share the databases you have created with your friends.

back to top ^


*  Importing a text file

You do not need to create your databases on your handheld only. You can use your desktop computer too. You can use almost any text editor, spreadsheet or database program to prepare the cards and then you can import them into SuperMemo using a free utility that will let you convert a text file into a PDB file that can be installed on your handheld device. This utility is a simple program named smconv.exe and runs on MS-DOS and Windows based systems. It recognizes two basic file formats: tab delimited and Q&A, explained in the next two sections.

When you have prepared your text file, all you have to do is to follow these three simple steps:

  1. Drag and drop your text file onto the smconv.exe utility.
  2. Double click the resulting PDB file to install it on your handheld.
  3. HotSync your handheld device.
When you launch SuperMemo on your device, you will see the new database there. You can start learning it, you can rename it, define your own templates, etc. You can also merge the database with another one by renaming it to the name of the destination database.

back to top ^


*  Q&A file format

The Q&A file format is a plain text file. Here is a simple example:


Q: serpent
A: snake

Q: réduction
A: discount

Q: pomme
A: apple

A single card is defined on two lines. The first line begins with Q: defines a question. The second line begins with A: and defines an answer.

This file can be created in almost any text editor. For instance, in Windows you can use the built-in Notepad (Start -> All Programs -> Accessories -> Notepad).

Note: If you use some more advanced text editor like MS Word, be sure to save your file as plain text (menu File -> Save As, box File Type). If you save it as MS Word file it will not be recognized by the convertor as the file is not a text file but a binary file with lots of data that define color, size, font, spacing, etc.

When you have written and saved your text file, drag it with your mouse, move it over the smconv.exe icon and release your mouse button. This will create a converted file in the same folder where your source text file was.

back to top ^


*  Q&A file format - advanced description

If you are familiar with the basic Q&A file format description, have tried it and it works for you, you can read more details here.

A single card is defined on several lines. Each line begins with a special tag and defines only one item field or category. This file can be created in almost any text editor - just make sure you save it as a plain text file, not a higher text file format such as RTF or DOC. Usually you will use the menu command File / Save as and select something like "text only" or "plain text" as File Type.

Here are the rules for creating Q&A text files that can be imported to SuperMemo:

Here is an example of such file. This is how it looks when created in a simple text editor:

  (1) C: Animals
  (2) Q: serpent
  (3) 
  (4) A: snake
  (5) 3: m
  (6) 4: un serpent venimeux
  (7) 1: réduction
  (8) /This is my comment
  (9) 2: discount
 (10) 4: j'ai une réduction
 (11) 4: acheter avec une réduction
 (12) Q: pomme
 (13) A: apple

Note that the line numbers  (1)  through  (13)  will not be present in the file. They are only shown here to explain what each line means:

  1. The first item (card) begins here. This item will belong to the Animals category.
  2. The field #1 of the first item is serpent.
  3. This line is empty and will be ignored. Normally you would not use it inside the item definition.
  4. The field #2 of the first item is snake.
  5. The field #3 of the first item is m.
  6. The field #4 of the first item is un serpent venimeux.
  7. Since the ascending tag sequence is broken here ("1: " comes after "4: "), a new item begins on this line. You might want to add an empty line here to visually separate the new item. Also, since there was no "C: " tag line with a category definition, the item will belong to the Unfiled category.
  8. As this line begins with a slash, it is a comment line and will be ignored.
  9. The field #2 of the second item is discount.
  10. The first line of the field #4 of the second item is j'ai une réduction. Note that the definition of the field #3 was skipped.
  11. The second line of the field #4 of the second item is acheter avec une réduction. You could also connect this line with the previous one and use the double slash " // " to define a line break within a field instead.
  12. Since the ascending tag sequence is broken here ("Q: " comes after "4: "), a new item begins on this line. You might want to add an empty line here to visually separate the new item. Also, since there was no "C: " tag line with a category definition, the item will belong to the Unfiled category.
  13. The field #2 of the third item is apple.

back to top ^


*  Tab delimited file format

This format uses two columns of data. The first column is a question, the second column is an answer.

Here is an example shown in a spreadsheet window:

Spreadsheet screenshot

You can create this file in almost any spreadsheet or database program. Just be sure that you save the file as plain tab-separated text - usually using the menu command File / Save as and selecting "tab delimited text" as File Type. If you use MS Excel for instance and save it as an Excel file, it will not be recognized by the convertor as it is not a plain text file but a binary file that contains lots of data about each cell - colors, size, font, formatting, etc.

When you have written and saved your text file, drag it with your mouse, move it over the smconv.exe icon and release your mouse button. This will create a converted file in the same folder where your source text file was.

back to top ^


*  Tab delimited file format - advanced description

If you are familiar with the basic tab delimited file format description, have tried it and it works for you, you can read more details here.

The tab delimited file format is a file with item fields separated by tab characters. It can be created in almost any text editor, spreadsheet or database program - usually using the menu command File / Save as and selecting "tab delimited text" as File Type.

Here are the rules for creating tab delimited files that can be imported to SuperMemo:

Here is an example of such file. This is how it looks when created in a spreadsheet program:

Spreadsheet screenshot

The columns A to F are the item fields and the G column is the item category. And this is how the same file looks when saved as a tab delimited text or when created by hand in a simple text editor:

  (1) serpent (tab) snake  (tab) m (tab) un serpent venimeux (tab)  (tab)  (tab) Animals
  (2) /This is my comment
  (3) réduction (tab) discount (tab)  (tab) j'ai une réduction//acheter avec une réduction
  (4) 
  (5) mémoire (tab) memory (tab) f (tab) une bonne, une mauvaise mémoire (tab)  (tab)  (tab) Unfiled  
  (6) chien (tab) dog (tab) m (tab)  (tab)  (tab)  (tab) Animals
  (7) pomme (tab) apple

Note that the  (tab)  characters are normally not visible when looking at the file in your text editor. Instead, they cause the text to be formatted in columns. Also, the line numbers  (1)  through  (7)  will not be present in the file. They are only shown here to explain what each line means:

  1. The item on the first line has fields #1 through #4 and belongs to the Animals category.
  2. As this line begins with a slash, it is a comment line and will be ignored.
  3. This item has fields #1, #2 and #4 and has no category defined, thus belongs to Unfiled. The field #4 will have two lines when displayed on the handheld.
  4. This line is empty and will be ignored.
  5. This item has fields #1 through #4 and belongs to the Unfiled category.
  6. This item has fields #1 through #3 and belongs to the Animals category.
  7. The last items has only fields #1 and #2 and belongs to the Unfiled category as it has no category defined.

back to top ^


*  Summary

back to top ^


© MapleTop Software
<< previous  -   contents  -   next >>
MapleTop Software home page