我正在使用 排版梵文文本的对页翻译reledpar
。我现在有的是这样的,左右页上每五行都有编号。
我想要的是类似下面的内容。我想要手动设置的诗节编号(例如 30.1、30.12 等)打印在左右边距中。在某些情况下,两个或多个诗节一起翻译,因此自动段落编号不起作用,我必须手动设置诗节编号。
所以我想要实现双重目标
- 我不想每五行编号,而是想对每个段落的第一行进行编号(即,每隔
\pstart
)。 - 我希望手动设置数字,而不是自动设置。
- 我希望左边的数字采用天城文。
我该如何实现这一点?下面是一个带有示例文本的 MWE,它产生上面第一幅图中的输出。
\documentclass[twoside]{book}
\usepackage[main=english]{babel}
\babelprovide[import,typography/prehyphenchar=]{sanskrit}
\babelfont[english]{rm}{Charis SIL}
% \babelfont[sanskrit]{rm}[Renderer=HarfBuzz,Script=Devanagari]{Noto Sans Devanagari}
\babelfont[sanskrit]{rm}[Renderer=HarfBuzz,Script=Devanagari]{Adishila}
% Need to scale the Devanagari font to match the glyph height of Roman font
\usepackage{relsize}
\usepackage[series={},nocritical,noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\usepackage{reledpar}
\begin{document}
\fontsize{10}{15}\selectfont
\begin{pages}
\begin{Leftside}
\beginnumbering
\pstart
\begin{sloppypar}\justifying\hyphenrules{nohyphenation}
\noindent{\foreignlanguage{sanskrit}{\relscale{1.4}३०.१}}\\
\noindent{\foreignlanguage{sanskrit}{\relscale{1.4}आतोद्यं सुषिरं नाम ज्ञेयं वंशगतं बुधैः।}}\\
\noindent{\foreignlanguage{sanskrit}{\relscale{1.4}वैण एव विधिस्तत्र स्वरग्रामसमाश्रयः॥}}
\end{sloppypar}
\pend
\pstart
\begin{sloppypar}\justifying\hyphenrules{nohyphenation}
\noindent{\foreignlanguage{sanskrit}{\relscale{1.4}३०.२}}\\
\noindent{\foreignlanguage{sanskrit}{\relscale{1.4}द्विकत्रिकचतुष्कास्तु ज्ञेया वंशगताः स्वराः।}}\\
\noindent{\foreignlanguage{sanskrit}{\relscale{1.4}कम्प्यमानार्थमुक्ताश्च व्यक्तमुक्तास्तथैव च॥}}
\end{sloppypar}
\pend
\endnumbering
\end{Leftside}
\begin{Rightside}
\beginnumbering
\pstart
\begin{sloppypar}\justifying\hyphenrules{nohyphenation}
\noindent\hangindent=0.5cm Experts must recognize that the instruments made of bamboo belong to the class called Suṣira. The rules of functioning of this are based on the same units of Svaragrāma as those of string instruments.
\end{sloppypar}
\pend
\pstart
\begin{sloppypar}\justifying\hyphenrules{nohyphenation}
\noindent\hangindent=0.5cm The Svaras of the flute have two, three or four Śrutis. These (Svaras) become pronounced (either as the holes are) shaken, half released and fully released.
\end{sloppypar}
\pend
\endnumbering
\end{Rightside}
\end{pages}
\Pages
\end{document}