From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hyphenation documentation
Date: Sun, 21 Apr 2013 10:26:01 +0200 [thread overview]
Message-ID: <4D827861-EF3F-4C0E-9D82-B8EAE8C8BA2A@gmail.com> (raw)
In-Reply-To: <CAF=dkzydSPw55jhrMN7Ntg6CLWQAyEMtToGPp96nbwLdzLxEZQ@mail.gmail.com>
Am 20.04.2013 um 22:05 schrieb Sietse Brouwer <sbbrouwer@gmail.com>:
> Hello all,
>
> I've just pulled together some questions of mine and their answers,
> and written them up into a hyphenation Q&A.
> http://wiki.contextgarden.net/Hyphenation
> http://wiki.contextgarden.net/Command/definebreakpoint
>
> Unfortunately, there are still some holes in the documentation I
> wrote. Questions I still have, and which I now pose to the list:
>
> 1. how do I protect a single instance of a word against hyphenation?
> Does ConTeXt, like LaTeX, use \hbox{myfragileword}, or something
> different?
No, you have to use \hbox too but I think a command with a speaking
name would be better.
> 2. In the command \definebreakpoint, what do these keys do? I can't
> get them to do anything (MWE below)
> ** left
> ** middle
> ** right
The left, right and middle keys are used in combination with “type=5”.
\definebreakpoints[test]
\definebreakpoint [test] [?] [type=5,left=L,right=R,middle=M]
\setbreakpoints[test]
\setuppapersize[A7]
\starttext \showframe
xxxx?xxxx?xxxx?xxxx?xxxx?xxxx?xxxx?xxxx\par
\stoptext
> 3. Is there perhaps a bug in breakpoints of type 2 and 3. (MWE below.)
> The key 'type' seems to control where hyphens appear. If 1 is a
> hyphenation character of type 1, etc, this is the observed behaviour
> (`/` is the linebreak):
> ...1...1 / ...
> ...2... / 2-... % I would expect: ...2... / -2...
> ...3...-3 / ... % I would expect: ...3...3- / ...
> ...4...4 / 4...
> ...... / ... % breakpoint of type 5 just disappears
Type 2 and 3 are used for braces to have line breaks which produce
(xxx-)
xxx
and
xxx
(-xxx)
> If this behaviour is not a bug: is there a way to set a breakpoint X
> that produces ...X...X- / …?
You have to use type 5 to create a rule for this, do you have a example
where this is needed besides the one mentioned in the duden [1] example
for a closing bracket.
[1] http://www.duden.de/sprachwissen/sprachratgeber/klammern-und-bindestrich-bei-der-worttrennung
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-04-21 8:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-20 20:05 Sietse Brouwer
2013-04-21 8:26 ` Wolfgang Schuster [this message]
2013-04-21 10:43 ` Hans Hagen
2013-04-21 17:27 ` Sietse Brouwer
2013-04-21 20:24 ` Hans Hagen
2013-04-27 13:55 ` Marco Patzer
2013-04-27 14:35 ` Wolfgang Schuster
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=4D827861-EF3F-4C0E-9D82-B8EAE8C8BA2A@gmail.com \
--to=schuster.wolfgang@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).