Hi Typst Community,
I’m currently working on a project that involves creating an index for a document containing Devanagari (Hindi/Sanskrit) text. Traditionally, tools like Xindy are used for handling complex sorting and indexing in multilingual documents, especially for Indic scripts. However, I’m exploring alternatives that might integrate more seamlessly with Typst.
Could anyone recommend a workflow or tool for generating indexes for Indic scripts like Devanagari? Specifically, I’m looking for something that can:
- Handle Devanagari sorting rules (e.g., क, ख, ग, घ instead of Latin alphabetical order).
- Support multi-level indexing (e.g., main entries and sub-entries).
I’m aware of the in-dexter
package it primarily focuses on Latin text and doesn’t fully address the complexities of Devanagari sorting and indexing.
For context, here’s an example of how a Devanagari index is typically formatted:
(क)
कर्म (karma)
- धार्मिक अर्थ (religious meaning), 45
- दार्शनिक अर्थ (philosophical meaning), 67
(ग)
गीता (Gita)
- अध्याय २ (Chapter 2), 12
- अध्याय १८ (Chapter 18), 89
If anyone has experience with this or can point me to relevant resources, I’d greatly appreciate it!
Thanks in advance!