Home
Description
Publications

Available Resources
Text Acknowledgements
Related links


Events


CLaRK System

CLaRK System Online Manual


Bulgarian dialects'
electronic archive




 

 

 

 

 

 

 

title.gif (18679 bytes)

CLaRK System Online User Manual


Document Tree Popup Menu

Back to Contents

The popup menu is shown when the user performs a right-click on a selected node or a set of selected nodes in the tree panel on the left side of the screen, or on an opening or closing tag in the text area. The menu commands allow the user to change the structure of the document, to apply grammars and constraints and other.

Menu commands

  1. Delete Subtree
  2. Allows the user to delete the selected node(s) in the tree with the entire subtree(s) below it (them). The system will warn the user if, after the deletion, the structure of the document is non-valid.

  3. Delete Node
  4. Allows the user to delete only the selected nodes. The children of the selected nodes will be inserted as children of the parent of the corresponding selected node. The system will warn the user if, after the deletion, the structure of the document is non-valid.

  5. Insert Sibling
  6. Allows the user to insert a following sibling to the selected nodes. The system will give the user a choice between valid tags (tags which can be inserted at the specified position according to the DTD) and all tags (all tags defined in the DTD).

  7. Insert Child
  8. Allows the user to insert a first child to the selected nodes. The system will give the user a choice between valid tags (tags which can be inserted at the specified position according to the DTD) and all tags (all tags defined in the DTD).

  9. Change Parent
  10. Allows the user to insert a parent of the selected node(s). When there is a multiple selection of nodes and the user chooses this item,  the selection is changed so that only the ancestors of the selected nodes (or the nodes themselves) that have a common parent are selected.

    After correcting the selection (if needed), a Change Parent dialog appears. This dialog allows the user to choose a tag, which will be the new parent of the (newly) selected nodes. The selected nodes are then replaced with the chosen tag that has as children the selected nodes (and their subtrees). The system allows the user to constrain the possible parents in 3 ways.

    1. To choose from tags, such that the parent node of the selected nodes will be valid after the operation is complete.
    2. To choose from tags that can have the selected nodes for children.
    3. To choose from tags that are produced from PARENT value constraints of the selected nodes.

    Any combination of the above constraints is possible.

  11. Use Grammar
  12. This item allows the user to apply a grammar over the content of the selected node(s). More details about grammar usage can be found in the description of the main menu items of CLaRK System (Tools/Grammars).

  13. Sort
  14. This item sorts the nodes in the document starting from the selected node (using the selected node as a starting node). If the selection contains more than one node, the selected nodes themselves are sorted. The sorting is performed in groups, that is the selected nodes are grouped depending on a mutual parent and then the nodes are sorted within each group.  More information about sorting nodes can be found in the description of the main menu items of CLaRK System (Tools/Sort Tools).

  15. RegExpr. Constraints
  16. Allows the user to apply regular expression constraints over the content of the selected node(s) (or the node itself, if it is a text node). When the user selects this item, he/she is given a list of all regular expression constraints defined in the system. The manager, responsible for creating and modifying such constraints can be started from menu: Constraints/Regular Expression Constraints/Edit Regular Expression Constraints. More details about Regular Expression Constraints usage can be found in the description of the main menu items of CLaRK System (Constraints/Regular Expression Constraints).

  17. Invoke XSLT
  18. This item applies an XSLT transformations over the selected node. This means, that the system uses the selected node as the starting point for the XSLT, not the root of the document, which would be the case when running it from the main menu. If the XSLT returns more than one root, all the roots are inserted in the place of the selected node. This operation can not be applied to multiple selection of nodes.

  19. Info
  20. This item gives information about the selected node and its content. The given information includes: the path from the root node to the current one (abbr. XPath), the tokenizer attached to the node, the content of the node (tags & tokens). This operation can not be applied to a multiple selection of nodes.

  21. Trim Text Nodes
  22. This item removes the leading and trailing white space characters (spaces, tabs and new lines) of the text nodes, descendants of the selected nodes and of the nodes themselves (if they are text nodes).

  23. Rename
  24. This item renames the selected nodes (only if they are element nodes). The system will allow the user to choose from tags, such that the corresponding parent node(s) will be valid after the operation is complete or to choose from tags such that the selected nodes will be valid or both.

  25. Copy
  26. This item copies the selected nodes, including their subtrees, to a copy buffer. After applying the Copy operation the buffer contains a set of trees - one for each selected node.

  27. Cut
  28. This copies the selected nodes (including their subtrees) to a copy buffer and then deletes the nodes from the tree. The system will warn the user if, after the deletion, the structure of the document becomes non-valid. After applying the Cut operation, the copy buffer contains a set of trees - one for each selected node.

  29. Paste As Child
  30. This pastes the copy buffer as a first child of the selected node(s). If the copy buffer contains more than one tree, the trees are inserted as neighbour children. The system will warn the user if, after the insertion, the structure of the document will become non-valid. If it is applied to a multiple selection of nodes, the copy buffer will be cloned, as many times, as an insertion will be performed. If the copy buffer contains more than one

  31. Paste As Sibling
  32. This pastes the copy buffer as a following sibling of the selected node(s). If the copy buffer contains more than one tree, the trees are inserted as neighbour siblings of the selected node(s). The system will warn the user if, after the insertion, the structure of the document will be become non-valid. If it is applied to a multiple selection of nodes, the copy buffer will be cloned, as many times, as an insertion will be performed.

  33. Expand Subtree
  34. This item is used when the tree (or parts of it) on the left panel is folded and the user wants to see the whole substructure of it (them) unfolded. Instead of passing through all folded nodes and manually unfolding them, the user can expand everything, which is under a certain (selected) node by using this option. This option can be applied to more than one selected node.

Back to Contents