All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sktutilities.util.VisargaUtil Maven / Gradle / Ivy

Go to download

A collection of scala and java classes for some basic character level processing for the Sanskrit and other Indic (kannada, telugu, etc..) languages, contributed by the open source sanskrit-coders projects and friends. Some notable facilities: * Transliterate text from one script or encoding scheme to another. * Some grammar simulation. Examples: see https://github.com/sanskrit-coders/indic-transliteration Contributions and suggestions are invited at https://github.com/sanskrit-coders/indic-transliteration . (Sister projects there may also be of interest.)

There is a newer version: 1.6
Show newest version
package com.sktutilities.util;


public class VisargaUtil {

public VisargaUtil()
{
	Log.logInfo("In Visarga");
}


// the ajadis

	//*******************BEGINNING OF FUNCTION********************//
public static boolean isVisarga(String str)
	{
		if(str.equals("H"))
		return true;
		return false;
	}
//*******************END OF FUNCTION**********************//



//*******************BEGINNING OF FUNCTION********************//
public static boolean isVisargadi(String str)
	{
		
		Log.logInfo(" Checking if  is_visargadi:::");
		String s1 = VarnaUtil.getAdiVarna(str);
		if(isVisarga(s1) )
			{
				Log.logInfo("I am visargadi");
				return true;
			}
		
		return false;
	}
//*******************END OF FUNCTION**********************//


//*******************BEGINNING OF FUNCTION********************//
public static boolean isVisarganta(String str)
	{
		Log.logInfo(" Checking if  is_visarganta:::");
		String s1 = VarnaUtil.getAntyaVarna(str);
		if(isVisarga(s1) )
			return true;		
		return false;
	}
//*******************END OF FUNCTION**********************//



		
} // end of class visarga.java




© 2015 - 2025 Weber Informatics LLC | Privacy Policy