Skip to content

Commit 95c41f7

Browse files
committed
Use "ar-EG" language tag, instead of just "ar" to make it clear that sub-tags are separated by "-" and "_" is distinct for seprarating language tags with direction.
1 parent 2b30462 commit 95c41f7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

index.html

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5185,7 +5185,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
51855185
"title": "http://example.org/title",
51865186
"publisher": "http://example.org/publisher",
51875187
####...####
5188-
****"@language": "ar",
5188+
****"@language": "ar-EG",
51895189
"@direction": "rtl"****
51905190
},
51915191
****"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -5198,8 +5198,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
51985198
data-result-for="Setting the default base direction of a JSON-LD document-compacted">
51995199
<!--
52005200
[{
5201-
"http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar", ****"@direction": "rtl"****}],
5202-
"http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar", ****"@direction": "rtl"****}]
5201+
"http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar-EG", ****"@direction": "rtl"****}],
5202+
"http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar-EG", ****"@direction": "rtl"****}]
52035203
}]
52045204
-->
52055205
</pre>
@@ -5208,8 +5208,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52085208
data-to-rdf>
52095209
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
52105210
<tbody>
5211-
<tr><td>_:b0</td><td>http://example.org/title</td><td lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar</td><td>rtl</td></tr>
5212-
<tr><td>_:b0</td><td>http://example.org/publisher</td><td lang="ar" dir="rtl">مكتبة</td><td>ar</td><td>rtl</td></tr>
5211+
<tr><td>_:b0</td><td>http://example.org/title</td><td lang="ar-EG" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar-EG</td><td>rtl</td></tr>
5212+
<tr><td>_:b0</td><td>http://example.org/publisher</td><td lang="ar-EG" dir="rtl">مكتبة</td><td>ar-EG</td><td>rtl</td></tr>
52135213
</tbody>
52145214
</table>
52155215
<pre class="turtle nohighlight"
@@ -5222,8 +5222,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52225222

52235223
# Note that this version drops the base direction.
52245224
[
5225-
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****@ar;
5226-
ex:publisher ****"مكتبة"****@ar
5225+
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****@ar-EG;
5226+
ex:publisher ****"مكتبة"****@ar-EG
52275227
] .
52285228
-->
52295229
</pre>
@@ -5239,8 +5239,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52395239

52405240
# Note that this version preserves the base direction using a datatype.
52415241
[
5242-
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl****;
5243-
ex:publisher ****"مكتبة"^^i18n:ar_rtl****
5242+
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl****;
5243+
ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl****
52445244
] .
52455245
-->
52465246
</pre>
@@ -5257,23 +5257,23 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52575257
[
52585258
ex:title ****[
52595259
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
5260-
rdf:language "ar",
5260+
rdf:language "ar-EG",
52615261
rdf:direction "rtl"
52625262
]****;
52635263
ex:publisher ****[
52645264
rdf:value "مكتبة",
5265-
rdf:language "ar",
5265+
rdf:language "ar-EG",
52665266
rdf:direction "rtl"
52675267
]****
52685268
] .
52695269
-->
52705270
</pre>
52715271
</aside>
52725272

5273-
<p>The example above would associate the <code>ar</code> language tag
5273+
<p>The example above would associate the <code>ar-EG</code> language tag
52745274
and "rtl" base direction
52755275
with the two <a>strings</a>
5276-
<em lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</em> and <em lang="ar" dir="rtl">مكتبة</em>.
5276+
<em lang="ar-EG" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</em> and <em lang="ar-EG" dir="rtl">مكتبة</em>.
52775277
The <a>default base direction</a> applies to all
52785278
<a>string</a> values that are not <a href="#type-coercion">type coerced</a>.</p>
52795279

@@ -5288,7 +5288,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52885288
####...####
52895289
****"@version": 1.1,****
52905290
"@vocab": "http://example.com/",
5291-
"@language": "ar",
5291+
"@language": "ar-EG",
52925292
"@direction": "rtl",
52935293
"details": {
52945294
****"@context": {
@@ -5312,7 +5312,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
53125312
"@context": {
53135313
####...####
53145314
"ex": "http://example.com/vocab/",
5315-
"@language": "ar",
5315+
"@language": "ar-EG",
53165316
"@direction": "rtl",
53175317
"publisher": { "@id": "ex:name", ****"@direction": null**** },
53185318
"title": { "@id": "ex:title" },
@@ -5333,8 +5333,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
53335333
data-to-rdf>
53345334
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
53355335
<tbody>
5336-
<tr><td>_:b0</td><td>ex:publisher</td><td lang="ar">مكتبة</td><td>ar</td><td>`null`</td></tr>
5337-
<tr><td>_:b0</td><td>ex:title</td><td lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar</td><td>`rtl`</td></tr>
5336+
<tr><td>_:b0</td><td>ex:publisher</td><td lang="ar-EG">مكتبة</td><td>ar-EG</td><td>`null`</td></tr>
5337+
<tr><td>_:b0</td><td>ex:title</td><td lang="ar-EG" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar-EG</td><td>`rtl`</td></tr>
53385338
<tr><td>_:b0</td><td>ex:title</td><td lang="en" dir="ltr">HTML and CSS: Design and Build Websites</td><td>en</td><td>`ltr`</td></tr>
53395339
</tbody>
53405340
</table>
@@ -5353,7 +5353,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
53535353
{
53545354
"@context": {
53555355
####...####
5356-
"@language": "ar",
5356+
"@language": "ar-EG",
53575357
"@direction": "rtl"
53585358
},
53595359
"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -12847,8 +12847,8 @@ <h3>Serializing/Deserializing RDF</h3>
1284712847
the value of `@language`, if any, followed by an underscore (`"_"`) followed
1284812848
by the value of `@direction`.</p>
1284912849

12850-
<p>The following example shows two statements with literal values of `i18n:ar_rtl`,
12851-
which encodes the language tag `ar` and the base direction `rtl`.</p>
12850+
<p>The following example shows two statements with literal values of `i18n:ar-EG_rtl`,
12851+
which encodes the language tag `ar-EG` and the base direction `rtl`.</p>
1285212852
<pre class="turtle-dt nohighlight"
1285312853
data-content-type="text/turtle"
1285412854
data-transform="updateExample"
@@ -12860,8 +12860,8 @@ <h3>Serializing/Deserializing RDF</h3>
1286012860

1286112861
# Note that this version preserves the base direction using a non-standard datatype.
1286212862
[
12863-
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl****;
12864-
ex:publisher ****"مكتبة"^^i18n:ar_rtl****
12863+
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl****;
12864+
ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl****
1286512865
] .
1286612866
-->
1286712867
</pre>
@@ -12895,7 +12895,7 @@ <h3>Serializing/Deserializing RDF</h3>
1289512895
value objects containing `@direction` and optionally `@language`.</p>
1289612896

1289712897
<p>The following example shows two statements with compoud literals
12898-
representing strings with the <a>language tag</a> `ar` and <a>base direction</a> `rtl`.</p>
12898+
representing strings with the <a>language tag</a> `ar-EG` and <a>base direction</a> `rtl`.</p>
1289912899
<pre class="turtle-dt nohighlight"
1290012900
data-content-type="text/turtle"
1290112901
data-transform="updateExample"
@@ -12908,12 +12908,12 @@ <h3>Serializing/Deserializing RDF</h3>
1290812908
[
1290912909
ex:title ****[
1291012910
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
12911-
rdf:language "ar",
12911+
rdf:language "ar-EG",
1291212912
rdf:direction "rtl"
1291312913
]****;
1291412914
ex:publisher ****[
1291512915
rdf:value "مكتبة",
12916-
rdf:language "ar",
12916+
rdf:language "ar-EG",
1291712917
rdf:direction "rtl"
1291812918
]****
1291912919
] .

0 commit comments

Comments
 (0)