그리스 문자를 사용할 때 글꼴을 설정하는 방법은 무엇입니까?

그리스 문자를 사용할 때 글꼴을 설정하는 방법은 무엇입니까?

나는 "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그리고젠티움글꼴은 두 가지 사용 가능한 옵션입니다.


그만한 가치가 있으니 나도 좋아해요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}

관련 정보