
私はこれを「Charis SIL」、「Times」、「Times New Roman」のフォントで試しました。
\documentclass[a5paper]{article}
%\usepackage[utf8]{inputenc}
%\usepackage[LGR,T1]{fontenc}
\usepackage[greek,british]{babel}
\usepackage{fontspec}
\setmainfont{Charis SIL}
\begin{document}
This is a simple test. \textgreek{ὅθεν ὤφειλεν κατὰ πάντα}. And orgé as well.
Without slash textgreek ἱλαστήριον (hilasterion)
\end{document}
を使用すると PDF に é が表示されますxelatex
が、ギリシャ語は表示されません。どのフォントを使用しても、Charis SIL
フォントにはこれらの文字が含まれているはずで、このフォントを使用する他のプログラムでは機能します。これはログに表示される内容ですが、おそらくフロントを正しく設定していないのでしょうか? ヒントがあれば、ぜひ教えてください。
LaTeX Font Warning: Font shape `LGR/CharisSIL(0)/m/n' undefined
(Font) using `LGR/cmr/m/n' instead on input line 15.
Missing character: There is no ὅ in font grmn1000!
Missing character: There is no θ in font grmn1000!
Missing character: There is no ε in font grmn1000!
....
Missing character: There is no ἱ in font Charis SIL/OT:script=latn;language=DFLT;mapping=tex-text;!
Missing character: There is no τ in font Charis SIL/OT:script=latn;language=DFLT;mapping=tex-text;!
答え1
次のようなものが必要ですが、これは正確ではありません。少なくとも、Charis SIL はギリシャ語をサポートしていないため、私の環境ではうまく機能しません。少なくとも、私が持っているバージョンではサポートされていません。
otfinfo -s /usr/share/fonts/ttf-charis-sil-ibx/CharisSIL-R.ttf
DFLT Default
cyrl Cyrillic
cyrl.SRB Cyrillic/Serbian
latn Latin
latn.IPPH Latin/Phonetic transcription—IPA conventions
latn.VIT Latin/Vietnamese
ただし、適切なフォントに置き換えれば問題なく動作するはずです。
\documentclass[a5paper]{article}
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage{greek}
\usepackage{fontspec}
\setmainfont{Charis SIL}
\newfontfamily\greekfont{Charis SIL}
\begin{document}
This is a simple test. \textgreek{ὅθεν ὤφειλεν κατὰ πάντα}. And orgé as well.
Without slash textgreek ἱλαστήριον (hilasterion)
\end{document}
答え2
厳密に言えばカリスSILラテン文字とキリル文字用に設計されています。FAQ を参照してください:フォントにギリシャ文字がいくつか含まれているのに、すべて含まれていないのはなぜですか?:
フォントにはギリシャ文字がいくつか含まれていますが、ギリシャ語の一般的なサポートを提供するためのものではありません。含まれているギリシャ文字は、さまざまな(主に言語的な)表記システムをサポートするために含まれています。ギリシャ語のサポートが必要な場合は、ガラティアSILそしてゲンティウムフォントは 2 つの利用可能なオプションです。
ちなみに私も好きですGFS アルテミシア:
\documentclass[a5paper]{article}
\usepackage{fontspec}
\setmainfont{Charis SIL}
% \newfontfamily\greekfont{Charis SIL}
\newfontfamily\greekfont[Scale=MatchLowercase]{GFS Artemisia}
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage[variant=polytonic]{greek}
\begin{document}
This is a simple test. \textgreek{ὅθεν ὤφειλεν κατὰ πάντα}. And orgé as well.
% note: the Greek will fail here because you are not using \greekfont (and Charis SIL doesn't have the characters)
Without slash textgreek ἱλαστήριον (hilasterion)
\end{document}