CINXE.COM
Bengali Gap Analysis
<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <meta name="generator" content="ReSpec 35.1.2"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <style> dfn{cursor:pointer} .dfn-panel{position:absolute;z-index:35;min-width:300px;max-width:500px;padding:.5em .75em;margin-top:.6em;font-family:"Helvetica Neue",sans-serif;font-size:small;background:#fff;background:var(--indextable-hover-bg,#fff);color:#000;color:var(--text,#000);box-shadow:0 1em 3em -.4em rgba(0,0,0,.3),0 0 1px 1px rgba(0,0,0,.05);box-shadow:0 1em 3em -.4em var(--tocsidebar-shadow,rgba(0,0,0,.3)),0 0 1px 1px var(--tocsidebar-shadow,rgba(0,0,0,.05));border-radius:2px} .dfn-panel:not(.docked)>.caret{position:absolute;top:-9px} .dfn-panel:not(.docked)>.caret::after,.dfn-panel:not(.docked)>.caret::before{content:"";position:absolute;border:10px solid transparent;border-top:0;border-bottom:10px solid #fff;border-bottom-color:var(--indextable-hover-bg,#fff);top:0} .dfn-panel:not(.docked)>.caret::before{border-bottom:9px solid #a2a9b1;border-bottom-color:var(--indextable-hover-bg,#a2a9b1)} .dfn-panel *{margin:0} .dfn-panel b{display:block;color:#000;color:var(--text,#000);margin-top:.25em} .dfn-panel ul a[href]{color:#333;color:var(--text,#333)} .dfn-panel>div{display:flex} .dfn-panel a.self-link{font-weight:700;margin-right:auto} .dfn-panel .marker{padding:.1em;margin-left:.5em;border-radius:.2em;text-align:center;white-space:nowrap;font-size:90%;color:#040b1c} .dfn-panel .marker.dfn-exported{background:#d1edfd;box-shadow:0 0 0 .125em #1ca5f940} .dfn-panel .marker.idl-block{background:#8ccbf2;box-shadow:0 0 0 .125em #0670b161} .dfn-panel a:not(:hover){text-decoration:none!important;border-bottom:none!important} .dfn-panel a[href]:hover{border-bottom-width:1px} .dfn-panel ul{padding:0} .dfn-panel li{margin-left:1em} .dfn-panel.docked{position:fixed;left:.5em;top:unset;bottom:2em;margin:0 auto;max-width:calc(100vw - .75em * 2 - .5em - .2em * 2);max-height:30vh;overflow:auto} </style> <title>Bengali Gap Analysis</title> <style> body { font-size: 15px; } h2 { margin-left: 0; margin-top: 8em; } h3 { margin-top: 3em; } h3 a { color: #006; } h3 a:link { color: #006; } h3 a:active { color: #006; } h3 a:visited { color: #006; } h4 { margin-left: 0; font-size:1.1rem !important; color: brown; } h5 { margin-top: 1rem !important; border-block-end:1px solid #ccc !important; width:100% !important; font-style:normal !important; } .status_prompt { font-style: italic; color: #aaa; font-size: 90%; margin-bottom: 4em; } .issueLink { font-weight:bold; padding:.5rem 1rem; border-radius:.2rem; } .ok { border-left: 5em solid green; padding-left: 2em; } .ok:after { content: 'OK'; color: gray; font-weight: normal; font-size: 120%; } .okIssue { background-color: green; color:antiquewhite; } .issueLink.okIssue:visited, .issueLink.basicIssue:link { color: antiquewhite; } .na { border-left: 5em solid green; padding-left: 2em; } .na:after { content: 'Not applicable'; color: gray; font-weight: normal; font-size: 120%; } .naIssue { background-color: green; color:antiquewhite; } .issueLink.naIssue:visited, .issueLink.basicIssue:link { color: antiquewhite; } .advanced { border-left: 5em solid #0f0; padding-left: 2em; } .advanced { border-left: 5em solid moccasin; padding-left: 2em; } .advanced:after { content: 'Needs work for advanced level support.'; color: gray; font-weight: normal; font-size: 120%; } .advancedIssue { background-color: moccasin; color:chocolate; } .issueLink.advancedIssue:visited, .issueLink.basicIssue:link { color: chocolate; } .basic { border-left: 5em solid orange; padding-left: 2em; } .basic:after { content: 'Needs work for basic styling support.'; color: gray; font-weight: normal; font-size: 120%; } .basicIssue { background-color: orange; color:antiquewhite; } .issueLink.basicIssue:visited, .issueLink.basicIssue:link { color: antiquewhite; } .broken { border-left: 5em solid red; padding-left: 2em; } .broken:after { content: 'Basic display issues that prevent effective use on the Web for this language.'; color: gray; font-weight: normal; font-size: 120%; } .brokenIssue { background-color: red; color:antiquewhite; } .issueLink.brokenIssue:visited, .issueLink.basicIssue:link { color: antiquewhite; } .tbd { border-left: 5em solid #eee; padding-left: 2em; } .tbd:after { content: 'Needs research.'; color: gray; font-weight: normal; font-size: 120%; } .pass { background-color:greenyellow; padding: 0 4px; border-radius: 2px; } .fail { padding: 0 4px; color: white; background-color: crimson; border-radius: 2px; } .partial { background-color: orange; padding: 0 4px; color: white; } .reviewme:after { content: "Needs review"; margin-left: 2em; background-color: crimson; color: white; font-size: 80%; padding: .2em .4em; border-radius: .2em; } .subhead { display: block; font-weight: bold; } .ghLink { margin-block-start: 0; float: right; font-size: 90%; } .languageData { margin-block-start: -.2rem; font-style: italic; color: #aaa; font-size: 90%; margin-bottom: 4em; } .issueScore { display: none; color: #ddd; } </style> <style id="respec-mainstyle"> @keyframes pop{ 0%{transform:scale(1,1)} 25%{transform:scale(1.25,1.25);opacity:.75} 100%{transform:scale(1,1)} } a.internalDFN{color:inherit;border-bottom:1px solid #99c;text-decoration:none} a.externalDFN{color:inherit;border-bottom:1px dotted #ccc;text-decoration:none} a.bibref{text-decoration:none} .respec-offending-element:target{animation:pop .25s ease-in-out 0s 1} .respec-offending-element,a[href].respec-offending-element{text-decoration:red wavy underline} @supports not (text-decoration:red wavy underline){ .respec-offending-element:not(pre){display:inline-block} .respec-offending-element{background:url(data:image/gif;base64,R0lGODdhBAADAPEAANv///8AAP///wAAACwAAAAABAADAEACBZQjmIAFADs=) bottom repeat-x} } #references :target{background:#eaf3ff;animation:pop .4s ease-in-out 0s 1} cite .bibref{font-style:normal} a[href].orcid{padding-left:4px;padding-right:4px} a[href].orcid>svg{margin-bottom:-2px} ol.tof,ul.tof{list-style:none outside none} .caption{margin-top:.5em;font-style:italic} #issue-summary>ul{column-count:2} #issue-summary li{list-style:none;display:inline-block} details.respec-tests-details{margin-left:1em;display:inline-block;vertical-align:top} details.respec-tests-details>*{padding-right:2em} details.respec-tests-details[open]{z-index:999999;position:absolute;border:thin solid #cad3e2;border-radius:.3em;background-color:#fff;padding-bottom:.5em} details.respec-tests-details[open]>summary{border-bottom:thin solid #cad3e2;padding-left:1em;margin-bottom:1em;line-height:2em} details.respec-tests-details>ul{width:100%;margin-top:-.3em} details.respec-tests-details>li{padding-left:1em} .self-link:hover{opacity:1;text-decoration:none;background-color:transparent} aside.example .marker>a.self-link{color:inherit} .header-wrapper{display:flex;align-items:baseline} :is(h2,h3,h4,h5,h6):not(#toc>h2,#abstract>h2,#sotd>h2,.head>h2){position:relative;left:-.5em} :is(h2,h3,h4,h5,h6):not(#toch2)+a.self-link{color:inherit;order:-1;position:relative;left:-1.1em;font-size:1rem;opacity:.5} :is(h2,h3,h4,h5,h6)+a.self-link::before{content:"§";text-decoration:none;color:var(--heading-text)} :is(h2,h3)+a.self-link{top:-.2em} :is(h4,h5,h6)+a.self-link::before{color:#000} @media (max-width:767px){ dd{margin-left:0} } @media print{ .removeOnSave{display:none} } </style> <meta name="color-scheme" content="light"> <meta name="description" content="This document describes and prioritises gaps for the support of the Bengali script on the Web and in eBooks. In particular, it is concerned with text layout. It checks that needed features are supported in W3C specifications, such as HTML and CSS and those relating to digital publications. It also checks whether the features have been implemented in browsers and ereaders."> <link rel="canonical" href="https://www.w3.org/TR/beng-gap/"> <style> .hljs{--base:#fafafa;--mono-1:#383a42;--mono-2:#686b77;--mono-3:#717277;--hue-1:#0b76c5;--hue-2:#336ae3;--hue-3:#a626a4;--hue-4:#42803c;--hue-5:#ca4706;--hue-5-2:#c91243;--hue-6:#986801;--hue-6-2:#9a6a01} @media (prefers-color-scheme:dark){ .hljs{--base:#282c34;--mono-1:#abb2bf;--mono-2:#818896;--mono-3:#5c6370;--hue-1:#56b6c2;--hue-2:#61aeee;--hue-3:#c678dd;--hue-4:#98c379;--hue-5:#e06c75;--hue-5-2:#be5046;--hue-6:#d19a66;--hue-6-2:#e6c07b} } .hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;color:var(--mono-1,#383a42);background:#fafafa;background:var(--base,#fafafa)} .hljs-comment,.hljs-quote{color:#717277;color:var(--mono-3,#717277);font-style:italic} .hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4;color:var(--hue-3,#a626a4)} .hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#ca4706;color:var(--hue-5,#ca4706);font-weight:700} .hljs-literal{color:#0b76c5;color:var(--hue-1,#0b76c5)} .hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp,.hljs-string{color:#42803c;color:var(--hue-4,#42803c)} .hljs-built_in,.hljs-class .hljs-title{color:#9a6a01;color:var(--hue-6-2,#9a6a01)} .hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801;color:var(--hue-6,#986801)} .hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#336ae3;color:var(--hue-2,#336ae3)} .hljs-emphasis{font-style:italic} .hljs-strong{font-weight:700} .hljs-link{text-decoration:underline} </style> <style> var{position:relative;cursor:pointer} var[data-type]::after,var[data-type]::before{position:absolute;left:50%;top:-6px;opacity:0;transition:opacity .4s;pointer-events:none} var[data-type]::before{content:"";transform:translateX(-50%);border-width:4px 6px 0 6px;border-style:solid;border-color:transparent;border-top-color:#222} var[data-type]::after{content:attr(data-type);transform:translateX(-50%) translateY(-100%);background:#222;text-align:center;font-family:"Dank Mono","Fira Code",monospace;font-style:normal;padding:6px;border-radius:3px;color:#daca88;text-indent:0;font-weight:400} var[data-type]:hover::after,var[data-type]:hover::before{opacity:1} </style> <script id="initialUserConfig" type="application/json">{ "specStatus": "DNOTE", "noRecTrack": true, "shortName": "beng-gap", "copyrightStart": "2018", "edDraftURI": "https://w3c.github.io/iip/gap-analysis/beng-gap", "editors": [ { "name": "Richard Ishida", "mailto": "ishida@w3.org", "company": "W3C", "w3cid": 3439, "url": "mailto:ishida@w3.org" } ], "github": "w3c/iip", "group": "i18n", "preProcess": [ null, null ], "postProcess": [ null ], "langs": [ "Bangla", "Assamese", "Manipuri" ], "langTags": [ "bn", "as", "mni" ], "gapDocPath": "https://www.w3.org/TR/beng-gap/", "publishDate": "2024-09-20", "publishISODate": "2024-09-20T00:00:00.000Z", "generatedSubtitle": "W3C Group Draft Note 20 September 2024" }</script> <link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2021/W3C-DNOTE"></head> <body class="h-entry informative"><div class="head"> <p class="logos"><a class="logo" href="https://www.w3.org/"><img crossorigin="" alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a></p> <h1 id="title" class="title">Bengali Gap Analysis</h1> <p id="w3c-state"><a href="https://www.w3.org/standards/types#DNOTE">W3C Group Draft Note</a> <time class="dt-published" datetime="2024-09-20">20 September 2024</time></p> <details open=""> <summary>More details about this document</summary> <dl> <dt>This version:</dt><dd> <a class="u-url" href="https://www.w3.org/TR/2024/DNOTE-beng-gap-20240920/">https://www.w3.org/TR/2024/DNOTE-beng-gap-20240920/</a> </dd> <dt>Latest published version:</dt><dd> <a href="https://www.w3.org/TR/beng-gap/">https://www.w3.org/TR/beng-gap/</a> </dd> <dt>Latest editor's draft:</dt><dd><a href="https://w3c.github.io/iip/gap-analysis/beng-gap">https://w3c.github.io/iip/gap-analysis/beng-gap</a></dd> <dt>History:</dt><dd> <a href="https://www.w3.org/standards/history/beng-gap/">https://www.w3.org/standards/history/beng-gap/</a> </dd><dd> <a href="https://github.com/w3c/iip/commits/">Commit history</a> </dd> <dt>Editor:</dt><dd class="editor p-author h-card vcard" data-editor-id="3439"> <a class="ed_mailto u-email email p-name" href="mailto:ishida@w3.org">Richard Ishida</a> (<span class="p-org org h-org">W3C</span>) </dd> <dt>Feedback:</dt><dd> <a href="https://github.com/w3c/iip/">GitHub w3c/iip</a> (<a href="https://github.com/w3c/iip/pulls/">pull requests</a>, <a href="https://github.com/w3c/iip/issues/new/choose">new issue</a>, <a href="https://github.com/w3c/iip/issues/">open issues</a>) </dd> </dl> </details> <p class="copyright"> <a href="https://www.w3.org/policies/#copyright">Copyright</a> © 2018-2024 <a href="https://www.w3.org/">World Wide Web Consortium</a>. <abbr title="World Wide Web Consortium">W3C</abbr><sup>®</sup> <a href="https://www.w3.org/policies/#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/policies/#W3C_Trademarks">trademark</a> and <a rel="license" href="https://www.w3.org/copyright/software-license-2023/" title="W3C Software and Document Notice and License">permissive document license</a> rules apply. </p> <hr title="Separator for header"> </div> <section id="abstract" class="introductory"><h2>Abstract</h2> <p>This document describes and prioritises gaps for the support of the Bengali script on the Web and in eBooks. In particular, it is concerned with text layout. It checks that needed features are supported in <abbr title="World Wide Web Consortium">W3C</abbr> specifications, such as HTML and CSS and those relating to digital publications. It also checks whether the features have been implemented in browsers and ereaders.</p> </section> <div id="sotd" class="introductory"><h2>Status of This Document</h2><p><em>This section describes the status of this document at the time of its publication. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em></p> <p>This document describes and prioritises gaps for the support of the Bengali script on the Web and in eBooks. In particular, it is concerned with text layout. It checks that needed features are supported in <abbr title="World Wide Web Consortium">W3C</abbr> specifications, in particular HTML and CSS and those relating to digital publications. It also checks whether the features have been implemented in browsers and ereaders. It is linked to from the <a href="https://www.w3.org/International/typography/gap-analysis/language-matrix.html">language matrix</a> that tracks Web support for many languages.</p> <p>The editor's draft of this document is being developed in the GitHub repository <a href="https://w3c.github.io/eurlreq/home">Indian Language Enablement (eurlreq)</a>, with contributors from the <abbr title="World Wide Web Consortium">W3C</abbr> <a href="https://www.w3.org/International/i18n-activity/i18n-ig/">Internationalization Interest Group</a>. It is published by the <a href="https://www.w3.org/International/i18n-activity/i18n-wg/">Internationalization Working Group</a>. The end target for this document is a Working Group Note.</p> <p> This document was published by the <a href="https://www.w3.org/groups/wg/i18n-core">Internationalization Working Group</a> as a Group Draft Note using the <a href="https://www.w3.org/policies/process/20231103/#recs-and-notes">Note track</a>. </p><p>Group Draft Notes are not endorsed by <abbr title="World Wide Web Consortium">W3C</abbr> nor its Members. </p><p> This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress. </p><p data-deliverer="32113"> The <a href="https://www.w3.org/policies/patent-policy/"><abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a> does not carry any licensing requirements or commitments on this document. </p><p> This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/policies/process/20231103/">03 November 2023 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>. </p></div><nav id="toc"><h2 class="introductory" id="table-of-contents">Table of Contents</h2><ol class="toc"><li class="tocline"><a class="tocxref" href="#abstract">Abstract</a></li><li class="tocline"><a class="tocxref" href="#h_introduction"><bdi class="secno">1. </bdi>Introduction</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#contributors"><bdi class="secno">1.1 </bdi>Contributors</a></li><li class="tocline"><a class="tocxref" href="#about"><bdi class="secno">1.2 </bdi>About this document</a></li><li class="tocline"><a class="tocxref" href="#prioritization"><bdi class="secno">1.3 </bdi>Prioritization</a></li><li class="tocline"><a class="tocxref" href="#related"><bdi class="secno">1.4 </bdi>Related information</a></li></ol></li><li class="tocline"><a class="tocxref" href="#direction"><bdi class="secno">2. </bdi>Text direction</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#writing_mode"><bdi class="secno">2.1 </bdi>Writing mode</a></li><li class="tocline"><a class="tocxref" href="#bidi_text"><bdi class="secno">2.2 </bdi>Bidirectional text</a></li></ol></li><li class="tocline"><a class="tocxref" href="#h_shaping"><bdi class="secno">3. </bdi>Glyph shaping & positioning</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#fonts"><bdi class="secno">3.1 </bdi>Fonts & font styles</a></li><li class="tocline"><a class="tocxref" href="#glyphs"><bdi class="secno">3.2 </bdi>Context-based shaping and positioning</a></li><li class="tocline"><a class="tocxref" href="#letterforms"><bdi class="secno">3.3 </bdi>Letterform slopes, weights, & italics</a></li><li class="tocline"><a class="tocxref" href="#cursive"><bdi class="secno">3.4 </bdi>Cursive text</a></li><li class="tocline"><a class="tocxref" href="#transforms"><bdi class="secno">3.5 </bdi>Case & other character transforms</a></li></ol></li><li class="tocline"><a class="tocxref" href="#h_units"><bdi class="secno">4. </bdi>Typographic units</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#encoding"><bdi class="secno">4.1 </bdi>Characters & encoding</a></li><li class="tocline"><a class="tocxref" href="#segmentation"><bdi class="secno">4.2 </bdi>Grapheme/word segmentation & selection</a></li></ol></li><li class="tocline"><a class="tocxref" href="#h_inline"><bdi class="secno">5. </bdi>Punctuation & inline features</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#punctuation_etc"><bdi class="secno">5.1 </bdi>Phrase & section boundaries</a></li><li class="tocline"><a class="tocxref" href="#quotations"><bdi class="secno">5.2 </bdi>Quotations & citations</a></li><li class="tocline"><a class="tocxref" href="#emphasis"><bdi class="secno">5.3 </bdi>Emphasis & highlighting</a></li><li class="tocline"><a class="tocxref" href="#abbrev"><bdi class="secno">5.4 </bdi>Abbreviation, ellipsis & repetition</a></li><li class="tocline"><a class="tocxref" href="#inline_notes"><bdi class="secno">5.5 </bdi>Inline notes & annotations</a></li><li class="tocline"><a class="tocxref" href="#text_decoration"><bdi class="secno">5.6 </bdi>Text decoration & other inline features</a></li><li class="tocline"><a class="tocxref" href="#data_formats"><bdi class="secno">5.7 </bdi>Data formats & numbers</a></li></ol></li><li class="tocline"><a class="tocxref" href="#h_lines_and_paragraphs"><bdi class="secno">6. </bdi>Line and paragraph layout</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#line_breaking"><bdi class="secno">6.1 </bdi>Line breaking & hyphenation</a></li><li class="tocline"><a class="tocxref" href="#justification"><bdi class="secno">6.2 </bdi>Text alignment & justification</a></li><li class="tocline"><a class="tocxref" href="#spacing"><bdi class="secno">6.3 </bdi>Text spacing</a></li><li class="tocline"><a class="tocxref" href="#baselines"><bdi class="secno">6.4 </bdi>Baselines, line-height, etc</a></li><li class="tocline"><a class="tocxref" href="#lists"><bdi class="secno">6.5 </bdi>Lists, counters, etc.</a></li><li class="tocline"><a class="tocxref" href="#initials"><bdi class="secno">6.6 </bdi>Styling initials</a></li></ol></li><li class="tocline"><a class="tocxref" href="#h_pages"><bdi class="secno">7. </bdi>Page & book layout</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#page_layout"><bdi class="secno">7.1 </bdi>General page layout & progression</a></li><li class="tocline"><a class="tocxref" href="#grids_tables"><bdi class="secno">7.2 </bdi>Grids & tables</a></li><li class="tocline"><a class="tocxref" href="#footnotes_etc"><bdi class="secno">7.3 </bdi>Footnotes, endnotes, etc.</a></li><li class="tocline"><a class="tocxref" href="#headers_footers"><bdi class="secno">7.4 </bdi>Page headers, footers, etc.</a></li><li class="tocline"><a class="tocxref" href="#interaction"><bdi class="secno">7.5 </bdi>Forms & user interaction</a></li></ol></li><li class="tocline"><a class="tocxref" href="#h_other"><bdi class="secno">8. </bdi>Other</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#culturespecific"><bdi class="secno">8.1 </bdi>Culture-specific features</a></li><li class="tocline"><a class="tocxref" href="#other"><bdi class="secno">8.2 </bdi>What else?</a></li></ol></li></ol></nav> <section id="h_introduction"><div class="header-wrapper"><h2 id="x1-introduction"><bdi class="secno">1. </bdi>Introduction</h2><a class="self-link" href="#h_introduction" aria-label="Permalink for Section 1."></a></div> <section id="contributors"><div class="header-wrapper"><h3 id="x1-1-contributors"><bdi class="secno">1.1 </bdi>Contributors</h3><a class="self-link" href="#contributors" aria-label="Permalink for Section 1.1"></a></div> <p>This document was created by Richard Ishida.</p> <p>The following people contributed information to the gap reports in this document (in alphabetic order): Akshat Joshi, Hai Liang, John Hudson, Vivek Pani.</p> <p data-lang="en">See also the <a href="https://github.com/w3c/iip/graphs/contributors">GitHub contributors list</a> for the Indian Language Enablement project, and the <a href="https://github.com/w3c/iip/issues?q=is%3Aissue+label%3As%3Abeng">discussions related to the Bengali script</a>.</p> </section> <section id="about"><div class="header-wrapper"><h3 id="x1-2-about-this-document"><bdi class="secno">1.2 </bdi>About this document</h3><a class="self-link" href="#about" aria-label="Permalink for Section 1.2"></a></div> <p>The <abbr title="World Wide Web Consortium">W3C</abbr> needs to make sure that the needs of scripts and languages around the world are built in to technologies such as HTML, CSS, SVG, etc. so that Web pages and eBooks can look and behave as people expect around the world.</p> <p>This page documents difficulties that people encounter when trying to use languages written in the Bengali script on the Web.</p> <p>Having identified an issue, it investigates the current status with regards to web specifications and implementations by user agents (browsers, e-readers, etc.), and attempts to prioritise the severity of the issue for web users.</p> </section> <section id="prioritization"><div class="header-wrapper"><h3 id="x1-3-prioritization"><bdi class="secno">1.3 </bdi>Prioritization</h3><a class="self-link" href="#prioritization" aria-label="Permalink for Section 1.3"></a></div> <p>This document not only describes gaps, it also attempts to prioritise them in terms of the impact on the local user. The prioritisation is indicated by colour.</p> <p>Key:</p> <ul style="list-style-type: none;"> <li class="ok"></li> <li class="na"></li> <li class="advanced"></li> <li class="basic"></li> <li class="broken"></li> <li class="tbd"></li> </ul> <p>It is important to note that these colours do not indicate to what extent a particular feature is broken. They indicate the impact of a broken or missing feature on the content author or end user.</p> <p>Basic styling is the level that would be generally accepted as sufficient for most Web pages. Advanced level support would include additional features one might expect to include in ebooks or other advanced typographic formats. There may be features of a script or language that are not supported on the Web, but that are not generally regarded as necessary (usually archaic or obscure features). In this case, the feature can be described here, but the status should be marked as OK.</p> <p>The decision as to what priority level is assigned to a described gap is down to the experts doing the gap analysis. It may not always be straightforward to decide. If a given section in this document refers to more than one feature that is broken, each with different impacts on Web users, the priority for the section should be the lowest denominator.</p> <p>A cell can be scored as OK if the feature in question is specified in an appropriate specification, and is supported by user agents. A specification that is in CR or later and has two implementations in 'major' browsers will count. This means that the feature may not be supported in all browsers yet. (At some point in the future we may try to distinguish, visually, whether support is available in a specification but still pending in major browsers or applications.) </p> </section> <section id="related"><div class="header-wrapper"><h3 id="x1-4-related-information"><bdi class="secno">1.4 </bdi>Related information</h3><a class="self-link" href="#related" aria-label="Permalink for Section 1.4"></a></div> <p>A summary of this report and others can be found as part of the <a href="https://www.w3.org/International/typography/gap-analysis/language-matrix.html" target="_blank">Language Matrix</a>.</p> <p>Gap reports are brought to the attention of spec and browser implementers, and are tracked via the <a href="https://github.com/orgs/w3c/projects/95" target="_blank">Gap Analysis Pipeline</a>. (<a href="https://github.com/orgs/w3c/projects/95/views/1?filterQuery=label%3A%22s%3Abeng%22" target="_blank">Filter for Bengali script items</a>)</p> </section> </section> <section id="direction"><div class="header-wrapper"><h2 id="x2-text-direction"><bdi class="secno">2. </bdi>Text direction</h2><a class="self-link" href="#direction" aria-label="Permalink for Section 2."></a></div> <p>See also General page layout & progression for features such as column layout, page turning direction, etc. that are affected by text direction.</p> <section id="writing_mode" class="advanced"><div class="header-wrapper"><h3 id="x2-1-writing-mode"><bdi class="secno">2.1 </bdi>Writing mode</h3><a class="self-link" href="#writing_mode" aria-label="Permalink for Section 2.1"></a></div> <p id="prompt-writing_mode" class="status_prompt promptStub">In what direction does text flow along a line and across a page? (See the Bidirectional text section if the basic direction is right-to-left.) If the script uses vertically oriented text, what are the requirements? What about if you mix vertical text with scripts that are normally only horizontal? Do you need a switch to use different characters in vertical vs. horizontal text? Does the browser support short runs of horizontal text in vertical lines (tate-chu-yoko in Japanese) as expected? Is the orientation of characters and the directional ordering of characters supported as needed?</p> <div id="insert-writing_mode"><section id="issue70_writing_mode"> <div class="header-wrapper"><h4 id="x70-upright-text-in-vertical-lines-doesn-t-segment-correctly">#70 Upright text in vertical lines doesn't segment correctly</h4><a class="self-link" href="#issue70_writing_mode" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/70" class="issueLink advancedIssue">GitHub issue #70</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa</span> <span class="issueScore">2</span></p><p><i class="meta">This issue is applicable to many Indian languages.</i></p><p>When upright characters appear in vertical lines of text, browsers need to tailor grapheme cluster rules so that full orthographic syllables represented as conjuncts, are kept together.</p><p>See requirements at: <a href="https://w3c.github.io/ilreq/#h_vertical_arrangements_of_characters">Indic Layout Requirements</a>, but add to those the points made in <a href="https://www.w3.org/International/questions/qa-indic-graphemes.en">Typographic character units in complex scripts</a>.</p><p> </p><div class="header-wrapper"><h5 id="the-gap"> The GAP </h5><a class="self-link" href="#issue70_writing_mode" aria-label="Permalink for this Section"></a></div><span class="fail">Gecko</span> appears to segment on grapheme clusters. <span class="partial">Blink</span>, and <span class="partial">Webkit</span> keep conjuncts together. But all engines have problems with vowel-signs, especially but not only pre-base vowel-signs.<p></p><p></p><p></p><div class="header-wrapper"><h5 id="priority"> Priority </h5><a class="self-link" href="#issue70_writing_mode" aria-label="Permalink for this Section"></a></div>Marked as advanced, since vertical text is not a common use case. In writing sytems like modern Tamil, it is even less common, since conjuncts are rarely used.<p></p><p></p><p></p><div class="header-wrapper"><h5 id="tests"> Tests </h5><a class="self-link" href="#issue70_writing_mode" aria-label="Permalink for this Section"></a></div><i>Interactive test</i>, <a href="https://github.com/w3c/text_direction_tests/issues/10">When devanagari characters are rendered upright in vertical text, orthographic syllables containing conjuncts are kept together</a><br><p></p><p> </p><div class="header-wrapper"><h5 id="action-taken"> Action taken </h5><a class="self-link" href="#issue70_writing_mode" aria-label="Permalink for this Section"></a></div><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1829071">Gecko</a> • <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1434892">Blink</a> • <a href="https://bugs.webkit.org/show_bug.cgi?id=255710">Webkit</a><p></p><p> </p><div class="header-wrapper"><h5 id="outcomes"> Outcomes </h5><a class="self-link" href="#issue70_writing_mode" aria-label="Permalink for this Section"></a></div>tbd <p></p> </section> </div> </section> <section id="bidi_text" class="na"><div class="header-wrapper"><h3 id="x2-2-bidirectional-text"><bdi class="secno">2.2 </bdi>Bidirectional text</h3><a class="self-link" href="#bidi_text" aria-label="Permalink for Section 2.2"></a></div> <p id="prompt-bidi_text" class="status_prompt promptStub">If the general inline direction is right-to-left, are there any issues when handling that? Where the inline direction of text is mixed, is this bidirectional text adequately supported? What about numbers and expressions? Do the Unicode bidi controls and HTML markup provide the support needed? Is isolation of directional runs problematic?</p> <div id="insert-bidi_text"></div> </section> </section> <section id="h_shaping"><div class="header-wrapper"><h2 id="x3-glyph-shaping-positioning"><bdi class="secno">3. </bdi>Glyph shaping & positioning</h2><a class="self-link" href="#h_shaping" aria-label="Permalink for Section 3."></a></div> <section id="fonts" class="ok"><div class="header-wrapper"><h3 id="x3-1-fonts-font-styles"><bdi class="secno">3.1 </bdi>Fonts & font styles</h3><a class="self-link" href="#fonts" aria-label="Permalink for Section 3.1"></a></div> <p id="prompt-fonts" class="status_prompt promptStub">Do the standard fallback fonts used in browsers (eg. serif, sans-serif, cursive, etc.) match expectations? Are special font or OpenType features needed for this script that are not available?</p> <div id="insert-fonts"></div> </section> <section id="glyphs" class="ok"><div class="header-wrapper"><h3 id="x3-2-context-based-shaping-and-positioning"><bdi class="secno">3.2 </bdi>Context-based shaping and positioning</h3><a class="self-link" href="#glyphs" aria-label="Permalink for Section 3.2"></a></div> <p id="prompt-glyphs" class="status_prompt promptStub">Does the script in question require additional user control features to support alterations to the position or shape of glyphs, for example adjusting the distance between the base text and diacritics, or changing the glyphs used in a systematic way? Do you need to be able to compose/decompose conjuncts, or show characters that are otherwise hidden, etc?</p> <div id="insert-glyphs"></div> </section> <section id="letterforms" class="tbd"><div class="header-wrapper"><h3 id="x3-3-letterform-slopes-weights-italics"><bdi class="secno">3.3 </bdi>Letterform slopes, weights, & italics</h3><a class="self-link" href="#letterforms" aria-label="Permalink for Section 3.3"></a></div> <p id="prompt-letterforms" class="status_prompt promptStub">This covers ways of modifying the glyphs, such as for italicisation, bolding, oblique, etc. Do italic fonts lean in the right direction? Is synthesised italicisation problematic? Are there other problems relating to bolding or italicisation - perhaps relating to generalised assumptions of applicability?</p> <div id="insert-letterforms"></div> </section> <section id="cursive" class="advanced"><div class="header-wrapper"><h3 id="x3-4-cursive-text"><bdi class="secno">3.4 </bdi>Cursive text</h3><a class="self-link" href="#cursive" aria-label="Permalink for Section 3.4"></a></div> <p id="prompt-cursive" class="status_prompt promptStub">If this script is cursive (eg. Arabic, N’Ko, Syriac, etc), are there problems or needed features related to the handling of cursive text? Do cursive links break if parts of a word are marked up or styled? Do Unicode joiner and non-joiner characters behave as expected?</p> <div id="insert-cursive"><section id="issue139_cursive"> <div class="header-wrapper"><h4 id="x139-text-stroke-cuts-joining-glyphs-apart">#139 Text stroke cuts joining glyphs apart</h4><a class="self-link" href="#issue139_cursive" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/139" class="issueLink advancedIssue">GitHub issue #139</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn pa</span> <span class="issueScore">2</span></p><p><i class="meta">This issue is likely to apply to all cursive script text, but also to other scripts that have joins between letters.</i></p><p>When text stroke effects are applied to cursive text, they should not interrupt the cursive flow. For example, the following is problematic.</p><p><img src="images/153039565-773656ba-9a55-47d3-be14-a7c5a84e605d.png" width="300" alt="Devanagari text where the top bar is broken by text stroke."></p><p></p><p><b class="meta">For more details, see <a href="https://github.com/w3c/alreq/issues/220">this GitHub issue</a>, which is being used to track this gap. Please add any discussion there, and not to this issue.</b> </p> </section> </div> </section> <section id="transforms" class="ok"><div class="header-wrapper"><h3 id="x3-5-case-other-character-transforms"><bdi class="secno">3.5 </bdi>Case & other character transforms</h3><a class="self-link" href="#transforms" aria-label="Permalink for Section 3.5"></a></div> <p id="prompt-transforms" class="status_prompt promptStub">Does your script need special text transforms that are not supported? Does your script convert letters to uppercase, capitalised and lowercase alternatives according to your typographic needs? Do you need to to convert between half-width and full-width presentation forms?</p> <div id="insert-transforms"></div> </section> </section> <section id="h_units"><div class="header-wrapper"><h2 id="x4-typographic-units"><bdi class="secno">4. </bdi>Typographic units</h2><a class="self-link" href="#h_units" aria-label="Permalink for Section 4."></a></div> <section id="encoding" class="ok"><div class="header-wrapper"><h3 id="x4-1-characters-encoding"><bdi class="secno">4.1 </bdi>Characters & encoding</h3><a class="self-link" href="#encoding" aria-label="Permalink for Section 4.1"></a></div> <p id="prompt-encoding" class="status_prompt promptStub">Are there any character repertoire issues preventing use of this script on the Web? Do variation selectors need attention? Are there any other encoding-related issues?</p> <div id="insert-encoding"></div> </section> <section id="segmentation" class="basic"><div class="header-wrapper"><h3 id="x4-2-grapheme-word-segmentation-selection"><bdi class="secno">4.2 </bdi>Grapheme/word segmentation & selection</h3><a class="self-link" href="#segmentation" aria-label="Permalink for Section 4.2"></a></div> <p id="prompt-segmentation" class="status_prompt promptStub">This is about how text is divided into graphemes, words, sentences, etc., and behaviour associated with that. Do Unicode grapheme clusters appropriately segment character units for your script? When you double- or triple-click on the text, is the expected range of characters highlighted? When you move through the text with the cursor, or backspace, etc. do you see the expected behaviour? (Some of the answers to these questions may be picker up in other sections, such as line-breaking, or initial-letter styling.)</p> <div id="insert-segmentation"><section id="issue89_segmentation"> <div class="header-wrapper"><h4 id="x89-spans-around-partial-orthographic-syllables-can-t-be-styled">#89 Spans around partial orthographic syllables can't be styled </h4><a class="self-link" href="#issue89_segmentation" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/89" class="issueLink advancedIssue">GitHub issue #89</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa</span> <span class="issueScore">2</span></p><p>If you try to style part of a syllable by putting a span around the characters you want to style, the overall shape of the syllable is broken.</p><p>Here are a number of examples:</p><p></p><ol><li> Devanagari. If you put a span around the first two characters of the 3-character syllable स्तिठड (eg. in order to color or otherwise style it), the i vowel-sign no longer appears at the start of the word, but looks like it modifies the next character (ठ). </li> <li> Gujarati. If you put a span around the ન્ડ two characters of the 3-character syllable ન્ડિ in ઇન્ડિય (eg. in order to color or otherwise style it), the i vowel-sign no longer appears at the start of the word, but looks like it modifies the next character (ય). </li> <li> Bengali. If you put a span around the ব first character of the two character syllable বি in বিভাগের (eg. in order to color or otherwise style it), the vowel-sign no longer appears at the start of the word, but looks like incorrect inputting at the wrong place. </li> <li> Tamil. If you put a span around the ம first character of the two character syllable மொ in மொழி (eg. in order to color or otherwise style it), the half part of o vowel-sign no longer appears at the start of the word, but looks like incorrect inputting at the wrong place. </li> </ol> Apparently this requirement is a bit difficult to cater to as it requires the knowledge to be transferred by the font to the rendering engine about which part of the glyph is attributed to which code-point in storage. However, if it can be achieved, nothing like it. <p></p> </section> <section id="issue87_segmentation"> <div class="header-wrapper"><h4 id="x87-grapheme-clusters-fail-to-represent-syllabic-conjuncts-in-north-indian-scripts">#87 Grapheme clusters fail to represent syllabic conjuncts in north Indian scripts</h4><a class="self-link" href="#issue87_segmentation" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/87" class="issueLink basicIssue">GitHub issue #87</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn gu</span> <span class="issueScore">1</span></p><p>The Unicode concept of 'grapheme cluster' currently fails to represent syllabic conjuncts (plus vowels, etc) in scripts like Devanagari. This means that various editing operations, line breaking algorithms, vertical text, etc. are likely to break text at the wrong point.</p><p><a href="https://w3c.github.io/ilreq/#h_indic_orthographic_syllable_boundaries">Indic Layout Requirements</a> provides a grammar for indian orthographic syllable boundaries which works for Devanagari, and CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, rather than grapheme cluster, in its specs with the explanation that these cases are beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support. In addition, a modification to the concept of grapheme cluster is <a href="https://www.unicode.org/reports/tr29/proposed.html#Rule_Constraints">currently in development</a> at the Unicode Consortium, which is likely to resolve the problem for a script like Devanagari.</p><p>See requirements at: <a href="https://w3c.github.io/ilreq/#h_indic_orthographic_syllable_boundaries">Indic Layout Requirements</a></p><p></p><p><b class="subhead">Specs</b> CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, rather than grapheme cluster, in its specs with the explanation that these cases are beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support.</p><p></p><p> <b class="subhead">Tests</b> </p><ul> <li><a href="https://www.w3.org/International/tests/repo/results/first-letter#devanagari">Selectors 3, first-letter</a></li> <li>...<p></p> </li></ul></section> </div> </section> </section> <section id="h_inline"><div class="header-wrapper"><h2 id="x5-punctuation-inline-features"><bdi class="secno">5. </bdi>Punctuation & inline features</h2><a class="self-link" href="#h_inline" aria-label="Permalink for Section 5."></a></div> <section id="punctuation_etc" class="tbd"><div class="header-wrapper"><h3 id="x5-1-phrase-section-boundaries"><bdi class="secno">5.1 </bdi>Phrase & section boundaries</h3><a class="self-link" href="#punctuation_etc" aria-label="Permalink for Section 5.1"></a></div> <p id="prompt-punctuation_etc" class="status_prompt promptStub">Are there specific problems related to punctuation or the interaction of the text with punctuation (for example separation of punctuation from previous text, but allowing no line break between)? Are there issues related to handling of abbreviation, ellipsis, or iteration? Are there problems related to bracketing information or demarcating things such as proper nouns, etc?</p> <div id="insert-punctuation_etc"></div> </section> <section id="quotations" class="tbd"><div class="header-wrapper"><h3 id="x5-2-quotations-citations"><bdi class="secno">5.2 </bdi>Quotations & citations</h3><a class="self-link" href="#quotations" aria-label="Permalink for Section 5.2"></a></div> <p id="prompt-quotations" class="status_prompt promptStub">Are there any issues when dealing with quotations marks, especially when nested? Should block quotes be indented or handled specially?</p> <div id="insert-quotations"></div> </section> <section id="emphasis" class="tbd"><div class="header-wrapper"><h3 id="x5-3-emphasis-highlighting"><bdi class="secno">5.3 </bdi>Emphasis & highlighting</h3><a class="self-link" href="#emphasis" aria-label="Permalink for Section 5.3"></a></div> <p id="prompt-emphasis" class="status_prompt promptStub">How are emphasis and highlighting achieved? If lines or marks are drawn alongside, over or through the text, do they need to be a special distance from the text itself? Is it important to skip characters when underlining, etc? How do things change for vertically set text?</p> <div id="insert-emphasis"></div> </section> <section id="abbrev" class="tbd"><div class="header-wrapper"><h3 id="x5-4-abbreviation-ellipsis-repetition"><bdi class="secno">5.4 </bdi>Abbreviation, ellipsis & repetition</h3><a class="self-link" href="#abbrev" aria-label="Permalink for Section 5.4"></a></div> <p id="prompt-abbrev" class="status_prompt promptStub">What characters or other methods are used to indicate abbreviation, ellipsis & repetition?</p> <div id="insert-abbrev"></div> </section> <section id="inline_notes" class="ok"><div class="header-wrapper"><h3 id="x5-5-inline-notes-annotations"><bdi class="secno">5.5 </bdi>Inline notes & annotations</h3><a class="self-link" href="#inline_notes" aria-label="Permalink for Section 5.5"></a></div> <p id="prompt-inline_notes" class="status_prompt promptStub">The ruby spec currently specifies an initial subset of requirements for fine-tuning the typography of phonetic and semantic annotations of East Asian text, including furigana, pinyin and zhuyin fuhao systems. Is is adequate for what it sets out to do? What other controls will be needed in the future? What about other types of inline annotation, such as warichu? (For referent-type notes such as footnotes, see below.)</p> <div id="insert-inline_notes"></div> </section> <section id="text_decoration" class="basic"><div class="header-wrapper"><h3 id="x5-6-text-decoration-other-inline-features"><bdi class="secno">5.6 </bdi>Text decoration & other inline features</h3><a class="self-link" href="#text_decoration" aria-label="Permalink for Section 5.6"></a></div> <p id="prompt-text_decoration" class="status_prompt promptStub">This is about ways of marking text (see also specific sections dedicated to quotations and inline notes/annotations). Is it possible to express emphasis or highlight content as expected? Bold, italic and under-/over-lines are not always appropriate, and some scripts have their own unique ways of doing things, that are not in the Western tradition at all. Text delimiters mark certain items or sections off from the main text, such as book names in Chinese, quotations, head markers in Tibetan, etc, and often involve the use of punctuation. Is there any behaviour that isn't well supported, such as overlines for numeric digits in Syriac? Are there issues about the positioning or use of underlines? Some aspects related to the drawing of lines alongside or through text involve local typographic considerations. Do underlines need to be broken in special ways for this script? Do you need support for additional line shapes or widths? Does the distance or position of the lines relative to the text need to vary in ways that are not achievable? Are lines correctly drawn relative to vertical text? </p> <div id="insert-text_decoration"><section id="issue90_text_decoration"> <div class="header-wrapper"><h4 id="x90-underline-and-overline-need-to-clear-glyph-ascenders-and-descenders">#90 Underline and overline need to clear glyph ascenders and descenders</h4><a class="self-link" href="#issue90_text_decoration" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/90" class="issueLink basicIssue">GitHub issue #90</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa</span> <span class="issueScore">1</span></p><p>Indian language text has some signs called as Matras which sometimes join above the shirorekha or below the normal baseline.</p><p>Applications should ensure that the underline and overline when getting rendered, should adaquetly be taken into consideration. Chrome browser seemed to be perfectly rendering the underline and overline feature by breaking the same where a matra occurs. Internet Explorer also handles it a bit differently by appropriately lowering or heightening the respective lines. </p> </section> </div> </section> <section id="data_formats" class="advanced"><div class="header-wrapper"><h3 id="x5-7-data-formats-numbers"><bdi class="secno">5.7 </bdi>Data formats & numbers</h3><a class="self-link" href="#data_formats" aria-label="Permalink for Section 5.7"></a></div> <p id="prompt-data_formats" class="status_prompt promptStub">If the script has its own set of number digits, are there any issues in how they are used? Does the script or language use special format patterns that are problematic (eg. 12,34,000 in India)? What about date/time formats and selection - and are non-Gregorian calendars needed? Do percent signs and other symbols associated with number work correctly, and do numbers need special decorations, (like in Ethiopic or Syriac)? How about the management of personal names, addresses, etc. in web pages: are there issues?</p> <div id="insert-data_formats"><section id="issue91_data_formats"> <div class="header-wrapper"><h4 id="x91-data-formats-need-to-be-controllable-by-users">#91 Data formats need to be controllable by users</h4><a class="self-link" href="#issue91_data_formats" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/91" class="issueLink advancedIssue">GitHub issue #91</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa</span> <span class="issueScore">2</span></p><p>Generally Latin Numerals are acceptable in Devanagari text. Most of the user community identifies with them. However, there could be cases where certain web-pages would prefer to have numerals in Devanagari to cater to mono-lingual (mono-script rather) readers. This is particularly required for input types number and date. It would be useful if the input type values are augmented with the script mnemonics e.g. number_deva or date_deva instead of changing it for entire page through some locale setting. There could be cases where a user may require both kinds of numbering in the same web-page.</p> </section> </div> </section> </section> <section id="h_lines_and_paragraphs"><div class="header-wrapper"><h2 id="x6-line-and-paragraph-layout"><bdi class="secno">6. </bdi>Line and paragraph layout</h2><a class="self-link" href="#h_lines_and_paragraphs" aria-label="Permalink for Section 6."></a></div> <section id="line_breaking" class="tbd"><div class="header-wrapper"><h3 id="x6-1-line-breaking-hyphenation"><bdi class="secno">6.1 </bdi>Line breaking & hyphenation</h3><a class="self-link" href="#line_breaking" aria-label="Permalink for Section 6.1"></a></div> <p id="prompt-line_breaking" class="status_prompt promptStub">Does the browser capture the rules about the way text in your script wraps when it hits the end of a line? Does line-breaking wrap whole 'words' at a time, or characters, or something else (such as syllables in Tibetan and Javanese)? What characters should not appear at the end or start of a line, and what should be done to prevent that?</p> <div id="insert-line_breaking"></div> </section> <section id="justification" class="ok"><div class="header-wrapper"><h3 id="x6-2-text-alignment-justification"><bdi class="secno">6.2 </bdi>Text alignment & justification</h3><a class="self-link" href="#justification" aria-label="Permalink for Section 6.2"></a></div> <p id="prompt-justification" class="status_prompt promptStub">When text in a paragraph needs to have flush lines down both sides, does it follow the rules for your script? Does the script need assistance to conform to a grid pattern? Does your script allow punctuation to hang outside the text box at the start or end of a line? Where adjustments are need to make a line flush, how is that done? Do you shrink/stretch space between words and/or letters? Are word baselines stretched, as in Arabic? What about paragraph indents, or the need for logical alignment keywords, such as start/end, rather than left/right?</p> <div id="insert-justification"></div> </section> <section id="spacing" class="basic"><div class="header-wrapper"><h3 id="x6-3-text-spacing"><bdi class="secno">6.3 </bdi>Text spacing</h3><a class="self-link" href="#spacing" aria-label="Permalink for Section 6.3"></a></div> <p id="prompt-spacing" class="status_prompt promptStub">Some scripts create emphasis or other effects by spacing out the words, letters or syllables in a word. Are there requirements for this script/language that are unsupported? (For justification related spacing, see below.)</p> <div id="insert-spacing"><section id="issue118_spacing"> <div class="header-wrapper"><h4 id="x118-browsers-apply-extraneous-spaces-when-letter-spacing">#118 Browsers apply extraneous spaces when letter-spacing</h4><a class="self-link" href="#issue118_spacing" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/118" class="issueLink advancedIssue">GitHub issue #118</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa</span> <span class="issueScore">2</span></p><p><i class="meta">This issue applies to all languages that use letter-spacing.</i></p><p>Currently browsers that apply letter-spacing do so by adding a space after every letter in the text that is tracked. This results in a superfluous space at the end of the range, which creates an inappropriate gap before the following text. Letter spacing at the end of a line makes the line look misaligned in justified or right-justified text. It also has implications for text that has other styling, such as an outline or a coloured background, at the same time as being stretched. </p><p><b class="meta">For more details, see <a href="https://github.com/w3c/eurlreq/issues/23">this GitHub issue</a>, which is being used to track this gap. Please add any discussion there, and not to this issue.</b></p> </section> <section id="issue117_spacing"> <div class="header-wrapper"><h4 id="x117-letter-spacing-splits-conjuncts">#117 Letter-spacing splits conjuncts</h4><a class="self-link" href="#issue117_spacing" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/117" class="issueLink advancedIssue">GitHub issue #117</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu</span> <span class="issueScore">2</span></p><p><i class="meta">This issue is applicable to most languages that form conjuncts from consonant clusters using an invisible virama.</i></p><p>A consonant cluster that uses a conjunct (rather than visible virama) should not be split when letter-spacing is applied.</p><p></p><p> </p><div class="header-wrapper"><h5 id="the-gap-0"> The GAP </h5><a class="self-link" href="#issue117_spacing" aria-label="Permalink for this Section"></a></div> Relying on grapheme clusters as the main segmentation approach fails for many Indic scripts because conjuncts are composed of multiple grapheme clusters, and should be kept together as a unit.<p></p><p>For these situations it is necessary to tailor the segmentation algorithm, so that it recognises the whole consonant cluster plus any attached vowel-signs or combining characters as a single unit.</p><p>For examples see <a href="https://www.w3.org/International/questions/qa-indic-graphemes">Typographic character units in complex scripts</a>.</p><p>See also notes on segmentation for the following orthographies relevant to this project: <a href="https://r12a.github.io/scripts/deva/hi.html#graphemes">Hindi</a>, <a href="https://r12a.github.io/scripts/beng/bn.html#graphemes">Bangla</a>, <a href="https://r12a.github.io/scripts/guru/pa.html#graphemes">Punjabi</a>, <a href="https://r12a.github.io/scripts/taml/ta.html#graphemes">Tamil</a>.</p><p> <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">css-text-3</a> CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, rather than grapheme cluster, in its specs with the explanation that the cases just described go beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support. The spec doesn't provide details about the support needed for each language.</p><p> The Unicode Consortium made some attempts to address this issue, but it has so far not yielded results. CLDR now flags up a few scripts for which conjuncts are common.</p><p></p><p> </p><div class="header-wrapper"><h5 id="priority-0"> Priority </h5><a class="self-link" href="#issue117_spacing" aria-label="Permalink for this Section"></a></div>Keeping conjuncts together is a pretty basic requirement. It is not possible to work around this problem.<p></p><p>That said, letter-spacing is not relied on for essential content authoring, therefore the priority was set to advanced.</p><p></p><p> </p><div class="header-wrapper"><h5 id="tests-results"> Tests & results </h5><a class="self-link" href="#issue117_spacing" aria-label="Permalink for this Section"></a></div> <i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/73">When letter-spacing is applied to Devanagari the browser will not split conjuncts</a><br> <i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/74">When letter-spacing is applied to Bengali the browser will not split conjuncts</a><p></p><p></p><ul><li> <strong>Gecko:</strong> ❌ Most of the half-form conjuncts (which is the large majority of all conjuncts) have space inserted between the glyphs that make up the conjunct (ie. not split into consonants with visible viramas). Vertically-combined glyphs tend not to be split. </li> <li> <strong>Blink:</strong> ❌ Same as Gecko. </li> <li> <strong>Webkit:</strong> ❌ Same as Gecko. </li> </ul><p></p><p></p><p></p><p> </p><div class="header-wrapper"><h5 id="action-taken-0"> Action taken </h5><a class="self-link" href="#issue117_spacing" aria-label="Permalink for this Section"></a></div>tbd<p></p><p></p><p> </p><div class="header-wrapper"><h5 id="outcomes-0"> Outcomes </h5><a class="self-link" href="#issue117_spacing" aria-label="Permalink for this Section"></a></div>tbd<p></p><p></p><p> </p> </section> <section id="issue67_spacing"> <div class="header-wrapper"><h4 id="x67-letter-spacing-first-letter-selection-must-keep-yo-phola-with-preceding-independent-vowels">#67 Letter-spacing & first-letter selection must keep yo-phola with preceding independent vowels</h4><a class="self-link" href="#issue67_spacing" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/67" class="issueLink basicIssue">GitHub issue #67</a></p><p class="languageData">Languages: <span class="relevantLanguages">bn</span> <span class="issueScore">1</span></p><p><i class="meta">This issue is applicable to Bengali and Assamese.</i></p><p>The issues <a href="https://github.com/w3c/iip/issues/117">Letter-spacing splits conjuncts</a> and <a href="https://github.com/w3c/iip/issues/94">Conjuncts are not selected as a single unit when styling initials</a> describe how conjuncts should not be split by letter-spacing. See those issues for more details.</p><p>This topic builds on that for some specific cases in Bengali.</p><p>There are two cases in Bengali where hasant (virama) is preceded by an independent vowel, rather than a consonant. These are:</p><p></p><ul><li> <span class="codepoint" translate="no"><span lang="bn">অ্যা</span> [<span class="uname">U+0985 BENGALI LETTER A</span> + <span class="uname">U+09CD BENGALI SIGN VIRAMA</span> + <span class="uname">U+09AF BENGALI LETTER YA</span> + <span class="uname">U+09BE BENGALI VOWEL SIGN AA</span>]</span>, and </li> <li> <span class="codepoint" translate="no"><span lang="bn">এ্যা</span> [<span class="uname">U+098F BENGALI LETTER E</span> + <span class="uname">U+09CD BENGALI SIGN VIRAMA</span> + <span class="uname">U+09AF BENGALI LETTER YA</span> + <span class="uname">U+09BE BENGALI VOWEL SIGN AA</span>]</span> </li> </ul> <img src="images/146041054-f96714a2-b926-4ea4-8e17-ba4e003a671e.png" alt="Screenshot 2021-12-14 at 16 40 16"><p></p><p><img src="images/146041082-fbdd1cee-1bdc-4c45-b2d8-d427b8027c77.png" alt="Screenshot 2021-12-14 at 16 40 37"> <img src="images/146041100-ab30d934-2a22-4e2e-9c6e-68cb3965f3e9.png" alt="Screenshot 2021-12-14 at 16 40 46"></p><p></p><p>(In both cases this produces the sound <span class="ipa">æ</span>, used for non-native words, such as 'application', 'administration' etc.)</p><p>This combination should not be split either, even though it doesn't fit the typical CvC structure of a conjunct (where 'v' is the virama).</p><p></p><p><b class="subhead">Specs:</b> <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">css-text-3</a> CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, rather than grapheme cluster, in its specs with the explanation that the cases just described go beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support. The spec doesn't provide details about the support needed for each language.</p><p> <b class="subhead">Tests & results:</b> Both of the following tests were run with the following pre-installed fonts:</p><p>Windows: Shonar Bangla, Arial Unicode MS, Nirmala UI, Vrinda<br> Mac: Bangla MN, Bangla Sangam MN, Kohinoor Bangla, Tiro Bangla, Baloo Da<br> Also tested with Noto Sans Bengali and Noto Serif Bengali on the Mac.</p><p><i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/80">Bengali অ্যা and এ্যা (æ) are selected as a single grapheme by ::first-letter.</a><br></p><p></p><ul><li> <strong>Gecko:</strong> ✅❌ Mac: fails for Bangla MN, and Bangla Sangam MN, but passes for the other 3 fonts. Windows: works fine for all fonts. </li> <li> <strong>Blink:</strong> ❌ Mac & Windows: fails for all fonts. </li> <li> <strong>Webkit:</strong> ❌ Mac: fails for all fonts. It was not possible to apply the Noto fonts. </li> </ul> Note that Blink and Webkit actually handle the more usual CvC conjunct arrangement (see <a href="https://github.com/w3c/line_paragraph_tests/issues/69">this test</a>).<p></p><p><i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/81">Bengali অ্যা and এ্যা (æ) are treated as a single grapheme for letter-spacing.</a><br></p><p></p><ul><li> <strong>Gecko:</strong> ✅❌ Windows: works with all fonts. Mac: fails with Bangla MN, Bangla Sangam MN, and Baloo Da, but works with the others. Works with Noto fonts. </li> <li> <strong>Blink:</strong> ✅❌ Windows: works with all fonts. Mac: same results as for Gecko. </li> <li> <strong>Webkit:</strong> ❌ Mac: failed for all fonts. In fact, letters were all spaced individually, rather than by grapheme cluster. Could not apply Noto fonts. </li> </ul> <span class="fail">Gecko</span>, <span class="fail">Blink</span>, and <span class="fail">Webkit</span> all fail to treat the sequence as a single grapheme, despite the fact that Blink and Webkit actually handle the more usual CvC conjunct arrangement (see <a href="https://github.com/w3c/line_paragraph_tests/issues/69">this test</a>).<p></p><p> <b class="subhead">Browser bug reports:</b> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1746172">Gecko</a> • <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1280241">Blink</a> • <a href="https://bugs.webkit.org/show_bug.cgi?id=234342">Webkit</a></p><p> <b class="subhead">Priority:</b> Keeping such sequences together is a pretty basic requirement. That said, first-letter selection and letter-spacing are not essential for content authoring, although Bengali content authors should still have equal access to these styling features as Westerners. Content authors could work around the first-letter problem by adding markup (though that's not ideal), but for letter-spacing there is no real alternative, and adding spaces between letters ruins the semantics. The priority was set to advanced.</p><p></p> </section> </div> </section> <section id="baselines" class="advanced"><div class="header-wrapper"><h3 id="x6-4-baselines-line-height-etc"><bdi class="secno">6.4 </bdi>Baselines, line-height, etc</h3><a class="self-link" href="#baselines" aria-label="Permalink for Section 6.4"></a></div> <p id="prompt-baselines" class="status_prompt promptStub">Does the browser support requirements for baseline alignment between mixed scripts and in general?</p> <div id="insert-baselines"><section id="issue96_baselines"> <div class="header-wrapper"><h4 id="x96-differences-in-physical-size-for-fonts-affects-baseline-alignment">#96 Differences in physical size for fonts affects baseline alignment</h4><a class="self-link" href="#issue96_baselines" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/96" class="issueLink advancedIssue">GitHub issue #96</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn gu pa</span> <span class="issueScore">2</span></p><p><i class="meta">This issue is especially applicable to northern Indic scripts with a head line.</i></p><p>By and large, Indian scripts in browsers are rendered with default fonts provided by back-end Operating Systems. If there are major differences in physical size for a particular font size, which most of the times are, it shows the mixed-script text in an un-organized way. This obviously affects all the base-line attributes.</p><p>Generally, Indian scripts that have joining line use the joining line as the baseline. Ideally, if a document contains both Devanagari and Gurmukhi text (such as <em>Mahan Khosh</em>), the text should be aligned at the joining line regardless of the script or font.</p> </section> </div> </section> <section id="lists" class="ok"><div class="header-wrapper"><h3 id="x6-5-lists-counters-etc"><bdi class="secno">6.5 </bdi>Lists, counters, etc.</h3><a class="self-link" href="#lists" aria-label="Permalink for Section 6.5"></a></div> <p id="prompt-lists" class="status_prompt promptStub">The CSS Counter Styles specification describes a limited set of simple and complex styles for counters to be used in list numbering, chapter heading numbering, etc.The rules plus more counter styles (totalling around 120 for over 30 scripts) are listed in the document <a href="https://www.w3.org/TR/predefined-counter-styles/">Ready-made Counter Styles</a>. Do these cover your needs? Are the details correct? Are there other aspects related to counters and lists that need to be addressed?</p> <div id="insert-lists"><section id="issue93_lists"> <div class="header-wrapper"><h4 id="x93-customised-counter-styles-are-unavailable-fixed">#93 Customised counter styles are unavailable — FIXED !</h4><a class="self-link" href="#issue93_lists" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/93" class="issueLink okIssue">GitHub issue #93</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa ks mr as mni</span> <span class="issueScore">3</span></p><p><i class="meta">Customisable counters are needed for many languages.</i></p><p> Many orthographies use native digits or letters for counters, such as those used for list numbering or numbering chapter headings, etc. It needs to be possible to use these local conventions for counters.</p><p>Users also need to be able to adapt counter styles for a given context or create new ones where the browser doesn't have baked-in support. Often customisation needs are driven by the need to change the counter suffix for particular contexts, but in some cases the algorithms used for numbering can vary from author to author as well.</p><p>More: </p><ul><li> <a href="https://www.w3.org/International/ilreq/tamil/#h_counters">Tamil counters</a> </li> <li> <a href="https://www.w3.org/International/afrlreq/nko/#h_counters">N'Ko counters</a> </li> <li> <a href="https://www.w3.org/International/sealreq/thai/#h_counters">Thai counters</a> </li> </ul> These are just a few examples out of many.<p></p><p> </p><div class="header-wrapper"><h5 id="the-gap-1"> The GAP </h5><a class="self-link" href="#issue93_lists" aria-label="Permalink for this Section"></a></div> The major browser engines support a number of hard-coded counter styles. But when this gap was first reported only Gecko supported user defined counter styling. This meant that native counters were not available for a large number of languages, and the styles could not be tweaked by the author for special uses.<p></p><p><a href="https://w3c.github.io/predefined-counter-styles/">predefined-counter-styles</a> contains templates for counter styles that can be applied by users if the custom counter styles spec is supported.</p><p><a href="https://www.w3.org/TR/css-counter-styles-3/#simple-numeric">css-counter-styles-3</a> explicitly defines a number of local styles, and the other counter styles can be defined by users if the Counter Styles spec's generic mechanism for defining counter styles was implemented.</p><p></p><p></p><div class="header-wrapper"><h5 id="priority-1"> Priority: </h5><a class="self-link" href="#issue93_lists" aria-label="Permalink for this Section"></a></div>The impact of the lack of support cited here is mitigated by the tendency to use western counters, so the impact could be marked as advanced. However native styles (at least the numeric) are widely used in non-Web content, and these features are likely to be widely used when implemented across all major browsers. Therefore the priority is set to basic.<p></p><p></p><p></p><div class="header-wrapper"><h5 id="tests-results-0"> Tests & results: </h5><a class="self-link" href="#issue93_lists" aria-label="Permalink for this Section"></a></div><i>I18n test suite</i>, <a href="https://w3c.github.io/i18n-tests/results/custom-counter-styles">Predefined styles</a>.<br>Contains tests for the styles that are explicitly defined in the Counter Styles spec. <span class="pass">Gecko</span> and <span class="pass">Blink</span> provide good coverage. <span class="fail">Webkit</span> covers most styles with some gaps, but fails for CJK and Ethiopic styles. <p></p><p><i>I18n test suite</i>, <a href="https://w3c.github.io/i18n-tests/results/counter-styles#basics">Basic custom counter styles</a>.<br>The spec is essentially done, and <span class="pass">Gecko</span> and <span class="pass">Blink</span> have implemented it. No support from <span class="fail">Webkit</span>.</p><p></p><p></p><div class="header-wrapper"><h5 id="action-taken-1"> Action taken </h5><a class="self-link" href="#issue93_lists" aria-label="Permalink for this Section"></a></div> <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=687225">Blink</a> (Fixed) • <a href="https://bugs.webkit.org/show_bug.cgi?id=167645">WebKit</a><p></p><p></p><p></p><div class="header-wrapper"><h5 id="outcomes-1"> Outcomes </h5><a class="self-link" href="#issue93_lists" aria-label="Permalink for this Section"></a></div> <b>Fixed !</b> Blink, WebKit, and Gecko latest browser versions now all support custom counter styles.<p></p><p></p> </section> </div> </section> <section id="initials" class="basic"><div class="header-wrapper"><h3 id="x6-6-styling-initials"><bdi class="secno">6.6 </bdi>Styling initials</h3><a class="self-link" href="#initials" aria-label="Permalink for Section 6.6"></a></div> <p id="prompt-initials" class="status_prompt promptStub">Does the browser or ereader correctly handle special styling of the initial letter of a line or paragraph, such as for drop caps or similar? How about the size relationship between the large letter and the lines alongide? where does the large letter anchor relative to the lines alongside? is it normal to include initial quote marks in the large letter? is the large letter really a syllable? etc. Are all of these things working as expected?</p> <div id="insert-initials"><section id="issue115_initials"> <div class="header-wrapper"><h4 id="x115-consonant-clusters-with-a-visible-virama-should-only-have-the-first-consonant-virama-highlighted">#115 Consonant clusters with a visible virama should only have the first consonant+virama highlighted</h4><a class="self-link" href="#issue115_initials" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/115" class="issueLink advancedIssue">GitHub issue #115</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn</span> <span class="issueScore">2</span></p><p><i class="meta">This issue is applicable to most languages that form conjuncts from consonant clusters using a visible virama.</i></p><p>When the start of a line contains a 2-consonant cluster that uses a <em>visible</em> virama, ::first-letter should highlight only the first consonant+virama. This corresponds to a grapheme cluster, as defined by Unicode.</p><p> <b class="subhead">Specs:</b> <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">css-text-3</a> CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, which defaults to a grapheme cluster. The spec doesn't provide details about the support needed for each language.</p><p>The Unicode Consortium defines grapheme clusters to, by default, stop after the first virama in a cluster.</p><p></p><p><b class="subhead">Tests & results:</b> <i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/68">When ::first-letter is applied to Devanagari the browser will NOT select a 2-consonant cluster as a unit if the virama is visible</a><br> <i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/70">When ::first-letter is applied to Bengali the browser will only select the first consonant+virama in a cluster if the virama is visible</a><br> <span class="pass">Gecko</span> only highlights the initial character+virama. <span class="fail">Blink</span>, and <span class="fail">Webkit</span> select all clusters as a single unit, whether or not they are conjuncts or are rendered with a visible virama.</p><p> <b class="subhead">Browser bug reports:</b> <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1273096">Blink</a> • <a href="https://bugs.webkit.org/show_bug.cgi?id=233447">WebKit</a></p><p><b class="subhead">Priority:</b> <i class="meta">This choice needs to be discussed.</i> If a cluster is rendered as a conjunct, it should be selected as a single unit. If, instead, the virama is displayed (ie. it is not a conjunct) then only the initial part of the cluster should be selected. Since the underlying code points are identical if a cluster is displayed as a conjunct or instead with visible viramas, it's not possible to distinguish one situation from another by working with the code points. In the absence of a technical solution that examines what the font used does when rendering, this is a difficult problem to solve. This priority rating says that, in the absence of a perfect solution, it is better to select a whole non-conjunct cluster than to break a conjunct. So it is labelled advanced, rather than basic.</p> </section> <section id="issue94_initials"> <div class="header-wrapper"><h4 id="x94-conjuncts-are-not-selected-as-a-single-unit-when-styling-initials">#94 Conjuncts are not selected as a single unit when styling initials</h4><a class="self-link" href="#issue94_initials" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/94" class="issueLink basicIssue">GitHub issue #94</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn mr as mni</span> <span class="issueScore">1</span></p><p><i class="meta">This issue is applicable to most languages that form conjuncts from consonant clusters using an invisible virama.</i></p><p>When the start of a line contains a consonant cluster that uses a conjunct (rather than visible virama), ::first-letter should highlight the whole cluster.</p><p>Consonant clusters that form conjuncts using an invisible virama between the component letters need to be selected as a unit. This doesn't work well if segmentation relies on Unicode grapheme clusters, since a conjunct with two consonants will be parsed as two grapheme clusters (the first ending after the virama, and the second starting with the second consonant and including any following vowel-signs or other combining characters).</p><p>For these situations it is necessary to tailor the segmentation algorithm, so that it recognises the whole consonant cluster plus any attached vowel-signs or combining characters as a single unit.</p><p>For examples see <a href="https://www.w3.org/International/questions/qa-indic-graphemes">Typographic character units in complex scripts</a>.</p><p></p><p><b class="subhead">Specs:</b></p><p><a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">css-text-3</a> CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, rather than grapheme cluster, in its specs with the explanation that the cases just described go beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support. The spec doesn't provide details about the support needed for each language.</p><p>The Unicode Consortium made some attempts to address this issue, but it has so far not yielded results. CLDR now flags up a few scripts for which conjuncts are common.</p><p> <b class="subhead">Tests & results:</b> <i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/66">When ::first-letter is applied to Devanagari the browser will select a 2-consonant conjunct as a unit</a><br> <i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/69">When ::first-letter is applied to Bengali the browser will select a conjunct as a unit, if the virama is hidden</a><br> </p><ul><li> <strong>Gecko:</strong> ✅❌ Most of the half-form conjuncts fail (which is the large majority of all conjuncts in Devanagari), and are broken into an initial consonant with visible virama and a following consonant. </li> <li> <strong>Blink:</strong> ✅ All conjuncts are fully selected. </li> <li> <strong>Webkit:</strong> ✅ All conjuncts are fully selected. </li> </ul> <i>I18n test suite</i>, <a href="https://www.w3.org/International/i18n-tests/results/first-letter-pseudo#devanagari">Devanagari text</a><p></p><p></p><p><b class="subhead">Browser bug reports:</b></p><p><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1742626">Gecko</a></p><p></p><p> <b class="subhead">Priority:</b> Keeping conjuncts together is a pretty basic requirement. Without a fix for this, authors need to manually mark up text to apply initial letter styling, but that isn't a very useful workaround. </p> </section> <section id="issue84_initials"> <div class="header-wrapper"><h4 id="x84-initial-letter-positioning-is-not-widely-available">#84 initial-letter positioning is not widely available</h4><a class="self-link" href="#issue84_initials" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/84" class="issueLink advancedIssue">GitHub issue #84</a></p><p class="languageData">Languages: <span class="relevantLanguages">hi bn ta gu pa</span> <span class="issueScore">2</span></p><p>Having selected the correct text for highlighting, it is important to ensure proper alignment of the baseline and height of the initial letter highlight relative to the other lines of text. This doesn't work well without help from the dedicated CSS properties, <code class="kw" translate="no">initial-letters</code> and the <code class="kw" translate="no">initial-letters-align</code>. Unfortunately, only Safari supports the first property, and it requires the -webkit prefix, so this is still an immature feature.</p><p>Safari aligns the alphabetic baseline of the highlighted text with that on the specified number of lines. The relationship between the highlighted letters and the first line of the paragraph appears to be based on cap height, but is not clear. The requirements for that relationship are not yet really clear, despite the information in <a href="https://w3c.github.io/ilreq/#h_initial_letter_styling">Indian Layout Requirements</a>.</p><p>The impact here is advanced, since it is mainly needed for advanced layouts.</p> </section> <section id="issue67_initials"> <div class="header-wrapper"><h4 id="x67-letter-spacing-first-letter-selection-must-keep-yo-phola-with-preceding-independent-vowels-0">#67 Letter-spacing & first-letter selection must keep yo-phola with preceding independent vowels</h4><a class="self-link" href="#issue67_initials" aria-label="Permalink for this Section"></a></div> <p class="ghLink"><a target="_blank" href="https://github.com/w3c/iip/issues/67" class="issueLink basicIssue">GitHub issue #67</a></p><p class="languageData">Languages: <span class="relevantLanguages">bn</span> <span class="issueScore">1</span></p><p><i class="meta">This issue is applicable to Bengali and Assamese.</i></p><p>The issues <a href="https://github.com/w3c/iip/issues/117">Letter-spacing splits conjuncts</a> and <a href="https://github.com/w3c/iip/issues/94">Conjuncts are not selected as a single unit when styling initials</a> describe how conjuncts should not be split by letter-spacing. See those issues for more details.</p><p>This topic builds on that for some specific cases in Bengali.</p><p>There are two cases in Bengali where hasant (virama) is preceded by an independent vowel, rather than a consonant. These are:</p><p></p><ul><li> <span class="codepoint" translate="no"><span lang="bn">অ্যা</span> [<span class="uname">U+0985 BENGALI LETTER A</span> + <span class="uname">U+09CD BENGALI SIGN VIRAMA</span> + <span class="uname">U+09AF BENGALI LETTER YA</span> + <span class="uname">U+09BE BENGALI VOWEL SIGN AA</span>]</span>, and </li> <li> <span class="codepoint" translate="no"><span lang="bn">এ্যা</span> [<span class="uname">U+098F BENGALI LETTER E</span> + <span class="uname">U+09CD BENGALI SIGN VIRAMA</span> + <span class="uname">U+09AF BENGALI LETTER YA</span> + <span class="uname">U+09BE BENGALI VOWEL SIGN AA</span>]</span> </li> </ul> <img src="images/146041054-f96714a2-b926-4ea4-8e17-ba4e003a671e.png" alt="Screenshot 2021-12-14 at 16 40 16"><p></p><p><img src="images/146041082-fbdd1cee-1bdc-4c45-b2d8-d427b8027c77.png" alt="Screenshot 2021-12-14 at 16 40 37"> <img src="images/146041100-ab30d934-2a22-4e2e-9c6e-68cb3965f3e9.png" alt="Screenshot 2021-12-14 at 16 40 46"></p><p></p><p>(In both cases this produces the sound <span class="ipa">æ</span>, used for non-native words, such as 'application', 'administration' etc.)</p><p>This combination should not be split either, even though it doesn't fit the typical CvC structure of a conjunct (where 'v' is the virama).</p><p></p><p><b class="subhead">Specs:</b> <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">css-text-3</a> CSS uses the concept of <a href="https://drafts.csswg.org/css-text-3/#typographic-character-unit">'typographic character unit'</a>, rather than grapheme cluster, in its specs with the explanation that the cases just described go beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support. The spec doesn't provide details about the support needed for each language.</p><p> <b class="subhead">Tests & results:</b> Both of the following tests were run with the following pre-installed fonts:</p><p>Windows: Shonar Bangla, Arial Unicode MS, Nirmala UI, Vrinda<br> Mac: Bangla MN, Bangla Sangam MN, Kohinoor Bangla, Tiro Bangla, Baloo Da<br> Also tested with Noto Sans Bengali and Noto Serif Bengali on the Mac.</p><p><i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/80">Bengali অ্যা and এ্যা (æ) are selected as a single grapheme by ::first-letter.</a><br></p><p></p><ul><li> <strong>Gecko:</strong> ✅❌ Mac: fails for Bangla MN, and Bangla Sangam MN, but passes for the other 3 fonts. Windows: works fine for all fonts. </li> <li> <strong>Blink:</strong> ❌ Mac & Windows: fails for all fonts. </li> <li> <strong>Webkit:</strong> ❌ Mac: fails for all fonts. It was not possible to apply the Noto fonts. </li> </ul> Note that Blink and Webkit actually handle the more usual CvC conjunct arrangement (see <a href="https://github.com/w3c/line_paragraph_tests/issues/69">this test</a>).<p></p><p><i>Interactive test</i>, <a href="https://github.com/w3c/line_paragraph_tests/issues/81">Bengali অ্যা and এ্যা (æ) are treated as a single grapheme for letter-spacing.</a><br></p><p></p><ul><li> <strong>Gecko:</strong> ✅❌ Windows: works with all fonts. Mac: fails with Bangla MN, Bangla Sangam MN, and Baloo Da, but works with the others. Works with Noto fonts. </li> <li> <strong>Blink:</strong> ✅❌ Windows: works with all fonts. Mac: same results as for Gecko. </li> <li> <strong>Webkit:</strong> ❌ Mac: failed for all fonts. In fact, letters were all spaced individually, rather than by grapheme cluster. Could not apply Noto fonts. </li> </ul> <span class="fail">Gecko</span>, <span class="fail">Blink</span>, and <span class="fail">Webkit</span> all fail to treat the sequence as a single grapheme, despite the fact that Blink and Webkit actually handle the more usual CvC conjunct arrangement (see <a href="https://github.com/w3c/line_paragraph_tests/issues/69">this test</a>).<p></p><p> <b class="subhead">Browser bug reports:</b> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1746172">Gecko</a> • <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1280241">Blink</a> • <a href="https://bugs.webkit.org/show_bug.cgi?id=234342">Webkit</a></p><p> <b class="subhead">Priority:</b> Keeping such sequences together is a pretty basic requirement. That said, first-letter selection and letter-spacing are not essential for content authoring, although Bengali content authors should still have equal access to these styling features as Westerners. Content authors could work around the first-letter problem by adding markup (though that's not ideal), but for letter-spacing there is no real alternative, and adding spaces between letters ruins the semantics. The priority was set to advanced.</p><p></p> </section> </div> </section> </section> <section id="h_pages"><div class="header-wrapper"><h2 id="x7-page-book-layout"><bdi class="secno">7. </bdi>Page & book layout</h2><a class="self-link" href="#h_pages" aria-label="Permalink for Section 7."></a></div> <section id="page_layout" class="ok"><div class="header-wrapper"><h3 id="x7-1-general-page-layout-progression"><bdi class="secno">7.1 </bdi>General page layout & progression</h3><a class="self-link" href="#page_layout" aria-label="Permalink for Section 7.1"></a></div> <p id="prompt-page_layout" class="status_prompt promptStub">How are the main text area and ancilliary areas positioned and defined? Are there any special requirements here, such as dimensions in characters for the Japanese kihon hanmen? The book cover for scripts that are read right-to-left scripts is on the right of the spine, rather than the left. Is that provided for? When content can flow vertically and to the left or right, how do you specify the location of objects, text, etc. relative to the flow? For example, keywords 'left' and 'right' are likely to need to be reversed for pages written in English and page written in Arabic. Do tables and grid layouts work as expected? How do columns work in vertical text? Can you mix block of vertical and horizontal text correctly? Does text scroll in the expected direction? Other topics that belong here include any local requirements for things such as printer marks, tables of contents and indexes.</p> <div id="insert-page-layout"></div> </section> <section id="grids_tables" class="ok"><div class="header-wrapper"><h3 id="x7-2-grids-tables"><bdi class="secno">7.2 </bdi>Grids & tables</h3><a class="self-link" href="#grids_tables" aria-label="Permalink for Section 7.2"></a></div> <p id="prompt-grids_tables" class="status_prompt promptStub">Does the script have special requirements for character grids or tables?</p> <div id="insert-grids_tables"></div> </section> <section id="footnotes_etc" class="ok"><div class="header-wrapper"><h3 id="x7-3-footnotes-endnotes-etc"><bdi class="secno">7.3 </bdi>Footnotes, endnotes, etc.</h3><a class="self-link" href="#footnotes_etc" aria-label="Permalink for Section 7.3"></a></div> <p id="prompt-footnotes_etc" class="status_prompt promptStub">Does your script have special requirements for footnotes, endnotes or other necessary annotations of this kind in the way needed for your culture? (There is a section above for purely inline annotations, such as ruby or warichu. This section is more about annotation systems that separate the reference marks and the content of the notes.)</p> <div id="insert-footnotes_etc"></div> </section> <section id="headers_footers" class="ok"><div class="header-wrapper"><h3 id="x7-4-page-headers-footers-etc"><bdi class="secno">7.4 </bdi>Page headers, footers, etc.</h3><a class="self-link" href="#headers_footers" aria-label="Permalink for Section 7.4"></a></div> <p id="prompt-headers_footers" class="status_prompt promptStub">Are there special conventions for page numbering, or the way that running headers and the like are handled?</p> <div id="insert-headers_footers"></div> </section> <section id="interaction" class="ok"><div class="header-wrapper"><h3 id="x7-5-forms-user-interaction"><bdi class="secno">7.5 </bdi>Forms & user interaction</h3><a class="self-link" href="#interaction" aria-label="Permalink for Section 7.5"></a></div> <p id="prompt-interaction" class="status_prompt promptStub">Are vertical form controls well supported? In right-to-left scripts, is it possible to set the base direction for a form field? Is the scroll bar on the correct side? etc.</p> <div id="insert-interaction"></div> </section> </section> <section id="h_other"><div class="header-wrapper"><h2 id="x8-other"><bdi class="secno">8. </bdi>Other</h2><a class="self-link" href="#h_other" aria-label="Permalink for Section 8."></a></div> <section id="culturespecific" class="tbd"><div class="header-wrapper"><h3 id="x8-1-culture-specific-features"><bdi class="secno">8.1 </bdi>Culture-specific features</h3><a class="self-link" href="#culturespecific" aria-label="Permalink for Section 8.1"></a></div> <p class="status_prompt">Sometimes a script or language does things that are not common outside of its sphere of influence. This is a loose bag of additional items that weren't previously mentioned. This section may also be relevant for observations related to locale formats (such as number, date, currency, format support).</p> <div id="insert-culturespecific"></div> </section> <section id="other" class="tbd"><div class="header-wrapper"><h3 id="x8-2-what-else"><bdi class="secno">8.2 </bdi>What else?</h3><a class="self-link" href="#other" aria-label="Permalink for Section 8.2"></a></div> <p class="status_prompt">There are many other CSS modules which may need review for script-specific requirements, not to mention the SVG, HTML, Speech, MathML and other specifications. What else is likely to cause problems for worldwide deployment of the Web, and what requirements need to be addressed to make the Web function well locally?</p> <div id="insert-other"></div> </section> </section> <details id="summaryStats"> <summary style="margin-top:4em; cursor: pointer;" onclick="setUpSummary(); printSummary(true)">Show summary</summary> <pre id="summaryPlaceholder" style="white-space: pre-wrap;"></pre> </details> <script> if (window.location.href.includes('/TR/')) document.getElementById('summaryStats').style.display = 'none' </script> <p role="navigation" id="back-to-top"> <a href="#title"><abbr title="Back to Top">↑</abbr></a> </p><script id="respec-dfn-panel">(() => { // @ts-check if (document.respec) { document.respec.ready.then(setupPanel); } else { setupPanel(); } function setupPanel() { const listener = panelListener(); document.body.addEventListener("keydown", listener); document.body.addEventListener("click", listener); } function panelListener() { /** @type {HTMLElement} */ let panel = null; return event => { const { target, type } = event; if (!(target instanceof HTMLElement)) return; // For keys, we only care about Enter key to activate the panel // otherwise it's activated via a click. if (type === "keydown" && event.key !== "Enter") return; const action = deriveAction(event); switch (action) { case "show": { hidePanel(panel); /** @type {HTMLElement} */ const dfn = target.closest("dfn, .index-term"); panel = document.getElementById(`dfn-panel-for-${dfn.id}`); const coords = deriveCoordinates(event); displayPanel(dfn, panel, coords); break; } case "dock": { panel.style.left = null; panel.style.top = null; panel.classList.add("docked"); break; } case "hide": { hidePanel(panel); panel = null; break; } } }; } /** * @param {MouseEvent|KeyboardEvent} event */ function deriveCoordinates(event) { const target = /** @type HTMLElement */ (event.target); // We prevent synthetic AT clicks from putting // the dialog in a weird place. The AT events sometimes // lack coordinates, so they have clientX/Y = 0 const rect = target.getBoundingClientRect(); if ( event instanceof MouseEvent && event.clientX >= rect.left && event.clientY >= rect.top ) { // The event probably happened inside the bounding rect... return { x: event.clientX, y: event.clientY }; } // Offset to the middle of the element const x = rect.x + rect.width / 2; // Placed at the bottom of the element const y = rect.y + rect.height; return { x, y }; } /** * @param {Event} event */ function deriveAction(event) { const target = /** @type {HTMLElement} */ (event.target); const hitALink = !!target.closest("a"); if (target.closest("dfn:not([data-cite]), .index-term")) { return hitALink ? "none" : "show"; } if (target.closest(".dfn-panel")) { if (hitALink) { return target.classList.contains("self-link") ? "hide" : "dock"; } const panel = target.closest(".dfn-panel"); return panel.classList.contains("docked") ? "hide" : "none"; } if (document.querySelector(".dfn-panel:not([hidden])")) { return "hide"; } return "none"; } /** * @param {HTMLElement} dfn * @param {HTMLElement} panel * @param {{ x: number, y: number }} clickPosition */ function displayPanel(dfn, panel, { x, y }) { panel.hidden = false; // distance (px) between edge of panel and the pointing triangle (caret) const MARGIN = 20; const dfnRects = dfn.getClientRects(); // Find the `top` offset when the `dfn` can be spread across multiple lines let closestTop = 0; let minDiff = Infinity; for (const rect of dfnRects) { const { top, bottom } = rect; const diffFromClickY = Math.abs((top + bottom) / 2 - y); if (diffFromClickY < minDiff) { minDiff = diffFromClickY; closestTop = top; } } const top = window.scrollY + closestTop + dfnRects[0].height; const left = x - MARGIN; panel.style.left = `${left}px`; panel.style.top = `${top}px`; // Find if the panel is flowing out of the window const panelRect = panel.getBoundingClientRect(); const SCREEN_WIDTH = Math.min(window.innerWidth, window.screen.width); if (panelRect.right > SCREEN_WIDTH) { const newLeft = Math.max(MARGIN, x + MARGIN - panelRect.width); const newCaretOffset = left - newLeft; panel.style.left = `${newLeft}px`; /** @type {HTMLElement} */ const caret = panel.querySelector(".caret"); caret.style.left = `${newCaretOffset}px`; } // As it's a dialog, we trap focus. // TODO: when <dialog> becomes a implemented, we should really // use that. trapFocus(panel, dfn); } /** * @param {HTMLElement} panel * @param {HTMLElement} dfn * @returns */ function trapFocus(panel, dfn) { /** @type NodeListOf<HTMLAnchorElement> elements */ const anchors = panel.querySelectorAll("a[href]"); // No need to trap focus if (!anchors.length) return; // Move focus to first anchor element const first = anchors.item(0); first.focus(); const trapListener = createTrapListener(anchors, panel, dfn); panel.addEventListener("keydown", trapListener); // Hiding the panel releases the trap const mo = new MutationObserver(records => { const [record] = records; const target = /** @type HTMLElement */ (record.target); if (target.hidden) { panel.removeEventListener("keydown", trapListener); mo.disconnect(); } }); mo.observe(panel, { attributes: true, attributeFilter: ["hidden"] }); } /** * * @param {NodeListOf<HTMLAnchorElement>} anchors * @param {HTMLElement} panel * @param {HTMLElement} dfn * @returns */ function createTrapListener(anchors, panel, dfn) { const lastIndex = anchors.length - 1; let currentIndex = 0; return event => { switch (event.key) { // Hitting "Tab" traps us in a nice loop around elements. case "Tab": { event.preventDefault(); currentIndex += event.shiftKey ? -1 : +1; if (currentIndex < 0) { currentIndex = lastIndex; } else if (currentIndex > lastIndex) { currentIndex = 0; } anchors.item(currentIndex).focus(); break; } // Hitting "Enter" on an anchor releases the trap. case "Enter": hidePanel(panel); break; // Hitting "Escape" returns focus to dfn. case "Escape": hidePanel(panel); dfn.focus(); return; } }; } /** @param {HTMLElement} panel */ function hidePanel(panel) { if (!panel) return; panel.hidden = true; panel.classList.remove("docked"); } })()</script><script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script></body></html>