Skip to content

paramsiddharth/aksharamukha.js

Repository files navigation

Aksharamukha.js

Aksharamukha in your browser!

npm

Description

This project aspires to be a browser-compatible version of the Aksharamukha and its Python library, which is a transliteration tool for Indic scripts.

The goal is to enable users to perform script conversions directly in their web browsers without needing to rely on server-side processing.

Plug & Play

You can use Aksharamukha.js directly in your HTML files by including it via a CDN. Here's a simple example:

<!DOCTYPE html>
<html lang='en'>
<head>
	<title>Hi</title>
	<script src='https://cdn.jsdelivr.net/npm/aksharamukha@latest/dist/index.global.js'></script>
</head>
<body>
	<script type='module'>
		const aksharamukha = await Aksharamukha.new();
		const transliterated = await aksharamukha.process(
			'autodetect',
			'Devanagari',
			'praNAm.'
		);
		alert(transliterated);
	</script>
</body>
</html>

Attribution

This project is inspired by and based on the original Aksharamukha by Vinodh Rajan.

Made with ❤️ by Param.