From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47173 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: tool for reviewing hyphenation Date: Tue, 03 Feb 2009 11:00:44 -0600 Message-ID: <4988783C.6030907@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233680597 25421 80.91.229.12 (3 Feb 2009 17:03:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 17:03:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 03 18:04:30 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LUOhK-0002Xh-7b for gctc-ntg-context-518@m.gmane.org; Tue, 03 Feb 2009 18:04:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C33E1FC6B; Tue, 3 Feb 2009 18:03:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31837-04; Tue, 3 Feb 2009 18:01:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E5981FC36; Tue, 3 Feb 2009 18:01:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BCA871FC36 for ; Tue, 3 Feb 2009 18:01:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29667-04-2 for ; Tue, 3 Feb 2009 18:00:53 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 8CCE71FB89 for ; Tue, 3 Feb 2009 18:00:53 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n13H0paj007186 for ; Tue, 3 Feb 2009 18:00:52 +0100 Original-Received: from mail.link77.net (cgp2.mail.link77.net [172.22.65.14]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id n13H0oVa022129 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 3 Feb 2009 12:00:50 -0500 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.3 (ClamAV engine v0.94.2) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.3 (ClamAV engine v0.94.2) Original-Received: from [172.20.4.229] (account lars_huttar@sil.org [172.20.4.229] verified) by cgp2.mail.link77.net (CommuniGate Pro SMTP 5.2.10) with ESMTPSA id 1091255 for ntg-context@ntg.nl; Tue, 03 Feb 2009 12:00:50 -0500 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-Enigmail-Version: 0.95.7 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.145.81.51; country=US; region=NC; city=Waxhaw; postalcode=28173; latitude=34.9273; longitude=-80.7278; metrocode=517; areacode=704; http://maps.google.com/maps?q=34.9273,-80.7278&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 174507025 - 212b168b7585 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47173 Archived-At: 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 ___________________________________________________________________________________