발음 구별 부호 Б를 [sz]와 결합하는 보편적인 방법은 무엇입니까?

발음 구별 부호 Б를 [sz]와 결합하는 보편적인 방법은 무엇입니까?

모자를 아래로 향하는 ¼를 [a-zA-z]와 결합할 수 없지만 대부분은 [sz]입니다. 의사코드

\[hat-pointing-down][sz]

가장 가능성이 높은 패키지

\documentclass{aritcle}
\usepackage{fontspec}

\begin{document}
% character here
\end{document}

실패한 시도

\ˇ{Z}

모자를 아래로 향하는 일반적인 문자는 어떻게 입력할 수 있나요?

답변1

"háček" 발음 구별 부호를 얻는 전통적인 방법은 다음과 같습니다 . 그러나 특정 글꼴을 선택하지 않으면 \v{}보기에 좋지 않습니다 .fontspec

\usepackage[utf8]{inputenc}또는 XeLaTeX“háček” 발음 구별 부호를 사용하여 직접 입력할 수 있습니다(예 U+0161: š).

\documentclass{article}
\usepackage[T1]{fontenc}

\begin{document}
\v{a}
\v{b}
\v{c}
\v{d}
\end{document}

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

답변2

물론 가장 좋은 방법은 직접 입력하거나 š를 입력하는 것인데 ž, 이는 많은 키보드 레이아웃에서 허용됩니다.

그렇지 않으면 표준 명령을 사용할 수 있습니다.

\documentclass{article}

\usepackage{fontspec}

\newcommand{\ha}{% don't bother with this, it's just for showing the code
  \begingroup\catcode`\v=12 \catcode`\c=12 \haa
}
\newcommand\haa[1]{%
  \texttt{\detokenize{#1}}:~#1\endgroup
}

\begin{document}

The háček (Czech), āķis (Latvian), kablys (Lithuanian),
háčik (Slovak), kavelj (Slovene), kuka (Croatian and Serbian)
can be obtained with \TeX{} by prefixing the character
with \verb|\v|:
\begin{center}
\ha{\v{C}}\quad
\ha{\v{c}}\quad
\ha{\v{D}}\quad
\ha{\v{d}}\quad
\ha{\v{E}}\quad
\ha{\v{e}}\quad
\ha{\v{L}}\quad
\ha{\v{l}}\quad
\ha{\v{N}}\quad
\ha{\v{n}}\quad
\ha{\v{R}}\quad
\ha{\v{r}}\quad
\ha{\v{S}}\quad
\ha{\v{s}}\quad
\ha{\v{T}}\quad
\ha{\v{t}}\quad
\ha{\v{Z}}\quad
\ha{\v{z}}
\end{center}

Note that \texttt{fontspec} is able to use the correct
realization of the diacritic in certain combinations.

For the Latvian alphabet, you can do
\begin{center}
\ha{\={A}}\quad
\ha{\={a}}\quad
\ha{\v{C}}\quad
\ha{\v{c}}\quad
\ha{\={E}}\quad
\ha{\={e}}\quad
\ha{\c{G}}\quad
\ha{\c{g}}\quad
\ha{\={I}}\quad
\ha{\={i}}\quad
\ha{\c{K}}\quad
\ha{\c{k}}\quad
\ha{\c{L}}\quad
\ha{\c{l}}\quad
\ha{\c{N}}\quad
\ha{\c{n}}\quad
\ha{\v{S}}\quad
\ha{\v{s}}\quad
\ha{\={U}}\quad
\ha{\={u}}\quad
\ha{\v{Z}}\quad
\ha{\v{z}}
\end{center}
\end{document}

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

그러나 Dvorak 키보드에서는 ˇ(Alt-Shift-t), ¯(Alt-Shift-,) 및 ¸(Alt-Shift-z) 입력이 가능하므로 다음을 사용할 수도 있습니다 newunicodechar.

\documentclass{article}

\usepackage{fontspec}

% define the prefixes
\usepackage{newunicodechar}
\newunicodechar{ˇ}{\v}
\newunicodechar{¯}{\=}
\newunicodechar{¸}{\c}

\newcommand{\ha}[1]{% don't bother with this, it's just for showing the code
  \texttt{\detokenize{#1}}:~#1%
}

\begin{document}

The háček (Czech), āķis (Latvian), kablys (Lithuanian),
háčik (Slovak), kavelj (Slovene), kuka (Croatian and Serbian)
can be obtained with \TeX{} by prefixing the character
with \verb|ˇ|:
\begin{center}
\ha{ˇC}\quad
\ha{ˇc}\quad
\ha{ˇD}\quad
\ha{ˇd}\quad
\ha{ˇE}\quad
\ha{ˇe}\quad
\ha{ˇL}\quad
\ha{ˇl}\quad
\ha{ˇN}\quad
\ha{ˇn}\quad
\ha{ˇR}\quad
\ha{ˇr}\quad
\ha{ˇS}\quad
\ha{ˇs}\quad
\ha{ˇT}\quad
\ha{ˇt}\quad
\ha{ˇZ}\quad
\ha{ˇz}
\end{center}

Note that \texttt{fontspec} is able to use the correct
realization of the diacritic in certain combinations.

For the Latvian alphabet, you can do
\begin{center}
\ha{¯A}\quad
\ha{¯a}\quad
\ha{ˇC}\quad
\ha{ˇc}\quad
\ha{¯E}\quad
\ha{¯e}\quad
\ha{¸G}\quad
\ha{¸g}\quad
\ha{¯I}\quad
\ha{¯i}\quad
\ha{¸K}\quad
\ha{¸k}\quad
\ha{¸L}\quad
\ha{¸l}\quad
\ha{¸N}\quad
\ha{¸n}\quad
\ha{ˇS}\quad
\ha{ˇs}\quad
\ha{¯U}\quad
\ha{¯u}\quad
\ha{ˇZ}\quad
\ha{ˇz}
\end{center}
\end{document}

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

관련 정보