Skip to content

Instantly share code, notes, and snippets.

View Proyag's full-sized avatar

Proyag Pal Proyag

View GitHub Profile
@Proyag
Proyag / sort-ind.py
Last active September 11, 2025 13:52
Sort Bengali .ind files to have indexes in Bengali alphabetical order
#!/usr/bin/env python3
import re
import argparse
def read_index_file(file_path: str) -> list[str]:
"""Read the .ind file and return a list of index items."""
with open(file_path, 'r', encoding='utf-8') as infile:
lines = infile.read()
@Proyag
Proyag / sei2uni.md
Last active June 25, 2025 09:28
sei2uni: Converting bangtex files to Unicode

sei2uni

Created by: Proyag Pal and Palash Baran Pal

First published: February 2021


Purpose

The software package bangtex