ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* tool for reviewing hyphenation
@ 2009-02-03 17:00 Lars Huttar
  2009-02-03 19:29 ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Huttar @ 2009-02-03 17:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

We have a situation where hyphenation is an issue, due to a 2-column
layout where the columns are not very wide. We've done a lot of tweaking
of settings for hyphenation and interword spacing, and the result seems
pretty good. In particular, there are not many cases of consecutive
lines that end with hyphens, and not many cases where a hyphenation
occurs over a right-hand page break. The few cases that exist, we have
been fixing manually by using \hbox{...} to prevent hyphenation at the
trouble spot.

But the hyphenation is by nature somewhat volatile, so whenever we
change something we would like to be able to easily recheck the hyphenation.
And our book is over 1200 pages, so it would be very helpful to have
tools to make the checking more efficient.

One tool we found was the "evince" PDF viewer in Linux, which highlights
all search results at once. So you can search for "-", and it will
highlight all hyphens, which makes it easier to scan the PDF visually
for hyphenation problems.
Still, this approach has its limitations... our layout domain experts
don't have Linux machines, and I haven't found a PDF viewer for Windows
that can highlight all search results at once.

Another approach we wondered about was having TeX highlight the
hyphenations... e.g. changed the background color to yellow or red, when
outputting a word that's dynamically broken/hyphenated. (Rather like we
have TeX output red grid lines to help with debugging layout.)
I think we would also want to highlight static hyphens that occur at the
end of a line, as in "Niger-
Congo," because they have a similar visual impact. Possibly using a
different color.

This would be an ideal solution, I think, but we don't know how to have
TeX detect when a word gets dynamically hyphenated.

Another possibility we've looked into is using javascript in Adobe
Reader to find and highlight end-of-line (and end-of-page) hyphens. But
this approach has proved more difficult than expected... the API and the
DOM are complex, and I haven't figured out yet how to access the text of
the document to search for hyphens. (The "search" method seems to just
go to the first or next occurence, and highlight only one occurrence at
a time.)

Thanks for any help,
Lars
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: tool for reviewing hyphenation
@ 2009-02-04 18:47 Alan BRASLAU
  0 siblings, 0 replies; 18+ messages in thread
From: Alan BRASLAU @ 2009-02-04 18:47 UTC (permalink / raw)
  To: ntg-context

Maybe something can be done using pdftk?

http://www.pdfhacks.com/pdftk/

(This tool may be of general use for ConTeXt users.)
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-02-04 21:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-03 17:00 tool for reviewing hyphenation Lars Huttar
2009-02-03 19:29 ` Hans Hagen
2009-02-03 19:42   ` Lars Huttar
2009-02-03 20:22     ` Hans Hagen
2009-02-03 21:03       ` Lars Huttar
2009-02-03 21:53         ` Martin Schröder
2009-02-03 22:20           ` Lars Huttar
2009-02-03 22:27             ` Hans Hagen
2009-02-03 22:44               ` Lars Huttar
2009-02-03 23:13                 ` Hans Hagen
2009-02-04  9:10           ` Alan BRASLAU
2009-02-04 16:16             ` Lars Huttar
2009-02-04 18:08               ` Alan BRASLAU
2009-02-04 21:41                 ` Lars Huttar
2009-02-04  8:56     ` Mojca Miklavec
2009-02-04  9:03       ` Hans Hagen
2009-02-04  9:11         ` Mojca Miklavec
2009-02-04 18:47 Alan BRASLAU

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).