Skip to content

Commit 01ef1e0

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 af21344 commit 01ef1e0

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
@@ -5190,7 +5190,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
51905190
"title": "http://example.org/title",
51915191
"publisher": "http://example.org/publisher",
51925192
####...####
5193-
****"@language": "ar",
5193+
****"@language": "ar-EG",
51945194
"@direction": "rtl"****
51955195
},
51965196
****"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -5203,8 +5203,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52035203
data-result-for="Setting the default base direction of a JSON-LD document-compacted">
52045204
<!--
52055205
[{
5206-
"http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar", ****"@direction": "rtl"****}],
5207-
"http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar", ****"@direction": "rtl"****}]
5206+
"http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar-EG", ****"@direction": "rtl"****}],
5207+
"http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar-EG", ****"@direction": "rtl"****}]
52085208
}]
52095209
-->
52105210
</pre>
@@ -5213,8 +5213,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52135213
data-to-rdf>
52145214
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
52155215
<tbody>
5216-
<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>
5217-
<tr><td>_:b0</td><td>http://example.org/publisher</td><td lang="ar" dir="rtl">مكتبة</td><td>ar</td><td>rtl</td></tr>
5216+
<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>
5217+
<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>
52185218
</tbody>
52195219
</table>
52205220
<pre class="turtle nohighlight"
@@ -5227,8 +5227,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52275227

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

52455245
# Note that this version preserves the base direction using a datatype.
52465246
[
5247-
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl****;
5248-
ex:publisher ****"مكتبة"^^i18n:ar_rtl****
5247+
ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl****;
5248+
ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl****
52495249
] .
52505250
-->
52515251
</pre>
@@ -5262,23 +5262,23 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52625262
[
52635263
ex:title ****[
52645264
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
5265-
rdf:language "ar",
5265+
rdf:language "ar-EG",
52665266
rdf:direction "rtl"
52675267
]****;
52685268
ex:publisher ****[
52695269
rdf:value "مكتبة",
5270-
rdf:language "ar",
5270+
rdf:language "ar-EG",
52715271
rdf:direction "rtl"
52725272
]****
52735273
] .
52745274
-->
52755275
</pre>
52765276
</aside>
52775277

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

@@ -5293,7 +5293,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
52935293
####...####
52945294
****"@version": 1.1,****
52955295
"@vocab": "http://example.com/",
5296-
"@language": "ar",
5296+
"@language": "ar-EG",
52975297
"@direction": "rtl",
52985298
"details": {
52995299
****"@context": {
@@ -5317,7 +5317,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
53175317
"@context": {
53185318
####...####
53195319
"ex": "http://example.com/vocab/",
5320-
"@language": "ar",
5320+
"@language": "ar-EG",
53215321
"@direction": "rtl",
53225322
"publisher": { "@id": "ex:name", ****"@direction": null**** },
53235323
"title": { "@id": "ex:title" },
@@ -5338,8 +5338,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
53385338
data-to-rdf>
53395339
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
53405340
<tbody>
5341-
<tr><td>_:b0</td><td>ex:publisher</td><td lang="ar">مكتبة</td><td>ar</td><td>`null`</td></tr>
5342-
<tr><td>_:b0</td><td>ex:title</td><td lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar</td><td>`rtl`</td></tr>
5341+
<tr><td>_:b0</td><td>ex:publisher</td><td lang="ar-EG">مكتبة</td><td>ar-EG</td><td>`null`</td></tr>
5342+
<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>
53435343
<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>
53445344
</tbody>
53455345
</table>
@@ -5358,7 +5358,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
53585358
{
53595359
"@context": {
53605360
####...####
5361-
"@language": "ar",
5361+
"@language": "ar-EG",
53625362
"@direction": "rtl"
53635363
},
53645364
"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -12852,8 +12852,8 @@ <h3>Serializing/Deserializing RDF</h3>
1285212852
the value of `@language`, if any, followed by an underscore (`"_"`) followed
1285312853
by the value of `@direction`.</p>
1285412854

12855-
<p>The following example shows two statements with literal values of `i18n:ar_rtl`,
12856-
which encodes the language tag `ar` and the base direction `rtl`.</p>
12855+
<p>The following example shows two statements with literal values of `i18n:ar-EG_rtl`,
12856+
which encodes the language tag `ar-EG` and the base direction `rtl`.</p>
1285712857
<pre class="turtle-dt nohighlight"
1285812858
data-content-type="text/turtle"
1285912859
data-transform="updateExample"
@@ -12865,8 +12865,8 @@ <h3>Serializing/Deserializing RDF</h3>
1286512865

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

1290212902
<p>The following example shows two statements with compoud literals
12903-
representing strings with the <a>language tag</a> `ar` and <a>base direction</a> `rtl`.</p>
12903+
representing strings with the <a>language tag</a> `ar-EG` and <a>base direction</a> `rtl`.</p>
1290412904
<pre class="turtle-dt nohighlight"
1290512905
data-content-type="text/turtle"
1290612906
data-transform="updateExample"
@@ -12913,12 +12913,12 @@ <h3>Serializing/Deserializing RDF</h3>
1291312913
[
1291412914
ex:title ****[
1291512915
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
12916-
rdf:language "ar",
12916+
rdf:language "ar-EG",
1291712917
rdf:direction "rtl"
1291812918
]****;
1291912919
ex:publisher ****[
1292012920
rdf:value "مكتبة",
12921-
rdf:language "ar",
12921+
rdf:language "ar-EG",
1292212922
rdf:direction "rtl"
1292312923
]****
1292412924
] .

0 commit comments

Comments
 (0)