Skip to content

Language Archiving Technology

Sections
Personal tools
You are here: Home » Tools » Imdi » Imdi Browser » IMDI Browser manual » Chapter 4. Changing files

Chapter 4. Changing files

Document Actions

Chapter 4. Changing files

When you want to make changes to a large amount of IMDI files, editing one after the other might be a bit awkward. Therefore the IMDI tools provide a system that supports the automatic modification of groups of imdi files. This works as follows:

  • The user creates a so called update stylesheet, using the IMDI editor. This file contains a description of the desired changes. (See section 1.2.3.4 in the IMDI editor manual, Create Update StyleSheet)

  • With the IMDI browser you can apply the changes as described in the stylesheet to a set of files.

[Note]Note

If you want to change a large amount of files, be sure to test your stylesheet on a smaller set in advance. Otherwise a small mistake might corrupt many files.

A stylesheet made with the IMDI editor can be activated by following these steps:

  • Select the Options > Enable BatchModifier menu and make sure this option is enabled.

  • Make a selection:

    • Select a single IMDI file or a corpus node through File > Open file.

      [Note]Note

      If you select a corpus node, all child nodes will be affected!

      [Note]Note

      A corpus node can only be used if there exists an associated search database (i.e., the C icon should have a black background). To create a search database, see Section 3.1.2)

    • Or type in a directory path in the Root URL text field and press enter, e.g. d:\tmp. In this case the stylesheet will be applied to all imdi files found in this directory.

      Entering a root url

      Figure 4.1. Entering a root url

      1. Enter a directory name and press Enter.

      2. Now the contents of that directory will be displayed.

      3. Right click on the root node and select Sessions Modification


  • Right click on it and select Sessions Modification

  • Select the stylesheet you want to use and click on Apply

  • Now the desired changes will be made to the selected file(s).

    Select batch update stylesheet

    Figure 4.2. Select batch update stylesheet


Note that for all of the files to which the update stylesheet is applied a backup file (without the alterations) is created with the extension .old.1 (and .old.2 after another update, etc.).

Created by latadmin
Last modified 2011-05-11 00:15
 

Powered by Plone

This site conforms to the following standards: