Hi, just by chance I experienced that there seems to be a problem with ligatures and hyphenation in ConTeXt. This is the example: \usetypescript[postscript][\defaultencoding] \setupencoding[default=texnansi] \mainlanguage[de] \enableregime[mac] \setupbodyfont[postscript,10pt] \starttext Auflagen % the fl-ligature is wrong here Auf\-lagen % this is the right fl Auf\/lagen %this is the right fl 123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auflagen % right hyphenation, but wrong ligature 123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf\-lagen % but this kills the other hyphenation Aufla-gen 123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf\/lagen % but this kills the other hyphenation Aufla-gen 123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf"-lagen % this is used in (La)TeX, but doesn'T work in ConTeXt?! % the next wrong causes an error (but would be perfect: 123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf"|lagen % this is used in (La)TeX, but doesn'T work in ConTeXt?! \stoptext What is needed is to ... 1) avoid the fl-ligature 2) preserve all the default hyphenation points In TeX (or only LaTeX?) Auf"-lagen or Auf"|lagen would do this. But what is the equivalent in ConTeXt? Steffen
Steffen Wolfrum wrote:
Hi,
just by chance I experienced that there seems to be a problem with ligatures and hyphenation in ConTeXt.
This is the example:
\usetypescript[postscript][\defaultencoding] \setupencoding[default=texnansi] \mainlanguage[de] \enableregime[mac] \setupbodyfont[postscript,10pt]
\starttext
Auflagen % the fl-ligature is wrong here
Auf\-lagen % this is the right fl
Auf\/lagen %this is the right fl
123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auflagen % right hyphenation, but wrong ligature
123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf\-lagen % but this kills the other hyphenation Aufla-gen
123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf\/lagen % but this kills the other hyphenation Aufla-gen
123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf"-lagen % this is used in (La)TeX, but doesn'T work in ConTeXt?!
% the next wrong causes an error (but would be perfect: 123456789012345678901234567890123456789012345678901234567890123456789012 34567890 Auf"|lagen % this is used in (La)TeX, but doesn'T work in ConTeXt?!
\stoptext
What is needed is to ... 1) avoid the fl-ligature 2) preserve all the default hyphenation points
In TeX (or only LaTeX?) Auf"-lagen or Auf"|lagen would do this. But what is the equivalent in ConTeXt?
\- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Yes, that's it!! Thank you Taco! (Great as always ...) Steffen Am 29.11.2006 um 15:01 schrieb Taco Hoekwater:
Hans Hagen wrote:
In TeX (or only LaTeX?) Auf"-lagen or Auf"|lagen would do this. But what is the equivalent in ConTeXt?
\-
To be precise, make that Auf|\-|lagen.
Taco
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Just for the records: One has to be careful with this kind of avoiding ligatures. In most cases it works perfect, but when the word moves towards the end of the line and should be broken then the hyphen misses! But I guess there is no solution that fits *both* situations: regularly on a line and cross lines? Steffen On Wed, 29 Nov 2006 15:01:14 +0100, Taco Hoekwater wrote:
Hans Hagen wrote:
In TeX (or only LaTeX?) Auf"-lagen or Auf"|lagen would do this. But what is the equivalent in ConTeXt?
\-
To be precise, make that Auf|\-|lagen.
Taco
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Steffen Wolfrum wrote:
Just for the records:
One has to be careful with this kind of avoiding ligatures. In most cases it works perfect, but when the word moves towards the end of the line and should be broken then the hyphen misses!
But I guess there is no solution that fits *both* situations: regularly on a line and cross lines?
not yet, luatex will be more clever Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
No, unfortunately. \- also kills the other hyphenation points (or do you still get Aufla- gen?) The same with \kern0em. So we have the choice between wrong ligatures and automatic hyphenation and avoided ligatures but only manually set hyphenations? Steffen Am 29.11.2006 um 14:49 schrieb Hans Hagen:
Steffen Wolfrum wrote:
Hi,
just by chance I experienced that there seems to be a problem with ligatures and hyphenation in ConTeXt.
This is the example:
\usetypescript[postscript][\defaultencoding] \setupencoding[default=texnansi] \mainlanguage[de] \enableregime[mac] \setupbodyfont[postscript,10pt]
\starttext
Auflagen % the fl-ligature is wrong here
Auf\-lagen % this is the right fl
Auf\/lagen %this is the right fl
123456789012345678901234567890123456789012345678901234567890123456789 012 34567890 Auflagen % right hyphenation, but wrong ligature
123456789012345678901234567890123456789012345678901234567890123456789 012 34567890 Auf\-lagen % but this kills the other hyphenation Aufla-gen
123456789012345678901234567890123456789012345678901234567890123456789 012 34567890 Auf\/lagen % but this kills the other hyphenation Aufla-gen
123456789012345678901234567890123456789012345678901234567890123456789 012 34567890 Auf"-lagen % this is used in (La)TeX, but doesn'T work in ConTeXt?!
% the next wrong causes an error (but would be perfect: 123456789012345678901234567890123456789012345678901234567890123456789 012 34567890 Auf"|lagen % this is used in (La)TeX, but doesn'T work in ConTeXt?!
\stoptext
What is needed is to ... 1) avoid the fl-ligature 2) preserve all the default hyphenation points
In TeX (or only LaTeX?) Auf"-lagen or Auf"|lagen would do this. But what is the equivalent in ConTeXt?
\-
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
Hans Hagen
-
Steffen Wolfrum
-
Taco Hoekwater