我正在使用特定的希臘字體進行聖經希臘文排版。問題是,編譯後,沒有呈現任何希臘口音。字母排版得很好。但不是口音。我究竟做錯了什麼?感謝您的幫忙!
我找到了這個: 排版古希臘語形式
這似乎回答了我的問題,但其實現很難解釋。是什麼讓重音符號以這種方式出現?
我還用 Greek Font Society 使用 Teknia Font。
這是我的程式碼:
\documentclass{article}
\usepackage[scale=0.9]{newtxtext}
\usepackage{microtype}
\usepackage{lettrine} % For creating drop caps
\usepackage{yfonts} % For Goudy Initialen font
\usepackage{xcolor} % Provides \textcolor
% Set the page geometry with default text width
\usepackage{geometry}
\usepackage{fontspec} % Add this to use fontspec
\setmainfont{TekniaGreek}[Extension=.ttf, Path=C:/, UprightFont=*]
\geometry{
paperwidth=9.4in,
paperheight=6.8in,
headheight=0pt, % Remove header
headsep=0pt, % Remove space for header
footskip=0pt, % Remove footer
marginparwidth=0pt, % Remove marginal notes
marginparsep=0pt, % Remove separation for marginal notes
textwidth=50mm,
textheight=130mm,
top=71.86614pt,
inner=35mm,
}
\pagestyle{empty}
\definecolor{maroon}{RGB}{128,0,0}
\renewcommand{\LettrineFontHook}{\initfamily\color{maroon}}
\newcommand{\versenum}[1]{%
\textsuperscript{\textbf{\textcolor{maroon}{#1}}}%
\nobreak\hspace{0pt}\ignorespaces
}
\newcommand{\dropcap}[1]{%
\lettrine[
lines=4,
findent=0pt,
nindent=0pt,
loversize=-0.30
]{#1}{}%
}
\linespread{0.9}
\begin{document}
\dropcap{Ε}ύλογητοσ ὁ θεὁς καἱ πατἡρ τοῦ κυρἰου
\end{document}
Dropcap 也不起作用,但這是與我的問題無關的另一個問題。如何渲染重音?謝謝你!
答案1
我認為您不想使用 Teknia。如果您閱讀(很少的)文檔,您可以推斷出該字體使用了非標準佈局。
\documentclass{article}
\usepackage{fontspec} % Add this to use fontspec
\setmainfont{TekniaGreek}[Extension=.ttf, Path=./, UprightFont=*]
\begin{document}
% Εὐλογητὸς ὁ θεὸς καὶ πατὴρ τοῦ κυρίου
Eujloghto;V oJ qeo;V kaiv path;r tou: kurivou
\end{document}
您可以看到文字(取自網絡,帶有正確的變音符號)及其實現,以便 Teknia 正常工作。
我會至少與它保持一臂距離。它絕對不適合學術工作。
僅供比較,頂部是從正確製作的希臘字體 (GFS Didot) 中獲得的,採用標準編碼,底部是 TekniaGreek,採用非標準編碼。