Linebreak¶
Structure annotation representing a single linebreak and with special facilities to denote pagebreaks.
Specification¶
Annotation Category: | |
---|---|
Declaration: |
|
Version History: | |
Since the beginning |
|
Element: |
|
API Class: |
|
Required Attributes: | |
Optional Attributes: | |
|
|
Accepted Data: |
|
Valid Context: |
|
Extra Attributes: | |
|
Description & Examples¶
Linebreaks play a double role, they are a structure element as well as a text markup element, the latter implies that you
may also use <br/>
within the scope of text content, so within a <t>
element.
The difference between br
and whitespace
is that the former specifies that only a linebreak was present, not
forcing any vertical whitespace between the lines, whilst the latter actually generates an empty space, which would
comparable to two successive br
statements. Both elements can be used inside various structural elements, such as
divisions, paragraphs, headers, and sentences. Note that the example below also contains an example of
Hyphenation, which is a special softer kind of linebreak.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | <?xml version="1.0" encoding="utf-8"?>
<FoLiA xmlns="http://ilk.uvt.nl/folia" version="2.0" xml:id="example">
<metadata>
<annotations>
<text-annotation>
<annotator processor="p1" />
</text-annotation>
<division-annotation set="https://raw.githubusercontent.com/LanguageMachines/uctodata/master/setdefinitions/divisions.foliaset.xml">
<annotator processor="p1" />
</division-annotation>
<whitespace-annotation>
<annotator processor="p1" />
</whitespace-annotation>
<linebreak-annotation>
<annotator processor="p1" />
</linebreak-annotation>
<hyphenation-annotation>
<annotator processor="p1" />
</hyphenation-annotation>
</annotations>
<provenance>
<processor xml:id="p1" name="proycon" type="manual" />
</provenance>
</metadata>
<text xml:id="example.text">
<div xml:id="example.div.1" class="section" n="1">
<t>Blah...</t>
</div>
<whitespace />
<br newpage="yes" pagenr="2" />
<div xml:id="example.div.2" class="section" n="2">
<!-- BR has a double role, it can be used a text markup element as well, as seen on the next line -->
<t>To be, <br />or not to be!</t>
</div>
<div xml:id="example.div.3" class="section" n="3">
<t>Don't leave me bro<t-hbr/>ken and alone!</t>
</div>
</text>
</FoLiA>
|
You can use <br/>
also in the context of Text Markup Annotation, as in the following example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <?xml version="1.0" encoding="utf-8"?>
<FoLiA xmlns="http://ilk.uvt.nl/folia" version="2.0" xml:id="example">
<metadata>
<annotations>
<text-annotation>
<annotator processor="p1" />
</text-annotation>
<sentence-annotation>
<annotator processor="p1" />
</sentence-annotation>
<linebreak-annotation>
<annotator processor="p1" />
</linebreak-annotation>
<part-annotation>
<annotator processor="p1" />
</part-annotation>
<style-annotation set="https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/styles.foliaset.xml">
<annotator processor="p1" />
</style-annotation>
</annotations>
<provenance>
<processor xml:id="p1" name="proycon" type="manual" />
</provenance>
</metadata>
<text xml:id="example.text">
<s>
<t>To <t-style class="italic">be</t-style> or not to be,<br/>that is the <t-style class="bold"><t-style class="red">question</t-style></t-style>.</t>
</s>
</text>
</FoLiA>
|