Skip to content

Commit 0381812

Browse files
authored
Fix index.bs
1 parent eb7d024 commit 0381812

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

index.bs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ enum CorrectionType { "spelling", "punctuation", "capitalization", "grammar" };
222222
</div>
223223

224224
<div class="example" id="example-subtags-chinese">
225-
A common setup seen in today's software is to support two types of written Chinese: "traditional Chinese" and "simplified Chinese". Let's suppose that the user agent supports summarizing text written in traditional Chinese with no downloads, and simplified Chinese after a download.
225+
A common setup seen in today's software is to support two types of written Chinese: "traditional Chinese" and "simplified Chinese". Let's suppose that the user agent supports proofreading text written in traditional Chinese with no downloads, and simplified Chinese after a download.
226226

227227
One way this could be implemented would be for [=proofreader language availabilities double=] to return that "`zh-Hant`" is in the [=language availabilities double/input languages=]["{{Availability/available}}"] set, and "`zh`" and "`zh-Hans`" are in the [=language availabilities double/input languages=]["{{Availability/downloadable}}"] set. This return value conforms to the requirements of the language tag set completeness rules, in ensuring that "`zh`" is present. Per <a class="allow-2119" href="#language-tag-completeness-implementation-defined">the "should"-level guidance</a>, the implementation has determined that "`zh`" belongs in the set of downloadable input languages, with "`zh-Hans`", instead of in the set of available input languages, with "`zh-Hant`".
228228

@@ -360,7 +360,7 @@ The <dfn attribute for="Proofreader">correctionExplanationLanguage</dfn> getter
360360
<h4 id="proofreader-algorithm">The algorithm</h4>
361361

362362
<div algorithm>
363-
To <dfn>proofreader</dfn> given:
363+
To <dfn>proofreade</dfn> given:
364364

365365
* a [=string=] |input|,
366366
* a [=boolean=] |includeCorrectionTypes|,
@@ -387,7 +387,7 @@ The <dfn attribute for="Proofreader">correctionExplanationLanguage</dfn> getter
387387

388388
1. [=Assert=]: |requested| is a number.
389389

390-
1. In an [=implementation-defined=] manner, subject to the following guidelines, begin the process of proofreading |input| into a {{ProofreadResult}} with a [=string=] |correctedInput| as the proofread text and a {{ProofreadCorrections}} |corrections| detailing all the corrections made to |input| to form |correctedInput|.
390+
1. In an [=implementation-defined=] manner, subject to the following guidelines, begin the process of proofreading |input| into a {{ProofreadResult}} with a [=string=] |correctedInput| as the proofread text and a {{ProofreadCorrection}} corrections detailing all the corrections made to |input| to form |correctedInput|.
391391

392392
If |input| is the empty string, or otherwise consists of no proofreadable content (e.g., only contains whitespace, or control characters), then the resulting proofread text should be the empty string. In such cases, |includeCorrectionTypes|, |includeCorrectionExplanations|, and |correctionExplanationLanguage| should be ignored.
393393

@@ -424,7 +424,7 @@ The <dfn attribute for="Proofreader">correctionExplanationLanguage</dfn> getter
424424
1. Perform |error| given |errorInfo|.
425425

426426
1. [=iteration/Break=].
427-
</div>
427+
</div>
428428

429429
<h4 id="proofreader-usage">Usage</h4>
430430

@@ -472,19 +472,28 @@ This section gives normative guidance on how the implementation of [=proofread=]
472472
<th>Meaning
473473
<tbody>
474474
<tr>
475-
<th>"<dfn boolean-value for="includeCorrectionTypes">true</dfn>"
475+
<th>"true"
476476
<td>
477477
<p>The proofread result should contain a list of corrections where each {{ProofreadCorrection}}, defined by its range from |startIndex| to |endIndex|, should describe the types of errors that are corrected according to the {{CorrectionType}} enumeration.
478478
<tr>
479-
<th>"<dfn boolean-value for="includeCorrectionTypes">false</dfn>"
479+
<th>"false"
480480
<td>
481481
<p>The proofread result should contain a list of corrections where each {{ProofreadCorrection}}, defined by its range from |startIndex| to |endIndex|, does not provide the types of errors that are corrected.
482+
</table>
483+
484+
<table class="data enum-table">
485+
<caption>|includeCorrectionExplanations| values</caption>
486+
<thead>
487+
<tr>
488+
<th>Value
489+
<th>Meaning
490+
<tbody>
482491
<tr>
483-
<th>"<dfn boolean-value for="includeCorrectionExplanations">true</dfn>"
492+
<th>"true"
484493
<td>
485494
<p>The proofread result should contain a list of corrections where each {{ProofreadCorrection}}, defined by its range from |startIndex| to |endIndex|, should provide a text explanation for the errors corrected.
486495
<tr>
487-
<th>"<dfn boolean-value for="includeCorrectionTypes">false</dfn>"
496+
<th>"false"
488497
<td>
489498
<p>The proofread result should contain a list of corrections where each {{ProofreadCorrection}}, defined by its range from |startIndex| to |endIndex|, does not provide the text explanation for the errors corrected.
490499
</table>

0 commit comments

Comments
 (0)