# Hyphenate \ttfamily without hyphen dash

Is it possible to hyphenate text without inserting a hyphen.

\documentclass{article}

%\usepackage{courier}
%\usepackage{bera}
%\usepackage{arev}

\begin{document}
\ttfamily\hyphenchar\font=\defaulthyphenchar\relax
ligulaegetdolorAeneanmassaCumsociisnatoquepenatibusetmagnisdis
parturientmontesnasceturridiculusmusDonecquamfelisultriciesnec
\end{document}


If I replace \defaulthyphenchar by 255 it works for CM, but not with Bera Mono. So is there a \char number of the word joiner (Unicode U+2060) that works with all fonts?

• I only know how to define a hyphenation point manually that does not insert anything: \def\+{\discretionary{}{}{}}. Using \+ gives you such a point but I don't know how to make this work for the automatically generated hyphenation points. – Christian Lindig Feb 21 '12 at 18:39

\usepackage[T1]{fontenc}

and replace \defaulthyphenchar with 255, you'll get ß as the "hyphen".
The package bera loads the font in T1 encoding, so you get ß as well.