On 10/29/2013 3:19 PM, Peter Münster wrote:
Hello Hans,

Is it also possible, to break inside the \type{} only at well defined
characters and without hyphenation?

Example:

--8<---------------cut here---------------start------------->8---
\definebreakpoint[compound][_]
\setuplayout[width=25mm]
\startsetups Test
   \setbreakpoints[compound]
\stopsetups
\definetype[Test][lines=hyphenated, setups=Test, space=stretch]
\showframe
\starttext
hellohello hellohello % should break like this: hel- lohello (ok)

hellohello \Test{hel_lohello} % should break like this: hel_ lohello (not ok)

hellohello \Test{hellohello} % should not break at all (not ok)
\stoptext
--8<---------------cut here---------------end--------------->8---

TIA for any help,

\setuplayout
  [width=25mm]

\definebreakpoint
  [compound]
  [_]

\definetype
  [Test]
  [lines=hyphenated,
   setups=Test,
   space=stretch,
   style={\tttf\setbreakpoints[compound]}]

\showframe

\starttext
    hellohello hellohello

    hellohello \Test{hel_lohello}

    hellohello \Test{hellohello}
\stoptext


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to