Longchenpa Collected Works: about this project
This page is the record of the Longchenpa Project on rywikitexts: how the pages were made, where each edition comes from, what it contains, what is missing and why, and what comes next. It is updated with every change. Status date: 21 November 2026.
What was built
Eric asked on 21 November 2026 for the Longchenpa material reached from User:Eric to be organised on rywikitexts the way the Jonang Lineage wiki organises Dolpopa and Tāranātha: a person page, one page per edition, per volume and per text, lists built from the text pages, and this record. The existing pages were not moved or changed; the new pages copy and clean their text and link back to them.
| Edition | Source | Volume pages | Text pages | Tibetan text |
|---|---|---|---|---|
| mdzod bdun (a 'dzom par ma) | OCR of the BDRC scans MW1PD8 (gorn05 tibocr, 2026) | 7 | 19 | OCR, not proofread |
| klong chen rab 'byams kyi gsung 'bum (pe cin 2009) | e-texts on rywikitexts (2020) + BDRC outline MW1KG4884 | 26 | 472 | 454 cleaned e-texts; 15 inside another text's page; 0 in legacy encoding (Theg mchog mdzod, linked to the Unicode e-text); 3 without e-text |
| klong chen rab 'byams kyi gsung 'bum (sde dge par ma) | scans on rywikitexts (2020) + BDRC outline MW00EGS1016299 | 5 | 124 | none (scan only) |
| mdzod bdun (karma legs bshad gling e-texts) | Karma Lekshey Ling e-texts on rywikitexts (2013) | — | 19 | 19 e-texts |
Plus: the person page Longchenpa (it replaces a 10-byte placeholder), the hub Longchenpa Collected Works, the pages Seven Treasuries (mdzod bdun), Trilogy of Rest (ngal gso skor gsum) and Four Parts of the Heart Essence (snying thig ya bzhi), 26 volume tables of contents (dkar chag), 6 front-matter pages, the templates Template:Text, Template:VolumePage and Template:Collection with their helpers, and 15 semantic properties.
How
- Pe cin 2009. The 611 e-text pages Klong chen rab byams gsung 'bum/volume NNN NNN were matched to the 504 texts of the BDRC outline by title (running head or first line, compared in Wylie): 437 direct matches, 12 manual corrections (sources/overrides_pecin.json), 3 continuation pages, 1 chapter page joined to its text. 15 texts that have no e-text page of their own were found printed inside another text's e-text page (title search) and point to it. Text pages follow the BDRC outline, numbered by volume in page order; a text that is split over several e-text pages is joined into one page; texts nested in another text that has the e-text are listed under Contains on that page.
- Front matter. Each volume on rywikitexts carries a copy of the edition's publisher's note, foreword, compilers' note and short biography (23 near-identical copies of each). They are given once, from volume 1. The volume title pages are shown on the volume pages.
- Cleaning. Removed from the Pe cin e-texts: the running heads (mes po'i shul bzhag las … ༼N༽ title), the Word page fields (-PAGE n-), embedded-object codes (EMBED Photoshop.Image), dot leaders and private-use characters (U+F038 and two others). Kept: the «» marks, which enclose the small-print notes of the print. The e-texts have no page breaks, so the text pages give the BDRC page range of each text but cannot mark page changes.
- sde dge. The BDRC outline gives the texts and their pages. The five PDFs Longchenpa - Derge - Vol N - W3CN22156 are linked at the start page where it is known: volume 1 has the BDRC page numbering; for volumes 2–4 only the start pages listed on User:Eric are linked, because those PDFs have more pages than the BDRC volumes (vol. 2: 1,789 against 1,266; vol. 4: 1,481 against 1,276) and may be a different print. The twelve per-text PDFs of the Trilogy of Rest are BDRC W00EGS1016299 volume 4 and match its page numbers exactly.
- Adzom Chögar edition (a 'dzom par ma, BDRC MW1PD8, 7 volumes), the standard edition of Longchenpa's writings, added on 22 November 2026 at Eric's request. Its scans were OCRed on gorn05 (tibocr, September–October 2026, two OCR models; on each page the text with more recognisable syllables). The texts were located by aligning the OCR with the 19 Karma Lekshey Ling e-texts on 5-syllable sequences that occur once in each (the longest run in order, at least 60 % of the e-text matched): all 19 were found, which gives 19 Adzom text pages with their BDRC scan pages. Two short Pe cin texts that matched inside the Treasury of the Supreme Vehicle are quoted there, not separate works, and were left out. Every Pe cin, sde dge and Karma Lekshey Ling page of a work in the Adzom edition has an Adzom edition tab: the Adzom text itself when it is under 600 KB (24 pages), otherwise a link to the Adzom page (20 pages). The OCR is not proofread.
- Karma Lekshey Ling. The 19 e-texts linked from User:Eric, copied without the font wrapper template. Authors from the colophons: 13 by Longchenpa, 4 by Mipham, 2 by Patrul Rinpoche.
- Titles. Tibetan title = the text's own title from its first line where it has one, otherwise the BDRC title in Unicode. English titles only for works with established renderings (Seven Treasuries, Trilogy of Rest, Trilogy of Natural Freedom); none are machine translations.
- Display. Tibetan is set in the wiki's own web font TibetanMachineUni, so it looks the same on every computer. The e-texts use TibetanMachineUni16 from MediaWiki:Vector.css. Tibetan beside English uses sizes relative to the English (classes lcp-bo 1.3×, lcp-bo-title 1.45×, lcp-bo-big 1.85×, lcp-bo-head in page headings, lcp-bo-block for Tibetan paragraphs, in MediaWiki:Common.css), so the two scripts look the same size and lines keep their spacing. In the Pe cin e-texts the «…» notes are shown in small print, as in the print; the « » stay in the text but are hidden on screen (classes lcp-note and lcp-mark).
- The generator, sources and match tables are in ~/claude-code/tibetan_collections/longchenpa_rywikitexts/ on Eric's laptop.
Changes
- 21 November 2026: pages generated and tested.
- 22 November 2026: imported on rywikitexts (after the server's security update). The same day, the Tibetan font and the display of the «…» notes were revised at Eric's request.
- 22 November 2026: the study page Theg mchog mdzod (Longchenpa) (the Treasury of the Supreme Vehicle in ten editions, critical edition, translation, bilingual version) was added and linked from Seven Treasuries (mdzod bdun).
- 22 November 2026: the Adzom Chögar edition was added as a fourth edition (mdzod bdun (a 'dzom par ma): 7 volume pages, 19 text pages), with an Adzom edition tab on the pages of the same works in the other editions and an Adzom column on Seven Treasuries (mdzod bdun).
- 22 November 2026: Tibetan sizes made relative to the English around them (classes lcp-bo, lcp-bo-title, lcp-bo-big, lcp-bo-head, lcp-bo-block in MediaWiki:Common.css): Tibetan in a line of English is 1.3 times the English size, so the two look the same size and the lines keep their spacing; titles 1.45 times, the page-top titles 1.85 times. The e-texts keep TibetanMachineUni16. Empty rows in the info tables no longer leave a blank line.
- 22 November 2026: Klong chen rab byams gsung 'bum/volume 017 441 and 018 450 (the Pe cin Theg mchog mdzod), which were in a legacy (pre-Unicode, Dedris-type) font encoding, were converted to Unicode on rywikitexts: the symbol map was checked by aligning with the corrected W22920 text of the same work (99.2 % of syllables identical). The two text pages now carry the cleaned e-text.
Problems found in the existing pages (not changed)
- The page གནས་ལུགས་རིན་པོ་ཆེའི་མཛོད། holds a byte-identical copy of the Lung gi gter mdzod (the Chos dbyings autocommentary), not the Treasury of the Way of Abiding. It is not used here.
- …/volume 018 457-theg-mchog-pt2 and …/volume 019 459-tshig-don-mdzod duplicate …/volume 018 457 and …/volume 019 459.
- Since 2020-09-15 Template:TibFontClass12 shows a literal {{{1}}} on about 230 Karma Lekshey Ling pages.
- On User:Eric the English titles of bsam gtan ngal gso and sgyu ma ngal gso are swapped.
- Several Karma Lekshey Ling pages are stored twice under different titles (e.g. grub mtha' mdzod, man ngag mdzod).
Not done yet
- 3 Pe cin texts have no e-text on rywikitexts (mostly short texts the 2020 input left out).
- No page breaks in the Pe cin e-texts; no e-text of the sde dge print.
- The start pages of most sde dge texts in the W3CN22156 PDFs of volumes 2–4, and whether those PDFs are the same print as BDRC W00EGS1016299.
- English titles for most texts.
Next steps (each needs Eric's go)
- OCR of the Pe cin scans (BDRC MW1KG4884, 26 PDFs on traceone) and the sde dge scans with the Jonang pipeline: Tibetan text with page breaks for every text, and the missing texts.
- Locate the text start pages in the W3CN22156 PDFs of volumes 2–4 and compare that scan with BDRC W00EGS1016299.
- English titles (Dharmamitra, marked as machine translation, as on the Jonang wiki), then outline and translation tabs as for the Paro and 'Dzam thang editions of Dolpopa.
- Fix the problems in the existing pages listed above.