P104  MAKRANDDUBEY.COMAMOGH.CLOUD--:--
makranddubey.comP104

Four Hindi books, rebuilt as a website and an app

Four Hindi books existed only as print files that a computer could not read. I recovered the text, checked it against independent counts, and built a website and an Android reading app.

RoleProduct owner, designer and builder
WhenFeb 2026–now
StatusWebsite and Android reader live
StackPython, Astro, Cloudflare R2 and Workers, pdf.js, Kotlin and Compose
Built withProduct owner, designer, architect and tester. AI coding agents for speed.

In short

Problem. Four published Hindi verse translations existed only as print files. You could read them on paper, but a computer couldn't, so there was no search, no copying, no larger text on a phone, and the largest file was too big to open quickly.

What I built. I built a tool that reads the typesetter's old PageMaker files, and a table that maps each old font code to the right Hindi letter, made from the typesetter's own fonts. Checks flag anything uncertain, and the export refuses to publish broken letters. On top of that there is a website that opens large PDFs page by page, and an offline Android reader.

What I measured. I compared the recovered text with each book's own counts. The Geeta and the Ramayana match exactly, and the Bhagwat is nine couplets off, which the check flags. I also measured what a browser really downloads to show the first page of the biggest book.

The makranddubey.com home page: a Gita verse in Sanskrit with the Hindi verse translation in large type, a portrait of Pt. Govind Makrand Dubey, and the start of his introduction.
FIG 01The home page, with a verse of the Gita in Sanskrit and his Hindi verse beneath it, his portrait, and the start of his introduction.Screenshots of makranddubey.com, 14 Oct 2026. Shown with the author's permission.

What it looks like

The in-browser book reader showing two printed pages side by side: Hindi verse on the left page and the Sanskrit original on the right.
FIG 02The books, readable in the browser, shown here as a two-page spread of the Hindi Geeta with his verse on one page and the Sanskrit on the other.Screenshots of makranddubey.com, 14 Oct 2026. Shown with the author's permission.
The recitations page: an embedded video of Pt. Govind Makrand Dubey reciting chapter one of the Gita, with the verse captioned in Hindi.
FIG 03His recitations of the Gita, with each verse captioned in Hindi as he reads it.Screenshots of makranddubey.com, 14 Oct 2026. Shown with the author's permission.
The Android reader playing a recitation video of chapter one, with the verse captioned on screen and controls for listening or watching, speed and a sleep timer.
The Android reader’s text view: Sanskrit verses in red with the Hindi verse beneath, one verse highlighted and another selected, with colour, note, copy and share actions.
The printed copy of the book in the Android reader, caught mid page-turn with the back of the page showing through.
FIG 04The Android reader, showing a recitation with the verse on screen, highlighting with notes, and the printed copy with real page turns.Screenshots of the Android reader on my phone, 14 Oct 2026, with the phone's status bar blanked. Shown with the author's permission.

1Context

Pt. Govind Makrand Dubey's translations of the Geeta, the Bhagwat and the first volume of the Ramayana, plus a collection of navgeet songs, are read by Hindi-speaking devotional readers. I designed for readers who are often past fifty, on mid-range Android phones and patchy connections.

The books existed as print PDFs whose letters were drawn as shapes, so people could read them but computers could not. I started in February 2026 with a hand-written site, rebuilt it in Astro in August, and added the Android app in September.

2Constraints

  • Eight-bit legacy fonts. The typesetter used Chanakya-family fonts, which are not Unicode. Each byte in the file stands for one glyph of the font.
  • No Unicode text anywhere. The only text was in the typesetter's 8-bit font encoding, so every recovered line needed an independent check.
  • A big PDF. The Bhagwat PDF is 58,156,094 B. GitHub Pages said it could send just part of a file (range requests) but returned the whole file, and Cloudflare Pages caps file size below that.
  • No analytics, by design. The site's privacy page promises no analytics, so I have no traffic numbers.

3What I built

  • A PageMaker reader that pulls text regions out of the typesetter's binary files.
  • A glyph table built by rendering the typesetter's own glyph for each byte. A code I cannot confirm maps to a visible marker, so it can be audited in context instead of silently guessed.
  • Checks, and a gate. The scripts that put each book together compare it against the book's own counts and list any difference. The export refuses to publish if a hand correction doesn't match exactly once, or if any vowel sign or mark is left with no letter to sit on.
  • A static site on Cloudflare, with the PDFs on object storage and read by pdf.js through range requests, so page one needs only 0.28 MB of the biggest book.
  • An offline Android reader with audio, a page-curl reader, and a reflowable text edition with highlights and notes. Content is updated through a hash-versioned catalogue, so a correction needs no app release.
  • His own recitations, offline. 50 recordings recordings of the Geeta, 171 minutes in all. They're served from the project's own storage instead of being streamed from YouTube, which suits Google Play's rules and lets them be saved for offline use. They keep playing with the screen locked, with controls on the lock screen, and can download on Wi-Fi only.
  • Built for readers past fifty. The app is Hindi first, with Devanagari numerals everywhere. Text can grow as large as you like, and there is a night-reading mode. Each book has two plain buttons, one to read it as text and one to see the printed copy. Highlights work by tapping a verse, with no fiddly selection handles, and they're tied to the verse number, so a correction to the text never moves them.
  • Findable by search engines and AI assistants. The old site built its verse and recording lists with JavaScript, so search engines saw empty pages. Now everything is real HTML. Each page has structured data describing him and the books, the Hindi and English pages are linked as translations of each other, and an llms.txt file tells AI assistants who he is. Old addresses still work, and the pages cited by his Hindi Wikipedia article redirect permanently to the new ones.
  • No accounts, no ads and no analytics, on the website or in the app.

illustrative

  1. 1 · Legacy bytes (8-bit font, from the print file)

    • 6A6B
    • 656B
    • 3B
    • 2E6B
  2. 2 · Glyph table (one entry per code, built from the typesetter's own glyphs)

    • राU+0930U+093E
    • माU+092EU+093E
    • यU+092F
    • णU+0923
  3. 3 · Unicode Devanagari

    रामायण

  4. Unconfirmed code: A code the table cannot confirm stays visible as a pen-marked circle, so it can be checked in context. It is never guessed.

    The count gate refuses to publish when the recovered text does not match the printed count, for example 4,567 couplets in one book.

FIG 05One short word in three stages. The old font codes become matched letters, and then proper Hindi text. Tap a letter to follow it through. A code I could not confirm stays visible as a highlighted ◌.

4Measurements

ReadingWhat it shows
1,301 linesThe recovery pipeline: legacy-font decoding, PageMaker reading, assemblers, export.
3.59 MBThe text edition of all four books.
700 of 700 versesGeeta verses recovered, matching the book's count.
4,576 couplets against 4,567 coupletsNine couplets more than the back cover, for the Bhagwat. The check flags the difference instead of hiding it.
77 of 77 sargas and 119 of 119 sargasRamayana sargas recovered, matching the standard counts.
0.28 MBData a browser downloads to show page one of the Bhagwat, after the fix.
13 of 13 tests passedThe reader's unit tests on 14 Oct 2026.

On 14 Oct 2026 I measured what a browser actually downloads, not just whether the server supports ranges.

5What broke

  • The check that passed and the reader that didn't. I had confirmed the server sends only the bytes asked for. But when I measured what a browser actually downloaded, the reader was still pulling the whole Bhagwat file in the background, because one setting stopped extra page requests while another kept the first request streaming the entire file. One line fixed it. Page one now needs 0.28 MB.
  • The dotted circle. The typesetter used a visarga, a Devanagari sign, as a colon. My phone's font hid it, but Noto Serif drew it as a dotted circle. The export now converts it and applies a hand-correction list in which each entry must match exactly once. In all, 8 strings changed. The Geeta and the songs came through byte-identical.
  • "curl proves it works" was wrong. The reader failed in every browser. curl sends no CORS preflight, but the browser's preflight was refused, and a stale cached response hid my first fix. A CORS policy on the bucket and a cache-busting query string fixed it.
  • Two-up spreads. Every PDF page held two logical pages side by side, so phones showed two half-size pages. The split script checks that the centre gutter is blank before it cuts.
  • My own site's claim. The first version said the Bhagwat has 18,000 verses. That is the count in the source Purana, not in this book. The book has 4,567 couplets, and I corrected the site.

6What I'd change

  • Audience numbers. The site has no analytics, by design. If I ever add measurement, the privacy page changes first.
  • Scope. The Ramayana here is volume one, which covers two of the seven kandas. The counts above are the template for checking the rest.

7Credits and disclosures

  • People: Pt. Govind Makrand Dubey, whose translations these are, and the books' publisher. Shared with the author's permission.
  • Open source this stands on: Astro, pdf.js, pdf-lib, Noto Serif Devanagari (OFL), Kotlin and Jetpack Compose, Media3 and a PageCurl library.
  • Tools: I owned the product, the reading experience, the recovery pipeline and its checks, and tested on a physical phone. AI coding agents help me write code faster.

hi@amogh.cloud · Resume