ledmac icon indicating copy to clipboard operation
ledmac copied to clipboard

Translation for lemma

Open martensas opened this issue 3 years ago • 4 comments

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

martensas avatar Oct 19 '22 07:10 martensas

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

maieul avatar Oct 19 '22 09:10 maieul

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

martensas avatar Oct 19 '22 10:10 martensas

\edtext{hjól}{\lemma{hjól "wheel"}\Afootnote{hringr “ring” \emph{A}}}

:roll_eyes:

Doc73 avatar Oct 19 '22 10:10 Doc73

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}}}

maieul avatar Oct 19 '22 10:10 maieul