[XeTeX] Translation commands for package dramatist to put in the marathi.ldf file

Ross Moore ross.moore at mq.edu.au
Sun Apr 12 12:49:37 CEST 2020

Hi Phil, Zdeněk and others.

On 12 Apr 2020, at 7:46 pm, Philip Taylor <P.Taylor at Hellenic-Institute.Uk<mailto:P.Taylor at Hellenic-Institute.Uk>> wrote:

Zdeněk Wagner wrote:

I would not do it. Of course, you cannot use \renewcommand because
\scenename is not used in any *.ldf. You could use \def\scenename{दरश्य} […]

LaTeX has  \providecommand  with the same syntax as \newcommand  and  \renewcommand .

It makes the definition *only* if the c-s is not already known.
This means that you can always use:

  \renewcommand\mycs{ what I really want }

to get around such issues.

A thought — if \scenename is not known at the point that the last line of [gloss-]marathi.ldf is read, would there be any point in using \def \scenename {दरश्य}, since such definition would either get over-ridden by whatever subsequent definition of \scename is causing the problem (\def, \renewcommand), or would prevent a subsequent \newcommand from working as \scenename would already be defined.  Is this not the case (he asked, as someone who barely understands anything that LaTeX does ...) ?

There is always a way to get what you want,
whether using Plain TeX or LaTeX or whatever other high-level macro structures.

Thus the important thing is how to make it resistant to updates, as Zdeněk said.

Philip Taylor

Hope this helps.
Stay safe.


Dr Ross Moore
Department of Mathematics and Statistics
12 Wally’s Walk, Level 7, Room 734
Macquarie University, NSW 2109, Australia
T: +61 2 9850 8955  |  F: +61 2 9850 8114
M:+61 407 288 255  |  E: ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>
[cid:image001.png at 01D030BE.D37A46F0]
CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University. <http://mq.edu.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20200412/e0569883/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <https://tug.org/pipermail/xetex/attachments/20200412/e0569883/attachment-0001.png>

More information about the XeTeX mailing list.