\documentclass[12pt,a4paper]{article}
\usepackage[noTeX]{mmap}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\begin{document}
$(A\to B)\vdash B$
sample text
\end{document}
The text copied from the resulted pdf is not pasted correctly. It pastes only math signs and brackets, letters are pasted as some unicode characters: ( � → � ) ⊢ �.
As egreg pointed out letters are interpreted as MATHEMATICAL ITALIC CAPITAL characters.
If I remove \usepackage[noTeX]{mmap} then it will be shown almost correctly in common editors (notepad++, notepad): "( A → B ) ` B sample text", turnstile symbol becomes a backtick.
How to make this work correctly?