This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Hyphenation problems with apostrophes using jadetex3.10
- From: Yann Dirson <ydirson at fr dot alcove dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Cc: Jean-Pierre Messager <jpierre at fr dot alcove dot com>
- Date: Wed, 21 Nov 2001 15:46:55 +0100
- Subject: Re: DOCBOOK-APPS: Hyphenation problems with apostrophes using jadetex3.10
- List-id: <docbook-apps.lists.oasis-open.org>
- References: <20011121123245.A18139@kasba.alcove-fr>
On Wed, Nov 21, 2001 at 12:32:45PM +0100, Yann Dirson wrote:
> Has this been fixed in jadetex 3.11 ?
I tested with 3.11 as well, and it does not work better in this respect.
> I tried as a workaround to insert some TeX stuff after the apostrophe,
> in the hope that it would help TeX to recognize the word as such, but
> the best subst I found that would work was s/'/'\\ /, which gives
> wrong spacing. I could not find a zero-width space to put there (the
> "\," thin space did not help at all with the original problem).
I found out that a better workaround is to insert "\hspace{0pt}" after
the "'" character when used as an apostrophe, that is when it has one
letter on the left and either another letter or a TeX command (\) on
the right. It gives (on a sh-compatible command-line):
perl -pi -e "s%([a-zA-Z])'([a-zA-Z\\\\])%\$1'\\\\hspace{0pt}\$2%g" $jadetexfile
But that's still a hack. In some cases, the line gets broken after
the apostrophe character, which violates the typographical rules. I'd
still appreciate a more accurate solution.
Regards,
--
Yann Dirson <Yann.Dirson@fr.alcove.com> http://www.alcove.com/
Free-Software Engineer Ingénieur Logiciel-Libre
Free-Software time manager Responsable du temps Informatique-Libre
Debian GNU/Linux developper <dirson@debian.org>