24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• ${homeDir} - The path (as file path) of the user home folder.• ${pn} - Current project name.• ${env(VAR_NAME)} - Value of the VAR_NAME environment variable.• ${system(var.name)} - Value of the var.name system variable.• ${date(pattern)} - Current date. Follows the given pattern. Example: yyyy-MM-dd.Editing the <strong>XML</strong> Content<strong>Author</strong>ing in the Visual Editor | 92By default you can type only in elements which accept text content. So if the element is declared as empty or elementonly in the associated schema you are not allowed to insert text in it. This is also available if you try to insert CDATAinside an element. Instead a warning message is shown:Figure 55: Editing in empty element warningYou can disable this behavior by checking the Allow Text in empty or element only content check box in the <strong>Author</strong>preferences page.Entire sections or chunks of data can be moved or copied by using the drag and drop support. The following situationscan be encountered:• when both the drag and drop sources are <strong>Author</strong> pages, an well-formed <strong>XML</strong> fragment is transferred. The sectionis balanced before dropping it by adding matching tags when needed.• when the drag source is the <strong>Author</strong> page but the drop target is a text-based editor only the text inside the selectionis transferred as it is.• the text dropped from another text editor or another application into the <strong>Author</strong> page is inserted without changes.The font size of the current WYSIWYG-like editor can be increased and decreased on the fly with the same actions asin the Text editor:• (Ctrl - NumPad+) or (Ctrl - +) or (Ctrl - mouse wheel) - Increases font size.• (Ctrl - NumPad-) or (Ctrl - -) or (Ctrl - mouse wheel) - Decreases font size.• (Ctrl - NumPad0) or (Ctrl - 0) - Restores font size to the size specified in Preferences.Removing the Text Content of the Current ElementYou can remove the text content of the current element and keep only the markup with the action Remove Textavailable on the submenu Refactoring of the contextual menu and on the toolbar <strong>XML</strong> Refactoring. This is usefulwhen the markup of an element must be preserved, for example a table structure but the text content must be replaced.Duplicating Elements with Existing IDsIf the Auto generate IDs for elements option (available in the ID Options dialog from DITA, Docbook and TEIdocument types) is turned off and you duplicate elements with existing IDs, the duplicates lose these IDs. If the previouslymentioned option is active, when you duplicate content, <strong>Oxygen</strong> makes sure that if there is an ID attribute set in the<strong>XML</strong> markup, the newly created duplicate has a new, unique ID attribute value. The option Remove ID's when copyingcontent in the same document allows you to control if a pasted element should retain its ID.Table Layout and ResizingThe support for editing data in tabular form can manage table width and column width specifications from the sourcedocument. The specified widths will be considered when rendering the tables and when visually resizing them usingmouse drag gestures. These specifications are supported both in fixed and proportional dimensions. The predefinedframeworks (DITA, DocBook and XHTML) already implement support for this feature. The layout of the tables fromthese types of documents takes into account the table width and the column width specifications particular to them. Thetables and columns widths can be visually adjusted by dragging with the mouse their edges and the modifications willbe committed back into the source document.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!