Author extensions

The CSS file used for rendering TEI P4 content is located in ${frameworks}/tei/xml/tei/css/tei_oxygen.css.

Specific actions are:

  • Bold - changes the style of the selected text to bold by surrounding it with hi tag and setting the rend attribute to bold.

  • Italic - changes the style of the selected text to italic by surrounding it with hi tag and setting the rend attribute to italic.

  • Underline - changes the style of the selected text to underline by surrounding it with hi tag and setting the rend attribute to ul.

    [Note]Note

    For all of the above actions if there is no selection then a new specific tag will be inserted. These actions are available in any document context.

  • Insert Section - inserts a new section/subsection, depending on the current context. For example if the current context is div1 then a div2 will be inserted and so on.

  • Insert Paragraph - inserts a new paragraph depending on the current context. If current context is a paragraph context (one of the ancestors of the element at caret position is p) then a new paragraph will be inserted after the paragraph at caret. Otherwise a new paragraph is inserted at caret position.

  • Insert Image - inserts a graphic object at the caret position. The following dialog is displayed allowing the user to specify the entity that refers the image itself:

    Figure 6.8. Insert image entity dialog

    Insert image entity dialog

  • Insert Ordered List - inserts an ordered list (list element with type attribute set to ordered) with one list item (item element).

  • Insert Itemized List - inserts an unordered list (list element with type attribute set to bulleted) with one list item (item element).

  • Insert List Item - inserts a new list item for in any of the above two list types.

  • Insert Table - opens a dialog that allows you to configure the table to be inserted.

    Figure 6.9. Insert Table Dialog

    Insert Table Dialog


    The dialog allows the user to configure the number of rows and columns of the table and if the header will be generated.

  • Insert Row - inserts a new table row with empty cells. The action is available when the caret position is inside a table.

  • Insert Column - inserts a new table column with empty cells after the current column. The action is available when the caret position is inside a table.

  • Insert Cell - inserts a new empty cell depending on the current context. If the caret is positioned between two cells, a new one will be inserted at caret's position. If the caret is inside a cell, then the new one will be created after the current cell.

  • Delete Column - deletes the table column where the caret is located.

  • Delete Row - deletes the table row where the caret is located.

  • Join Row Cells - joins the content of the selected cells. The operation is available if the selected cells are from the same row and they have the same row span. The action is also available when the selection is missing, but the caret is positioned between two cells.

  • Join Cell Above - joins the content of cell from current caret position with that of the cell above it. Note that this action works only if both cells have the same column span.

  • Join Cell Below - joins the content of cell from current caret position with that of the cell below it. Note that this action works only if both cells have the same column span.

  • Split Cell To The Left - splits the cell from current caret position in two, inserting a new empty table cell to the left. Note that this action works only if the current cell spans over more than one column. The column span of the source cell will be decreased with one.

  • Split Cell To The Right - splits the cell from current caret position in two, inserting a new empty table cell to the right. Note that this action works only if the current cell spans over more than one column. The column span of the source cell will be decreased with one.

  • Split Cell Above - splits the cell from current caret position in two, inserting a new empty table cell above. Note that this action works only if the current cell spans over more than one row. The row span of the source cell will be decreased with one.

  • Split Cell Below - splits the cell from current caret position in two, inserting a new empty table cell below. Note that this action works only if the current cell spans over more than one row. The row span of the source cell will be decreased with one.

All actions described above are available in the contextual menu, main menu (TEI P4 submenu) and in the Author custom actions toolbar.

Templates

Default templates are available for XHTML. They are stored in ${frameworksDir}/tei/templates/TEI P4 folder and they can be used for easily creating basic TEI P4 documents.

These templates are available when creating new documents from templates.

TEI P4 - Lite

New TEI P4 Lite.

TEI P4 - New Document

New TEI P4 standard document.