maieul / ledmac

package reledmac for latex
http://www.ctan.org/tex-archive/macros/latex/contrib/reledmac
54 stars 28 forks source link

Translation for lemma #944

Open martensas opened 1 year ago

martensas commented 1 year ago

Is there a possibility to have a specificed translation for a lemma that is automatically generated according to a set format (in this case “ before and ” after)?

Minimal working example

\beginnumbering
 \edtext{hjól}{\lemmatr{wheel}\Afootnote{hringr “ring” \emph{A}}}
\endnumbering
maieul commented 1 year ago

I don't understand what should be translated, and with which criteria

martensas commented 1 year ago

So, if this in a normal case would generate:

1 hjól ] hringr “ring” A

with this argument we would get

1 hjól “wheel” ] hringr “ring” A

Doc73 commented 1 year ago
\edtext{hjól}{\lemma{hjól "wheel"}\Afootnote{hringr “ring” \emph{A}}}

:roll_eyes:

maieul commented 1 year ago

Well, there is not yet any such feature. It should be not very complex to add, but unfortunatly, I have no time for reledmac developing now. I suggest you to create your own macro, which call \lemma and include repetition.

Something link

\newcommand{\lemmawithtr}[2]{
\lemma{#1 \enquote{#2}}
}

(supposing you use csquotes package)

And call them as

 \edtext{hjól}{\lemmawithtr{hjol}{wheel}\Afootnote{hringr “ring” \emph{A}}}