Tutorials¶
Please refer to help_keyboard_shortcut if you need to figure out what keyboard shortcuts to use for various operations.
Unit Selection Mode¶
Note
The operations copy, cut, paste, copy-add and cut-add are only available as keyboard shortcuts. Consult help_keyboard_shortcut for the specific shortcuts that pertain to your platform.
Copying Attributes¶
In this tutorial, you will copy one attribute from one element to another.
Load in your editor the file ./tutorial_data/unit_selection.xml.
Switch to unit selection mode. Either by clicking on the toolbar button, or using the keyboard shortcut.
Move the caret into the value of the
rend
attribute of the firstp
element inbody
. The specific location in the value does not matter.Copy. You will not see any changes to the document.
Move the caret into the
div
element.Note
In this example, we move the caret between the start and end label of the
div
element, but you could just as well move the caret in any location inside the start label or the end label of thediv
element, and get the same final result.Paste. The end result should be like in the following figure. The difference from the original document is that the
div
element has acquired a new attributerend
with the valuerend_value
.
Cutting Attributes¶
Follow the same steps as the previous tutorial, but in step 4, do a cut instead of a copy. The end result should be like in the following figure.
The difference from end result of the previous tutorial is that the rend
attribute is no longer present on the p
element from which it was cut.
Copy-Adding Attributes¶
In this tutorial, you will copy multiple attributes from multiple elements to another element. In order to do this, you will use the copy-add operation.
Load in your editor the file ./tutorial_data/unit_selection.xml.
Switch to unit selection mode. Either by clicking on the toolbar button, or using the keyboard shortcut.
Move the caret into the value of the
rend
attribute of the firstp
element inbody
. The specific location in the value does not matter.Copy. You will not see any changes to the document.
Move the caret into the value of the
sample
attribute ofdiv
element. The specific location in the value does not matter.Copy-add. You will not see any changes to the document.
Move the caret into the second
p
element inbody
.Note
In this example, we move the caret between the start and end label of the
p
element, but you could just as well move the caret in any location inside the start label or the end label of thep
element, and get the same final result.Paste. The end result should be like in the following figure. The difference from the original document is that the second
p
element inbody
:- had its
rend
attribute value changed fromabc
torend_value
, - and has a new
sample
attribute which is empty.
- had its
If you did not get the expected result, one common mistake is doing a copy instead of a copy-add in step 6. Make sure you are doing a copy-add.
Cut-Adding Attributes¶
Follow the same steps as the previous tutorial, but in step 4, do a cut instead of a copy, and in step 6 do as cut-add instead of a copy-add. The end result should be like in the following figure.
The difference from end result of the previous tutorial is that the rend
attribute is no longer present on the p
element from which it was cut, and
the sample
attribute is no longer present from the div
attribute from
which it was cut.
If you did not get the expected result, one common mistake is doing a cut instead of a cut-add in step 6. Make sure you are doing a cut-add.
Copying Elements¶
In this tutorial, you will copy an element.
Load in your editor the file ./tutorial_data/unit_selection.xml.
Switch to unit selection mode. Either by clicking on the toolbar button, or using the keyboard shortcut.
Move the caret into the text of the first
p
element inbody
. The specific location of the caret in the text does not matter.Note
Placing the caret in the end label of
p
, or in the start label ofp
but outside any of the attributes would yield the same results.Copy. You will not see any changes to the document.
Move the caret into the
div
element.Note
When pasting elements, the caret cannot be on a start or end label. The caret must be inside an element to indicate specifically where to put the element.
Paste. The end result should be like in the following figure. The difference from the original document is that the
div
element now contains a copy of the firstp
element inbody
.
Cutting Elements¶
Follow the same steps as the previous tutorial, but in step 4, do a cut instead of a copy. The end result should be like in the following figure.
The difference from end result of the previous tutorial is that the element
which was originally the first p
element in body
is absent.
Copy-Adding Elements¶
In this tutorial, you will copy-add two elements and paste them somewhere else.
Load in your editor the file ./tutorial_data/unit_selection.xml.
Switch to unit selection mode. Either by clicking on the toolbar button, or using the keyboard shortcut.
Move the caret into the
title
element. The specific location of the caret in the text does not matter.Note
Placing the caret in the end label of
title
, or in the start label oftitle
but outside any of the attributes would yield the same results.Copy. You will not see any changes to the document.
Move the caret into the text of the first
p
element inbody
. The specific location of the caret in the text does not matter.Note
Placing the caret in the end label of
p
, or in the start label ofp
but outside any of the attributes would yield the same results.Copy-add. You will not see any changes to the document.
Move the caret into the
div
element.Note
When pasting elements, the caret cannot be on a start or end label. The caret must be inside an element to indicate specifically where to put the element.
Paste. The end result should be like in the following figure. The difference from the original document is that the
div
element now contains a copy of thetitle
element and a copy of firstp
element inbody
.
Note
The order in which you add elements to the clipboard determines the
order in which they appear when pasted. If you add, in order, the
elements a
, b
and c
. Then they’ll appear in this order
when paste. However, if you add in the order a
, c
,
b
. They’ll appear in this order when pasted.
If you did not get the expected result, one common mistake is doing a copy instead of a copy-add in step 6. Make sure you are doing a copy-add.
Cut-Adding Elements¶
Follow the same steps as the previous tutorial, but in step 4, do a cut instead of a copy, and in step 6 do a cut-add instead of a copy-add. The end result should be like in the following figure.
The difference from end result of the previous tutorial is that the title
element is gone from its original position and the element which was originally
the first p
element in body
is absent.
If you did not get the expected result, one common mistake is doing a cut instead of a cut-add in step 6. Make sure you are doing a cut-add.