ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars Huttar <lars_huttar@sil.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: tool for reviewing hyphenation
Date: Tue, 03 Feb 2009 11:00:44 -0600	[thread overview]
Message-ID: <4988783C.6030907@sil.org> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2009-02-03 17:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03 17:00 Lars Huttar [this message]
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

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=4988783C.6030907@sil.org \
    --to=lars_huttar@sil.org \
    --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).