From a316f03b9fa82eb988fcdf4f2420fa63de51815c Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:12:41 +0200 Subject: [PATCH 01/40] Update large-scale-text definition to include CJK languages with different requirements --- pages/glossary/large-scale-text.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index a53f86a27ab..7bf7e22ed73 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -12,3 +12,19 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or - at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. + +For CJK (Chinese, Japanese and Korean) fonts, text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: +- at least 22 [points](https://www.w3.org/TR/css-values/#pt), or +- at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher, + +Note: +The WCAG definition of [large scale text](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-large-scale) does not clearly indeicate which is the the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages; in fact it states: +"with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" + +There is an additional note that states: +The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size. + +Since there is no official definition of "equivalent" sizes for CJK in WCAG, we rely on the metrics provided by the TRANSLATION NOTE present in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale), which states: + +TRANSLATION NOTE +In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. From fcc0409a2a7c5eb1077cf7dddffafa4fcf87c2e7 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:38:27 +0200 Subject: [PATCH 02/40] updated rule slightly updated to reflect considerations about halfwidth and fullwidth differences --- pages/glossary/large-scale-text.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 7bf7e22ed73..1862d752410 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -13,7 +13,7 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or - at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. -For CJK (Chinese, Japanese and Korean) fonts, text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: +For CJKV (Chinese, Japanese, Korean, and Vietnamite) languages, [full-width](https://www.unicode.org/reports/tr11/tr11-31.html#Relation) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: - at least 22 [points](https://www.w3.org/TR/css-values/#pt), or - at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher, @@ -24,7 +24,12 @@ The WCAG definition of [large scale text](https://www.w3.org/WAI/WCAG21/Understa There is an additional note that states: The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size. -Since there is no official definition of "equivalent" sizes for CJK in WCAG, we rely on the metrics provided by the TRANSLATION NOTE present in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale), which states: +Since there is no official definition of "equivalent" sizes for CJK in WCAG, we rely on the metrics provided by the last two notes, present in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale), which states: + +NOTE +The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement. TRANSLATION NOTE In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. + +Where in particular, Japanese replaced "roman texts" with "half-width alphanumeric text" and they added explicitly a new requirement for "Japanese full-width characters". From 4f781a06134026fab3174e1d046b435ea3a9b53a Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:40:03 +0200 Subject: [PATCH 03/40] added unicode reference added unicode references --- pages/glossary/large-scale-text.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 1862d752410..377b8319892 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -33,3 +33,5 @@ TRANSLATION NOTE In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. Where in particular, Japanese replaced "roman texts" with "half-width alphanumeric text" and they added explicitly a new requirement for "Japanese full-width characters". + +UNICODE standard: https://www.unicode.org/reports/tr11/tr11-31.html#Relation From 4456dec34e852e61af8cb56d490f4a46bf3c14eb Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 10:33:37 +0200 Subject: [PATCH 04/40] polishing definition --- pages/glossary/large-scale-text.md | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 377b8319892..caf51116959 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -13,25 +13,23 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or - at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. -For CJKV (Chinese, Japanese, Korean, and Vietnamite) languages, [full-width](https://www.unicode.org/reports/tr11/tr11-31.html#Relation) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: +For CJK (Chinese, Japanese and Korean) languages, [full-width](https://www.unicode.org/reports/tr11/tr11-31.html#Relation) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: - at least 22 [points](https://www.w3.org/TR/css-values/#pt), or - at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher, -Note: -The WCAG definition of [large scale text](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html#dfn-large-scale) does not clearly indeicate which is the the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages; in fact it states: -"with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" +Notes: +The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages. According to WCAG: +"[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" +Additionally, WCAG includes a note that specifies: +"The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size." -There is an additional note that states: -The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size. +Since there is no official WCAG definition of "equivalent size" for CJK languages, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insights: +"NOTE +The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement." +and +"TRANSLATION NOTE +In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." -Since there is no official definition of "equivalent" sizes for CJK in WCAG, we rely on the metrics provided by the last two notes, present in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale), which states: +It's important to note that in the Japanese translation, the term "roman text" has been replaced with "half-width alphanumeric text," and a new requirement has been explicitly introduced for "Japanese full-width characters." -NOTE -The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement. - -TRANSLATION NOTE -In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. - -Where in particular, Japanese replaced "roman texts" with "half-width alphanumeric text" and they added explicitly a new requirement for "Japanese full-width characters". - -UNICODE standard: https://www.unicode.org/reports/tr11/tr11-31.html#Relation +Since distinguishing between half-width alphanumeric text and full-width characters is not straightforward, the decision has been made to adopt the Unicode standard for [CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF as the basis for this distinction. From a60cf765106f91442b706bd8373c1f41198288a8 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 10:34:09 +0200 Subject: [PATCH 05/40] adding spaces --- pages/glossary/large-scale-text.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index caf51116959..29e7a2d2290 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -19,14 +19,20 @@ For CJK (Chinese, Japanese and Korean) languages, [full-width](https://www.unico Notes: The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages. According to WCAG: + "[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" + Additionally, WCAG includes a note that specifies: + "The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size." Since there is no official WCAG definition of "equivalent size" for CJK languages, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insights: + "NOTE The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement." + and + "TRANSLATION NOTE In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." From 54ffbd6beb1c33ef219fda556c51dcc89367186e Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 10:35:27 +0200 Subject: [PATCH 06/40] spaces --- pages/glossary/large-scale-text.md | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 29e7a2d2290..960c1cbf993 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -15,25 +15,19 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value For CJK (Chinese, Japanese and Korean) languages, [full-width](https://www.unicode.org/reports/tr11/tr11-31.html#Relation) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: - at least 22 [points](https://www.w3.org/TR/css-values/#pt), or -- at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher, +- at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. Notes: -The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages. According to WCAG: - -"[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" - -Additionally, WCAG includes a note that specifies: - +The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages. According to WCAG: +"[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" +Additionally, WCAG includes a note that specifies: "The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size." -Since there is no official WCAG definition of "equivalent size" for CJK languages, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insights: - -"NOTE -The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement." - -and - -"TRANSLATION NOTE +Since there is no official WCAG definition of "equivalent size" for CJK languages, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insights: +"NOTE +The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement." +and +"TRANSLATION NOTE In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." It's important to note that in the Japanese translation, the term "roman text" has been replaced with "half-width alphanumeric text," and a new requirement has been explicitly introduced for "Japanese full-width characters." From 39a211d4fb30070eff607b8b8f65cf00e93b72e3 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:12:27 +0200 Subject: [PATCH 07/40] improving understandability --- pages/glossary/large-scale-text.md | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 960c1cbf993..503adb995a5 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -13,23 +13,17 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or - at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. -For CJK (Chinese, Japanese and Korean) languages, [full-width](https://www.unicode.org/reports/tr11/tr11-31.html#Relation) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: +For CJK (Chinese, Japanese and Korean) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: - at least 22 [points](https://www.w3.org/TR/css-values/#pt), or - at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. Notes: -The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK languages. According to WCAG: -"[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts" -Additionally, WCAG includes a note that specifies: -"The 18 and 14 point sizes for roman texts are taken from the minimum size for large print (14pt) and the larger standard font size (18pt). For other fonts such as CJK languages, the "equivalent" sizes would be the minimum large print size used for those languages and the next larger standard large print size." +The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK characters. According to WCAG: +>[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts -Since there is no official WCAG definition of "equivalent size" for CJK languages, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insights: -"NOTE -The 18-point and 14-point sizes for half-width alphanumeric text are based on the minimum enlarged print size (14 points) and standard large type size (18 points). For other characters, such as CJK languages, the "equivalent" size is the minimum size for enlargement in that language and the next largest standard size for enlargement." -and -"TRANSLATION NOTE -In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." +Since there is no official WCAG definition of **equivalent size** for CJK characters, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This document offers the following insight (translated from Japanese to English to allow everyone understanding the specs): -It's important to note that in the Japanese translation, the term "roman text" has been replaced with "half-width alphanumeric text," and a new requirement has been explicitly introduced for "Japanese full-width characters." +>TRANSLATION NOTE +>In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." -Since distinguishing between half-width alphanumeric text and full-width characters is not straightforward, the decision has been made to adopt the Unicode standard for [CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF as the basis for this distinction. +Assuming all CJK characters pose similar contrast challanges, we've extended the Japanese equivalent size definition to the whole CJK characters set defined in the [Unicode standard](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF. From 5cac272c3fc8649e1ad3a8c242087e0f59eff315 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:36:39 +0200 Subject: [PATCH 08/40] added bold for consistency --- pages/glossary/large-scale-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 503adb995a5..08d8de76aeb 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -17,7 +17,7 @@ For CJK (Chinese, Japanese and Korean) characters with a [computed](https://www. - at least 22 [points](https://www.w3.org/TR/css-values/#pt), or - at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. -Notes: +**Notes:** The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK characters. According to WCAG: >[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts From 546a5a379f7c7a1a7f38169a2d71a8edb0a67032 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:39:38 +0200 Subject: [PATCH 09/40] polishing the definition --- pages/glossary/large-scale-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 08d8de76aeb..483711827a6 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -26,4 +26,4 @@ Since there is no official WCAG definition of **equivalent size** for CJK charac >TRANSLATION NOTE >In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." -Assuming all CJK characters pose similar contrast challanges, we've extended the Japanese equivalent size definition to the whole CJK characters set defined in the [Unicode standard](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF. +Assuming all CJK characters pose similar contrast challanges, this definition extends the Japanese requirement to the whole CJK characters set included in the [Unicode standard](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF. From 3107c192b32a67ccd0bd1f78d413dc8c91d89f30 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:08:32 +0200 Subject: [PATCH 10/40] adding passed and failed examples --- _rules/text-contrast-afw4f7.md | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/_rules/text-contrast-afw4f7.md b/_rules/text-contrast-afw4f7.md index 00af35f262c..8e92b6053b5 100755 --- a/_rules/text-contrast-afw4f7.md +++ b/_rules/text-contrast-afw4f7.md @@ -189,6 +189,36 @@ This text is using the default user agent text color and background color. By de
+ 中国語、日本語、及び韓国語 +
+``` + +#### Passed Example 13 + +This 22pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. + +```html ++ 中国語、日本語、及び韓国語 +
+``` + +#### Passed Example 14 + +This 19pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. + +```html ++ 「ロック・アンド・ロール」 +
+``` + ### Failed #### Failed Example 1 @@ -304,6 +334,26 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1.+ 中国語、日本語、及び韓国語 +
+``` + +#### Failed Example 12 + +This 20pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since for CJK languages, 20pt is not [large scale text][], the example fails the rule. + +```html ++ 中国語、日本語、及び韓国語 +
+``` + ### Inapplicable #### Inapplicable Example 1 From c9889a797c8c98b80dbf88b5dbdfa31b9547d094 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:11:10 +0200 Subject: [PATCH 11/40] fixes --- _rules/text-contrast-afw4f7.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_rules/text-contrast-afw4f7.md b/_rules/text-contrast-afw4f7.md index 8e92b6053b5..71b27d0baf6 100755 --- a/_rules/text-contrast-afw4f7.md +++ b/_rules/text-contrast-afw4f7.md @@ -211,10 +211,10 @@ This 22pt black Japanese text has a contrast ratio of 3.6:1 on the gray backgrou #### Passed Example 14 -This 19pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. +This 18pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. ```html -+
「ロック・アンド・ロール」
``` @@ -339,7 +339,7 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1. This 16pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since for CJK languages, 16pt bold is not [large scale text][], the example fails the rule. ```html -+
中国語、日本語、及び韓国語
``` @@ -349,7 +349,7 @@ This 16pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray bac This 20pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since for CJK languages, 20pt is not [large scale text][], the example fails the rule. ```html -+
中国語、日本語、及び韓国語
``` From 4aaa207383075acd409d8f79a15b0fcdbfecbb15 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:25:35 +0200 Subject: [PATCH 12/40] cjk --- _rules/text-contrast-enhanced-09o5cg.md | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/_rules/text-contrast-enhanced-09o5cg.md b/_rules/text-contrast-enhanced-09o5cg.md index 4f3a11e9700..205a49e67a3 100644 --- a/_rules/text-contrast-enhanced-09o5cg.md +++ b/_rules/text-contrast-enhanced-09o5cg.md @@ -183,6 +183,36 @@ This text is using the default user agent text color and background color. By de+ 中国語、日本語、及び韓国語 +
+``` + +#### Passed Example 12 + +This 22pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. + +```html ++ 中国語、日本語、及び韓国語 +
+``` + +#### Passed Example 13 + +This 18pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. + +```html ++ 「ロック・アンド・ロール」 +
+``` + ### Failed #### Failed Example 1 @@ -328,6 +358,26 @@ This text in a [semantic button][semantic role] has a contrast ratio of 6.4:1.+ 中国語、日本語、及び韓国語 +
+``` + +#### Failed Example 15 + +This 20pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 7:1. + +```html ++ 中国語、日本語、及び韓国語 +
+``` + ### Inapplicable #### Inapplicable Example 1 From ab17360594e32bf24929158f9e2029ad9acd986c Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:26:59 +0200 Subject: [PATCH 13/40] fixes --- _rules/text-contrast-afw4f7.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_rules/text-contrast-afw4f7.md b/_rules/text-contrast-afw4f7.md index 71b27d0baf6..7e5e68d09c3 100755 --- a/_rules/text-contrast-afw4f7.md +++ b/_rules/text-contrast-afw4f7.md @@ -336,7 +336,7 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1. #### Failed Example 11 -This 16pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since for CJK languages, 16pt bold is not [large scale text][], the example fails the rule. +This 14pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since 14pt bold is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. ```html@@ -346,10 +346,10 @@ This 16pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray bac #### Failed Example 12 -This 20pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since for CJK languages, 20pt is not [large scale text][], the example fails the rule. +This 18pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. ```html -
+
中国語、日本語、及び韓国語
``` From 00b0ccaa0995b4d25ab7bac16967b64bcb0a283b Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:35:00 +0200 Subject: [PATCH 14/40] add lang="ja" for Japanese examples in min contrast rule --- _rules/text-contrast-afw4f7.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_rules/text-contrast-afw4f7.md b/_rules/text-contrast-afw4f7.md index 7e5e68d09c3..82c3022ed2f 100755 --- a/_rules/text-contrast-afw4f7.md +++ b/_rules/text-contrast-afw4f7.md @@ -194,7 +194,7 @@ This text is using the default user agent text color and background color. By de This 18pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray background. ```html -+
中国語、日本語、及び韓国語
``` @@ -204,7 +204,7 @@ This 18pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray bac This 22pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. ```html -+
中国語、日本語、及び韓国語
``` @@ -214,7 +214,7 @@ This 22pt black Japanese text has a contrast ratio of 3.6:1 on the gray backgrou This 18pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. ```html -+
「ロック・アンド・ロール」
``` @@ -339,7 +339,7 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1. This 14pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since 14pt bold is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. ```html -+
中国語、日本語、及び韓国語
``` @@ -349,7 +349,7 @@ This 14pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray bac This 18pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. ```html -+
中国語、日本語、及び韓国語
``` From 18348768b982da82832386cecc5730b180a0d6e7 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:37:06 +0200 Subject: [PATCH 15/40] add lang="ja" for Japanese sentences in contrast enhanced --- _rules/text-contrast-enhanced-09o5cg.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_rules/text-contrast-enhanced-09o5cg.md b/_rules/text-contrast-enhanced-09o5cg.md index 205a49e67a3..bd195c6a869 100644 --- a/_rules/text-contrast-enhanced-09o5cg.md +++ b/_rules/text-contrast-enhanced-09o5cg.md @@ -188,7 +188,7 @@ This text is using the default user agent text color and background color. By de This 18pt bold black Japanese text has a contrast ratio of 4.6:1 on the gray background. ```html -+
中国語、日本語、及び韓国語
``` @@ -198,7 +198,7 @@ This 18pt bold black Japanese text has a contrast ratio of 4.6:1 on the gray bac This 22pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. ```html -+
中国語、日本語、及び韓国語
``` @@ -208,7 +208,7 @@ This 22pt black Japanese text has a contrast ratio of 4.6:1 on the gray backgrou This 18pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. ```html -+
「ロック・アンド・ロール」
``` @@ -363,7 +363,7 @@ This text in a [semantic button][semantic role] has a contrast ratio of 6.4:1. This 16pt bold black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since 14pt bold is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 7:1. ```html -+
中国語、日本語、及び韓国語
``` @@ -373,7 +373,7 @@ This 16pt bold black Japanese text has a contrast ratio of 4.6:1 on the gray bac This 20pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 7:1. ```html -+
中国語、日本語、及び韓国語
``` From 6aaa18db483fddef66ae665c192f781602c6c13c Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 09:28:15 +0200 Subject: [PATCH 16/40] accepted Wilco suggestion with few edits --- pages/glossary/large-scale-text.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 483711827a6..3000aa39e96 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -13,17 +13,22 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or - at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. -For CJK (Chinese, Japanese and Korean) characters with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: -- at least 22 [points](https://www.w3.org/TR/css-values/#pt), or -- at least 18 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. -**Notes:** -The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) lacks clarity regarding the equivalent [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) for CJK characters. According to WCAG: ->[large scale (text)](https://www.w3.org/TR/WCAG21/#dfn-large-scale): with at least 18 point or 14 point bold or font size that would yield equivalent size for Chinese, Japanese and Korean (CJK) fonts +**Exception**: +If the text nodes contain Unicode characters in the 4E00–9FFF range, these characters are: + +- at least 22 [points][], or +- at least 18 [points][] and a [computed][] [font weight][] CSS property of 700 or higher. -Since there is no official WCAG definition of **equivalent size** for CJK characters, we rely on the guidelines provided in the [Japanese translation of the WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This document offers the following insight (translated from Japanese to English to allow everyone understanding the specs): +**Notes:** +The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) includes an exception for CJK (Chinese, Japanese, and Korean) fonts. The Unicode range 4E00–9FFF includes these characters. The "equivalent size" numbers are not included in WCAG, and come from the [Official Japanese Translation of WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insight (translated from Japanese to English to allow everyone understanding the specs): ->TRANSLATION NOTE ->In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable." +> TRANSLATION NOTE +> In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. Assuming all CJK characters pose similar contrast challanges, this definition extends the Japanese requirement to the whole CJK characters set included in the [Unicode standard](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF. + +[computed]: https://www.w3.org/TR/css-cascade-3/#computed-value +[font-size]: https://www.w3.org/TR/css-fonts-3/#propdef-font-size +[points]: https://www.w3.org/TR/css-values/#pt +[font weight]: https://www.w3.org/TR/css-fonts-3/#font-weight-prop From a8d629362282cd44a0699c5bf9fde9f2f5542fa4 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 09:32:49 +0200 Subject: [PATCH 17/40] Update large-scale-text.md --- pages/glossary/large-scale-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 3000aa39e96..39e660f52b2 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -15,7 +15,7 @@ Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value **Exception**: -If the text nodes contain Unicode characters in the 4E00–9FFF range, these characters are: +If the text nodes contain Unicode characters in the 4E00–9FFF range ([CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf)), these characters are: - at least 22 [points][], or - at least 18 [points][] and a [computed][] [font weight][] CSS property of 700 or higher. From 61d9e74ee5bc2c9a21efc786c5b102b721a45b78 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 09:38:45 +0200 Subject: [PATCH 18/40] added words to dictionary --- __tests__/spelling-ignore.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__tests__/spelling-ignore.yml b/__tests__/spelling-ignore.yml index f3078a8b641..a00513b7ea9 100644 --- a/__tests__/spelling-ignore.yml +++ b/__tests__/spelling-ignore.yml @@ -97,6 +97,7 @@ - de-hello - 14pt - 18pt +- 22pt - Helvetica - DeviceOrientation - fieldsets @@ -123,6 +124,7 @@ # Notes and acronyms - TODO - TBD +- CJK # Tool and library names - axe-core From 27245697b82852908736fd4ff7bc337ee578e9c2 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 09:47:37 +0200 Subject: [PATCH 19/40] Update spelling-ignore.yml --- __tests__/spelling-ignore.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__tests__/spelling-ignore.yml b/__tests__/spelling-ignore.yml index a00513b7ea9..50fa91a673d 100644 --- a/__tests__/spelling-ignore.yml +++ b/__tests__/spelling-ignore.yml @@ -241,6 +241,8 @@ - 000B - 000C - 000D +- 4E00 +- 9FFF # JSON attributes/ metadata/ methods - testcases From 7fcae6354401fca1e6d956a4f579480661e514ef Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 09:49:04 +0200 Subject: [PATCH 20/40] Update large-scale-text.md --- pages/glossary/large-scale-text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 39e660f52b2..2593e68df14 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -8,10 +8,10 @@ input_aspects: - DOM tree --- -Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of: +Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size][] of: - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or -- at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher. +- at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight][] CSS property of 700 or higher. **Exception**: From 41aba7f3a0bfd43ad1e33bac78b45c30e13a6e7a Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:01:11 +0200 Subject: [PATCH 21/40] typo --- pages/glossary/large-scale-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 2593e68df14..6a50f4f06e5 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -26,7 +26,7 @@ The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-larg > TRANSLATION NOTE > In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. -Assuming all CJK characters pose similar contrast challanges, this definition extends the Japanese requirement to the whole CJK characters set included in the [Unicode standard](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF. +Assuming all CJK characters pose similar contrast challenges, this definition extends the Japanese requirement to the whole CJK characters set included in the [Unicode standard](https://unicode.org/charts/PDF/U4E00.pdf) within the range of 4E00–9FFF. [computed]: https://www.w3.org/TR/css-cascade-3/#computed-value [font-size]: https://www.w3.org/TR/css-fonts-3/#propdef-font-size From 66e806c7b554e293dca1c35f8694e75e9a086a21 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:29:36 +0200 Subject: [PATCH 22/40] Update spelling-ignore.yml --- __tests__/spelling-ignore.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/spelling-ignore.yml b/__tests__/spelling-ignore.yml index 50fa91a673d..d7e8981373e 100644 --- a/__tests__/spelling-ignore.yml +++ b/__tests__/spelling-ignore.yml @@ -243,6 +243,7 @@ - 000D - 4E00 - 9FFF +- 4E00–9FFF # JSON attributes/ metadata/ methods - testcases From 9934e0391264300aa8bc60c8cbf94136cf930e75 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:36:02 +0200 Subject: [PATCH 23/40] Apply suggestions from code review Co-authored-by: Jean-Yves Moyendiff --git a/_rules/text-contrast-enhanced-09o5cg.md b/_rules/text-contrast-enhanced-09o5cg.md index bd195c6a869..78053d5f2a9 100644 --- a/_rules/text-contrast-enhanced-09o5cg.md +++ b/_rules/text-contrast-enhanced-09o5cg.md @@ -205,7 +205,7 @@ This 22pt black Japanese text has a contrast ratio of 4.6:1 on the gray backgrou #### Passed Example 13 -This 18pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, it's passing the rule. +This 18pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, this is [large scale text][] and passes the rule. ```html
From 4ded3097db282b8d0b6dbfc67a41f34318ddca81 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:54:07 +0200 Subject: [PATCH 24/40] official to unofficial --- pages/glossary/large-scale-text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 6a50f4f06e5..3c9fe13b727 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -21,7 +21,7 @@ If the text nodes contain Unicode characters in the 4E00–9FFF range ([CJK Unif - at least 18 [points][] and a [computed][] [font weight][] CSS property of 700 or higher. **Notes:** -The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) includes an exception for CJK (Chinese, Japanese, and Korean) fonts. The Unicode range 4E00–9FFF includes these characters. The "equivalent size" numbers are not included in WCAG, and come from the [Official Japanese Translation of WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insight (translated from Japanese to English to allow everyone understanding the specs): +The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) includes an exception for CJK (Chinese, Japanese, and Korean) fonts. The Unicode range 4E00–9FFF includes these characters. The "equivalent size" numbers are not included in WCAG, and come from the [Unofficial Japanese Translation of WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insight (translated from Japanese to English to allow everyone understanding the specs): > TRANSLATION NOTE > In the case of Japanese full-width characters, 22 point or 18 point bold type is considered to be the "equivalent" size, based on the First Report of the Enlarged Textbook Promotion Council, "Chapter 2 Standards for Enlarged Textbooks." is reasonable. From 44b691be285f83c5b40fdc643b1d96888cef8bb7 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:56:53 +0200 Subject: [PATCH 25/40] Update large-scale-text.md --- pages/glossary/large-scale-text.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 3c9fe13b727..073353c92f7 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -8,17 +8,17 @@ input_aspects: - DOM tree --- -Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size][] of: +A text node is large scale text if its [computed][] [font-size][] is: - at least 18 [points](https://www.w3.org/TR/css-values/#pt), or -- at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight][] CSS property of 700 or higher. +- at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight][] of 700 or higher. **Exception**: -If the text nodes contain Unicode characters in the 4E00–9FFF range ([CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf)), these characters are: +A text node containing Unicode characters in the 4E00–9FFF range ([CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf)) is large scale text if its [computed][] [font-size][] is: - at least 22 [points][], or -- at least 18 [points][] and a [computed][] [font weight][] CSS property of 700 or higher. +- at least 18 [points][] and a [computed][] [font weight][] of 700 or higher. **Notes:** The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) includes an exception for CJK (Chinese, Japanese, and Korean) fonts. The Unicode range 4E00–9FFF includes these characters. The "equivalent size" numbers are not included in WCAG, and come from the [Unofficial Japanese Translation of WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insight (translated from Japanese to English to allow everyone understanding the specs): From caaa73a637711b87cf91db01d6568e4ef8077981 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:09:12 +0200 Subject: [PATCH 26/40] Update large-scale-text.md --- pages/glossary/large-scale-text.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/glossary/large-scale-text.md b/pages/glossary/large-scale-text.md index 073353c92f7..01fa100ac2c 100755 --- a/pages/glossary/large-scale-text.md +++ b/pages/glossary/large-scale-text.md @@ -8,17 +8,17 @@ input_aspects: - DOM tree --- -A text node is large scale text if its [computed][] [font-size][] is: +A text node is large scale text if at least one of the following is true: -- at least 18 [points](https://www.w3.org/TR/css-values/#pt), or -- at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight][] of 700 or higher. +- the text node [computed][] [font-size][] is at least 18 [points](https://www.w3.org/TR/css-values/#pt), or +- the text node [computed][] [font-size][] is at least 14 [points](https://www.w3.org/TR/css-values/#pt) and has a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight][] of 700 or higher. **Exception**: -A text node containing Unicode characters in the 4E00–9FFF range ([CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf)) is large scale text if its [computed][] [font-size][] is: +A text node containing Unicode characters in the 4E00–9FFF range ([CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf)) is large scale text if at least one of the following is true: -- at least 22 [points][], or -- at least 18 [points][] and a [computed][] [font weight][] of 700 or higher. +- the text node [computed][] [font-size][] is at least 22 [points][], or +- the text node [computed][] [font-size][] is at least 18 [points][] and has a [computed][] [font weight][] of 700 or higher. **Notes:** The WCAG definition of [large scale text](https://www.w3.org/TR/WCAG21/#dfn-large-scale) includes an exception for CJK (Chinese, Japanese, and Korean) fonts. The Unicode range 4E00–9FFF includes these characters. The "equivalent size" numbers are not included in WCAG, and come from the [Unofficial Japanese Translation of WCAG 2.1](https://waic.jp/translations/WCAG21/#dfn-large-scale). This translation offers the following insight (translated from Japanese to English to allow everyone understanding the specs): From 2f0e9771d8f1773e484beac56693d9288588dd2e Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 28 Sep 2023 18:22:26 +0200 Subject: [PATCH 27/40] replaced Japanese with Chinese --- _rules/text-contrast-afw4f7.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_rules/text-contrast-afw4f7.md b/_rules/text-contrast-afw4f7.md index 59aaee08d26..da5845e562e 100755 --- a/_rules/text-contrast-afw4f7.md +++ b/_rules/text-contrast-afw4f7.md @@ -201,11 +201,11 @@ This 18pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray bac #### Passed Example 13 -This 22pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. +This 22pt black Chinese text has a contrast ratio of 3.6:1 on the gray background. ```html
- 中国語、日本語、及び韓国語 + 内容无障碍指南
``` @@ -346,11 +346,11 @@ This 14pt bold black Japanese text has a contrast ratio of 3.6:1 on the gray bac #### Failed Example 12 -This 18pt black Japanese text has a contrast ratio of 3.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. +This 18pt black Chinese text has a contrast ratio of 3.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. ```html- 中国語、日本語、及び韓国語 + 内容无障碍指南
``` From 70bb0cccfa14082f6a8d9c2dac3d0fa3a9f60d55 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Thu, 28 Sep 2023 18:23:54 +0200 Subject: [PATCH 28/40] replaced Japanese with Chinese example --- _rules/text-contrast-enhanced-09o5cg.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_rules/text-contrast-enhanced-09o5cg.md b/_rules/text-contrast-enhanced-09o5cg.md index 78053d5f2a9..251d99029e0 100644 --- a/_rules/text-contrast-enhanced-09o5cg.md +++ b/_rules/text-contrast-enhanced-09o5cg.md @@ -195,11 +195,11 @@ This 18pt bold black Japanese text has a contrast ratio of 4.6:1 on the gray bac #### Passed Example 12 -This 22pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. +This 22pt black Chinese text has a contrast ratio of 4.6:1 on the gray background. ```html- 中国語、日本語、及び韓国語 + 内容无障碍指南
``` @@ -370,11 +370,11 @@ This 16pt bold black Japanese text has a contrast ratio of 4.6:1 on the gray bac #### Failed Example 15 -This 20pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 7:1. +This 20pt black Chinese text has a contrast ratio of 4.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 7:1. ```html- 中国語、日本語、及び韓国語 + 内容无障碍指南
``` From 8b1c88aea1b6151a13331391a9b9efa614b91432 Mon Sep 17 00:00:00 2001 From: Wilco Fiers- 「ロック・アンド・ロール」 -
-``` - ### Failed #### Failed Example 1 @@ -328,26 +318,6 @@ This text in a [semantic button][semantic role] has a contrast ratio of 3.85:1.- 中国語、日本語、及び韓国語 -
-``` - -#### Failed Example 12 - -This 18pt black Chinese text has a contrast ratio of 3.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 4.5:1. - -```html -- 内容无障碍指南 -
-``` - ### Inapplicable #### Inapplicable Example 1 From 7d4f76d619c7bbe97722f20d60a82d9cba7ea87b Mon Sep 17 00:00:00 2001 From: Giacomo Petri- 中国語、日本語、及び韓国語 -
-``` - -#### Passed Example 12 - -This 22pt black Chinese text has a contrast ratio of 4.6:1 on the gray background. - -```html -- 内容无障碍指南 -
-``` - -#### Passed Example 13 - -This 18pt black Japanese text has a contrast ratio of 4.6:1 on the gray background. Since the characters composing the sentence are not included within the Unicode standard range of 4E00–9FFF, this is [large scale text][] and passes the rule. - -```html -- 「ロック・アンド・ロール」 -
-``` - ### Failed #### Failed Example 1 @@ -358,26 +328,6 @@ This text in a [semantic button][semantic role] has a contrast ratio of 6.4:1.- 中国語、日本語、及び韓国語 -
-``` - -#### Failed Example 15 - -This 20pt black Chinese text has a contrast ratio of 4.6:1 on the gray background. Since 18pt is not [large scale text][] for the Unicode Standard with range 4E00–9FFF, the minimum contrast ratio requirement is 7:1. - -```html -- 内容无障碍指南 -
-``` - ### Inapplicable #### Inapplicable Example 1 From eace06106e0de38c81ec6fdea595e82ab456df5d Mon Sep 17 00:00:00 2001 From: Giacomo Petri- 中国語、日本語、及び韓国語 -
-``` - -#### Passed Example 13 - -This 22pt black Chinese text has a contrast ratio of 3.6:1 on the gray background. - -```html -- 内容无障碍指南 -
-``` - ### Failed #### Failed Example 1 From 496f0bf82cdc174fbc99c8dc9953f68fde51c934 Mon Sep 17 00:00:00 2001 From: Giacomo Petri