﻿<?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-Guru</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 Gurmukhi Script</h1>

    <h2>Overview</h2>

    <p>This document specifies a set of Label Generation Rules (LGR) for the Gurmukhi 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-Guru]. 
    The format of this file follows [RFC 7940].
    This LGR is adapted from the “Reference LGR for the Second Level for the Gurmukhi Script” [Ref-LGR-und-Guru], for details, see <a href="#change_history">Change History</a> below.</p>

    <p>For details and additional background on the Gurmukhi script, see “Proposal for a Gurmukhi Script Root Zone 
     Label Generation Ruleset (LGR)" [Proposal-Gurmukhi].</p>

<h2>Repertoire</h2>
    <p>The repertoire contains 56 codepoints for letters used by the Punjabi language written using the Gurmukhi script. 
    Punjabi ([EGIDS] level 2) is the only language currently using the Gurmukhi script. 
    The repertoire is a subset of [Unicode 11.0.0]. For details, see Section 5, “Repertoire” in [Proposal-Gurmukhi].
        (The proposal cited has been adopted for the Gurmukhi script portion of the Root Zone LGR.)</p>

    <p>For the second level, the repertoire has been augmented with the ASCII digits, U+0030 to U+0039, plus U+002D HYPHEN-MINUS, for a total of 67 repertoire elements.</p>

    <p>Any code points outside the Gurmukhi 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 language using the code point, as well as alternate names of some code points.</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 Bengali and Devanagari in the same zone will create potential cross-script issues. For details, see Section 6, “Variants” in [Proposal-Gurmukhi].
    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 Bengali and Devanagari LGR(s) can be found 
    in the following LGR: [Ref-LGR-Devanagari-Full-Variant-Script]
  </p>

    <p>>There are no in-script variants 
    defined for Gurmukhi is Section 6, “Variants” of [<a href="#ref_Proposal-Gurmukhi">Proposal-Gurmukhi</a>].
    However, one pair of in-script variants is included here
    based on highly confusable appearance.</p>

    <p><b>Digit Variants:</b> The Gurmukhi reference LGR does not include native digits, so there are no semantic variants defined.</p>

    <p><b>Variant Disposition:</b> All 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 would be delegated, while any other equivalent labels should be blocked.
    There is no preference among these labels.</p>

    <p>This LGR does not define allocatable variants.</p>

    <p>The specification of variants in this LGR follows the guidelines in [RFC 8228].</p>

    <h2>Character Classes</h2>
    <p>Gurmukhi is an alphasyllabary and the heart of the writing system is 
    the <em>akshar</em>. This is the unit which is instinctively recognized by users of the script.
    The elements of the writing system consist of Consonants, Implicit 
    Vowel Killer: Halant, Vowels, Bindi, Tippi, Addak, Nukta and Visarga.</p>
    
    <p><b>Consonants:</b> Gurmukhi consonants contain an implicit vowel schwa /ə/. 
    They are also used without any modification to represent consonant sounds without an implicit /ə/ vowel 
    More details in Section 3.3.1, “The Consonants” in [Proposal-Gurmukhi]. </p>
    
    <p><b>Virama:</b> Unlike the Halant in other Neo-Brahmi scripts, U+094D GURMUKHI SIGN VIRAMA is not used in general 
    to strip a consonant letter’s implicit vowel. The Virama is only used to create a conjunct where the letter 
    U+0A39 HA, U+0A30 RA or U+0A35 VA is the second element in a conjunct. 
    More details in Section 3.3.2,  “The Implicit Vowel Killer: Virama” in [Proposal-Gurmukhi].
    </p>

    <p><b>Vowels and Matras:</b> Punjabi has seven long vowels and three short vowels (ਅ /ə/, ਇ /I/, and ਉ /U/) . Each of them, except U+0A05 
    have a corresponding vowel sign, or matra, which is used to modify the vowel inherent in the preceding consonant. 
    More details in Section 3.3.3, “Vowels” in [Proposal-Gurmukhi].</p>
    
    <p><b>Bindi:</b> Bindi represents a homo-organic nasal. Bindi is used with all 
    long vowels and the short vowel U+0A09, as well as with the matras of long vowels, except the matra U+0A42. More 
    details in Section 3.3.4.1, “The Bindi” in [Proposal-Gurmukhi].</p>
    
    <p><b>Tippi:</b> Tippi is used to nasalize short vowels /ə/ and /I/ at all places,
     as well as /U/ and /u/ after a consonant.  Therefore, Tippi comes after consonants without
     a vowel sign (representing the matra of /ə/ “mukta”) and after the matra of /I/ ( ਿ )  following vowel carriers
     and consonants, such as in ਸੰ and ਸਿੰ. The matras of /U/ ( ੁ,)  and /u/ ( ੂ ) 
     following a consonant also take a Tippi.  In addition, Tippi is used in gemination
     for nasal consonants ਙ, ਞ, ਨ and ਮ.
     More details in Section 3.3.4.2, “The Tippi” in [Proposal-Gurmukhi].</p>

    <p><b>Addak:</b> Addak is used to mark the gemination of the following consonant. 
    In Punjabi, addak usually can follow mukta, aunkar ( ੁ ) and sihari ( ਿ ), and the 
    vowel signs of the short vowels /ə/, /u/ and /i/. It geminates the consonant that 
    follows it; therefore it cannot occur at the end of a label. More details in  Section 3.3.4.3
    “The Addak” in [Proposal-Gurmukhi].</p>
    
    <p><b>Nukta:</b> Called <i>pairin bindi</i> in Punjabi, Nukta is used with the six
    consonants (ਸ, ਖ, ਗ, ਜ, ਫ and ਲ ) defined as set C1 to represent the phonemes of words of Sanskrit
    and Perso-Arabic sources. More details in Section 3.3.4.4, “Nukta” in [Proposal-Gurmukhi]. </p>

    <h2>Whole Label Evaluation (WLE) and Context Rules</h2>
    <h3>Common Rules</h3>

    <p>By default, the LGR includes the rules and actions to implement the following restrictions mandated by the IDNA protocol. They are marked with &#x235F;.</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>
       </ul>

    <h3>Default Actions</h3>

    <p>This LGR includes the 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].</p>

    <h3>Gurmukhi-specific Rules</h3>
    <p>These rules have been drafted to ensure that the prospective Gurmukhi label conforms
    to akshar formation norms as desired in Gurmukhi script.  These norms are exclusively 
    presented as context rules.</p>
    <p>The following symbols are used in the WLE rules: 
    <br/>C   →   Consonant
    <br/>M   →   Matra
    <br/>V   →   Vowel
    <br/>B   →   Bindi 
    <br/>D   →   Tippi
    <br/>A   →   Addak
    <br/>H   →   Virama / Halant
    <br/>N   →   Nukta
    <br/>M1 →    { ਿ(U+0A3F),  ੁ (U+0A41) } (Short matras)
    <br/>M2 →    M - M1  (Long matras)
    <br/>V1 →    { ਅ (U+0A05),  ਇ (U+0A07),  ਉ (U+0A09)} (Short Vowels)
    <br/>V2 →    V - V1  (Long Vowel)
    <br/>C1 →    {ਖ (U+0A16), ਗ (U+0A17), ਜ (U+0A1C), ਫ (U+0A2B), ਲ (U+0A32), ਸ (U+0A38)}
    <br/>C2 →    { ਰ (U+0A30), ਵ (U+0A35), ਹ (U+0A39)}
    <br/>C3 →    C – {ਙ (U+0A19), ਞ (U+0A1E), ਣ (U+0A23), ਹ (U+0A39), ੜ (U+0A5C)}
    </p>
    
    <p>The rules are: </p>
     <ul>
     <li>7.1 N: must be preceded by C1</li>
     <li>7.2 H: must be preceded by C or N and followed by C2</li>
     <li>7.3 M: must be preceded by C or N</li>
     <li>7.4 B: must be preceded by specific V or M</li>
     <li>7.5 D: must be preceded by C, N or specific V or M</li>
     <li>7.6 A: must be preceded by C, N or specific V or M and followed by C3</li>
     </ul>
    
     <p>More details in Section 7, “Whole Label Evaluation Rules (WLE)” in [Proposal-Gurmukhi].</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 Gurmukhi Script was developed by Michel Suignard and Asmus Freytag, based on the Root Zone LGR for the Gurmukhi 
      script and information contained or referenced therein; see [RZ-LGR-Guru]. 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 Gurmukhi 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-Gurmukhi], 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.</p>

    <h3>Changes from Version Dated 25 October 2024</h3>
        <p>Adopted from the Second Level Reference LGR for the Gurmukhi Script [Ref-LGR-und-Guru] 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>[Gurmukhi-Chart]</dt>
    <dd>Gurmukhi Unicode chart (Accessed on 21 May 2018) https://unicode.org/charts/PDF/U0A00.pdf</dd>

    <dt>[Proposal-Gurmukhi]</dt> 
    <dd>Neo-Brahmi Generation Panel, “Proposal for a Gurmukhi Script Root Zone Label Generation Ruleset (LGR)”, 22 April 2019, 
     https://www.icann.org/en/system/files/files/proposal-gurmukhi-lgr-22apr19-en.pdf</dd>

    <dt>[Ref-LGR-und-Guru]</dt>
    <dd>ICANN, Second Level Reference Label Generation Rules for the Gurmukhi Script (und-Guru), 25 October 2024 (XML)
      https://www.icann.org/sites/default/files/packages/lgr/lgr-second-level-gurmukhi-script-25oct24-en.xml
      non-normative HTML presentation: https://www.icann.org/sites/default/files/packages/lgr/lgr-second-level-gurmukhi-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>[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>[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-Guru]</dt>
    <dd>ICANN, Root Zone Label Generation Rules for the Gurmukhi Script (und-Guru), 26 May 2022 (XML)
      https://www.icann.org/sites/default/files/lgr/rz-lgr-5-gurmukhi-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 Gurmukhi Script for the second level 
      please see details in the <a href="#table_of_references">Table of References</a> below.</p>

     <p>Reference [0] refers to the Unicode Standard version in which the
      corresponding code points were initially encoded. References [105] and above correspond to sources
      given in [Proposal-Gurmukhi] 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="105">Omniglot, https://www.omniglot.com/writing/punjabi.htm (Accessed on 10 Nov. 2017)</reference>
      <reference id="110">Gurmukhi Alphabet :: Lesson 11, “Gurmukhi Vowel Signs Group-1 Mukta and Kanna”, https://elearnpunjabi.com (Accessed on 10 Nov. 2017)</reference>
      <reference id="112">A reference Grammar of Punjabi, https://pt.learnpunjabi.org/assets/A%20Reference%20Grammar_Final.pdf (Accessed on 10 Nov. 2017)</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;" />
    <char cp="0031" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT ONE; &#x235F;" />
    <char cp="0032" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT TWO; &#x235F;" />
    <char cp="0033" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT THREE; &#x235F;" />
    <char cp="0034" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT FOUR; &#x235F;" />
    <char cp="0035" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT FIVE; &#x235F;" />
    <char cp="0036" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT SIX; &#x235F;" />
    <char cp="0037" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT SEVEN; &#x235F;" />
    <char cp="0038" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT EIGHT; &#x235F;" />
    <char cp="0039" tag="Common-digit sc:Zyyy" ref="0" comment="DIGIT NINE; &#x235F;" />
    <char cp="0A02" when="follows-specific-V-or-M" tag="Bindi sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A05" tag="sc:Guru V1 Vowel" ref="0 105 112" comment="= aira; Punjabi" />
    <char cp="0A06" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A07" tag="sc:Guru V1 Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A08" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A09" tag="sc:Guru V1 Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A0A" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A0F" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A10" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A13" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A14" tag="sc:Guru Vowel" ref="0 105 112" comment="Punjabi" />
    <char cp="0A15" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A16" tag="C1 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A17" tag="C1 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A18" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A19" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A1A" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A1B" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A1C" tag="C1 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A1D" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A1E" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A1F" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A20" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A21" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A22" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A23" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A24" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A25" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A26" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A27" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A28" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A2A" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A2B" tag="C1 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A2C" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A2D" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A2E" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A2F" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A30" tag="C2 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A32" tag="C1 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A35" tag="C2 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A38" tag="C1 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A39" tag="C2 Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A3C" when="follows-C1" tag="Nukta sc:Guru" ref="0 105 112" comment="= pairin bindi; Punjabi" />
    <char cp="0A3E" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 110 112" comment="= kanna; Punjabi" />
    <char cp="0A3F" when="follows-C-or-N" tag="M1 Matra sc:Guru" ref="0 105 112" comment="= sihari; Punjabi" />
    <char cp="0A40" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 112" comment="= bihari; Punjabi" />
    <char cp="0A41" when="follows-C-or-N" tag="M1 Matra sc:Guru" ref="0 105 112" comment="= aunkar; Punjabi" />
    <char cp="0A42" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 112" comment="= dulainkar; Punjabi" />
    <char cp="0A47" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 112" comment="= lanvan; Punjabi">
      <var cp="0A4B" type="blocked" comment="Gurmukhi variant" />
    </char>
    <char cp="0A48" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 112" comment="= dulavan; Punjabi" />
    <char cp="0A4B" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 112" comment="= hora; Punjabi">
      <var cp="0A47" type="blocked" comment="Gurmukhi variant" />
    </char>
    <char cp="0A4C" when="follows-C-or-N" tag="Matra sc:Guru" ref="0 105 112" comment="= kanaura; Punjabi" />
    <char cp="0A4D" when="follows-C-or-N-and-precedes-C2" tag="sc:Guru Virama" ref="0 105 112" comment="Punjabi" />
    <char cp="0A5C" tag="Consonant sc:Guru" ref="0 105 112" comment="Punjabi" />
    <char cp="0A70" when="follows-C-N-or-specific-V-or-M" tag="sc:Guru Tippi" ref="0 105 112" comment="Punjabi" />
    <char cp="0A71" when="follows-C-N-or-specific-V-or-M-and-precedes-C3" tag="Addak sc:Guru" ref="0 105 112" comment="Punjabi" />
  </data>
  <!--Rules section goes here-->
  <rules>
    <!--Character class definitions go here-->
    <class name="C" from-tag="Consonant" comment="Any Gurmukhi consonant" />
    <class name="V" from-tag="Vowel" comment="Any Gurmukhi independent vowel" />
    <class name="M" from-tag="Matra" comment="Any  Gurmukhi vowel sign (matra)" />
    <class name="N" from-tag="Nukta" comment="The Gurmukhi Nukta" />
    <class name="V1" from-tag="V1" comment="Specific vowels that are used with Gurmukhi Addak" />
    <difference name="V2" comment="Specific vowels that are used with Gurmukhi Bindi">
      <class by-ref="V" />
      <class by-ref="V1" />
    </difference>
    <class name="M1" from-tag="M1" comment="Gurmukhi short matras" />
    <difference name="M2" comment="Gurmukhi long matras">
      <class by-ref="M" />
      <class by-ref="M1" />
    </difference>
    <class name="C1" from-tag="C1" comment="Specific consonants preceding Gurmukhi Nukta" />
    <class name="C2" from-tag="C2" comment="Specific consonants following Gurmukhi Halant" />
    <difference name="C3" comment="Specific consonants following Gurmukhi Addak">
      <class by-ref="C" />
      <class>0A19 0A1E 0A23 0A39 0A5C</class>
    </difference>
    <!--Whole label evaluation and context rules go here-->
    <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-minus" />
          </look-behind>
          <anchor />
        </rule>
      </choice>
    </rule>
    <rule name="follows-C1" comment="Section 7.1. N: must be preceded by C1">
      <look-behind>
        <class by-ref="C1" />
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-C-or-N-and-precedes-C2" comment="Section 7.2. H: must be preceded by C or N and followed by C2">
      <look-behind>
        <choice>
          <class by-ref="C" />
          <class by-ref="N" />
        </choice>
      </look-behind>
      <anchor />
      <look-ahead>
        <class by-ref="C2" />
      </look-ahead>
    </rule>
    <rule name="follows-C-or-N" comment="Section 7.3. M: must be preceded by C or N">
      <look-behind>
        <choice>
          <class by-ref="C" />
          <class by-ref="N" />
        </choice>
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-specific-V-or-M" comment="Section 7.4. Bindi must be preceded by specific V or M">
      <look-behind>
        <choice>
          <class by-ref="V2" />
          <char cp="0A09" comment="GURMUKHI LETTER U" />
          <rule>
            <difference>
              <class by-ref="M2" />
              <class>0A42</class>
            </difference>
          </rule>
        </choice>
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-C-N-or-specific-V-or-M" comment="Section 7.5. Tippi must be preceded by C, N or specific V or M">
      <look-behind>
        <choice>
          <class by-ref="C" />
          <class by-ref="N" />
          <rule>
            <difference>
              <class by-ref="V1" />
              <class>0A09</class>
            </difference>
          </rule>
          <class by-ref="M1" />
          <char cp="0A42" comment="GURMUKHI LETTER SIGN DULAINKAR" />
        </choice>
      </look-behind>
      <anchor />
    </rule>
    <rule name="follows-C-N-or-specific-V-or-M-and-precedes-C3" comment="Section 7.6. Addak must be preceded by C, N or specific V or M and followed by C3">
      <look-behind>
        <choice>
          <class by-ref="C" />
          <class by-ref="N" />
          <class by-ref="V1" />
          <char cp="0A10" comment="GURMUKHI LETTER AI" />
          <class by-ref="M1" />
          <char cp="0A48" comment="GURMUKHI VOWEL SIGN AI" />
        </choice>
      </look-behind>
      <anchor />
      <look-ahead>
        <class by-ref="C3" />
      </look-ahead>
    </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" 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>