ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Last names
Date: Fri, 20 May 2011 13:27:00 +0200	[thread overview]
Message-ID: <BANLkTi=96bNUyDUOWVNYmd+r1Zkc=Bc5AA@mail.gmail.com> (raw)
In-Reply-To: <4DD63C76.3040509@wxs.nl>

On Fri, May 20, 2011 at 12:03 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 20-5-2011 11:53, Mojca Miklavec wrote:
>>
>> On Fri, May 20, 2011 at 11:47, Flavien Lambert wrote:
>>>
>>> Dear all, could you tell me how to prevent a name from being splitted in
>>> two
>>> pieces if it is at the end of a line?
>>
>> \hbox{Some Very Very Very Very Very Long Name}
>
> A bad suggestion by the hyphenation lady ... how about:
>
> \setupalign[verytolerant]
>
> \starttext
>    \starttabulate[|p(8cm)|p(8cm)|]
>    \NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklavec turns
> \recurselevel\space}
>    \NC \hyphenation{Mikla-vec}  \dorecurse{100}{Mojca Miklavec turns
> \recurselevel\space}
>    \NC \NR
>    \stoptabulate
> \stoptext

There is also \hyphenchar\font=-1 (which is global)
\setupbodyfont[lmroman,10pt]
\starttext
\vbox{\hsize10cm\hyphenchar\font=-1 \input knuth\relax}


\vbox{\hsize10cm\hyphenchar\font="17\input knuth\relax}

\stoptext

I haven't found it in base/*: maybe it's use is discouraged.

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2011-05-20 11:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20  9:47 Flavien Lambert
2011-05-20  9:50 ` Flavien Lambert
2011-05-20 22:33   ` yoraxe
2011-05-20  9:53 ` Mojca Miklavec
2011-05-20 10:03   ` Hans Hagen
2011-05-20 10:39     ` Steffen Wolfrum
2011-05-20 10:43       ` Wolfgang Schuster
2011-05-20 10:57         ` Steffen Wolfrum
2011-05-20 11:21           ` luigi scarso
2011-05-20 11:35             ` Wolfgang Schuster
2011-05-20 12:51               ` Steffen Wolfrum
2011-05-20 11:26           ` Peter Münster
2011-05-20 13:02             ` Steffen Wolfrum
2011-05-20 13:15               ` Peter Münster
2011-05-20 13:19                 ` Steffen Wolfrum
2011-05-20 11:27     ` luigi scarso [this message]
2011-05-20 14:09     ` Mojca Miklavec

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='BANLkTi=96bNUyDUOWVNYmd+r1Zkc=Bc5AA@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --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).