我如何让 csquotes 和 babel 设置显示环境 RTL(针对希伯来语或叙利亚语)?

我如何让 csquotes 和 babel 设置显示环境 RTL(针对希伯来语或叙利亚语)?

我正在使用csquotesbabel(如果很重要的话,使用 LuaLaTeX 编译)文本主要为英语,但引用希伯来语和叙利亚语,需要设置为 RTL。一切正常,除了csquotes外语环境,它们无法正确切换到 RTL 以进行显示环境。MWE 显示了问题 - 希伯来语段落设置为 LTR。

\documentclass{article}
\usepackage{csquotes} % language-aware quoting and display environments
\usepackage{fontspec}
\usepackage[bidi=basic, english]{babel}

%
% Languages
%
\babelprovide[import=en-GB,main]{british}
\babelprovide[onchar=ids,fonts,import=he,mapfont=direction]{hebrew}

\babelfont[hebrew]{rm}[
  Ligatures = TeX,
  Contextuals=Alternate,
  ItalicFont = TaameyDavidCLM-MediumOblique,
  BoldFont = TaameyDavidCLM-Bold,
  BoldItalicFont = TaameyDavidCLM-BoldOblique]%
  {TaameyDavidCLM-Medium}

\begin{document}

\begin{foreigndisplayquote}{hebrew}[Jer 32.1–5]
    ‏ הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
\end{foreigndisplayquote}
\begin{displayquote}[Jer 32.1–5]
    The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
\end{displayquote}

\selectlanguage{hebrew}

‏ הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ

\selectlanguage{british}

The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”

\end{document}

MWE 截图

我之前曾注意到过这个问题:

如何将 csquotes foreignquotes 与 RTL 语言结合使用?

它解决了该情况polyglossia,也许该情况与我尝试使用的情况相同babel

答案1

我会将我的评论变成答案,因为我找到了一种解决方法。

这里的问题是csquotes使用 切换语言otherlanguage*,它只是 的环境版本\foreignlanguage。换句话说,它适用于短语,而不是段落,因此它只会切换文本方向,而不是段落方向。在 LTR 文档中,这几乎不会被注意到,但在 RTL 文档中,这是一个真正的问题。对于段落而不仅仅是短语,切换语言的正确方法是使用不带星号的otherlanguage\selectlanguage

我发现的解决方法如下,它也重新定义了引用格式(并进行了一些额外的清理)。

\documentclass{article}

\usepackage{csquotes}

\usepackage[bidi=basic, british]{babel}

\babelprovide[onchar=ids fonts,import]{hebrew}

\babelfont[hebrew]{rm}{FreeSerif} % I'm using a font in TeXLive

\makeatletter
% Fix RTL
\newcommand\wrapotherlang[1]{\csuse{otherlanguage*}{#1}\bbl@dirparastext}
\renewcommand*{\csq@otherlang@star}{\wrapotherlang}%
% Redefine citation
\renewcommand\mkcitation[1]{(#1)}
\def\csq@edquote{%
  \unspace\hfill\csq@tempb
  \csuse{end\csq@blockenvironment}}
\makeatother

\begin{document}

Blah

\begin{foreigndisplayquote}{hebrew}[Jer 32.1–5]
הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
\end{foreigndisplayquote}
\begin{displayquote}[Jer 32.1–5]
The word that came to Jeremiah from the LORD in the tenth year of     King Zedekiah of Judah, which was the eighteenth year of     Nebuchadrezzar. 2 At that time the army of the king of Babylon was     besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah... 
\end{displayquote}
Blah

\end{document}

在此处输入图片描述

答案2

如果唯一的问题是希伯来语引文最后一行的缩进,那么可以使用新定义的环境来解决foreigndisplayquotex

为了避免安装TaameyDavidCLM我使用的Linux Libertine O已有字体。我删除了第一个 He 之前的不可见空格,以使第一个单词左对齐。

是

\documentclass{article}
\usepackage{csquotes} % language-aware quoting and display environments
\usepackage{fontspec}
\usepackage[bidi=basic, english]{babel}

%
% Languages
%
\babelprovide[import=en-GB,main]{british}
\babelprovide[onchar=ids,fonts,import=he,mapfont=direction]{hebrew}

%\babelfont[hebrew]{rm}[
%Ligatures = TeX,
%Contextuals=Alternate,
%ItalicFont = TaameyDavidCLM-MediumOblique,
%BoldFont = TaameyDavidCLM-Bold,
%BoldItalicFont = TaameyDavidCLM-BoldOblique]%
%{TaameyDavidCLM-Medium}

\babelfont[hebrew]{rm}[Script=Hebrew]{Linux Libertine O} % changed <<<<<<<<<<<<

\makeatletter
\newenvironment*{foreigndisplayquotex}[1] % added <<<<<<<<<<<<<<<<<<<<<
{\csq@getcargs{\csq@bdquote{\csq@lang{#1}}{\csq@endlang}}}
{\hfill\csq@edquote}
\makeatother


\begin{document}
    
    \begin{foreigndisplayquotex}{hebrew}[Jer 32.1–5]
    הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
    \end{foreigndisplayquotex}
    \begin{displayquote}[Jer 32.1–5]
        The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
    \end{displayquote}
    
    \selectlanguage{hebrew}
    
    ‏ הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
    
    \selectlanguage{british}
    
    The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
    
    
\end{document}

更新我找到了迄今为​​止最简单的解决方案,无需任何修复csquotes:使用第二个可选参数来插入fill

其结果与其他解决方案相同,尽管它仍然不完美。

值得一提的是,使用多语种时不存在此问题,例如https://tex.stackexchange.com/a/602690/161015最终获得了正确的结果。(最后一张图)

\documentclass{article}
\usepackage{csquotes} % language-aware quoting and display environments
\usepackage{fontspec}
\usepackage[bidi=basic, english]{babel}

%
% Languages
%
\babelprovide[import=en-GB,main]{british}
\babelprovide[onchar=ids,fonts,import=he,mapfont=direction]{hebrew} 

\babelfont[hebrew]{rm}[Script=Hebrew]{Linux Libertine O} % changed <<<<<<<<<<<< 

\begin{document}
    
    \begin{foreigndisplayquote}{hebrew}[Jer 32.1–5][\hspace{\fill}] %%using the optional argument to insert a space <<<<<
        הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
    \end{foreigndisplayquote}
    \begin{displayquote}[Jer 32.1–5]
        The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
    \end{displayquote}
    
    \selectlanguage{hebrew}
    
    ‏ הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
    
    \selectlanguage{british}
    
    The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
    
    
\end{document}

使用多语能力

陣陣

\documentclass{article}
\usepackage{csquotes} % language-aware quoting and display environments
\usepackage{fontspec}

\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{hebrew}

\newfontfamily\hebrewfont[Script=Hebrew]{Linux Libertine O}
\newfontfamily\englishfont[Ligatures=NoCommon]{Linux Libertine O}   

\begin{document}        

\begin{foreigndisplayquote}{hebrew}[Jer 32.1–5][\enspace]
    הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ 2 וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ 3 אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ 4 וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ 5 וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
\end{foreigndisplayquote}   

    \begin{displayquote}[Jer 32.1–5]
        The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
    \end{displayquote}
    
    \selectlanguage{hebrew}
    
    ‏ הַדָּבָר אֲשֶׁר־הָיָה אֶל־יִרְמְיָהוּ מֵאֵת יְהוָה בִּשְׁנַת [בַּ][שָּׁנָה] הָעֲשִׂרִית לְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה הִיא הַשָּׁנָה שְׁמֹנֶה־עֶשְׂרֵה שָׁנָה לִנְבוּכַדְרֶאצַּר׃ ‎2‏ וְאָז חֵיל מֶלֶךְ בָּבֶל צָרִים עַל־יְרוּשָׁלִָם וְיִרְמְיָהוּ הַנָּבִיא הָיָה כָלוּא בַּחֲצַר הַמַּטָּרָה אֲשֶׁר בֵּית־מֶלֶךְ יְהוּדָה׃ ‎3‏ אֲשֶׁר כְּלָאוֹ צִדְקִיָּהוּ מֶלֶךְ־יְהוּדָה לֵאמֹר מַדּוּעַ אַתָּה נִבָּא לֵאמֹר כֹּה אָמַר יְהוָה הִנְנִי נֹתֵן אֶת־הָעִיר הַזֹּאת בְּיַד מֶלֶךְ־בָּבֶל וּלְכָדָהּ׃ ‎4‏ וְצִדְקִיָּהוּ מֶלֶךְ יְהוּדָה לֹא יִמָּלֵט מִיַּד הַכַּשְׂדִּים כִּי הִנָּתֹן יִנָּתֵן בְּיַד מֶלֶךְ־בָּבֶל וְדִבֶּר־פִּיו עִם־פִּיו וְעֵינָיו אֶת־עֵינָו [עֵינָיו] תִּרְאֶינָה׃ ‎5‏ וּבָבֶל יוֹלִךְ אֶת־צִדְקִיָּהוּ וְשָׁם יִהְיֶה עַד־פָּקְדִי אֹתוֹ נְאֻם־יְהוָה כִּי תִלָּחֲמוּ אֶת־הַכַּשְׂדִּים לֹא תַצְלִיחוּ׃ פ
    
    \selectlanguage{british}
    
    The word that came to Jeremiah from the LORD in the tenth year of King Zedekiah of Judah, which was the eighteenth year of Nebuchadrezzar. 2 At that time the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was confined in the court of the guard that was in the palace of the king of Judah, 3 where King Zedekiah of Judah had confined him. Zedekiah had said, “Why do you prophesy and say: Thus says the LORD: I am going to give this city into the hand of the king of Babylon, and he shall take it; 4 King Zedekiah of Judah shall not escape out of the hands of the Chaldeans, but shall surely be given into the hands of the king of Babylon, and shall speak with him face to face and see him eye to eye; 5 and he shall take Zedekiah to Babylon, and there he shall remain until I attend to him, says the LORD; though you fight against the Chaldeans, you shall not succeed?”
    
    
\end{document}

相关内容