# Greek diacritic with English letter

I'm looking to use a greek diacritic over an English letter. More specifically, I would like to use the greek 'rough breathing' diacritic,

https://en.wikipedia.org/wiki/Rough_breathing

but I would like to place it not over a greek letter, but rather over the English letter $x$. Babel seems to only allow me to place a diacritic of this sort over a greek vowel.

• I am using XeLatex, which processes UTF-8 directly. Which engine are you using. Is that engine required? Oct 18, 2019 at 12:41
• I am just using LaTeX. I have a strong preference to remain with that. Oct 18, 2019 at 12:55
• I can see how \ doesn't fit, because of the shape. But is the shape of  sufficient or, because it is inverted in some fonts, also not acceptable? Oct 18, 2019 at 13:05

You can use the accents provided by the LGR encoding:

\documentclass{article}
\usepackage[LGR,T1]{fontenc} % or OT1

\DeclareTextAccentDefault{\accdialytika}{LGR}
\DeclareTextAccentDefault{\acctonos}{LGR}
\DeclareTextAccentDefault{\accdasia}{LGR}
\DeclareTextAccentDefault{\accpsili}{LGR}
\DeclareTextAccentDefault{\accvaria}{LGR}
\DeclareTextAccentDefault{\accperispomeni}{LGR}
\DeclareTextAccentDefault{\accdialytikaperispomeni}{LGR}
\DeclareTextAccentDefault{\accdialytikatonos}{LGR}
\DeclareTextAccentDefault{\accdasiaperispomeni}{LGR}
\DeclareTextAccentDefault{\accdasiavaria}{LGR}
\DeclareTextAccentDefault{\accdasiaoxia}{LGR}
\DeclareTextAccentDefault{\accpsiliperispomeni}{LGR}
\DeclareTextAccentDefault{\accpsilioxia}{LGR}
\DeclareTextAccentDefault{\accpsilivaria}{LGR}
\DeclareTextAccentDefault{\accinvertedbrevebelow}{LGR}
\DeclareTextAccentDefault{\accbrevebelow}{LGR}

\begin{document}

\accdialytika{x}
\acctonos{x}
\accdasia{x}
\accpsili{x}
\accvaria{x}
\accperispomeni{x}
\accdialytikaperispomeni{x}
\accdialytikatonos{x}
\accdasiaperispomeni{x}
\accdasiavaria{x}
\accdasiaoxia{x}
\accpsiliperispomeni{x}
\accpsilioxia{x}
\accpsilivaria{x}
\accinvertedbrevebelow{x}
\accbrevebelow{x}

\end{document}


Pick the ones you need. You may also do \newcommand{\rb}[1]{\accdasia{#1}} so you can simply type \rb{x}.

If you need the dasia in math mode, it's even simpler:

\documentclass{article}
\usepackage[LGR,T1]{fontenc} % or OT1

\DeclareSymbolFont{greekletters}{LGR}{\familydefault}{m}{n}
% lgrenc.def has
% \DeclareTextAccent{\accdasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing)
\DeclareMathAccent{\rb}{\mathord}{greekletters}{60}

\begin{document}

$\rb{x}$

\end{document}


Maybe something like this?

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[polutonikogreek,english]{babel}
\usepackage{tipa}

\usepackage{stackengine,graphicx}
\newcommand\rb[1]{\stackengine{1pt}{#1}{\scalebox{-1}[.7]{\reflectbox{$\scriptscriptstyle \prime$}\kern-1pt\raisebox{2pt}{,}}}{O}{c}{F}{F}{S}}
\begin{document}
{\greektext{<'otan}}

\rb x\greektext{tan}
\end{document}