0% found this document useful (0 votes)
108 views15 pages

Jyotisha Documentation: Release 0.0.2

This document provides documentation for the jyotisha Python module version 0.0.2. It describes the jyotisha.panchangam, jyotisha.names, and jyotisha.custom_transliteration submodules. The jyotisha.custom_transliteration submodule contains functions for transliterating text between scripts, converting between sexagesimal and decimal representations of angles, and formatting latitude and longitude strings. The document also includes module and function indices.

Uploaded by

bulbtommy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views15 pages

Jyotisha Documentation: Release 0.0.2

This document provides documentation for the jyotisha Python module version 0.0.2. It describes the jyotisha.panchangam, jyotisha.names, and jyotisha.custom_transliteration submodules. The jyotisha.custom_transliteration submodule contains functions for transliterating text between scripts, converting between sexagesimal and decimal representations of angles, and formatting latitude and longitude strings. The document also includes module and function indices.

Uploaded by

bulbtommy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

jyotisha Documentation

Release 0.0.2

sanskrit-programmers

Dec 23, 2020


Contents

1 jyotisha.panchangam 1
1.1 jyotisha.panchangam.temporal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 jyotisha.panchangam.spatio_temporal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2 jyotisha.names 3

3 jyotisha.custom_transliteration 5

4 Indices and tables 7

Python Module Index 9

Index 11

i
ii
CHAPTER 1

jyotisha.panchangam

1.1 jyotisha.panchangam.temporal

1.2 jyotisha.panchangam.spatio_temporal

1
jyotisha Documentation, Release 0.0.2

2 Chapter 1. jyotisha.panchangam
CHAPTER 2

jyotisha.names

3
jyotisha Documentation, Release 0.0.2

4 Chapter 2. jyotisha.names
CHAPTER 3

jyotisha.custom_transliteration

jyotisha.custom_transliteration.clean_tamil_Na(text)
jyotisha.custom_transliteration.print_lat_lon(lat, lon)
Returns a formatted string for a latitude and longitude
Returns a formatted string for latitude and longitude, given sexagesimal ‘strings’ using colons for separation
Args: str latstr str lonstr
Returns: string corresponding to the formatted latitude and longitude
Examples:

>>> print_lat_lon('13:05:24','80:16:12') #Chennai


"13°05'24''N, 80°16'12''E"
>>> print_lat_lon('37:23:59','-122:08:34') #Palo Alto
"37°23'59''N, 122°08'34''W"
>>> print_lat_lon(1, -1)
"1°0'0''N, 1°0'0''W"

jyotisha.custom_transliteration.romanise(iast_text)
jyotisha.custom_transliteration.sexastr2deci(sexa_str)
Converts as sexagesimal string to decimal
Converts a given sexagesimal string to its decimal value
Args: A string encoding of a sexagesimal value, with the various components separated by colons
Returns: A decimal value corresponding to the sexagesimal string
Examples:

>>> sexastr2deci('15:30:00')
15.5
>>> sexastr2deci('-15:30:45')
-15.5125

5
jyotisha Documentation, Release 0.0.2

jyotisha.custom_transliteration.tr(text, script, titled=True, source_script=’hk’)


NOTE: Please don’t put your custom tex/ md/ ics whatever code here and pollute core library functions. Wrap
this in your own functions if you must. Functions should be atomic.
jyotisha.custom_transliteration.transliterate_from_language(text, language,
script)

6 Chapter 3. jyotisha.custom_transliteration
CHAPTER 4

Indices and tables

• genindex
• modindex
• search

7
jyotisha Documentation, Release 0.0.2

8 Chapter 4. Indices and tables


Python Module Index

j
jyotisha.custom_transliteration, 5

9
jyotisha Documentation, Release 0.0.2

10 Python Module Index


Index

C
clean_tamil_Na() (in module jy-
otisha.custom_transliteration), 5

J
jyotisha.custom_transliteration (module),
5

P
print_lat_lon() (in module jy-
otisha.custom_transliteration), 5

R
romanise() (in module jy-
otisha.custom_transliteration), 5

S
sexastr2deci() (in module jy-
otisha.custom_transliteration), 5

T
tr() (in module jyotisha.custom_transliteration), 5
transliterate_from_language() (in module
jyotisha.custom_transliteration), 6

11

You might also like