2

Consider this code:

\documentclass[12pt]{article}
\usepackage{arabxetex}
\usepackage{newunicodechar}

\begin{document}
    \begin{arab}
إِبرٰهۦمَِ
    \end{arab}
\end{document}

Output:

enter image description here

The arabic string إِبرٰهۦمَِ contains so-called arabic small yeh (U+06E6) or maybe arabic small high yeh (U+06E7), I am not quite sure. Imagine I have a long string which contains many of these characters and I want to strip them down from the output, i.e. the small yeh characters don't show up in the output document. I tried newunicodechar package but couldn't get it done so far. Does anyone know how to do this properly?

In general: How to do "if encounter certain character show nothing?"

  • Are you free to use lualatex, or must you use (arab)xelatex? – Mico Jul 21 '18 at 8:15
  • I strongly prefer xelatex – Sukan Jul 21 '18 at 8:17
  • 1
    can't you just replace this char with (nothing) using your latex editor? – touhami Jul 21 '18 at 8:19
  • @touhami Another place in the document, I want to show them. – Sukan Jul 21 '18 at 8:21
5

enter image description here

The character in the input is U+06E6 defining that to do nothing changes the output, but I can not read either form so I can not tell if this is a good result.

enter image description here

\documentclass[12pt]{article}
\usepackage{arabxetex}
\usepackage{newunicodechar}
\newunicodechar{ۦ}{}
\begin{document}
    \begin{arab}
إِبرٰهۦمَِ
    \end{arab}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.