You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
226
226
227
227
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`".
228
228
@@ -360,7 +360,7 @@ The <dfn attribute for="Proofreader">correctionExplanationLanguage</dfn> getter
360
360
<h4 id="proofreader-algorithm">The algorithm</h4>
361
361
362
362
<div algorithm>
363
-
To <dfn>proofreader</dfn> given:
363
+
To <dfn>proofreade</dfn> given:
364
364
365
365
* a [=string=] |input|,
366
366
* a [=boolean=] |includeCorrectionTypes|,
@@ -387,7 +387,7 @@ The <dfn attribute for="Proofreader">correctionExplanationLanguage</dfn> getter
387
387
388
388
1. [=Assert=]: |requested| is a number.
389
389
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|.
391
391
392
392
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.
393
393
@@ -424,7 +424,7 @@ The <dfn attribute for="Proofreader">correctionExplanationLanguage</dfn> getter
424
424
1. Perform |error| given |errorInfo|.
425
425
426
426
1. [=iteration/Break=].
427
-
</div>
427
+
</div>
428
428
429
429
<h4 id="proofreader-usage">Usage</h4>
430
430
@@ -472,19 +472,28 @@ This section gives normative guidance on how the implementation of [=proofread=]
<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.
<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.
<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.
<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.
0 commit comments