@@ -1002,7 +1002,7 @@ <h3>Literals</h3>
1002
1002
</ ul >
1003
1003
1004
1004
< section >
1005
- < h2 > Representation of literals</ h2 >
1005
+ < h4 > Representation of literals</ h4 >
1006
1006
1007
1007
< p > Some concrete syntaxes MAY support
1008
1008
< dfn data-lt ="simple literal " class ="export "> simple literals</ dfn > consisting of only a
@@ -1043,7 +1043,7 @@ <h2>Representation of literals</h2>
1043
1043
</ section >
1044
1044
1045
1045
< section >
1046
- < h2 > Literal value</ h2 >
1046
+ < h4 > Literal value</ h4 >
1047
1047
1048
1048
< p > The < dfn class ="export "> literal value</ dfn > associated with a < a > literal</ a > is defined as follows.</ p >
1049
1049
@@ -1089,6 +1089,40 @@ <h2>Literal value</h2>
1089
1089
same literal < a > RDF term</ a > because their
1090
1090
< a > lexical forms</ a > differ.</ p >
1091
1091
</ section >
1092
+
1093
+ < section id ="section-text-direction " class ="informative ">
1094
+ < h4 > Initial text direction</ h4 >
1095
+
1096
+ < p > The < a > base direction</ a > of a < a > directional language-tagged string</ a >
1097
+ provides a means of establishing the initial direction of text,
1098
+ including text which is a mixture of right-to-left and left-to-right scripts.
1099
+ The [=Unicode Bidirectional Algorithm=] [[?I18N-Glossary]] provides support for automatically rendering
1100
+ a sequence of characters in logical order,
1101
+ so that they are visually ordered as expected,
1102
+ but this is not sufficient to correctly render bidirectional text.</ p >
1103
+
1104
+ < p > For example, some text with a language tag "`he`" might be displayed
1105
+ in a left-to-right context (such as an English web page) as
1106
+ < bdi dir ="ltr "> פעילות הבינאום, W3C</ bdi > , which is incorrect. When provided
1107
+ to a user agent including base direction information (such as using
1108
+ HTML's `dir` attribute) it can then be correctly presented as:
1109
+ </ p >
1110
+ < div lang ="he " dir ="rtl "> פעילות הבינאום, W3C</ div >
1111
+
1112
+ < p > In the absence of an explicit initial text direction,
1113
+ the [=Unicode Bidirectional Algorithm=] detects the text direction from the content.
1114
+ This depends on the first strongly directional character in the text
1115
+ or on the context.
1116
+ To avoid [=spillover effects=], users need to employ [=bidi isolation=]
1117
+ whenever text is inserted into a larger document.
1118
+ For example,
1119
+ "< code > <bdi lang="he">ספרים בינלאומיים!</bdi></ code > "
1120
+ displays the Hebrew characters in a right-to-left fashion
1121
+ — i.e., as "< bdi lang ="he "> ספרים בינלאומיים!</ bdi > "
1122
+ — while they would be stored in memory as
1123
+ "< bdo dir ="ltr " lang ="he "> ספרים בינלאומיים!</ bdo > "</ p >
1124
+ </ section >
1125
+
1092
1126
</ section >
1093
1127
1094
1128
< section id ="section-blank-nodes ">
@@ -1173,39 +1207,6 @@ <h3>Graph Comparison</h3>
1173
1207
1174
1208
</ section >
1175
1209
1176
- < section id ="section-text-direction " class ="informative ">
1177
- < h3 > Initial Text Direction</ h3 >
1178
-
1179
- < p > The < a > base direction</ a > of a < a > directional language-tagged string</ a >
1180
- provides a means of establishing the initial direction of text,
1181
- including text which is a mixture of right-to-left and left-to-right scripts.
1182
- The [=Unicode Bidirectional Algorithm=] [[?I18N-Glossary]] provides support for automatically rendering
1183
- a sequence of characters in logical order,
1184
- so that they are visually ordered as expected,
1185
- but this is not sufficient to correctly render bidirectional text.</ p >
1186
-
1187
- < p > For example, some text with a language tag "`he`" might be displayed
1188
- in a left-to-right context (such as an English web page) as
1189
- < bdi dir ="ltr "> פעילות הבינאום, W3C</ bdi > , which is incorrect. When provided
1190
- to a user agent including base direction information (such as using
1191
- HTML's `dir` attribute) it can then be correctly presented as:
1192
- </ p >
1193
- < div lang ="he " dir ="rtl "> פעילות הבינאום, W3C</ div >
1194
-
1195
- < p > In the absence of an explicit initial text direction,
1196
- the [=Unicode Bidirectional Algorithm=] detects the text direction from the content.
1197
- This depends on the first strongly directional character in the text
1198
- or on the context.
1199
- To avoid [=spillover effects=], users need to employ [=bidi isolation=]
1200
- whenever text is inserted into a larger document.
1201
- For example,
1202
- "< code > <bdi lang="he">ספרים בינלאומיים!</bdi></ code > "
1203
- displays the Hebrew characters in a right-to-left fashion
1204
- — i.e., as "< bdi lang ="he "> ספרים בינלאומיים!</ bdi > "
1205
- — while they would be stored in memory as
1206
- "< bdo dir ="ltr " lang ="he "> ספרים בינלאומיים!</ bdo > "</ p >
1207
- </ section >
1208
-
1209
1210
1210
1211
</ section >
1211
1212
0 commit comments