ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hyphenation and umlauts
@ 2002-09-11 18:50 Jens-Uwe Morawski
  2002-09-14 19:04 ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-11 18:50 UTC (permalink / raw)


Ahoi,

I have the problem to declare a hyphenation of the german word
"Kriegsgeschädigte".

In a posting from Hans i found something that lets me try
\hyphenation{Kriegs-ge-sch\aumlaut-dig-te}

But this runs in an error: "Wrong hyphenation..."

What is the correct way?

Thanks,
  Jens


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

* Re: hyphenation and umlauts
  2002-09-11 18:50 hyphenation and umlauts Jens-Uwe Morawski
@ 2002-09-14 19:04 ` Hans Hagen
  2002-09-14 21:07   ` Jens-Uwe Morawski
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2002-09-14 19:04 UTC (permalink / raw)
  Cc: ConTeXt

At 08:50 PM 9/11/2002 +0200, Jens-Uwe Morawski wrote:

>Ahoi,
>
>I have the problem to declare a hyphenation of the german word
>"Kriegsgeschädigte".
>
>In a posting from Hans i found something that lets me try
>\hyphenation{Kriegs-ge-sch\aumlaut-dig-te}
>
>But this runs in an error: "Wrong hyphenation..."
>
>What is the correct way?

[ i assume that you use an 8 bit encoding ]

the aumlaut is not an 8 bit char, bit a composed character, where the " is 
lower than normal, instead use:

\adiaeresis

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: hyphenation and umlauts
  2002-09-14 19:04 ` Hans Hagen
@ 2002-09-14 21:07   ` Jens-Uwe Morawski
  2002-09-16  9:37     ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-14 21:07 UTC (permalink / raw)


On Sat, 14 Sep 2002 21:04:17 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 08:50 PM 9/11/2002 +0200, Jens-Uwe Morawski wrote:
> 
> >Ahoi,
> >
> >I have the problem to declare a hyphenation of the german word
> >"Kriegsgeschädigte".
> >
> >In a posting from Hans i found something that lets me try
> >\hyphenation{Kriegs-ge-sch\aumlaut-dig-te}
> >
> >But this runs in an error: "Wrong hyphenation..."
> >
> >What is the correct way?
> 
> [ i assume that you use an 8 bit encoding ]

yes, i use il1

> the aumlaut is not an 8 bit char, bit a composed character, where the " is 
> lower than normal, instead use:
> 
> \adiaeresis

Thanks, but
\hyphenation{Kriegs-ge-sch\adiaeresis-dig-te}

gives
! Improper \hyphenation will be flushed.
\dobuildtextaccent #1#2->{
                          \let \char \normalaccent #1\let \char \normalchar #2}
l.5 \hyphenation{Kriegs-ge-sch\adiaeresis
                                         -dig-te}
?

Any hints?

Jens


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

* Re: hyphenation and umlauts
  2002-09-14 21:07   ` Jens-Uwe Morawski
@ 2002-09-16  9:37     ` Hans Hagen
  2002-09-16 13:17       ` Jens-Uwe Morawski
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2002-09-16  9:37 UTC (permalink / raw)
  Cc: ConTeXt

At 11:07 PM 9/14/2002 +0200, Jens-Uwe Morawski wrote:
>On Sat, 14 Sep 2002 21:04:17 +0200
>Hans Hagen <pragma@wxs.nl> wrote:
>
> > At 08:50 PM 9/11/2002 +0200, Jens-Uwe Morawski wrote:
> >
> > >Ahoi,
> > >
> > >I have the problem to declare a hyphenation of the german word
> > >"Kriegsgeschädigte".
> > >
> > >In a posting from Hans i found something that lets me try
> > >\hyphenation{Kriegs-ge-sch\aumlaut-dig-te}
> > >
> > >But this runs in an error: "Wrong hyphenation..."
> > >
> > >What is the correct way?
> >
> > [ i assume that you use an 8 bit encoding ]
>
>yes, i use il1
>
> > the aumlaut is not an 8 bit char, bit a composed character, where the " is
> > lower than normal, instead use:
> >
> > \adiaeresis
>
>Thanks, but
>\hyphenation{Kriegs-ge-sch\adiaeresis-dig-te}
>
>gives
>! Improper \hyphenation will be flushed.
>\dobuildtextaccent #1#2->{
>                           \let \char \normalaccent #1\let \char 
> \normalchar #2}
>l.5 \hyphenation{Kriegs-ge-sch\adiaeresis
>                                          -dig-te}
>?
>
>Any hints?

hm, so it looks like you're in default encoding, not in 8 bit; how about

\setupbodyfont[ppl,10pt]
\hyphenation{...}

or maybe

\setupencoding[ec]
\hyphenation{...}

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: hyphenation and umlauts
  2002-09-16  9:37     ` Hans Hagen
@ 2002-09-16 13:17       ` Jens-Uwe Morawski
  2002-09-16 14:22         ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-16 13:17 UTC (permalink / raw)


On Mon, 16 Sep 2002 11:37:33 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 11:07 PM 9/14/2002 +0200, Jens-Uwe Morawski wrote:
> >Thanks, but
> >\hyphenation{Kriegs-ge-sch\adiaeresis-dig-te}
> >
> >gives
> >! Improper \hyphenation will be flushed.
> >\dobuildtextaccent #1#2->{
> >                           \let \char \normalaccent #1\let \char 
> > \normalchar #2}
> >l.5 \hyphenation{Kriegs-ge-sch\adiaeresis
> >                                          -dig-te}
> >?
> >
> >Any hints?
> 
> hm, so it looks like you're in default encoding, not in 8 bit; how about

Can you tell me, what i should do for 7-bit-encoding?

> \setupbodyfont[ppl,10pt]
> \hyphenation{...}

This works, but i need CM-fonts and

> \setupencoding[ec]
> \hyphenation{...}

still gives the error.

BTW: Is there a difference between \setupencoding[ec] and
  \setupencoding[default=ec]?

Thanks,
  Jens


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

* Re: hyphenation and umlauts
  2002-09-16 13:17       ` Jens-Uwe Morawski
@ 2002-09-16 14:22         ` Hans Hagen
  2002-09-16 15:43           ` Jens-Uwe Morawski
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2002-09-16 14:22 UTC (permalink / raw)
  Cc: ntg-context

At 03:17 PM 9/16/2002 +0200, you wrote:
>On Mon, 16 Sep 2002 11:37:33 +0200
>Hans Hagen <pragma@wxs.nl> wrote:
>
> > At 11:07 PM 9/14/2002 +0200, Jens-Uwe Morawski wrote:
> > >Thanks, but
> > >\hyphenation{Kriegs-ge-sch\adiaeresis-dig-te}
> > >
> > >gives
> > >! Improper \hyphenation will be flushed.
> > >\dobuildtextaccent #1#2->{
> > >                           \let \char \normalaccent #1\let \char
> > > \normalchar #2}
> > >l.5 \hyphenation{Kriegs-ge-sch\adiaeresis
> > >                                          -dig-te}
> > >?
> > >
> > >Any hints?
> >
> > hm, so it looks like you're in default encoding, not in 8 bit; how about
>
>Can you tell me, what i should do for 7-bit-encoding?
>
> > \setupbodyfont[ppl,10pt]
> > \hyphenation{...}
>
>This works, but i need CM-fonts and
>
> > \setupencoding[ec]
> > \hyphenation{...}
>
>still gives the error.

this is because hyphenation is only possible for 'pure chars' not for 
composed ones (i.e. composed by \accent or macros)

>BTW: Is there a difference between \setupencoding[ec] and
>   \setupencoding[default=ec]?

mostly the time it's set: \setupencoding does an immediate set, the default 
is just the fallback in case a font has no associated encoding (normally 
font switches will set the encoding)

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: hyphenation and umlauts
  2002-09-16 14:22         ` Hans Hagen
@ 2002-09-16 15:43           ` Jens-Uwe Morawski
  2002-09-16 16:42             ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-16 15:43 UTC (permalink / raw)


On Mon, 16 Sep 2002 16:22:29 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> > > \setupbodyfont[ppl,10pt]
> > > \hyphenation{...}
> >
> >This works, but i need CM-fonts and
> >
> > > \setupencoding[ec]
> > > \hyphenation{...}
> >
> >still gives the error.
> 
> this is because hyphenation is only possible for 'pure chars' not for 
> composed ones (i.e. composed by \accent or macros)

Does this mean that for the standard CM-fonts there no way to define a
hyphenation that includes umlauts?

Jens


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

* Re: hyphenation and umlauts
  2002-09-16 15:43           ` Jens-Uwe Morawski
@ 2002-09-16 16:42             ` Hans Hagen
  2002-09-16 20:29               ` Jens-Uwe Morawski
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2002-09-16 16:42 UTC (permalink / raw)
  Cc: ConTeXt

At 05:43 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:
>On Mon, 16 Sep 2002 16:22:29 +0200
>Hans Hagen <pragma@wxs.nl> wrote:
>
> > > > \setupbodyfont[ppl,10pt]
> > > > \hyphenation{...}
> > >
> > >This works, but i need CM-fonts and
> > >
> > > > \setupencoding[ec]
> > > > \hyphenation{...}
> > >
> > >still gives the error.
> >
> > this is because hyphenation is only possible for 'pure chars' not for
> > composed ones (i.e. composed by \accent or macros)
>
>Does this mean that for the standard CM-fonts there no way to define a
>hyphenation that includes umlauts?

right, but you may want to switch to aer fonts, (kind of ec  with precooked 
umlauts)

\setupbodyfont[aer]

(of texexec --make --alone --bodyfont=aer to get 'm as default)

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: hyphenation and umlauts
  2002-09-16 16:42             ` Hans Hagen
@ 2002-09-16 20:29               ` Jens-Uwe Morawski
  2002-09-17  7:58                 ` Hans Hagen
  2002-09-17 10:08                 ` Marko Schütz
  0 siblings, 2 replies; 14+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-16 20:29 UTC (permalink / raw)


On Mon, 16 Sep 2002 18:42:26 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> At 05:43 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:
> >Does this mean that for the standard CM-fonts there no way to define a
> >hyphenation that includes umlauts?
> 
> right, but you may want to switch to aer fonts, (kind of ec  with precooked 
> umlauts)
> 
> \setupbodyfont[aer]

Ahh, this works perfectly. Many thanks!

In the \hyphenation i have used \adiaeresis. Where can i look to find
more names/commands for special characters?

Jens


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

* Re: hyphenation and umlauts
  2002-09-16 20:29               ` Jens-Uwe Morawski
@ 2002-09-17  7:58                 ` Hans Hagen
  2002-09-17 10:08                 ` Marko Schütz
  1 sibling, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2002-09-17  7:58 UTC (permalink / raw)
  Cc: ntg-context

At 10:29 PM 9/16/2002 +0200, you wrote:
>On Mon, 16 Sep 2002 18:42:26 +0200
>Hans Hagen <pragma@wxs.nl> wrote:
>
> > At 05:43 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:
> > >Does this mean that for the standard CM-fonts there no way to define a
> > >hyphenation that includes umlauts?
> >
> > right, but you may want to switch to aer fonts, (kind of ec  with 
> precooked
> > umlauts)
> >
> > \setupbodyfont[aer]
>
>Ahh, this works perfectly. Many thanks!
>
>In the \hyphenation i have used \adiaeresis. Where can i look to find
>more names/commands for special characters?

\showaccents
\showcharacters

etc will give you some info on what is defined / available in the current 
encoding and how they are constructed

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: hyphenation and umlauts
  2002-09-16 20:29               ` Jens-Uwe Morawski
  2002-09-17  7:58                 ` Hans Hagen
@ 2002-09-17 10:08                 ` Marko Schütz
  2002-09-17 12:33                   ` Jens-Uwe Morawski
  2002-09-17 12:43                   ` Hans Hagen
  1 sibling, 2 replies; 14+ messages in thread
From: Marko Schütz @ 2002-09-17 10:08 UTC (permalink / raw)
  Cc: ntg-context

From: Jens-Uwe Morawski <morawski@gmx.net>
Subject: Re: hyphenation and umlauts
Date: Mon, 16 Sep 2002 22:29:10 +0200

> On Mon, 16 Sep 2002 18:42:26 +0200
> Hans Hagen <pragma@wxs.nl> wrote:
> 
> > At 05:43 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:
> > >Does this mean that for the standard CM-fonts there no way to define a
> > >hyphenation that includes umlauts?
> > 
> > right, but you may want to switch to aer fonts, (kind of ec  with precooked 
> > umlauts)
> > 
> > \setupbodyfont[aer]
> 
> Ahh, this works perfectly. Many thanks!
> 
> In the \hyphenation i have used \adiaeresis. Where can i look to find
> more names/commands for special characters?

What if there is no hyphenation directly after the umlaut?

\hyphenation{\Adiaeresis{}qui-va-lenz-klas-se}

will not work.
What would be the correct way to define this hyphenation?

Marko


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

* Re: hyphenation and umlauts
  2002-09-17 10:08                 ` Marko Schütz
@ 2002-09-17 12:33                   ` Jens-Uwe Morawski
  2002-09-17 12:43                   ` Hans Hagen
  1 sibling, 0 replies; 14+ messages in thread
From: Jens-Uwe Morawski @ 2002-09-17 12:33 UTC (permalink / raw)


On Tue, 17 Sep 2002 12:08:41 +0200 (CEST)
Marko Schütz <MarkoSchuetz@web.de> wrote:

> From: Jens-Uwe Morawski <morawski@gmx.net>
> Subject: Re: hyphenation and umlauts
> Date: Mon, 16 Sep 2002 22:29:10 +0200
> 
> > On Mon, 16 Sep 2002 18:42:26 +0200
> > Hans Hagen <pragma@wxs.nl> wrote:
> > 
> > > At 05:43 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:
> > > >Does this mean that for the standard CM-fonts there no way to define a
> > > >hyphenation that includes umlauts?
> > > 
> > > right, but you may want to switch to aer fonts, (kind of ec  with precooked 
> > > umlauts)
> > > 
> > > \setupbodyfont[aer]
> > 
> > Ahh, this works perfectly. Many thanks!
> > 
> > In the \hyphenation i have used \adiaeresis. Where can i look to find
> > more names/commands for special characters?
> 
> What if there is no hyphenation directly after the umlaut?
> 
> \hyphenation{\Adiaeresis{}qui-va-lenz-klas-se}
> will not work.
> What would be the correct way to define this hyphenation?

Try:

\setupbodyfont[aer]
\hyphenation{\Adiaeresis qui-va-lenz-klas-se}

Jens


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

* Re: hyphenation and umlauts
  2002-09-17 10:08                 ` Marko Schütz
  2002-09-17 12:33                   ` Jens-Uwe Morawski
@ 2002-09-17 12:43                   ` Hans Hagen
  2002-09-17 19:02                     ` Marko Schütz
  1 sibling, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2002-09-17 12:43 UTC (permalink / raw)
  Cc: ntg-context

At 12:08 PM 9/17/2002 +0200, you wrote:
>From: Jens-Uwe Morawski <morawski@gmx.net>
>Subject: Re: hyphenation and umlauts
>Date: Mon, 16 Sep 2002 22:29:10 +0200
>
> > On Mon, 16 Sep 2002 18:42:26 +0200
> > Hans Hagen <pragma@wxs.nl> wrote:
> >
> > > At 05:43 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:
> > > >Does this mean that for the standard CM-fonts there no way to define a
> > > >hyphenation that includes umlauts?
> > >
> > > right, but you may want to switch to aer fonts, (kind of ec  with 
> precooked
> > > umlauts)
> > >
> > > \setupbodyfont[aer]
> >
> > Ahh, this works perfectly. Many thanks!
> >
> > In the \hyphenation i have used \adiaeresis. Where can i look to find
> > more names/commands for special characters?
>
>What if there is no hyphenation directly after the umlaut?
>
>\hyphenation{\Adiaeresis{}qui-va-lenz-klas-se}
>
>will not work.
>What would be the correct way to define this hyphenation?

replace the {} by a space since a space ends the \command and disappears

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: hyphenation and umlauts
  2002-09-17 12:43                   ` Hans Hagen
@ 2002-09-17 19:02                     ` Marko Schütz
  0 siblings, 0 replies; 14+ messages in thread
From: Marko Schütz @ 2002-09-17 19:02 UTC (permalink / raw)
  Cc: ntg-context

From: Hans Hagen <pragma@wxs.nl>
Subject: Re: hyphenation and umlauts
Date: Tue, 17 Sep 2002 14:43:25 +0200

[..]
> > > > \setupbodyfont[aer]
> > >
> > > Ahh, this works perfectly. Many thanks!
> > >
> > > In the \hyphenation i have used \adiaeresis. Where can i look to find
> > > more names/commands for special characters?
> >
> >What if there is no hyphenation directly after the umlaut?
> >
> >\hyphenation{\Adiaeresis{}qui-va-lenz-klas-se}
> >
> >will not work.
> >What would be the correct way to define this hyphenation?
> 
> replace the {} by a space since a space ends the \command and disappears

Thank you very much!

Marko


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

end of thread, other threads:[~2002-09-17 19:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-11 18:50 hyphenation and umlauts Jens-Uwe Morawski
2002-09-14 19:04 ` Hans Hagen
2002-09-14 21:07   ` Jens-Uwe Morawski
2002-09-16  9:37     ` Hans Hagen
2002-09-16 13:17       ` Jens-Uwe Morawski
2002-09-16 14:22         ` Hans Hagen
2002-09-16 15:43           ` Jens-Uwe Morawski
2002-09-16 16:42             ` Hans Hagen
2002-09-16 20:29               ` Jens-Uwe Morawski
2002-09-17  7:58                 ` Hans Hagen
2002-09-17 10:08                 ` Marko Schütz
2002-09-17 12:33                   ` Jens-Uwe Morawski
2002-09-17 12:43                   ` Hans Hagen
2002-09-17 19:02                     ` Marko Schütz

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