Files
README.md

BabelStone Tangut Database #

This SQLite database (babelstone_tangut.sqlite) contains comprehensive data about Tangut characters, including pronunciation information, definitions, and ideographic description sequences.

It consists solely of data cleaned and transformed from (Babelstone.co.uk) [https://www.babelstone.co.uk/Tangut/index.html] by Andrew West. This data, in turn, was collected from various resources and research, prominently by Li Fanwen, Gong Huangcheng, Shi Jinbo, Guillaume Jacques, Jing Yongshi, and others.

Rights to the data belong to these original authors - in particular, Li Fanwen, whose XHZD underlies most of these datasets.

Database Tables #

1. xhzd_pronunciations #

Contains pronunciation and phonological data for Tangut characters from Li Fanwen's XHZD (Xia-Han ZiDian) dictionary.

Schema:

CREATE TABLE xhzd_pronunciations (
  xhzd_index INTEGER NOT NULL PRIMARY KEY,
  unicode TEXT NOT NULL,
  is_variant BOOLEAN NOT NULL,
  canonical_form INTEGER,
  gong_huangcheng_reading TEXT,
  rhyme_class TEXT,
  initial_class TEXT,
  dubious_reading BOOLEAN,
  incomplete_reading BOOLEAN,
  dubious_rhyme BOOLEAN
)

Fields:

  • xhzd_index: Primary key, XHZD dictionary index number (1-6000)
  • unicode: Unicode character representation of the Tangut character
  • is_variant: Boolean indicating if this is a variant form of another character
  • canonical_form: If is_variant is true, references the xhzd_index of the canonical form
  • gong_huangcheng_reading: Reconstructed pronunciation in Gong-Huang-Cheng system
  • rhyme_class: Rhyme classification (format: "1.23" or "2.45")
  • initial_class: Initial consonant classification (Roman numerals: I, II, III, etc.)
  • dubious_reading: Boolean indicating uncertainty in the pronunciation reconstruction
  • incomplete_reading: Boolean indicating incomplete pronunciation data
  • dubious_rhyme: Boolean indicating uncertainty in rhyme classification

2. xhzd_definitions #

Contains English translations and definitions for Tangut characters.

Schema:

CREATE TABLE xhzd_definitions (
  xhzd_index INTEGER NOT NULL PRIMARY KEY,
  translation STRING NOT NULL
)

Fields:

  • xhzd_index: Primary key, XHZD dictionary index number (matches xhzd_pronunciations.xhzd_index)
  • translation: English translation or definition of the character

3. unicode_ids #

Contains Ideographic Description Sequences (IDS) for Tangut characters, describing their structural composition.

Schema:

CREATE TABLE unicode_ids (
  character STRING NOT NULL PRIMARY KEY,
  sequence STRING NOT NULL
)

Fields:

  • character: Unicode Tangut character
  • sequence: IDS sequence describing the character's structure using ideographic description characters

Data Sources #

  • Pronunciation data: Derived from XHZD (西夏字典) with phonological analysis
  • Definitions: XHZD 2008 Definitions (English translations)
  • IDS data: TangutIDS.tsv (Ideographic Description Sequences)

Usage Examples #

Get character with pronunciation and definition #

SELECT
  p.unicode,
  p.gong_huangcheng_reading,
  p.rhyme_class,
  p.initial_class,
  d.translation
FROM xhzd_pronunciations p
LEFT JOIN xhzd_definitions d ON p.xhzd_index = d.xhzd_index
WHERE p.xhzd_index = 1;

Find characters by translation #

SELECT
  p.unicode,
  p.xhzd_index,
  d.translation
FROM xhzd_definitions d
JOIN xhzd_pronunciations p ON d.xhzd_index = p.xhzd_index
WHERE d.translation LIKE '%mother%';

Get IDS structure for a character #

SELECT
  p.unicode,
  i.sequence,
  d.translation
FROM xhzd_pronunciations p
LEFT JOIN unicode_ids i ON p.unicode = i.character
LEFT JOIN xhzd_definitions d ON p.xhzd_index = d.xhzd_index
WHERE p.unicode = '𗀀';

Find variant characters #

SELECT
  variant.unicode as variant_char,
  canonical.unicode as canonical_char,
  d.translation
FROM xhzd_pronunciations variant
JOIN xhzd_pronunciations canonical ON variant.canonical_form = canonical.xhzd_index
LEFT JOIN xhzd_definitions d ON canonical.xhzd_index = d.xhzd_index
WHERE variant.is_variant = true;

Notes #

  • The database uses 1-based indexing for XHZD entries (1-6000)
  • Pronunciation reconstructions may be marked as dubious or incomplete
  • Not all characters have complete pronunciation or definition data
  • Variant characters reference their canonical forms through the canonical_form field
  • IDS sequences use Unicode Ideographic Description Characters (U+2FF0-U+2FFB)