2003 TextMaestro Technologies



  Example 1

  Example 2

  Example 3

  Example 4

  Example 5

  Example 6

  Example 7

  Example 8

  Example 9

  Example 10

  Example 11

  Example 12

  Example 13

  Example 14

  Example 15

  Example 16

  Example 17

  Example 18

  Example 19

  Example 20

  Example 21



Example 21: Import/Export libraries

This feature allows you to import and export libraries from or to a file. You can also auto-generate library using text from Output Window.


These are the topics we will discuss here:


(a) Auto-import libraries from file

(b) Import libraries from file

(c) Auto generate library from Output window

(d) Import macros from other libraries



(a) Auto-import libraries from file:         Top

Suppose you got a file which contains some libraries. Such a file is often referred to as library-file and created by using Export selected library to a file button. See Tip below.

If you have a library-file, follow these steps:

Step 1: Shut down TextMaestro.

Step 2: Place your library-file at:


Step 3: Launch TextMaestro and it will detect library-file in above locale. It will load all libraries from the file and append them to its existing library list. At the end of the process, your library-file will be placed at:


That's it!



(b) Import libraries from file:         Top

Recall, all conversion libraries are saved in:


Therefore, _tmt_library.txt from one user can be handed over to a different user who can import information from it. Furthermore, you can dump a library to a file (see Tip below) and pass around that file for others to import.

Here are the steps to import libraries from a file:

Launch TextMaestro. Click on Conversion button as shown below:

This will appear:

Click on Library button. This dialog will appear:

Click on Import libraries from file button. The following dialog will appear, where you enter the full name of the file which contains libraries. Hit OK.


All the libraries retrieved from the above data file will be listed in a dialog as shown here.


Select all, or items that to be imported.


Hit OK.


At this stage all the imported libraries will be listed on the left hand side.


See below.


Libraries imported from user specified your_tmt_library.txt file to current archive:

Recall, we used Import libraries from file button for this import. Conversely, you can use Export selected library to a file button, to dump the selected libraries to a file, which can be passed around for future import.



(c) Auto generate library from Output window:         Top

Recall, a library contains multiple macros. Typically you add a new library and then add macros one after another to the library.

For example, you use left Add button to add a library. Similarly, you use right Add button to add a macro to it.

However, you can auto-generate a library using the text from Output window, in which case the text in the Output window needs to be in a certain format.

Recall, each macro consists of two major parts - Find and Replace. The format required to auto-generate library is that each odd line represent Find and the even line, Replace. For example, consider this in Output window:

Text in Output Window












Open library as shown below:

Click on Auto-generate library from Output text button. The following dialog will appear:

Enter the name of new library here, for example, Auto-gen Library.

Hit OK.

A new library will be created, of which the macros will consist of the Output text. Thus you will see this:


Note that only Find and Replace columns are filled with information from the output text. The rest of the columns are filled with default information. To make global changes to these macros (right side list), use Modify attributes for multiple items button.





(d) Import macros from other libraries:         Top

You can import macros from other libraries to the currently selected library.

Open library as shown below:

Now we will import macros from other libraries to Lib-3 library.

Click on Import macros from other libraries button.


A dialog box will appear with the names of the libraries, as shown here. Select libraries, macros of which are to be imported to Lib-3 library.


Note that, importing macros of Lib-3 to itself is deemed irrational, and thus ignored, if you were to select Lib-3 in this dialog.


Suppose we selected Lib-1 and Lib-2 libraries.


Then we obtain the following.


Note how the number of macros in Lib-3 have increased.