# I La Galigo — panduan kontribusi / contribution guide

Sumber terbuka: [github.com/jwendyr/book-ilagaligo](https://github.com/jwendyr/book-ilagaligo) · Pembaca: [ilagaligo.com](https://ilagaligo.com/)

Manifest untuk agen: [`/agents.json`](https://ilagaligo.com/agents.json) · Status: [`/data/status.json`](https://ilagaligo.com/data/status.json) · Tugas terbuka: [`/data/tasks.json`](https://ilagaligo.com/data/tasks.json)

Pipeline setiap halaman: `raw_scan` → `ocr_draft` → `transkribus_uploaded` → `segmented` → `translated` → `reviewed`.

---

## Bahasa Indonesia

Naskah **NBG-Boeg 188** (I La Galigo) di Leiden terdiri dari **12 jilid, 2.993 halaman**. Semua halaman sudah punya pindaian sumber. Saat ini: **50 halaman** sudah di-OCR lewat benih Transkribus (model *Lontara v.0.08*), model HTR Kraken kustom v1 mencapai **70,06% akurasi aksara Bugis** (v2 sedang dilatih), **4 halaman** hidup di pembaca interaktif, **1 halaman** (`vol01-scan13`) sudah dipisah kata dan diterjemahkan secara utuh, dan kamus berisi **249 lema**.

### Cara membantu

1. **Worker BYOK (Tahap 1).** Di panel Status / Kontribusi, tempel kunci API Gemini, OpenRouter, atau OpenAI-compatible milik Anda, pilih tugas, tetapkan batas halaman (baku 5), lalu jalankan worker. Kunci tetap di memori peramban (opsional sessionStorage tab ini) dan dikirim langsung ke penyedia. Agen bisa memakai skrip CLI [`/tools/ilagaligo_byok_worker.py`](https://ilagaligo.com/tools/ilagaligo_byok_worker.py) dengan `GEMINI_API_KEY` / `OPENROUTER_API_KEY` / `OPENAI_API_KEY`. Periksa bundel JSON, unduh, lalu buka PR.
2. **Transkribus (gratis atau berbayar).** Daftar di [transkribus.org](https://www.transkribus.org/). Unggah pindaian Leiden, jalankan HTR, lalu ekspor **PAGE XML (`.xml`)** atau **`.txt`**. Jatuhkan berkas itu di panel **Status / Kontribusi** di pembaca — pratinjau baris Lontara muncul segera. Lampirkan jilid dan nomor scan, lalu unduh bundel JSON.
3. **Jalankan model Kraken HTR** kustom kami pada halaman yang masih dalam antrean OCR, lalu kirim baris Lontara dalam bundel `kind: "ocr"`.
4. **Periksa OCR terhadap pindaian.** Koreksi aksara yang salah di pembaca (ketuk suku kata) atau dalam bundel.
5. **Pisahkan kata Bugis** dengan garis pemisah yang bisa digeser.
6. **Tambah entri kamus** (lema, glosa ID & EN, catatan gramatikal / akar).
7. **Draf atau tinjau terjemahan** Indonesia dan Inggris berdasarkan yang terbaca dari HTR.
8. **Kirim hasil.** Unduh bundel JSON dari panel Kontribusi (atau log Koreksi), lalu buka *pull request* di repositori, atau lampirkan bundel pada sebuah isu.

### Skema bundel JSON

```json
{
  "type": "ilagaligo-contribution",
  "version": 1,
  "kind": "transkribus",
  "createdAt": "2026-11-26T15:00:00-06:00",
  "target": { "volume": 1, "scan": 13, "pageId": "vol01-scan0013" },
  "source": { "filename": "export.xml", "format": "page-xml" },
  "lines": [{ "n": 1, "lontara": "ᨈᨚ", "bbox": [10.2, 12.0, 78.1, 3.4] }],
  "notes": ""
}
```

`kind` boleh: `ocr`, `transkribus`, `word-split`, `translation`, `review`, `lexicon`. `bbox` opsional, dalam persen `[x, y, w, h]`.

### Sumber dan hak cipta

Tulis terjemahan dari pindaian Leiden. Transliterasi Latin dibuat secara mekanis; terjemahan adalah draf; halaman terkurasi sudah dikoreksi. Karya Muhammad Salim, Fachruddin Ambo Enre, dan R.A. Kern 1939 dilindungi hak cipta sampai 1 Januari 2029. Pindaian Leiden berstatus Public Domain Mark 1.0.

---


### Dinding Pendukung (`data/sponsors.json`)

Dinding di [`/sponsor/`](https://ilagaligo.com/sponsor/) dibaca dari [`/data/sponsors.json`](https://ilagaligo.com/data/sponsors.json). Cantumkan hanya donor yang sudah tercatat:

Surel resmi proyek untuk dedikasi sponsor, kemitraan institusional, dan pertanyaan Leiden/pers: [info@ilagaligo.com](mailto:info@ilagaligo.com).

1. **Mitra institusional** — objek ke `institutional_patrons`: `id`, `name` (opsional `nameId` / `nameEn`), `url`, `logo`, `blurbId`, `blurbEn`, `since`. Contoh logo: `sponsors/nama.png` di `public/`.
2. **Sponsor jilid ($100)** — objek ke `volume_sponsors`: `id`, `volume` (1–12), `name`, `dedication` atau `dedicationId`/`dedicationEn` (misalnya "In memory of …"), `anonymous` (true/false), `since`.
3. **Sponsor halaman ($5)** — objek ke `page_sponsors`: `id`, `volume`, `page` (nomor canvas/scan Leiden dalam jilid itu), opsional `pageId` (contoh `vol01-scan0013`), `name`, `dedication`, `anonymous`, `since`.
4. **Kontributor permainan** — objek ke `contributors` setelah bundel `/game/` diterima: `id`, `name`, `verifiedCount`, `anonymous`, `since`.

Lalu commit, deploy `public/`, dan naikkan `?v=` cache bila perlu. Nama anonim memakai `"anonymous": true` dan tampil sebagai Anonim.


## English

The Leiden manuscript **NBG-Boeg 188** (I La Galigo) is **12 volumes, 2,993 pages**. Every page has a source scan. Today: **50 pages** have Transkribus OCR (the *Lontara v.0.08* seed), a custom Kraken HTR v1 model reached **70.06% Buginese character accuracy** (v2 is in training), **4 pages** are live in the interactive reader, **1 page** (`vol01-scan13`) has a full word-segmentation and translation pass, and the lexicon holds **249** entries.

### How to help

1. **BYOK worker (Stage 1).** In the Status / Contribute panel, paste your own Gemini, OpenRouter, or OpenAI-compatible API key, pick a task, set a page cap (default 5), and run the worker. The key stays in browser memory (optional this-tab sessionStorage) and goes directly to the provider. Agents can run the CLI script [`/tools/ilagaligo_byok_worker.py`](https://ilagaligo.com/tools/ilagaligo_byok_worker.py) with `GEMINI_API_KEY` / `OPENROUTER_API_KEY` / `OPENAI_API_KEY`. Inspect the JSON bundle, download it, and open a PR.
2. **Transkribus (free or paid).** Sign up at [transkribus.org](https://www.transkribus.org/). Upload Leiden scans, run HTR, and export **PAGE XML (`.xml`)** or **`.txt`**. Drop the file on the reader’s **Status / Contribute** panel — parsed Lontara lines preview immediately. Attach a volume and scan number, then download a JSON bundle.
3. **Run our custom Kraken HTR** model on pages still in the OCR queue, and send the Lontara lines as a `kind: "ocr"` bundle.
4. **Check OCR against the scans.** Correct wrong characters in the reader (tap a syllable) or in a bundle.
5. **Segment Bugis words** with the movable word-break handles.
6. **Add lexicon entries** (lemma, ID & EN gloss, grammatical / root note).
7. **Draft or review** Indonesian and English translations from what the HTR reads.
8. **Send the work.** Download a JSON bundle from the Contribute panel (or the Edits log), then open a pull request on the repository, or attach the bundle to an issue.

### Sources and copyright

Write translations from the Leiden scans. Latin transliteration is mechanical; translations are drafts; curated pages have been corrected. The works of Muhammad Salim, Fachruddin Ambo Enre, and R.A. Kern 1939 remain in copyright until 1 January 2029. The Leiden scans carry a Public Domain Mark 1.0.


### Supporters Wall (`data/sponsors.json`)

The wall at [`/sponsor/`](https://ilagaligo.com/sponsor/) is rendered from [`/data/sponsors.json`](https://ilagaligo.com/data/sponsors.json). List only donors already on record:

Official project email for sponsor dedications, institutional partnerships, and Leiden/press inquiries: [info@ilagaligo.com](mailto:info@ilagaligo.com).

1. **Institutional patron** — append to `institutional_patrons`: `id`, `name` (optional `nameId` / `nameEn`), `url`, `logo`, `blurbId`, `blurbEn`, `since`. Logos live under `public/sponsors/`.
2. **Volume sponsor ($100)** — append to `volume_sponsors`: `id`, `volume` (1–12), `name`, `dedication` or `dedicationId`/`dedicationEn` (e.g. "In memory of …"), `anonymous` (true/false), `since`.
3. **Page sponsor ($5)** — append to `page_sponsors`: `id`, `volume`, `page` (Leiden canvas/scan number within that volume), optional `pageId` (e.g. `vol01-scan0013`), `name`, `dedication`, `anonymous`, `since`.
4. **Game contributor** — append to `contributors` after a `/game/` bundle is received: `id`, `name`, `verifiedCount`, `anonymous`, `since`.

Then commit, deploy `public/`, and bump the cache `?v=` if needed. Anonymous names use `"anonymous": true` and appear as Anonymous.

