{
 "nbformat": 4,
 "nbformat_minor": 5,
 "metadata": {
  "kernelspec": {
   "name": "python",
   "display_name": "Python (Pyodide)",
   "language": "python"
  },
  "language_info": {
   "name": "python"
  }
 },
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "# Letters of each script\n\nThe script register: letters, code points and the romanisation the converter uses."
  },
  {
   "cell_type": "code",
   "metadata": {},
   "execution_count": null,
   "outputs": [],
   "source": "import csv, io\nfrom pyodide.http import open_url\nrows = list(csv.DictReader(open_url(\"/nx/labs/data/letters.csv\")))\nlen(rows)"
  },
  {
   "cell_type": "code",
   "metadata": {},
   "execution_count": null,
   "outputs": [],
   "source": "from collections import Counter\nCounter(r['script'] for r in rows)"
  },
  {
   "cell_type": "code",
   "metadata": {},
   "execution_count": null,
   "outputs": [],
   "source": "[ (r['letter'], r['romanisation']) for r in rows if r['script'] == 'sorani-arabic' and r['romanisation'] ][:20]"
  }
 ]
}