ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Justification
Date: Tue, 01 Oct 2002 00:16:38 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20021001001513.01fff7f8@remote-1> (raw)
In-Reply-To: <000f01c268a5$3c033190$34a563d9@michal>

At 07:17 PM 9/30/2002 +0200, you wrote:

> > >
> > >xxxxx xxxxx xxxxxx xxxxxx xxx
> > >xx yyyy xxxxxx xx xxxxx xxxxx
> > >xxxx ccccc xxxxx xxxxxxxxxxxxxxx   <= overfull here
> > >xx yyyy xxxxxx xx xxxxx xxxxx
> >
> > \hyphenatedurl{...}

hm, no url but aaaaa12345678

so, how about:

\def\hyphenationpoint
   {\ruledhskip\zeropoint}

\def\hyphenated#1%
   {\bgroup
    \!!counta\zerocount
    \def\hyphenated##1{\advance\!!counta\plusone}%
    \handletokens#1\with\hyphenated
    \!!countb\plusone
    \def\hyphenated##1%
      {##1%
       \advance\!!countb\plusone\relax
       \ifnum\!!countb>2 \ifnum\!!countb<\!!counta
         \hyphenationpoint
       \fi\fi}%
    \handletokens#1\with\hyphenated
    \egroup}

\hyphenated{123456789}
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  parent reply	other threads:[~2002-09-30 22:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <001801c26732$a527a620$17e64dd5@michal>
2002-09-29 22:10 ` Justification Hans Hagen
     [not found]   ` <000f01c268a5$3c033190$34a563d9@michal>
2002-09-30 22:16     ` Hans Hagen [this message]
2005-04-15  6:54 justification Jörg Hagmann
2005-04-15  7:35 ` justification luigi.scarso
2005-04-15  9:32   ` justification Jörg Hagmann
2005-04-18 15:52     ` justification Peter Münster
2005-04-15  9:17 ` justification Hans Hagen
2005-04-15 10:20   ` justification Jörg Hagmann
2005-04-15 21:35     ` justification Hans Hagen
2005-04-15 14:31   ` justification Jörg Hagmann
2005-04-15 20:12 ` justification Willi Egger
2005-04-16 10:50   ` justification Henning Hraban Ramm
2005-04-18 12:48     ` justification Jörg Hagmann
     [not found] <CAG4oGFRBnKWs=m=Xa72vc7983vhhEs-tvpiJFzC54813Q+iRug@mail.gmail.com>
2013-02-12 14:36 ` Justification Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.1.20021001001513.01fff7f8@remote-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).