Root Zone LGR for script: Sinhala (Sinh) | lgr-4-sinhala-script-05nov20-en

This document is mechanically formatted from the above XML file for the LGR. It provides additional summary data and explanatory text. The XML file remains the sole normative specification of the LGR.

Date | 2020-11-05
LGR Version | 4
Language | und-Sinh
Scope | domain: "." (Root)
Unicode Version | 6.3.0

## Table of Contents

# 1 Description

# Root Zone Label Generation Rules for the Sinhala Script

## Overview

This file contains Label Generation Rules (LGR) for the Sinhala script for the Root Zone. For more details on this LGR and its development, as well as background on the script, see "Proposal for a Sinhala Script Root Zone Label Generation Rules-Set (LGR)" [Proposal-Sinhala]. This file is one of a set of LGR files that together form an integrated LGR for the DNS Root Zone [RZ-LGR-4]. The format of this file follows [RFC 7940].

## Repertoire

According to Section 5, "Repertoire" in [Proposal-Sinhala], the Sinhala LGR contains 72 single code points. The addition of 4 sequences used in the definition of variants brings the total repertoire entries to 76. The repertoire covers the Sinhala language as written with the Sinhala script.

The repertoire is based on [MSR-4], which is a subset of [Unicode 6.3].

As part of the Root Zone, this LGR includes neither digits nor the HYPHEN-MINUS.

Each code point is tagged with the script or scripts that the code point is used with, one or more tag values denoting character category, and one or more references documenting sufficient justification for inclusion in the repertoire; see "References" below.

## Variants

According to Section 6, "Variants", in [Proposal-Sinhala], this LGR defines variants within Sinhala which can cause confusion for even a careful observer. There are no cross-script variants, though some confusing cases are identified in [Proposal-Sinhala].

Variant Disposition: 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 any other equivalent label should be blocked. There is no preference among these variants.

This LGR does not define allocatable variants.

Context Rules for Variants: for some of the variants defined in this LGR the sequences or code points making up source and target are constrained by explicit context rules on the code points (or by implicit context rules defined for the adjacent code points). In such a case, any variants may require context rules that match the intersection between the effective contexts for both source and target; otherwise, a sequence might be considered valid in some variant label when it would not be valid in an equivalent context in an original label. Symmetry requires the same context rule for both forward and reverse mappings.

The specification of variants in the Root Zone LGR follows the guidelines in [RFC 8228].

## Character Classes

As most Brahmi-derived scripts, Sinhala is an alphasyllabary writing system and written from left to right. All the categories of Consonants, Vowels, Matras, Halant, Anusvara, Visarga and Sannjakas are discussed below.

Consonants: There are 40 consonants in Sinhala alphabet and 38 of them are selected for inclusion. Its consonants imply inherent vowel a(අ) when they are used without dependent vowels. Absence of the inherent vowel is marked by adding hal kirima (remover of the inherent vowel) to the consonant; thus ක /ka/ but ක් /k/, and ව /va/ but ව් /v/. More details in Section 3.3.1, "The Consonants" in [Proposal-Sinhala].

Vowels and Matras: There are separate symbols (dependent vowels) for all the vowels except the inherent vowel අ in Sinhala. Independent vowels are used at the beginning of a word and dependent vowels (matras) are used after consonants. More details in Section 3.3.2, "The Vowels" in [Proposal-Sinhala].

Halanta: The Halanta, which is also called halkirima or hallakuna, is encoded as U+0DCA ( ් ) SINHALA SIGN AL-LAKUNA. This sign is used to remove the inherent vowel of the consonants in Sinhala, and to join consonants and form conjunct characters. More details in Section 3.3.3, "Halanta: The Inherent Vowel Remover" in [Proposal-Sinhala].

Anusvara: U+0D82 ( ං ) SINHALA SIGN ANUSVARAYA, pronounced /ŋ/, represents all the nasals. It can be preceded by any sign except halanta (U+0DCA). More details in Section 3.3.4, "The Anusvara" in [Proposal-Sinhala].

Visarga: U+0D83 ( ඃ ) SINHALA SIGN VISARGAYA is a rarely used sign and pronounced as /h/. It can be preceded by any sign except halanta (U+0DCA). More details in Section 3.3.5, "The Visarga" in [Proposal-Sinhala].

Sannjakas: There are five separate letters for prenasalized voiced stops called sannjakas in Sinhala. From among these, ඦ is not frequently used. Sannjakas cannot be followed by halanta. More details in Section 3.3.6, "Sannjakas" in [Proposal-Sinhala].

## Whole Label Evaluation (WLE) and Context Rules

### Default Whole Label Evaluation Rules and Actions

The LGR includes the set of required default WLE rules and actions applicable to the Root Zone and defined in [MSR-4]. They are marked with ⍟. The default prohibition on leading combining marks is equivalent to ensuring that a label only starts with a consonant or vowel.

### Sinhala-specific Rules

These rules have been formulated so that they can be adopted for LGR specification.

The following symbols are used in the WLE rules:
C → Consonant
M → Matra / Vowel Signs
V → Vowel
B → Anusvara (Bindu)
X → Visarga
H → Halanta / Virama
J → Sannjaka

The rules are:

- 1. H: must be preceded by C
- 2. M: must be preceded by C or J
- 3. X: must be preceded by either V, C, or M
- 4. B: must be preceded by either V, C, J or M

The following context rules apply to code points in variant sets to ensure the variant transitivity.

- 5. variants are undefined preceding a Halant or Matra
- 6. variants are undefined preceding an Anusvara, Visarga, Halant or Matra

More details in Section 7,"Whole Label Evaluation Rules (WLE)" in [Proposal-Sinhala]

## Methodology and Contributors

The Root Zone LGR for the Sinhala script was developed by the Sinhala Generation Panel in consultation with the Neo-Brahmi Generation Panel. For methodology and contributors, see Sections 4 and 8 in [Proposal-Sinhala], as well as [RZ-LGR-4-Overview].

## References

The following general references are cited in this document:

[MSR-4]
  Integration Panel, "Maximal Starting Repertoire — MSR-4 Overview and Rationale", 7 February 2019,
  https://www.icann.org/en/system/files/files/msr-4-overview-25jan19-en.pdf
[Proposal-Sinhala]
  Sinhala Generation Panel, “Proposal for a Sinhala Script Root Zone Label Generation Ruleset (LGR)”, 22 April 2019,
  https://www.icann.org/en/system/files/files/proposal-sinhala-lgr-22apr19-en.pdf
[RFC 7940]
  Davies, K. and A. Freytag, "Representing Label Generation Rulesets Using XML", RFC 7940, August 2016,
  http://www.rfc-editor.org/info/rfc7940
[RFC 8228]
  A. Freytag, "Guidance on Designing Label Generation Rulesets (LGRs) Supporting Variant Labels", RFC 8228, August 2017,
  https://www.rfc-editor.org/info/rfc8228
[RZ-LGR-4-Overview]
  Integration Panel, "Root Zone Label Generation Rules - LGR-4: Overview and Summary", 05 November 2020 (PDF),
  https://www.icann.org/sites/default/files/lgr/lgr-4-overview-05nov20-en.pdf
[RZ-LGR-4]
  Integration Panel, "Label Generation Rules for the Root Zone — LGR-4", 05 November 2020 (XML),
  https://www.icann.org/sites/default/files/lgr/lgr-4-common-05nov20-en.xml
  non-normative HTML presentation:
  https://www.icann.org/sites/default/files/lgr/lgr-4-common-05nov20-en.html
[Unicode 6.3]
  The Unicode Consortium. The Unicode Standard, Version 6.3.0, (Mountain View, CA: The Unicode Consortium, 2013. ISBN 978-1-936213-08-5)
  http://www.unicode.org/versions/Unicode6.3.0/

For references consulted particularly in designing the repertoire for the Sinhala script for the Root Zone please see details in the Table of References below. Reference [3] refers to the Unicode Standard version in which the corresponding code points were initially encoded. References [102] and above correspond to sources given in [Proposal-Sinhala] justifying the inclusion of the corresponding code points. Entries in the table may have multiple source reference values.

# 2 Repertoire

## Repertoire Summary

Number of elements in repertoire | 76
Number of code points | 72
Number of sequences | 4
Longest code point sequence | 2

## Repertoire by Code Point

The following table lists the repertoire by code point (or code point sequence). The data in the Script and Name column are extracted from the Unicode character database. Where a comment in the original LGR is equal to the character name, it has been suppressed.

For any code point or sequence for which a variant is defined, additional information is provided in the Variants column. See also the legend provided below the table.

Code Point | Glyph | Script | Name | Ref | Tags | Required Context | Variants | Comment
--- | --- | --- | --- | --- | --- | --- | --- | ---
U+0D82 | ං | Sinhala | SINHALA SIGN ANUSVARAYA | [3], [102], [201] | Anusvara | follows-V-C-J-or-M |  |
U+0D83 | ඃ | Sinhala | SINHALA SIGN VISARGAYA | [3], [102], [201] | Visarga | follows-V-C-or-M |  |
U+0D85 | අ | Sinhala | SINHALA LETTER AYANNA | [3], [102], [201] | Vowel |  |  |
U+0D86 | ආ | Sinhala | SINHALA LETTER AAYANNA | [3], [102], [201] | Vowel |  |  |
U+0D87 | ඇ | Sinhala | SINHALA LETTER AEYANNA | [3], [102], [201] | Vowel |  |  |
U+0D88 | ඈ | Sinhala | SINHALA LETTER AEEYANNA | [3], [102], [201] | Vowel |  |  |
U+0D89 | ඉ | Sinhala | SINHALA LETTER IYANNA | [3], [102], [201] | Vowel |  |  |
U+0D8A | ඊ | Sinhala | SINHALA LETTER IIYANNA | [3], [102], [201] | Vowel |  |  |
U+0D8B | උ | Sinhala | SINHALA LETTER UYANNA | [3], [102], [201] | Vowel |  |  |
U+0D8C | ඌ | Sinhala | SINHALA LETTER UUYANNA | [3], [102], [201] | Vowel |  |  |
U+0D8D | ඍ | Sinhala | SINHALA LETTER IRUYANNA | [3], [102], [201] | Vowel |  | set 1 |
U+0D91 | එ | Sinhala | SINHALA LETTER EYANNA | [3], [102], [201] | Vowel |  | set 2 |
U+0D92 | ඒ | Sinhala | SINHALA LETTER EEYANNA | [3], [102], [201] | Vowel |  | set 3 |
U+0D93 | ඓ | Sinhala | SINHALA LETTER AIYANNA | [3], [102], [201] | Vowel |  | set 4 |
U+0D94 | ඔ | Sinhala | SINHALA LETTER OYANNA | [3], [102], [201] | Vowel |  | set 5 |
U+0D95 | ඕ | Sinhala | SINHALA LETTER OOYANNA | [3], [102], [201] | Vowel |  |  |
U+0D96 | ඖ | Sinhala | SINHALA LETTER AUYANNA | [3], [102], [201] | Vowel |  |  |
U+0D9A | ක | Sinhala | SINHALA LETTER ALPAPRAANA KAYANNA | [3], [102], [201] | Consonant |  |  |
U+0D9B | ඛ | Sinhala | SINHALA LETTER MAHAAPRAANA KAYANNA | [3], [102], [201] | Consonant |  | set 6 |
U+0D9C | ග | Sinhala | SINHALA LETTER ALPAPRAANA GAYANNA | [3], [102], [201] | Consonant |  |  |
U+0D9D | ඝ | Sinhala | SINHALA LETTER MAHAAPRAANA GAYANNA | [3], [102], [201] | Consonant |  | set 7 |
U+0D9D U+0DD8 | ඝෘ | {Sinhala} | SINHALA LETTER MAHAAPRAANA GAYANNA + SINHALA VOWEL SIGN GAETTA-PILLA | [3], [102], [201] | [Consonant] + [Matra] |  | set 1 | variant of IRUYANNA
U+0D9F | ඟ | Sinhala | SINHALA LETTER SANYAKA GAYANNA | [3], [102], [201] | Sannjaka |  |  |
U+0DA0 | ච | Sinhala | SINHALA LETTER ALPAPRAANA CAYANNA | [3], [102], [201] | Consonant |  | set 8 |
U+0DA1 | ඡ | Sinhala | SINHALA LETTER MAHAAPRAANA CAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DA2 | ජ | Sinhala | SINHALA LETTER ALPAPRAANA JAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DA3 | ඣ | Sinhala | SINHALA LETTER MAHAAPRAANA JAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DA4 | ඤ | Sinhala | SINHALA LETTER TAALUJA NAASIKYAYA | [3], [102], [201] | Consonant |  |  |
U+0DA5 | ඥ | Sinhala | SINHALA LETTER TAALUJA SANYOOGA NAAKSIKYAYA | [3], [102], [201] | Consonant |  |  |
U+0DA7 | ට | Sinhala | SINHALA LETTER ALPAPRAANA TTAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DA8 | ඨ | Sinhala | SINHALA LETTER MAHAAPRAANA TTAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DA9 | ඩ | Sinhala | SINHALA LETTER ALPAPRAANA DDAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DAA | ඪ | Sinhala | SINHALA LETTER MAHAAPRAANA DDAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DAB | ණ | Sinhala | SINHALA LETTER MUURDHAJA NAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DAC | ඬ | Sinhala | SINHALA LETTER SANYAKA DDAYANNA | [3], [102], [201] | Sannjaka |  |  |
U+0DAD | ත | Sinhala | SINHALA LETTER ALPAPRAANA TAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DAE | ථ | Sinhala | SINHALA LETTER MAHAAPRAANA TAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DAF | ද | Sinhala | SINHALA LETTER ALPAPRAANA DAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DB0 | ධ | Sinhala | SINHALA LETTER MAHAAPRAANA DAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DB1 | න | Sinhala | SINHALA LETTER DANTAJA NAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DB3 | ඳ | Sinhala | SINHALA LETTER SANYAKA DAYANNA | [3], [102], [201] | Sannjaka |  |  |
U+0DB4 | ප | Sinhala | SINHALA LETTER ALPAPRAANA PAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DB5 | ඵ | Sinhala | SINHALA LETTER MAHAAPRAANA PAYANNA | [3], [102], [201] | Consonant |  | set 2 |
U+0DB5 U+0DCA | ඵ් | {Sinhala} | SINHALA LETTER MAHAAPRAANA PAYANNA + SINHALA SIGN AL-LAKUNA | [3], [102], [201] | [Consonant] + [Halant] |  | set 3 | variant of EEYANNA
U+0DB5 U+0DD9 | ඵෙ | {Sinhala} | SINHALA LETTER MAHAAPRAANA PAYANNA + SINHALA VOWEL SIGN KOMBUVA | [3], [102], [201] | [Consonant] + [Matra] |  | set 4 | variant of AIYANNA
U+0DB6 | බ | Sinhala | SINHALA LETTER ALPAPRAANA BAYANNA | [3], [102], [201] | Consonant |  | set 6 |
U+0DB7 | භ | Sinhala | SINHALA LETTER MAHAAPRAANA BAYANNA | [3], [102], [201] | Consonant |  | set 9 |
U+0DB8 | ම | Sinhala | SINHALA LETTER MAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DB9 | ඹ | Sinhala | SINHALA LETTER AMBA BAYANNA | [3], [102], [201] | Sannjaka |  | set 5 |
U+0DBA | ය | Sinhala | SINHALA LETTER YAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DBB | ර | Sinhala | SINHALA LETTER RAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DBD | ල | Sinhala | SINHALA LETTER DANTAJA LAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DC0 | ව | Sinhala | SINHALA LETTER VAYANNA | [3], [102], [201] | Consonant |  | set 8 |
U+0DC1 | ශ | Sinhala | SINHALA LETTER TAALUJA SAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DC2 | ෂ | Sinhala | SINHALA LETTER MUURDHAJA SAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DC3 | ස | Sinhala | SINHALA LETTER DANTAJA SAYANNA | [3], [102], [201] | Consonant |  | set 7 |
U+0DC3 U+0DD8 | සෘ | {Sinhala} | SINHALA LETTER DANTAJA SAYANNA + SINHALA VOWEL SIGN GAETTA-PILLA | [3], [102], [201] | [Consonant] + [Matra] |  | set 1 | variant of IRUYANNA
U+0DC4 | හ | Sinhala | SINHALA LETTER HAYANNA | [3], [102], [201] | Consonant |  | set 9 |
U+0DC5 | ළ | Sinhala | SINHALA LETTER MUURDHAJA LAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DC6 | ෆ | Sinhala | SINHALA LETTER FAYANNA | [3], [102], [201] | Consonant |  |  |
U+0DCA | ් | Sinhala | SINHALA SIGN AL-LAKUNA | [3], [102], [201] | Halant | follows-C |  |
U+0DCF | ා | Sinhala | SINHALA VOWEL SIGN AELA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD0 | ැ | Sinhala | SINHALA VOWEL SIGN KETTI AEDA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD1 | ෑ | Sinhala | SINHALA VOWEL SIGN DIGA AEDA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD2 | ි | Sinhala | SINHALA VOWEL SIGN KETTI IS-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD3 | ී | Sinhala | SINHALA VOWEL SIGN DIGA IS-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD4 | ු | Sinhala | SINHALA VOWEL SIGN KETTI PAA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD6 | ූ | Sinhala | SINHALA VOWEL SIGN DIGA PAA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD8 | ෘ | Sinhala | SINHALA VOWEL SIGN GAETTA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DD9 | ෙ | Sinhala | SINHALA VOWEL SIGN KOMBUVA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DDA | ේ | Sinhala | SINHALA VOWEL SIGN DIGA KOMBUVA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DDB | ෛ | Sinhala | SINHALA VOWEL SIGN KOMBU DEKA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DDC | ො | Sinhala | SINHALA VOWEL SIGN KOMBUVA HAA AELA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DDD | ෝ | Sinhala | SINHALA VOWEL SIGN KOMBUVA HAA DIGA AELA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DDE | ෞ | Sinhala | SINHALA VOWEL SIGN KOMBUVA HAA GAYANUKITTA | [3], [102], [201] | Matra | follows-C-or-J |  |
U+0DF2 | ෲ | Sinhala | SINHALA VOWEL SIGN DIGA GAETTA-PILLA | [3], [102], [201] | Matra | follows-C-or-J |  |

Legend

Throughout this LGR, a code point sequence may be annotated with a string in ALL CAPS that is constructed on the same principle as a name for a Unicode Named Sequence. No claim is made that a sequence thus annotated is in fact a named sequence, nor that the annotation in such case actually corresponds to the formal name of a named sequence.

Code Point
  A code point or code point sequence.
Glyph
  The shape displayed depends on the fonts available to your browser.
Script
  Shows the script property value from the Unicode Character Database. Combining marks may have the value Inherited and code points used with more than one script may have the value Common. Sequences are annotated with a set of all distinct script values.
Name
  Shows the character or sequence name from the Unicode Character Database. Named sequences are listed with their normative names, for ad-hoc sequences the individual names are shown separated by “+”.
Ref
  Links to the references associated with the code point or sequence, if any.
Tags
  LGR-defined tag values. Any tags matching the Unicode script property are suppressed in this view. For sequences, the tags for all member code points are shown for information; sequences as such do not have tags.
Required Context
  Link to a rule defining the required context a code point or sequence must satisfy. If prefixed by “not:” identifies a context that must not occur.
Variants
  Link to the variant set the code point or sequence is a member of, except where a coded point or sequence maps only to itself, in which case the type of that mapping is listed.
Comment
  The comment as given in the XML file. However, if the comment for this row consists only of the code point or sequence name, it is suppressed in this view. By convention, comments starting with “=” denote an alias. If present, the symbol ⍟ marks a default item shared among a set of LGRs.

# 3 Variant Sets

## Variant Set Summary

Number of variant sets | 9
Largest variant set | 3
Variants by Type |
blocked | 22

The following tables list all variant sets defined in this LGR, except for singleton sets. Each table lists all variant mapping pairs of the set; one per row. Mappings are assumed to be symmetric: each row documents both forward (→) and reverse (←) mapping directions. In each table, the mappings are sorted by Source value in ascending code point order; shading is used to group mappings from the same source code point or sequence.

Where the type of both forward and reverse mappings are the same, a single value is given in the Type column; otherwise the types for forward and reverse mappings, as well as comments and references, are listed above one another. For summary counts, both forward and reverse mappings are always counted separately.

In any LGR with variant specifications that are well behaved, all members within each variant set are defined as variants of each other; the mappings in each set are symmetric and transitive; and variant sets for each context are disjoint, but code points that have variants with multiple contexts are members of more than one set.

Common Legend

Source
  By convention, the smaller of the two code points in a variant mapping pair.
Target
  By convention, the larger of the two code points in a variant mapping pair.
Glyph
  The shape displayed for source or target depends on the fonts available to your browser.
→ - forward
  Indicates that Type, Ref and Comment apply to the mapping from source to target.
← - reverse
  Indicates that Type, Ref and Comment apply to the reverse mapping from target to source.
↔ - both
  Indicates that Type, Ref and Comment apply to both forward and reverse mapping.
Type
  The type of the variant mapping. There are some predefined variant types such as “allocatable” and “blocked”, while others are defined specifically for each LGR.
Required Context
  Link to the rule defining a required context the source must satisfy for the variant mapping to be defined. If prefixed by “not:”, identifies a context that must not occur.
Ref
  One or more reference IDs (optional). A “/” separates references for reverse / forward mappings, if different.
Comment
  A descriptive comment (optional). A “/” separates comments for reverse / forward mappings, if different.

### Variant Set 1 — 3 Members

Source | Glyph | Target | Glyph |  | Type | Required Context | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | --- | ---
0D8D | ඍ | 0D9D 0DD8 | ඝෘ | ↔ | blocked | not: followed-by-H-or-M |  |
0D8D | ඍ | 0DC3 0DD8 | සෘ | ↔ | blocked | not: followed-by-H-or-M |  |
0D9D 0DD8 | ඝෘ | 0DC3 0DD8 | සෘ | ↔ | blocked | not: followed-by-H-or-M |  |

### Variant Set 2 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Required Context | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | --- | ---
0D91 | එ | 0DB5 | ඵ | ↔ | blocked | not: followed-by-H-or-M |  |

### Variant Set 3 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Required Context | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | --- | ---
0D92 | ඒ | 0DB5 0DCA | ඵ් | ↔ | blocked | not: followed-by-B-X-H-or-M |  |

### Variant Set 4 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Required Context | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | --- | ---
0D93 | ඓ | 0DB5 0DD9 | ඵෙ | ↔ | blocked | not: followed-by-H-or-M |  |

### Variant Set 5 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | ---
0D94 | ඔ | 0DB9 | ඹ | ↔ | blocked |  |

### Variant Set 6 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | ---
0D9B | ඛ | 0DB6 | බ | ↔ | blocked |  |

### Variant Set 7 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | ---
0D9D | ඝ | 0DC3 | ස | ↔ | blocked |  |

### Variant Set 8 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | ---
0DA0 | ච | 0DC0 | ව | ↔ | blocked |  |

### Variant Set 9 — 2 Members

Source | Glyph | Target | Glyph |  | Type | Ref | Comment
--- | --- | --- | --- | --- | --- | --- | ---
0DB7 | භ | 0DC4 | හ | ↔ | blocked |  |

# 4 Classes, Rules and Actions

## 4.1 Character Classes

The following table lists all named and implicit classes with their definition and a list of their members intersected with the current repertoire (for larger classes, this list is elided).

Name | Definition | Count | Members or Ranges | Ref | Comment
--- | --- | --- | --- | --- | ---
C | Tag=Consonant | 35 | {0D9A-0D9D 0DA0-0DA5 0DA7-0DAB 0DAD-0DB1 0DB4-0DB8 0DBA-0DBB 0DBD 0DC0-0DC6} |  | Any Sinhala consonant
V | Tag=Vowel | 15 | {0D85-0D8D 0D91-0D96} |  | Any Sinhala independent vowel
M | Tag=Matra | 15 | {0DCF-0DD4 0DD6 0DD8-0DDE 0DF2} |  | Any Sinhala vowel sign (matra)
J | Tag=Sannjaka | 4 | {0D9F 0DAC 0DB3 0DB9} |  | Any Sinhala Sannjaka
H | Tag=Halant | 1 | {0DCA} |  | The Sinhala Al-Lakuna (Halant)
B | Tag=Anusvara | 1 | {0D82} |  | The Sinhala Anusvara
X | Tag=Visarga | 1 | {0D83} |  | The Sinhala Visarga
implicit | Tag=sc:Sinh | 72 | {0D82-0D83 0D85-0D8D 0D91-0D96 0D9A-0D9D 0D9F-0DA5 0DA7-0DB1 0DB3-0DBB 0DBD 0DC0-0DC6 0DCA 0DCF-0DD4 0DD6 0DD8-0DDE 0DF2} |  | Any character tagged as Sinhala

Legend

Members or Ranges
  Lists the members of the class as code points (xxx) or as ranges of code points (xxx-yyy). Any class too numerous to list in full is elided with "...".
Tag=ttt
  A named or implicit class defined by all code points that share the given tag value (ttt).
Implicit
  An anonymous class implicitly defined based on tag value for which there is no named equivalent.

## 4.2 Whole label evaluation and context rules

The following table lists all named rules defined in the LGR and indicates whether they are used as trigger in an action or as context (when or not-when) for a code point or variant.

Name | Regular Expression | Used as Trigger | Anchor | Used as Context | Ref | Comment
--- | --- | --- | --- | --- | --- | ---
leading-combining-mark | `(start)[[\p{gc=Mn}] ∪ [\p{gc=Mc}]]` | ✔ |  |  |  | Default WLE rule matching labels with leading combining marks ⍟
follows-C | `([:C:])← ⚓` |  | ✔ | C |  | Section 7, WLE 1: Halanta/Virama must be preceded by C
follows-C-or-J | `([:C:]|[:J:])← ⚓` |  | ✔ | C |  | Section 7, WLE 2: Matra must be preceded by C or J
follows-V-C-or-M | `([:V:]|[:C:]|[:M:])← ⚓` |  | ✔ | C |  | Section 7, WLE 3: Visarga must be preceded by V, C or M
follows-V-C-J-or-M | `([:V:]|[:C:]|[:J:]|[:M:])← ⚓` |  | ✔ | C |  | Section 7, WLE 4: Anusvara (Bindu) must be preceded by V, C, J or M
followed-by-H-or-M | `⚓ →([:H:]|[:M:])` |  | ✔ | V |  | variants are undefined preceding a Halant or Matra
followed-by-B-X-H-or-M | `⚓ →([:B:]|[:X:]|[:H:]|[:M:])` |  | ✔ | V |  | variants are undefined preceding an Anusvara, Visarga, Halant or Matra

Legend

Used as Trigger
  This rule triggers one of the actions listed below.
Used as Context
  This rule defines a required or prohibited context for a code point C or variant V.
Anchor
  This rule has a placeholder for the code point for which it is evaluated.
Regular Expression
  A regular expression equivalent to the rule, shown in a modified notation as noted:
⚓ - context anchor
  Placeholder for the actual code point when a context is evaluated. The code point must occur at the position corresponding to the anchor. Rules containing an anchor cannot be used as triggers.
(...)← - look-behind
  If present encloses required context preceding the anchor.
→(..) - look-ahead
  If present encloses required context following the anchor.
(... | ...) - choice
  When there is more than one alternative in a rule, the choices are separated by the alternation operator (...|...).
start or end
  (start) matches the start of the label; (end) matches the end of the label.
[: :] - named or implicit character set
  Reference to a named character set [:name:] or an implicit character set [:tag:]. A leading “^” before name or tag indicates the set complement.
[\p{ }] - property character set
  Set of all characters matching a given value for a Unicode property [\p{prop=val}]. Note: uppercase “\P” defines the complement of a property set.
∪, ∩, ∖, ∆ - set operators
  Sets may be combined by set operators (∪ = union, ∩ = intersection, ∖ = difference, ∆ = symmetric difference).
⍟ - default rule
  Rules marked with ⍟ are included by default and may or may not be triggered by any possible label under this LGR.

## 4.3 Actions

The following table lists the actions that are used to assign dispositions to labels and variant labels based on the specified conditions. The order of actions defines their precedence: the first action triggered by a label is the one defining its disposition.

# | Condition | Rule / Variant Set |  | Disposition | Ref | Comment
--- | --- | --- | --- | --- | --- | ---
1 | if label matches | leading-combining-mark | → | invalid |  | labels with leading combining marks are invalid ⍟
2 | if at least one variant is in | {out-of-repertoire-var} | → | invalid |  | any variant label with a code point out of repertoire is invalid ⍟
3 | if at least one variant is in | {blocked} | → | blocked |  | any variant label containing blocked variants is blocked ⍟
4 | if each variant is in | {allocatable} | → | allocatable |  | variant labels with all variants allocatable are allocatable ⍟
5 | if any label (catch-all) |  | → | valid |  | catch all (default action) ⍟

Legend

{...} - variant type set
  In the “Rule/Variant Set” column, the notation {...} means a set of variant types.
⍟ - default action
  Actions marked with ⍟ are included by default and may or may not be triggered by any possible label under this LGR.

# 5 Table of References

The following lists the references cited for specific code points, variants, classes, rules or actions in this LGR. For General references refer to the "References" section in the Description.

[3] | The Unicode Standard 3.0 Any code point originally encoded in Unicode 3.0
[102] | Disanayaka, JB. 2006. Sinhala Akshara Vicharaya (Sinhala Graphology), Sumitha Publishers, Kalubovila. ISBN: 955-1146-44-1
[201] | Omniglot: The on-line encyclopedia of writing system and Languages, “Sinhala” https://www.omniglot.com/writing/sinhala.htm