﻿<?xml version="1.0" encoding="utf-8"?>
<lgr xmlns="urn:ietf:params:xml:ns:lgr-1.0">
  <meta>
    <version comment="Second Level Reference LGR">2</version>
    <date>2024-10-25</date>
    <language>und-Beng</language>
    <unicode-version>11.0.0</unicode-version>
    <description type="text/html"><![CDATA[
       <div class="instructions">
<h2>INSTRUCTIONS</h2>
  <ul>
    <li>These instructions cover how to adopt an LGR based on this reference LGR for a given
    zone and how to prepare the file for deposit in the IANA Repository of IDN Practices.</li>
    <li>As described  the IANA procedure (https://www.iana.org/help/idn-repository-procedure) an 
    LGR MUST contain the following elements in its header:
      <ul style="list-style-type:square;">
        <li>Script or Language Designator (see below for guidance) </li>
        <li>Version Number (this must increase with each amendment to the LGR, even if the updates 
            are limited to the header itself) </li>
        <li>Effective Date (the date at which the policy becomes applicable in operational use) </li>
        <li>Registry Contact Details (contact name, email address, and/or phone number)</li>
      </ul>
    </li>
    <li>The following information is optional:
    <ul style="list-style-type:square;">
    <li>Document creation date</li>
    <li>Applicable Domain(s)</li>
    <li>Changes made to the Reference LGR before adopting</li>
    </ul>
    </li>
  </ul>
  <p>Please add or modify the following items in the <b>XML source code for this file</b> before 
  depositing the document in the IANA Repository. (https://www.iana.org/domains/idn-tables)</p>
<h3>Meta Data</h3>
<p>Note: version numbers start at 1. RFC 7940 recommends using simple integers. The version comment is optional, 
   please replace or delete the default comment. Version comments may be used by some tools as part of the page header.</p>
  <p><code>&lt;version comment=&quot;</code>[Please replace (or delete) the optional comment]<code>&quot;&gt;</code>[Please fill in version number, starting at 1]<code>&lt;/version&gt;</code></p>
  <p><code>&lt;date&gt;</code>[Please fill in with publication date, in YYYY-MM-DD format]<code>&lt;/date&gt;</code></p>
  <p><code>&lt;validity-start&gt;</code>[Please fill in effective date, in YYYY-MM-DD format]<code>&lt;/validity-start&gt;</code></p>
  <p>Note: the scope element may be repeated, so that the same document can serve for multiple domains.</p>
  <p><code>&lt;scope type=&quot;domain&quot;&gt;</code>[Please provide, in &quot;.domain&quot; format]<code>&lt;/scope&gt;</code></p>
<p><strong>Registry Contact Information:</strong></p>
  <p>Please fill in the <a href="#registry_contact_details">Registry Contact Details</a>.</p>
<p><strong>Change History</strong></p>
  <p>If you made technical modifications to the LGR, please summarize them in the <a href="#change_history">Change History</a> (and also note the details in the appropriate section of the description).</p>
<p>PLEASE DELETE THESE INSTRUCTIONS BEFORE DEPOSITING THE DOCUMENT</p></div>
       
       <section id="registry_contact_details">
<h2>Registry Contact Details</h2>
<ul style="list-style:none;">
<li><b>Contact Name:</b> [Please fill in Contact Name]</li>
<li><b>Email address:</b> [Please fill in Email address]</li>
<li><b>Phone Number:</b> [Please fill in optional Phone Number]</li>
</ul>
</section>
       
    <h1>Label Generation Rules for the Bengali (Bangla) script</h1>

    <h2>Overview</h2>
    
    <p>This document specifies a set of Label Generation Rules (LGR) for the Bengali (Bangla) script for the 
    second level domain or domains identified above.
    The starting point for the development of this LGR can be found in the related Root Zone LGR [RZ-LGR-Beng]. 
    [Proposal-Bengali]. The format of this file follows [RFC 7940].
    This LGR is adapted from the “Reference LGR for the Second Level for the Bengali Script” [Ref-LGR-und-Beng], for details, see <a href="#change_history">Change History</a> below.</p>
    
    <p>This LGR covers Assamese, Bengali, Manipuri and a number of other languages written with the Bengali script.
    For details and additional background on the Bengali script, see “Proposal for a Bangla (or Bengali) Script Root Zone Label Generation Ruleset (LGR)” [Proposal-Bengali].</p>

    <h2>Repertoire</h2>
    <p>The repertoire contains 61 code points for letters, as well as 9 code point sequences.
    Out of the nine sequences, two sequences override a WLE constraint; four sequences were defined 
    for in-script variants; and the other three sequences were defined to restrict U+09BC NUKTA from appearing 
    in any context other than these sequences. Accordingly, while U+09BC is not 
    listed by itself, it brings the total of code points available for letters to 62.
     The repertoire is a subset of [Unicode 11.0.0]. For details, see Section 5, “Repertoire” in [Proposal-Bengali].
        (The proposal cited has been adopted for the Bengali script portion of the Root Zone LGR.)</p>

    <p>Note that the code points U+09DC, U+09DD and U+09DF are not in Normalization Form NFC and thus not
    PVALID under IDNA2008. Before performing lookup, any user agent accepting these code points will normalize 
    them into the equivalent sequences with an explicit U+09BC Nukta code point. Accordingly, this LGR 
    does not reference these code points, but instead includes only the sequences.<p>

    <p>For the second level, the repertoire has been augmented with the Bengali digits, U+09E6 to U+09EF, ASCII digits U+0030 to U+0039, and U+002D HYPHEN-MINUS, 
    for a total of 91 repertoire elements.</p>

    <p>Any code points outside the Bengali Script repertoire that are targets for
     out-of-repertoire variants would be included here only if the variant is listed 
     in this file. In this case they are identified as a reflexive (identity) variant
     of type “out-of-repertoire-var”. Whether or not they are listed, they do not 
     form part of the repertoire.</p>

    <p><b>Repertoire Listing:</b> Each code point or range is tagged with the script or scripts with which the code point is used and one or more other character categories. For each repertoire element,
      one or more references document sufficient justification for inclusion in the repertoire; see the <a href="#ref_desc_sec_References">“References”</a> below.
    For code points that are part of the repertoire, comments identify the languages using the code point along with their [EGIDS] level.</p>

    <h2>Variants</h2>

    <p>The variants defined in this LGR are limited to those required for use in zones not shared with any other script. 
    As such, this LGR does not define cross-script variants. 
    However, using this LGR concurrently with any LGR for Gurmukhi and Devanagari in the same zone will create potential cross-script issues. For details, see Section 6, “Variants” in [Proposal-Bengali].
    Mitigation of these cross-script variants can be addressed by using the Common LGR. 
    For details, see Section 3, 
    “Use of Multiple Reference LGRs in the Same Zone” in [Level-2-Overview].
    In addition to variants defined by this LGR, the full variant information related to this script and required for concurrent use with the Gurmukhi and Devanagari LGR(s) can be found 
    in the following LGR: [Ref-LGR-Devanagari-Full-Variant-Script]
  </p>

   <p>This LGR defines in-script variants as described in Section 6, “Variants” in [Proposal-Bengali].
    There are three in-script variants; two sequence sets and one set for variation of RA. See Section 6.1 in [Proposal-Bengali].</p>

    <p id="ref_Digit_Variants"><b>Digit Variants:</b> All Bengali digits are treated as semantic variants of the corresponding common (ASCII) digits.
     By transitivity, they are also semantic variants of any native digits in scripts that also include the common digits.
    Such variant relations are deemed to exist implicitly by transitivity but are not listed explicitly in each reference LGR. Instead, if needed, they are applied by using the Common LGR in label processing.</p>

    <p>In particular, Bengali digit ZERO is a cross-script homoglyph or near homoglyph of digit ZERO in many other scripts; 
    these are already implicit semantic variants by transitivity and therefore not listed here.</p>

    <p>To keep digit variant sets manageable in zones where multiple scripts are present, no attempt has been made at identifying 
    cross-script variants among digits of different numeric value or between a digit in one script and a letter in another, 
    such as between digit zero and Latin letter ‘o’. Other mechanisms may be required to prevent homograph labels.</p>

    <p><b>Variant Disposition:</b> The in-script variant pair U+09B0 / U+09F0 is of type “allocatable”, thus allowing
    access to either user community. All other variants are of type “blocked”, making labels that differ only 
    by these variants mutually exclusive:  whichever label containing either of these variants is chosen earlier, 
    the other one equivalent variant label should be blocked. There is no preference among these variants.</p>

    <p>The specification of variants in this LGR follows the guidelines in [RFC 8228].</p>

   <h2>Character Classes</h2>
    <p><b>Consonants:</b> All consonants contain an implicit vowel. More 
       details in Section 3.3.1, “ The Consonants” of 
       [Proposal-Bengali].</p>

    <p><b>Hasanta:</b> A special sign is needed whenever the 
       implicit vowel in the preceding consonant is stripped off. This symbol is also known as the Halant or “Virama”. More 
       details in Section 3.3.2, “The Implicit Vowel Killer: Hasanta” of 
       [Proposal-Bengali].</p>
    
    <p><b>Vowels and Kar (Matra):</b> Separate symbols exist for all “Swara” or Vowels in Bengali, which are pronounced independently 
       either at the beginning of the word or after another vowel or consonant sound. To indicate a Vowel sound 
       other than the implicit one, a Vowel sign  (Kar) is attached to the consonant, analogous to Matra in other Neo-Brahmi scripts. More details in Section 
       3.3.3, “ Vowels” of 
       [Proposal-Bengali].</p>

    <p><b>Anusvara:</b> The Anusvara represents a homorganic nasal. It replaces a conjunct group of a Nasal 
       Consonant+Halant+Consonant belonging to that particular barga or set. Before a non-barga consonant, 
       the anusvara represents a nasal sound. More details in Section 3.3.4, “The Anusvara” of 
       [Proposal-Bengali].</p>

    <p><b>Candrabindu:</b> Candrabindu denotes nasalization of the preceding vowel as in চাঁদ /cãd/ “moon” 
       (U+099A U+09BE U+0981 U+09A6). This sign with a dot inside the half-moon mark is used as nasalization 
       marker in many Indian scripts. More details in Section 3.3.5, “Nasalization: Candrabindu” of 
       [Proposal-Bengali].</p>
    
    <p><b>Visarga and Avagraha:</b> The Visarga U+0983 is frequently used in Bengali loanwords borrowed from 
       Sanskrit and represents a sound very close to /h/. More details in Section 3.3.7, “Visarga and Avagraha” of 
       [Proposal-Bengali].</p>

    <p><b>Ya-phala:</b> There are two instances in Bangla where a Hasanta is preceded by a full vowel (U+0985 BENGALI LETTER A and U+098F BENGALI LETTER E). 
       More details in Section 3.3.9, “Use of Ya-phala” of 
       [Proposal-Bengali].</p>
        
    <p><b>Ra-phala and Ref Sequences:</b> RA+Hasanta (Repha or Ra-phala sequences). 
       More details in Section 3.3.10, “Ra-phala and Ref Sequences” of 
       [Proposal-Bengali].</p>
        
    <p><b>Nukta:</b> Nukta is not listed by itself in the repertoire; it is only included in three sequences. 
        More details in Section 3.3.6, “Nukta” of 
        [Proposal-Bengali].</p>

    <p><b>Zero Width Non-joiner (ZWNJ) and Zero Width Joiner (ZWJ)</b>: These are not included in the repertoire. 
       More details in Section 3.3.8, “Zero Width Non-joiner (U+200C) and Zero Width Joiner (U+200D)” of 
       [Proposal-Bengali].</p>

    <p><b>Bengali Digits:</b> U+09E6 to U+09EF are a set of Bengali-specific digits. They are used in alternation with the European (common) digits.</p>

    <p><b>Common Digits:</b> U+0030 to U+0039 are the set of digits from the ASCII range. </p>

    <h2>Whole Label Evaluation (WLE) and Context Rules</h2>
    <h3>Common Rules</h3>

    <p>The LGR includes the rules and actions to implement the following restrictions, some of which are mandated by the IDNA
         protocol. They are marked with &#x235F; and included here by default.</p>
         <ul>
       <li><b>Hyphen Restrictions</b> &mdash; restrictions on the allowable placement of hyphens (no leading/ending hyphen
             and no hyphen in positions 3 and 4). These restrictions are described in Section 4.2.3.1 of RFC 5891 [150]. 
             They are implemented here as context rule on U+002D (-) HYPHEN-MINUS.</li>
          <li><b>Leading Combining Marks</b>   &mdash;  restrictions on the allowable placement of combining marks
             (no leading combining mark). This rule is described in Section 4.2.3.2 of RFC 5891 [150].</li>
       <li><b>Digit-mixing</b> &mdash; no mixing between different digit sets (European and Bengali digits)
          is allowed; implemented here as a WLE rule with associated action.</li>
       </ul>

    <h3>Default Actions</h3>

    <p>This LGR includes the complete set default actions for LGRs as well as the action needed to invalidate labels with misplaced combining marks. They are marked with &#x235F;.
        For a description see [RFC 7940] and [150].
        An additional action is triggered by mixed digit labels.
    </p>

    <h3>Bengali-specific Rules</h3>
    <p>These rules have been formulated as context rules suitable for adoption into an LGR specification.</p>
    <p>The following symbols are used in the WLE rules:</p>
    <ul>
        <li>C    →    Consonant </li>
        <li>M    →    Kar (Matra) </li>
        <li>V    →    Vowel </li>
        <li>B    →    Onushshar (Anusvara)  </li>
        <li>X    →    Bisarga (Visarga)  </li>
        <li>D    →    Candrabindu  </li>
        <li>H    →    Hasanta (Halant)</li>
        <li>Z    →    KhandaTa </li>
        <li>P    →    Ra-Hasanta</li>
        <li>S    →    (a/e) Ya-phala</li>
    </ul>
    
    <p>The rules are:</p>
     <ul>
        <li>1. C: C is a set of C and CN where CN is the set of normalized forms of {ড়,ঢ়,য়}</li> 
        <li>2. H: must be preceded by C</li>
        <li>3. M: must be preceded by C</li>
        <li>4. D: must be preceded by any of V, C, M</li>
        <li>5. X: must be preceded by any of V, C, M, D</li>
        <li>6. B: must be preceded by any of V, C, M, D</li>
        <li>7. Z: must be preceded by any of V, C, M, D, B, X, P</li>
        <li>8. V: CANNOT be preceded by H</li>
        <li>9. S: CANNOT be preceded by H</li>
        <li>10. U+09B0 and U+09F0 CANNOT be mixed in the same label</li>
     </ul>
    
     <p>More details in Section 7, “Whole Label Evaluation Rules (WLE)” of [Proposal-Bengali].</p>
    
    <h2>Methodology and Contributors</h2>

    <p>The LGR in this document has been adapted from the corresponding Reference LGR for the Second Level. The Second Level Reference LGR for the Bengali (Bangla) Script was developed by Michel Suignard and Asmus Freytag, based on the Root Zone LGR for the Bengali 
      script and information contained or referenced therein; see [RZ-LGR-Beng]. Suitable extensions for the second level have been applied according to the [Guidelines] and with community input. 
      The original proposal for a Root Zone LGR for the Bengali script, that this reference LGR is based on, was developed by the Neo-Brahmi Generation Panel (NBGP). 
       For more information on methodology and contributors to the underlying Root Zone LGR, see Sections 4 and 8 in [Proposal-Bengali], as well as [RZ-LGR-Overview].</p>

    <section id="change_history">
    <h3>Changes from Version Dated 15 December 2020</h3> <p>Unicode Version has been updated. U+0994 Letter AU has been
    corrected to be a vowel with corresponding context rule.</p>

    <h3>Changes from Version Dated 25 October 2024</h3>
        <p>Adopted from the Second Level Reference LGR for the Bengali (Bangla) Script [Ref-LGR-und-Beng] without normative changes.</p>
    </section>
    
    <h2>References</h2> 

    <p>The following general references are cited in this document:</p>

    <dl class="references">
    <dt>[EGIDS]</dt>
    <dd>Lewis and Simons, “EGIDS: Expanded Graded Intergenerational Disruption Scale,”
      documented in [SIL-Ethnologue] and summarized here:
      https://en.wikipedia.org/wiki/Expanded_Graded_Intergenerational_Disruption_Scale_(EGIDS)</dd>

    <dt>[Guidelines]</dt>
    <dd>ICANN, “Guidelines for Developing Reference LGRs for the Second Level”, (Los Angeles, California: ICANN, 27 May 2020), https://www.icann.org/en/system/files/files/lgr-guidelines-second-level-27may20-en.pdf</dd>

    <dt>[Level-2-Overview]</dt>
    <dd>Internet Corporation for Assigned Names and Numbers, (ICANN),“Reference Label Generation Rules (LGR) for the Second Level: Overview and Summary” (PDF), 
     (Los Angeles, California: ICANN, 25 October 2024), https://www.icann.org/en/system/files/files/level2-lgr-overview-summary-25oct24-en.pdf
      </dd>

    <dt>[Proposal-Bengali]</dt> 
    <dd>Neo-Brahmi Generation Panel, “Proposal for a Bangla (or Bengali) Script Root Zone Label 
         Generation Ruleset (LGR)”, 20 May 2020, 
         https://www.icann.org/en/system/files/files/proposal-bangla-lgr-20may20-en.pdf</dd>

    <dt>[RFC 7940]</dt>
    <dd>Davies, K. and A. Freytag, “Representing Label Generation Rulesets Using XML”, 
     RFC 7940, August 2016, https://www.rfc-editor.org/info/rfc7940</dd> 
     
    <dt>[RFC 8228]</dt>
    <dd>A. Freytag, “Guidance on Designing Label Generation Rulesets (LGRs) Supporting Variant Labels”, RFC 8228, August 2017,
    https://www.rfc-editor.org/info/rfc8228</dd>

    <dt>[Ref-LGR-und-Beng]</dt>
    <dd>ICANN, Second Level Reference Label Generation Rules for the Bengali (Bangla) Script (und-Beng), 25 October 2024 (XML)
      https://www.icann.org/sites/default/files/packages/lgr/lgr-second-level-bengali-script-25oct24-en.xml
      non-normative HTML presentation: https://www.icann.org/sites/default/files/packages/lgr/lgr-second-level-bengali-script-25oct24-en.html</dd>

    <dt>[Ref-LGR-Devanagari-Full-Variant-Script]</dt>
    <dd>ICANN, Second Level Reference Label Generation Rules for the Devanagari Script (und-Deva), 25 October 2024 (XML)
      https://www.icann.org/sites/default/files/packages/lgr/lgr-second-level-devanagari-full-variant-script-25oct24-en.xml
      non-normative HTML presentation: https://www.icann.org/sites/default/files/packages/lgr/lgr-second-level-devanagari-full-variant-script-25oct24-en.html</dd>   

    <dt>[RZ-LGR-Overview]</dt>
    <dd>Integration Panel, “Root Zone Label Generation Rules (RZ LGR-5): Overview and Summary”, 26 May 2022 (PDF), https://www.icann.org/sites/default/files/lgr/rz-lgr-5-overview-26may22-en.pdf</dd>

    <dt>[RZ-LGR-Beng]</dt>
    <dd>ICANN, Root Zone Label Generation Rules for the Bengali Script (und-Beng), 26 May 2022 (XML)
      https://www.icann.org/sites/default/files/lgr/rz-lgr-5-bengali-script-26may22-en.xml</dd>

    <dt>[SIL-Ethnologue]</dt>
    <dd>David M. Eberhard, Gary F. Simons &amp; Charles D. Fennig (eds.). 2021.
     Ethnologue: Languages of the World, Twenty fourth edition. Dallas, Texas: SIL
     International. Online version available as https://www.ethnologue.com</dd>

    <dt>[Unicode 11.0.0]</dt>
    <dd>The Unicode Consortium. The Unicode Standard, Version 11.0.0, (Mountain View, CA: The Unicode Consortium, 2018. ISBN 978-1-936213-19-1) 
     https://www.unicode.org/versions/Unicode11.0.0/</dd>
    </dl>

    <p>For references consulted particularly in designing the repertoire for the Bengali (Bangla) Script for the second level 
      please see details in the <a href="#table_of_references">Table of References</a> below.</p>

    <p>References [0] and [7] refer to the Unicode Standard versions in which the
    corresponding code points were initially encoded. References [101] and above correspond to sources
    given in [Proposal-Bengali] justifying the inclusion of the corresponding code points. 
    Entries in the table may have
        multiple source reference values. 
        In the listing of <a href="#whole_label_evaluation_and_context_rules">whole label evaluation and context rules</a>,
        reference [150] indicates the source for common rules.</p>

]]></description>
    <references>
      <reference id="0" comment="Any code point originally encoded in Unicode Version 1.1">The Unicode Standard, Version 1.1</reference>
      <reference id="7" comment="Any code point originally encoded in Unicode Version 4.1">The Unicode Standard, Version 4.1</reference>
      <reference id="101">Wikipedia, Bengali alphabet, accessed on 2017-11-25 https://en.wikipedia.org/wiki/Bengali_alphabet</reference>
      <reference id="102">Bengali alphabet for Manipuri, found in Omniglot, Manipuri (Meeteilon/ Meithei), accessed on 20.10.2019 https://www.omniglot.com/writing/manipuri.htm</reference>
      <reference id="103">Omniglot, Assamese (অসমীয়া), accessed on 2020-04-28 https://www.omniglot.com/writing/assamese.htm</reference>
      <reference id="150">RFC 5891, Internationalized Domain Names in Applications (IDNA): Protocol https://tools.ietf.org/html/rfc5891</reference>
    </references>
  </meta>
  <data>
    <char cp="002D" not-when="hyphen-minus-disallowed" tag="sc:Zyyy" ref="0" comment="HYPHEN-MINUS; &#x235F;" />
    <char cp="0030" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT ZERO; &#x235F;">
      <var cp="09E6" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0031" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT ONE; &#x235F;">
      <var cp="09E7" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0032" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT TWO; &#x235F;">
      <var cp="09E8" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0033" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT THREE; &#x235F;">
      <var cp="09E9" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0034" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT FOUR; &#x235F;">
      <var cp="09EA" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0035" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT FIVE; &#x235F;">
      <var cp="09EB" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0036" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT SIX; &#x235F;">
      <var cp="09EC" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0037" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT SEVEN; &#x235F;">
      <var cp="09ED" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0038" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT EIGHT; &#x235F;">
      <var cp="09EE" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0039" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT NINE; &#x235F;">
      <var cp="09EF" type="blocked" comment="Bengali digit variant" />
    </char>
    <char cp="0981" when="follows-only-V-C-M" tag="Candrabindu sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0982" when="follows-only-V-C-M-D" tag="Anusvara sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0983" when="follows-only-V-C-M-D" tag="sc:Beng Visarga" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0985" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0985 09CD 09AF 09BE" not-when="follows-H" comment="Ya-Phalaa (s1): Bangla, Assamese" />
    <char cp="0986" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0987" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0988" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0989" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="098A" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="098B" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="098F" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="098F 09CD 09AF 09BE" not-when="follows-H" comment="Ya-Phalaa (s2): Bangla (1)" />
    <char cp="0990" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0993" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0994" not-when="follows-H" tag="sc:Beng Vowel" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0995" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0996" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0997" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0998" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="0999" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="099A" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="099B" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="099C" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="099D" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="099E" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="099F" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A0" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A1" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A1 09BC" ref="0 101 102 103" comment="U+09DC is the preferred code point, however it is not available for LGR as per the standards governing this LGR development" />
    <char cp="09A2" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A2 09BC" ref="0 101 102 103" comment="U+09DD is the preferred code point, however it is not available for LGR as per the standards governing this LGR development" />
    <char cp="09A3" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A4" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A5" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A6" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A7" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A8" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09A8 09CD 09A5" comment="Bengali variant">
      <var cp="09A8 09CD 09B9" type="blocked" comment="Bengali variant" />
    </char>
    <char cp="09A8 09CD 09B9" comment="Bengali variant">
      <var cp="09A8 09CD 09A5" type="blocked" comment="Bengali variant" />
    </char>
    <char cp="09AA" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09AB" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09AC" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09AD" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09AE" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09AF" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09AF 09BC" ref="0 101 102 103" comment="U+09DF is the preferred code point, however it is not available for LGR as per the standards governing this LGR development" />
    <char cp="09B0" tag="C2 Consonant sc:Beng" ref="0 101 102" comment="Bangla (1), Manipuri (2)">
      <var cp="09F0" type="allocatable" comment="Bengali variant" />
    </char>
    <char cp="09B2" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09B6" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09B7" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09B8" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09B8 09CD 09A5" comment="Bengali variant">
      <var cp="09B8 09CD 09B9" type="blocked" comment="Bengali variant" />
    </char>
    <char cp="09B8 09CD 09B9" comment="Bengali variant">
      <var cp="09B8 09CD 09A5" type="blocked" comment="Bengali variant" />
    </char>
    <char cp="09B9" tag="Consonant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09BE" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09BF" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09C0" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09C1" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09C2" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09C3" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09C4" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 103" comment="Bangla (1), Assamese (2)" />
    <char cp="09C7" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09C8" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09CB" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09CC" when="follows-only-C" tag="Matra sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09CD" when="follows-only-C" tag="Halant sc:Beng" ref="0 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09CE" when="follows-only-V-C-M-D-B-X-P" tag="Consonant KhandaTa sc:Beng" ref="7 101 102 103" comment="Bangla (1), Manipuri (2), Assamese (2)" />
    <char cp="09E6" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT ZERO">
      <var cp="0030" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09E7" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT ONE">
      <var cp="0031" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09E8" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT TWO">
      <var cp="0032" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09E9" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT THREE">
      <var cp="0033" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09EA" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT FOUR">
      <var cp="0034" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09EB" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT FIVE">
      <var cp="0035" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09EC" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT SIX">
      <var cp="0036" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09ED" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT SEVEN">
      <var cp="0037" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09EE" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT EIGHT">
      <var cp="0038" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09EF" tag="Bengali-digit sc:Beng" ref="0" comment="BENGALI DIGIT NINE">
      <var cp="0039" type="blocked" comment="ASCII digit variant" />
    </char>
    <char cp="09F0" tag="C2 Consonant sc:Beng" ref="0 103" comment="Assamese (2)">
      <var cp="09B0" type="allocatable" comment="Bengali variant" />
    </char>
    <char cp="09F1" tag="Consonant sc:Beng" ref="0 102 103" comment="Manipuri (2), Assamese (2)" />
  </data>
  <!--Rules section goes here-->
  <rules>
    <!--Character class definitions go here-->
    <class name="C-single" from-tag="Consonant" comment="Any Bengali consonant" />
    <class name="V" from-tag="Vowel" comment="Any Bengali vowel letter" />
    <class name="M" from-tag="Matra" comment="Any Bengali vowel sign (matra)" />
    <class name="H" from-tag="Halant" comment="The Bengali Hasanta (Halant / Virama)" />
    <class name="B" from-tag="Anusvara" comment="The Bengali Onushshar (Anusvara)" />
    <class name="X" from-tag="Visarga" comment="The Bengali Bisarga (Visarga)" />
    <class name="D" from-tag="Candrabindu" comment="The Bengali Candrabindu" />
    <class name="C2" from-tag="C2" comment="Any Bengali consonant from set C2" />
    <class name="common-digits" from-tag="Common-digit" comment="Digits from the ASCII range &#x235F;" />
    <class name="bengali-digits" from-tag="Bengali-digit" comment="Bengali digits" />
    <!--Whole label evaluation and context rules go here-->
    <rule name="C-RRA" comment="NFC form of BENGALI LETTER RRA">
      <char cp="09A1 09BC" />
    </rule>
    <rule name="C-RHA" comment="NFC form of BENGALI LETTER RHA">
      <char cp="09A2 09BC" />
    </rule>
    <rule name="C-YYA" comment="NFC form of BENGALI LETTER YYA">
      <char cp="09AF 09BC" />
    </rule>
    <rule name="C" comment="Section 7, WLE1: All consonants in the LGR repertoire; single code points and sequences">
      <choice>
        <class by-ref="C-single" />
        <rule by-ref="C-RRA" />
        <rule by-ref="C-RHA" />
        <rule by-ref="C-YYA" />
      </choice>
    </rule>
    <rule name="leading-combining-mark" ref="150" comment="RFC 5891 restrictions on placement of combining marks &#x235F;">
      <start />
      <union>
        <class property="gc:Mn" />
        <class property="gc:Mc" />
      </union>
    </rule>
    <rule name="hyphen-minus-disallowed" ref="150" comment="RFC 5891 restrictions on placement of U+002D HYPHEN-MINUS &#x235F;">
      <choice>
        <rule comment="no leading hyphen">
          <look-behind>
            <start />
          </look-behind>
          <anchor />
        </rule>
        <rule comment="no trailing hyphen">
          <anchor />
          <look-ahead>
            <end />
          </look-ahead>
        </rule>
        <rule comment="no consecutive hyphens in third and fourth position in the label">
          <look-behind>
            <start />
            <any />
            <any />
            <char cp="002D" comment="hyphen" />
          </look-behind>
          <anchor />
        </rule>
      </choice>
    </rule>
    <rule name="follows-only-C" comment="Section 7, WLE 2: H: must be preceded by C ; WLE 3: M: must be preceded by C">
      <look-behind>
        <rule by-ref="C" />
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-only-V-C-M" comment="Section 7, WLE 4: D: must be preceded by any of V, C, M">
      <look-behind>
        <choice>
          <class by-ref="V" />
          <rule by-ref="C" />
          <class by-ref="M" />
        </choice>
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-only-V-C-M-D" comment="Section 7, WLE 5: X: must be preceded by any of V, C, M, D; WLE 6: B: must be preceded by any of V, C, M, D">
      <look-behind>
        <choice>
          <class by-ref="V" />
          <rule by-ref="C" />
          <class by-ref="M" />
          <class by-ref="D" />
        </choice>
      </look-behind>
      <anchor />
    </rule>
    <rule name="P" comment="Ra-Hasanta, defined for use in WLE-7">
      <class by-ref="C2" />
      <class by-ref="H" />
    </rule>
    <rule name="follows-only-V-C-M-D-B-X-P" comment="Section 7, WLE 7: Khanda Ta must be preceded by V, C, M, D, B, X, P">
      <look-behind>
        <choice>
          <class by-ref="V" />
          <rule by-ref="C" />
          <class by-ref="M" />
          <class by-ref="D" />
          <class by-ref="B" />
          <class by-ref="X" />
          <rule by-ref="P" />
        </choice>
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-H" comment="Section 7, WLE 8: V cannot be preceded by H, WLE 9: S cannot be preceded by H">
      <look-behind>
        <class by-ref="H" />
      </look-behind>
      <anchor />
    </rule>
    <rule name="no-mix-09B0-09F0" comment="Section 7, WLE 10: U+09B0 and U+09F0 cannot be mixed.">
      <choice>
        <rule>
          <char cp="09B0" />
          <any count="0+" />
          <char cp="09F0" />
        </rule>
        <rule>
          <char cp="09F0" />
          <any count="0+" />
          <char cp="09B0" />
        </rule>
      </choice>
    </rule>
    <rule name="digit-mixing" comment="restrictions on mixing digits">
      <choice>
        <rule>
          <class by-ref="common-digits" />
          <any count="0+" />
          <class by-ref="bengali-digits" />
        </rule>
        <rule>
          <class by-ref="bengali-digits" />
          <any count="0+" />
          <class by-ref="common-digits" />
        </rule>
      </choice>
    </rule>
    <!--Action elements go here - order defines precedence-->
    <action disp="invalid" match="leading-combining-mark" ref="150" comment="labels with leading combining marks are invalid &#x235F;" />
    <action disp="invalid" match="digit-mixing" comment="a label violating the restriction on digit mixing is invalid" />
    <action disp="invalid" match="no-mix-09B0-09F0" comment="WLE 10: U+09B0 and U+09F0 cannot be mixed." />
    <action disp="invalid" any-variant="out-of-repertoire-var" comment="any variant label with a code point out of repertoire is invalid &#x235F;" />
    <action disp="blocked" any-variant="blocked" comment="any variant label containing blocked variants is blocked &#x235F;" />
    <action disp="allocatable" all-variants="allocatable" comment="variant labels with all variants allocatable are allocatable &#x235F;" />
    <action disp="valid" comment="catch all; default action &#x235F;" />
  </rules>
</lgr>