🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #1281

Re: hyphenation of "accented" words

#1281
From: Victor Eijkhout
Date: Tue, 11 Aug 1992 14:51
33 lines
1582 bytes
In article <9208101423.AA07949@rumil.ics.muni.cs>, <sojka@rumil.ics.muni.cs> writes:
|> Hi TeXers,
|> I've got stuck in hyphenation of "accented" words:
|> I would like to hyphenate words with some letters underbared;
|> I tried
|> 
|> \def\u#1{\underbar{#1}\penalty10000\hskip 0pt plus 0pt}
|> \showhyphens{preposterous prep\u{o}sterous}
|> 
|> and \TeX\ answered ``pre-pos-ter-ous prep$[]$sterous''
|> 
|> but this is preposterous for me.

Not for me. What you've done is insert a math formula inthe middle
of a word. I can hardly blame TeX for not hyphenating around that.

You may try

\def\u#1{\penalty10000\hskip 0pt plus 0pt
         \underbar{#1}\penalty10000\hskip 0pt plus 0pt}

so that TeX will consider 'prep\u{o}sterous' as
	<the word 'prep'>\underbar{o}<the word 'sterous'>
where you might hope that 'sterous' has a hyphenation point.

|> I thought of using virtual fonts

That is the way out. TeX can only hyphenate in a series
of letters. There can't be any formula's or boxes in a word.

|> Petr Sojka

Victor.
Technical Details
Message-ID: <l8fkv4INN4i9@utkcs2.cs.utk.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!utkcs2!cupid.cs.utk.edu!eijkhout
References: <9208101423.AA07949@rumil.ics.muni.cs>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!utkcs2!cupid.cs.utk.edu!eijkhout
From: eijkhout@cupid.cs.utk.edu (Victor Eijkhout)
Newsgroups: comp.text.tex
Subject: Re: hyphenation of "accented" words
Date: 11 Aug 92 14:51:16 GMT
Organization: University of Tennessee, Knoxville - Department of Computer Science
Lines: 33
Distribution: world
Message-ID: <l8fkv4INN4i9@utkcs2.cs.utk.edu>
References: <9208101423.AA07949@rumil.ics.muni.cs>
Reply-To: eijkhout@cupid.cs.utk.edu (Victor Eijkhout)
NNTP-Posting-Host: cupid.cs.utk.edu