発音区別符号ˇと[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}

ここに画像の説明を入力してください

関連情報