Alphabet used in India and Nepal. It is written LTR. This tag seems to have been created when trying to show the letters in for example JavaScript or parse strings written in them
Questions tagged [devanagari]
32 questions
29
votes
6 answers
Combining Devanagari characters
I have something like
a = "बिक्रम मेरो नाम हो"
I want to achieve something like
a[0] = बि
a[1] = क्र
a[3] = म
but as म takes 4 bytes while बि takes 8 bytes I am not able to get to that straight.
So what could be done to achieve that? In Python.

meadhikari
- 971
- 3
- 13
- 27
13
votes
2 answers
Devanagari text rendering improperly in PyGame
We have a small web app that we want to convert into something native. Right now, it's got a lot of moving parts (the backend, the browser etc.) and we'd like to convert it into a single tight application. We decided to use PyGame to do this and…

Noufal Ibrahim
- 71,383
- 13
- 135
- 169
5
votes
2 answers
Syllabification of Devanagari
I am trying to syllabify devanagari words
धर्मक्षेत्रे -> धर् मक् षेत् रे
dharmakeshetre -> dhar mak shet re
wd.split('्')
I get the result as :
['धर', 'मक', 'षेत', 'रे']
Which is partially correct
I try another word कुरुक्षेत्र -> कु रुक् षेत्…

Echchama Nayak
- 971
- 3
- 23
- 44
4
votes
3 answers
How to type Devanagari using LaTeX (Overleaf)?
I am trying type Devanagari Script in LaTeX using Overleaf. But I am getting some formatting error. The "matras" are not reflecting in the output Devanagari text.
\usepackage{devanagari}
{\dn karma}
Output is as follows:
but it should be

samandal
- 87
- 1
- 12
3
votes
1 answer
Pango: Finding positions in Devanagari strings
I'm using Pango to typeset Devanagari.
Consider the string उम्कन्छौ consisting of DEVANAGARI LETTER U, DEVANAGARI LETTER MA, DEVANAGARI SIGN VIRAMA, DEVANAGARI LETTER KA, DEVANAGARI LETTER NA, DEVANAGARI SIGN VIRAMA, DEVANAGARI LETTER CHA,…

Johan Vromans
- 33
- 3
3
votes
2 answers
How are connected letters in devanagari rendered?
Consider the letters in the picture below.
The first row shows the letters themselves, the second row numbers them and third row shows their unicode code point encoded as three hex UFT-8 bytes. For example, the letter 2 is DEVANAGARI LETTER MA with…

Kedar Mhaswade
- 4,535
- 2
- 25
- 34
2
votes
0 answers
How to split Devanagari bi-tri and tetra conjunct consonants as a whole from a string?
I am new to Rust and I was trying to split Devanagari (vowels and) bi-tri and tetra conjuncts consonants as whole while keeping the vowel sign and virama. and later map them with other Indic script. I first tried using Rust's chars() which didn't…

InsParbo
- 390
- 2
- 13
2
votes
0 answers
Devanagari ( Indian ) fonts are not being rendered by browsers
I've developed java swing application for newspaper shop. When I make bill order by running my project from Netbeans, the bill is saved as an HTML file on given directory and devanagari fonts are rendered properly.
eg.
But when I deploy my swing…

अक्षय परूळेकर
- 314
- 4
- 16
2
votes
2 answers
python regex to match both english and telugu/devanagari words
I need some help in getting words from a mix of language it contains english and telugu language, here is my code so far
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
sentence="hello world యూనియన్ యూనియన్"…

rohit gowtham
- 37
- 3
2
votes
1 answer
Large corpus of Hindi text in Roman script
Where can I find such a corpus? I require this to build a language detector between Hindi and English at the token (word) level.
For instance, something like the Hindi Wikipedia in the Roman alphabet would be quite useful. Or short stories, social…

piedpiper
- 1,222
- 3
- 14
- 27
1
vote
1 answer
How can I draw devanagari characters on a screen?
I am trying to represent devanagari characters on a screen, but in the dev environment where I'm programming I don't have unicode support. Then, to write characters I use binary matrices to color the related screen's pixels. I sorted these matrices…

Arcangelo Pace
- 11
- 1
1
vote
1 answer
Python devanagari image extraction
I tried to extract the chars from image which is handwritten devanagari script using python, But it only outputs one letter rather than whole paragraph.
`from keras.preprocessing.image import img_to_array
from keras.models import load_model
import…

ranto berk
- 11
- 2
1
vote
1 answer
How to resolve Devanagari script encoding error in R
I have a .csv file which is UTF-8 encoded when I saved it. The script is Devanagari of the data in this file. I am able to see the words in csv file in excel
में
लिए
किया
गया
हैं
नहीं
सिंह
पुलिस
दिया
करने
कहा
रहे
बाद
करें
साथ
रहा
But when I open…

Krishna
- 11
- 2
1
vote
0 answers
Importing a library and using it in jquery
My intention is to do sandhi on text inputted by the user.
I am trying to import this sanskrit external sandhi rules module for node.js into my code and use the functions.
My html is as follows:

Echchama Nayak
- 971
- 3
- 23
- 44
1
vote
2 answers
Devanagaric text processing(NLP) where to start
I am new to Devnagaric NLP, Is there any group or resources that would help me get started with NLP in Devnagaric language(Mostly Nepali language or similar like Hindi). I want to be able to develop fonts for Devanagaric and also do some font…

LeoUniverse
- 19
- 2