You can start getting familiar with the features by using the Interactive Example document:
Click
, choose .Follow the example text.
You can see other examples in
, or open them manually from: sernaInstallationPath/examples.Try to create a new Docbook document:
Click New Document Dialog choose Docbook V4.2, article.
, and in theFigure 1. New Document Dialog
If you want to change the default encoding in your document click the
button, and change the value in the combo box.Click
.The Enter Root Element Dialog will show up. Choose the root element (e.g. article).
The Document has been created! Now you can start editing. Usually authoring starts from inserting the title element: click
or . Choose the title element.You can insert title content either after the word Title: or in the gray area within the empty tag icon.
Now you can insert document content, for example a para tag. Put the cursor after title, e.g. after choose element. You can make sure the cursor is in the right position by looking at the status bar. The position should be listed as: /article[3], or /article[2], or /article/#choice[1].
Insert para with
, and enter some symbols into it.Choose element means that the document schema requires an element in this position, but the content model allows for different elements, so you must choose one. If there's no such ambiguity, Serna automatically generates the required element. To resolve choose element, place the cursor on it and press Ctrl-Enter. Sometimes you may see several choose elements at once - in this case you may resolve them one-by-one in any order.
If you put the cursor at different positions in the document you may notice Context Hints, that for several seconds show elements adjacent to the cursor. Context Hints show the left, right, sibling, and parent elements when the cursor changes element position.