Hyphenation¶
This is a text-markup annotation form that indicates where in the original text a linebreak was inserted and a word was hyphenised.
Specification¶
Annotation Category: | |
---|---|
Declaration: |
|
Version History: | |
Since v2.0 |
|
Element: |
|
API Class: |
|
Required Attributes: | |
Optional Attributes: | |
|
|
Accepted Data: |
|
Valid Context: | |
Extra Attributes: | |
|
Description & Examples¶
Hyphenation breaks are a text markup element that indicate where in the original text a word was broken up for line-wrapping purposes.
The difference between t-hbr
and br
(Linebreak) is that the hyphenised break is a softer
break, only there for page formatting purposes. The hyphen symbol is by definition implied in its usage, so should never
be explicitly incorporated in the text content. For most intents and purposes, a word with a hyphenised break can be
considered semantically identical to a word without one. The following example demonstrates hyphenation in the last
division, alongside the more classical 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>
|