하이픈 뒤의 분음을 제거하는 방법

하이픈 뒤의 분음을 제거하는 방법

Wikipedia를 인용하자면:

네덜란드어에서는 이중 문자 oe와 ie가 각각 단모음 [u]와 [i]를 나타내기 때문에 coëfficiënt와 같은 철자가 필요합니다. 그러나 이제 복합어에는 하이픈 넣기가 선호되므로 zeeëend(바다 오리)는 이제 zee-eend로 표기됩니다.

분음 부호는 두 글자를 금음 문자로 읽어서는 안 된다는 것을 나타내기 위해 사용되므로, 다른 방식으로 표시할 경우(예를 들어 줄 바꿈에 하이픈을 사용하는 경우) 분음 부호를 제거해야 합니다. 하이픈 넣기로 인해 분음 부호가 제거되는 경우가 여전히 있습니다. 'financiën'은 다음과 같이 하이픈을 넣어야 합니다.'피난시엔'.

아쉽게도 사용시에는

\usepackage{polyglossia}
\setdefaultlanguage{dutch}

단어는 'financi-ën'으로 하이픈으로 연결됩니다(하이픈이 줄바꿈에서 발생하는 경우). 하이픈 연결이 발생할 때 XeLaTeX/Polyglossia에서 분음 부호를 제거하도록 할 수 있습니까?

Polyglossia 매뉴얼의 언어별 옵션은 이 문제에 대한 해결책을 제공하지 않습니다. Babel 매뉴얼에는 \@trema매크로가 언급되어 있으며 실제로 pdfLaTeX 및 Babel을 사용할 때 financi"en줄 바꿈에 올바르게 하이픈이 연결됩니다(분음 부호 제거). 나는 찾았다이 추악한 해킹하지만 더 나은 해결책이 있어야 한다고 확신합니다.

답변1

만약에모두ë“ë”는 단지 이것을 의미하는 것입니다. 그렇다면 가능한 해결 방법은 to be 의 의미를 재정의하는 것입니다 "e.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage{newunicodechar}

\makeatletter
\newunicodechar{ë}{\@trema e}
\makeatother

\begin{document}

financiën coëfficiënt zeeëend    

\parbox{0pt}{\hspace{0pt}financiën coëfficiënt zeeëend}

\end{document}

이것은 \parbox{0pt}{...}TeX에게 가능한 한 하이픈을 넣도록 지시하는 요령입니다.

여기에 이미지 설명을 입력하세요

XeLaTeX를 사용하면~할 수 있다babel같은 방식으로 사용하려면 fontenc및 에 대한 호출을 제거하세요 inputenc.

을 사용하려면 polyglossia다음 방법을 따르세요.

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{dutch}
\usepackage{newunicodechar}

\makeatletter
\providecommand{\allowhyphens}{%
  \ifvmode\else\nobreak\hskip\z@skip\fi
}
\def\@trema#1{\allowhyphens\discretionary{-}{#1}{\"{#1}}\allowhyphens}

\newunicodechar{ë}{\@trema e}
\makeatother

\begin{document}

financiën coëfficiënt zeeëend

\parbox{0pt}{\hspace{0pt}financiën coëfficiënt zeeëend}

\end{document}

관련 정보