Terminal text in devanagari script

So, I was looking for ways to edit the gnome terminal, I wanted to add hindi text to my terminal, dharmo rakshiti rakshitihi ("save the law and Righteousness and in turn they will save you"), but the text doesn't look good, I mean it is written in wrong way. and also I just added a print function in fish config file.

what should I do?

1 Like

The problem might be in fish, and using bash could help.
Check if this helps:

The linked thread failed in my translator, but what I seem to understand was that switching to bash solved it.

Use bash there is no other way than using bash

5 Likes

I tried bash too, the output is same

I think alacritty doesn't support rendering devanagari script See command line - devnagari script in terminal - Ask Ubuntu

3 Likes

BTW,

:slight_smile:

6 Likes

I'm using gnome terminal

Does Devanagari script render correctly in other applications, for example the web browser or a word processor?

When you are looking at the text inside micro (or whatever editor you are using), does it look right?

I used default gedit, it looked perfect

It sounds like the font rendering badly is specific to the Neofetch (Fastfetch?) output, is that right?

Can you post the print function you made into the thread?

In fish config file, I don't know how to edit fastfetch config file, I tried neofetch before I guessed the function to write something in neofetch and it also gave the same output, I dont even know how to write a basic c code, I am new to all this, when I shifted to garuda I came to know about fastfetch.


## Run fastfetch if session is interactive
if status --is-interactive && type -q fastfetch
   printf '\t\t\t\t\t'
   printf '%s' "धर्मो रक्षति रक्षितः "
   printf '\n\n'
   fastfetch -l arch --load-config paleofetch
end```

I don’t think it will work if you do it in your fish config file, I believe it must be bash.

I just changed my default shell to bash and added these lines to .bashrc:

printf '\t\t\t\t\t'
printf '%s' "धर्मो रक्षति रक्षितः " 
printf '\n\n'
neofetch

Now when I open my shell I get the output and the font looks (I think) correct:

4 Likes

Where'd ya get that ascii garuda in the fetch? :wink: I need that.

neofetch

:slight_smile:

1 Like

Yeah, I don't get that particular ascii in neofetch.

I get this one:

1 Like

Use neofetch not neofetch-git

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.