From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: hyphenation again (mkii) [solved]
Date: Tue, 18 Dec 2007 12:12:27 +0100 [thread overview]
Message-ID: <8FC48E0C-31AF-4C38-8652-A6B37F6AFD0D@st.estfiles.de> (raw)
In-Reply-To: <0CE05AD6-5352-413D-98F2-08A547BBF662@st.estfiles.de>
Wolfgang knew the answer, and as the solution is so brilliant I don't
want to be selfish about this treasure:
\definetextmodediscretionary ThinSpace
{\penalty\plustenthousand\hskip.166em\relax}
\definetextmodediscretionary ThickSpace
{\penalty\plustenthousand\hskip.277em\relax}
... and in situations like "today is the 204.|ThinSpace|anniversary
of the death of Johann Gottfried von Herder" you will avoid an
unintended line-break after "204." but will keep all hyphenation
points in "anniversary". And that's great.
Cheers Johann Gottfried, btw!!
Steffen
Am 18.12.2007 um 11:05 schrieb Steffen Wolfrum:
>
> Am 17.12.2007 um 14:54 schrieb Steffen Wolfrum:
>
>> Hi,
>>
>> please have a look at the following minimal (4 text-lines):
>>
>>
>> \hyphenation{Er-gän-zungs-lie-fe-rung}
>> \showframe
>>
>> \starttext
>>
>> Text text text text text text text text text text text text text text
>> text 26.\,Ergänzungslieferung% this should brake after Ergän-
>>
>> Text text text text text text text text text text text text text text
>> text 26.|\,|Ergänzungslieferung% this does brake after Ergän-
>>
>> Text text text text text text text text text text text text text text
>> text text 26.|\,|Ergänzungslieferung% this should NOT brake after 26.
>>
>> Text text text text text text text text text text text text text text
>> text text 26.\,Ergänzungslieferung% this does NOT brake after 26.
>>
>> \stoptext
>>
>>
>> I need a thinspace that prevents line-break between "26." and
>> "Ergänzungslieferung".
>> On the other hand this thinspace shouldn't kill my hyphenation points
>> (i.e. the word should stay breakable)!
>
>
> The tilde sign "~" would be perfect, it is just to wide:
>
> \hyphenation{
> Er-gän-zungs-lie-fe-rung
> }
> \showframe
> \starttext
>
> Text text text text text text text text text text text text text text
> text 26.~Ergänzungslieferung% this should brake after Ergän-
>
> Text text text text text text text text text text text text text text
> text text 26.~Ergänzungslieferung% this should NOT brake after 26.
>
> Text text text text text text text text text text text text text text
> text text 26.\,Er-gänzungslieferung% this should NOT brake after 26.
>
> Text text text text text text text text text text text text text text
> text text 26.\,Er-gänzungslieferung% this should NOT brake after 26.
>
> \stoptext
>
>
> Is there something that is narrow as \, or \thinspace but behaves
> (see above) like ~ ???
>
> Steffen
> ______________________________________________________________________
> _____________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ______________________________________________________________________
> _____________
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2007-12-18 11:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 13:54 hyphenation again (mkii) Steffen Wolfrum
2007-12-17 21:28 ` Hans Hagen
2007-12-18 10:05 ` Steffen Wolfrum
2007-12-18 11:12 ` Steffen Wolfrum [this message]
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=8FC48E0C-31AF-4C38-8652-A6B37F6AFD0D@st.estfiles.de \
--to=context@st.estfiles.de \
--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).