TeX - LaTeX Asked by Rohit D. Holkar on June 18, 2021
I want to use package dramatist to write a play in language Marathi. I am using package polyglossia in XeLaTeX for Marathi. The package dramatist prints some theatrical terms via some commands. E.g., the command scenename
prints “Scene (and scene number in roman)”. I want the word दृश्य to be printed instead of “Scene”, and have the counter set to Devanagari script. Therefore, following the package documentation, I use renewcommand{scenename}{??दृश्य}
in the preamble. Similarly, I change the counter to Devanagari script.
My question is, how can I add these translation commands to the ldf (marathi.ldf) file for language Marathi in package poyloglossia so that I do not have to keep writing these commands all the time in the preamble?
Thank you in advance.
An alternative is writing your commands in a new file, say mycommands.tex
:
renewcommand{scenename}{Your scenename}
%etc.
and loading it using input{mycommands}
if it is in the same folder as your .tex file. But it you really need to edit the gloss file, it is in texlive/2019/texmf-dist/tex/latex/polyglossia
as gloss-marathi.ldf
(change the year if your version of TeX Live is different; the tree structure is similar for MiKTeX). Create a backup first, say, gloss-marathi-backup.ldf
and then add your commands to gloss-marathi.ldf
(using sudo
in Linux if your permission is denied or administrator privileges in Windows).
Answered by user193767 on June 18, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP