
Unicode 字元 ⸤ (U+2E24) 和 ⸥ (U+2E25) 有時用於在句法分析中將單字分組在一起。例如:
⸤我哥哥的女兒⸤⸥⸥用她的雙筒望遠鏡⸥看到了⸤一棵橘子樹⸥⸤。
我正在使用 LuaLaTeX,並希望繼續使用 Computer Modern 字體,但它似乎不包含這些代碼點(它們呈現為空格)。我可以看到幾種解決方法,但我不知道如何實現其中任何一個:
- 旋轉
tipa
的\textcorner
; - 截斷
$\lfloor$
和$\rfloor$
; - 從支援這些特定字元的字體中竊取這些字元。
這些都適合我。值得注意的是:我正在使用csquotes
with \MakeOuterQuote{"}
,所以\char"2E24
正如這裡所建議的行不通的。
對於它的價值,一個非常小的例子:
\documentclass{article}
\usepackage{csquotes}
\MakeOuterQuote{"}
\begin{document}
"⸤The daughter ⸤of my brother⸥ ⸥ sees ⸤an orange tree⸥ ⸤with her binoculars⸥."
\end{document}
答案1
借用它們。
\documentclass{article}
\usepackage{fontspec}
\usepackage{newunicodechar}
\newfontface{\lowbrackets}{Noto Sans}
\NewDocumentCommand{\blhb}{}{{\lowbrackets\symbol{"2E24}}}
\NewDocumentCommand{\brhb}{}{{\lowbrackets\symbol{"2E25}}}
\newunicodechar{⸤}{\blhb}
\newunicodechar{⸥}{\brhb}
\begin{document}
⸤The daughter ⸤of my brother⸥⸥ sees ⸤an orange tree⸥ ⸤with her binoculars⸥.
\end{document}
答案2
這是使用降低字元的方法pmboxdraw
。也許仍然有點太大,但這是一個簡單的解決方案。
我添加了一些“窮人的字距調整”以使字符更接近字母。
\documentclass{article}
\usepackage{newunicodechar}
\usepackage{graphicx}
\usepackage{pmboxdraw}
\usepackage{csquotes}
\MakeOuterQuote{"}
\newunicodechar{⸤}{\smash{\raisebox{-4pt}{\textSFii}\hskip-1pt}}
\newunicodechar{⸥}{\hskip-1pt\smash{\raisebox{-4pt}{\textSFiv}}}
\begin{document}
\noindent "⸤The daughter ⸤of my brother⸥ ⸥ sees ⸤an orange tree⸥ ⸤with her binoculars⸥."
\noindent "Furthermore the moon is made of cheese, that's why astronauts bounce on it."
\end{document}
沒有假字距調整的版本:
與剪輯:
\usepackage{trimclip}
\newunicodechar{⸤}{\smash{\clipbox{0pt 0pt 0pt 2.5pt}{\raisebox{-4pt}{\textSFii}}\hskip-1pt}}
\newunicodechar{⸥}{\hskip-1pt\smash{\clipbox{0pt 0pt 0pt 2.5pt}{\raisebox{-4pt}{\textSFiv}}}}
答案3
由於其他答案正在使用newunicodechar
,我想我應該結合 Barbara Beeton 的建議來嘗試。輸出如下。專業人士:垂直和水平筆畫的線條粗細相同。缺點:水平方向看起來比垂直方向長,這是我不喜歡的。
編輯:後者被證明是一種視錯覺。它們放大後的長度相同。但這其實並不重要;我仍然希望支架看起來比寬度更高。
\documentclass{article}
\usepackage{csquotes}
\MakeOuterQuote{"}
\usepackage{newunicodechar}
\usepackage{unicode-math}
\newunicodechar{⸤}{\hskip-1.25pt$\llcorner$\hskip-1.25pt}
\newunicodechar{⸥}{\hskip-1.25pt$\lrcorner$}
\begin{document}
⸤The daughter ⸤of my brother⸥ ⸥ sees ⸤an orange tree⸥ ⸤with her binoculars⸥.
\end{document}