Skip to content

a JavaScript-based tool for websites that allows users to transliterate text from Kannada, Malayalam, and Hindi into Tulu script. By simply embedding a provided script tag, website owners can offer this functionality to their visitors, enhancing accessibility and user experience.

Notifications You must be signed in to change notification settings

jtuluve/anywhere-tulu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anywhere Tulu

Conert your blogs, contents in your website from Kannada or Malyalam or Hindi script to Tulu Script with just 2 steps.

Introduction

Anywhere Tulu is a transliteration tool for web developers to transliterate Kannada/ Malayalam/ Hindi text written in Tulu language to Tulu Script. Anywhere Tulu uses the same code from Genasiri tulu transliterator to transliterate the text. It was made using Javascript only.

You can see the simple working example here

Anywhere tulu supports Kannada, Malayalam, Hindi to Tulu transliteration.

Note: Transilteration is a method of conerting letters from one language to another. That means it does not translate the word, It swaps the letter from one language to another.

Quick Installation

Step 1:

Paste this one line of code before the closing tag of body (i.e before </body> )

<script src="https://jtuluve.github.io/anywhere-tulu/script.js">

Step 2:

Add "genatulu" class to the tags which has the contents you want to convert to Tulu Script. Ex:

<h1 class="genatulu">ತುಳುನಾಡ್</h1>
<p class="genatulu">ತುಳುನಾಡ್ ಕರ್ನಾಟಕ ರಾಜ್ಯೊದ ದಕ್ಷಿಣ ಕನ್ನಡ, ಉಡುಪಿ ಜಿಲ್ಲೆಲು ಕೇರಳ ರಾಜ್ಯೊದ ಕಾಸರಗೋಡುಜಿಲ್ಲೆನ್ ತುಳುನಾಡ್ ಪಂಡ್‍ದ್ ಪನ್ಪೆರ್. ಈ ಪ್ರದೇಸೊದ ಮುಕ್ಯೊ ಬಾಸೆ ತುಳು. ಬೌಗೋಲಿಕವಾದ್ ತುಳುನಾಡ್ ಭಾರತದೇಸೊದ ನೈರುತ್ಯೊಡುಪ್ಪುನ ಪ್ರದೇಸೊ</p>
<p class="genatulu">ತುಳುನಾಡ್ದ ಪಡ್ಡಾಯಿಡ್ ಅರಬ್ಬಿ ಕಡಲ್. ಬಡೆಕಾಯಿಡ್ ಕರ್ನಾಟಕ ರಾಜ್ಯೊದ ಉತ್ತರ ಕನ್ನಡ ಜಿಲ್ಲೆ ಮೂಡಾಯಿಡ್ ಹಾಸನ ಜಿಲ್ಲೆ, ತೆನ್ಕಾಯಿಡ್ ಕೇರಳ. ತುಳು ಮುಲ್ತ ಮಣ್ಣ್‌ದ ಬಾಸೆ. ಕನ್ನಡ, ಬ್ಯಾರಿ,ಕೊಂಕಣಿ ಬಾಸೆನ್‍ಲಾ ಮುಲ್ಪ ಪಾತೆರುವೆರ್. ತುಳುನಾಡ್ದ ವ್ಯಾಪ್ತಿ ೮,೪೪೧ km2 (೩,೨೫೯ sq mi). ೨೦೦೧ಗ್ ಮುಲ್ಪ ೩,೦೦೫,೮೯೭ ನಸ್ಯೊ ಇತ್ತ್ಂಡ್. ಕುಡ್ಲದ ಮಂಗಳೂರು ಮಹಾನಗರ ಪಾಲಿಕೆ, ಉಡುಪಿ ಮುಲ್ತ ಮುಕ್ಯೊ ನಗರ ಆದುಂಡು.</p>

And that's it!! You are good to go..

CSS control

You can control where the option of transliteration should stay by adjusting the style. The element visible in the top-right corner has the class name as "AT_mainbody". You can change the style to your wish. example:

.AT_mainbody{
top: 15px;
right: 15px;
}

FAQ

1) It isn't converting the text to Tulu Script in my website. Why?

If it isn't converting the text, • Please check If you have pasted the correct code in your html file.
• Make sure that you have pasted the code just before the closing tag of body (i.e </body>)
• Make sure you have added 'genatulu' class in every tag you want to convert the text.
• If everything is correct but if it still doen't work, please contact me.

2) It is converting my text from english to tulu. Why?

Sorry. Unfortunately, the allige font which I am using in this tool uses english letters to convert it to tulu. So it gets applied to any english texts. Here is a solution:
• Store the english text inside a span element and apply separate font to it.

example:
<h1 class="genatulu"> ತುಳುನಾಡ್ದ ವ್ಯಾಪ್ತಿ ೮,೪೪೧ <span style="font-family: 'Courier New', Courier, monospace;">km</span> ಸ್ಕ್ವೇರ್ (೩,೨೫೯ ಸ್ಕ್ವೇರ್ ಮೈಲ್ಸ್ ).</h1>

In the above example the "km" is in english. So we stored it around a span ag and applied separate font to it. It is important to add any font family or else it will not work.

Got suggestions?

If you have any suggestions/ queries contact me. I'm on instagram. Let's chat!!

Do you have time for coffee?

Buy Me A Coffee

About

a JavaScript-based tool for websites that allows users to transliterate text from Kannada, Malayalam, and Hindi into Tulu script. By simply embedding a provided script tag, website owners can offer this functionality to their visitors, enhancing accessibility and user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published