jyotisham / jyotisha

Python tools for the astronomical / astrological vedAnga of Hindus
MIT License
88 stars 52 forks source link

Generating panchaang in Telugu #129

Open usaraj opened 2 years ago

usaraj commented 2 years ago

HI!

Thanks for the great work. I just stumbled on this repo and started to test.

The sample code given in your instructions here (https://jyotisham.github.io/jyotisha/software/for_users/), work fine to generate daily panchaang for the Devanagiri and Tamil fonts using emit function in daily_tex_writer.py

I have also used @karthikraman scripts to generate pdf from command line. They only generate daily panchaang pdf in Sanskrit/Tamil fonts

I am having difficulty to generate .pdf and(or) .md panchaang file in Telugu

I was able to use this from sample code and create a tex file (with Telugu fonts) emit(panchaanga, output_stream=open("/some/path.tex", 'w'), languages=["sa", "te"], scripts=[sanscript.DEVANAGARI, sanscript.TELUGU])

Unfortunately, when I try to use xelatex to generate the pdf file it is failing on the fonts. Probably, the templates are an issue?

I have not had the chance to dvelve deep into the code. I was wondering if you had any unlisted command that could help me achieve our purpose (without modifying the code.)


Another issue: I have not been able to generate a monthly panchaang yet as it errors out in monthly_tex_writer.py


Your help in resolving this will be greatly appreciated. Best wishes,

karthikraman commented 2 years ago

Probably a font issue. Pls. give me an example you want generated, and let me try it out.. Thanks!

ShubhamBhooyat commented 1 year ago

Maybe this example Tex file is useful on how to properly use Telugu fonts https://cs.overleaf.com/latex/examples/telugu-telugu/khnncxwyvfzh