古希臘語中的變音符號問題

古希臘語中的變音符號問題

我需要在 LaTeX 中輸入一個特殊的希臘字元(我使用 XeLaTeX),但我不知道該怎麼做。

\documentclass[14pt]{book}
\usepackage[a4paper,left=0.5cm,right=0.5cm,top=0.8cm,bottom=0.5cm,footskip=0.1cm,headsep=0.2cm]{geometry}
\usepackage{titlesec}
\usepackage{polyglossia}
\usepackage{fontspec}
%\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage{english}
\usepackage{hyperref}
%\usepackage{longtable}
\usepackage{textcomp}
\usepackage{expex}
\usepackage{epltxfn}
\setmainfont{KadmosU}
\usepackage{covington} 
\makeatletter
\usepackage{url}
\pagenumbering{Roman}



\begin{document}

ῐ̔́


ῑ̔́

\twoacc['|\={ι}]

\twoacc[\'|\={ι}]





\end{document}

我想輸入第一個和第二個(我剛剛從維基百科粘貼它),對於最後兩個我使用包“convington”,但我沒有找到可以組合三個變音符號的地方(我只能用兩個來做到這一點!

所以,我想知道一種放置三個(甚至更多)變音符號的方法。

在此輸入影像描述

答案1

恐怕你必須為每種組合找到正確的調音。此\kk巨集新增字距調整以修復頂部重音符號的相對位置。

\documentclass{article}
\usepackage{fontspec}

% since I don't have the font installed on my system, I placed it in the working directory
\setmainfont{KadmosU}[Extension=.ttf,Path=./]
% use the following line if you have it among the system fonts
%\setmainfont{KadmosU}

% adapted from https://tex.stackexchange.com/a/361120/4427
\DeclareRobustCommand{\combinedaccent}[2]{%
  \leavevmode\vbox{\offinterlineskip
    \ialign{\hfil##\hfil\cr
      \hidewidth#1\hidewidth\relax\cr
      \noalign{\vskip -1ex}
      #2\cr
    }%
  }%
}
\newcommand{\dasia}{\raisebox{0.15ex}{\symbol{"A0}\symbol{"0314}}}
\newcommand{\psili}{\raisebox{0.15ex}{\symbol{"A0}\symbol{"0313}}}
\newcommand{\barys}{\symbol{"A0}\symbol{"0300}}
\newcommand{\oxys}{\symbol{"A0}\symbol{"0301}}
\newcommand{\kk}[1]{\kern#1em\relax}


\begin{document}

\combinedaccent{\dasia\oxys\kk{-0.15}}{\u{ι}}
\combinedaccent{\dasia\oxys\kk{-0.15}}{\={ι}}
\combinedaccent{\dasia\oxys\kk{-0.15}}{\={ι}}
\combinedaccent{\kk{0.15}\psili}{\={ι}}
\combinedaccent{\kk{0.25}\oxys}{\={ι}}

\end{document}

在此輸入影像描述

相關內容