From: Andreas Harder <aharder@uni-koblenz.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \wordright{…} and hyphens
Date: Sun, 20 Dec 2009 17:33:18 +0100 [thread overview]
Message-ID: <000036DB-20FE-49D7-834E-71629C7F1EAB@uni-koblenz.de> (raw)
In-Reply-To: <20091220101419.GA4100@gaston.couberia.bzh>
Hi,
\wordright{something} don’t like it if the preceding line have a hyphenated word. It seems to work if one changes \allowbreak to hskip\zeropoint in the macro-definition.
Here an example:
\mainlanguage[de]
% \unprotect
% \def\dowordright[#1]%
% {% don't change
% \groupedcommand
% {\removeunwantedspaces
% \hfill
% \allowbreak % changed back from \hskip\zeropoint
% % \hskip\zeropoint % -> solves the problem
% \strut
% \hfill
% \quad % decent spacing
% \hbox}
% {\doifelse{#1}\v!right{\kern-\rightskip}{\doifsomething{#1}{\kern-#1}}%
% \parfillskip\zeropoint
% %\finalhyphendemerits\zerocount % yes or no
% \par}}
% \protect
\setupframedtexts
[width=\dimexpr.65\textwidth,
offset=none]
\starttext
\startframedtext
ein Jahr da gewohnt in Rülzheim, waren noch Schwiegereltern dabei..
\wordright{(S.\,3, Z.\,78–97)}
\stopframedtext
\startframedtext
wenn du Ro, Mund aufmachst hörst das du nicht da geboren bist (lacht verlegen).
\wordright{(S.\,4, Z.\,117–121)}
\stopframedtext
\startframedtext
ein Jahr da gewohnt in Rülzheim, waren noch Schwie- gereltern dabei
\wordright{(S.\,3, Z.\,78–97)}
\stopframedtext
\stoptext
By the way: I can’t make a minimal example yet but I have a text where the same word appears on one place with ligatures and on another place without. Perhaps this is known …?
Greetings
Andreas
___________________________________________________________________________________
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:[~2009-12-20 16:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-19 13:55 Using ConTeXt for a thesis? Manuel P.
2009-12-19 14:08 ` Hans Hagen
2009-12-19 15:21 ` George N. White III
2009-12-19 21:10 ` Manuel P.
2009-12-20 3:52 ` Aditya Mahajan
2009-12-20 10:14 ` Peter Münster
2009-12-20 16:33 ` Andreas Harder [this message]
2009-12-20 23:08 ` extra kerning do nothing Andreas Harder
2009-12-21 12:40 ` Hans Hagen
2009-12-21 13:21 ` Andreas Harder
2009-12-21 15:55 ` Hans Hagen
2009-12-21 16:23 ` Andreas Harder
2009-12-21 16:34 ` Hans Hagen
2009-12-21 16:49 ` Andreas Harder
2009-12-21 17:01 ` Hans Hagen
2009-12-20 12:38 ` Using ConTeXt for a thesis? Manuel P.
2009-12-20 7:09 ` Mojca Miklavec
2009-12-20 12:42 ` Manuel P.
2009-12-20 12:57 ` John Haltiwanger
2009-12-20 17:12 ` Manuel P.
2009-12-20 19:15 ` luigi scarso
2009-12-21 0:40 ` Curiouslearn
2009-12-21 12:05 ` Manuel P.
2009-12-21 11:28 ` mode=node and ligatures Andreas Harder
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=000036DB-20FE-49D7-834E-71629C7F1EAB@uni-koblenz.de \
--to=aharder@uni-koblenz.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).