hyphenation inside quotation
Hi, is this a limitation or a bug? Text inside \quotation{} is not hyphenated. It appears to be like this for a couple of versions, but I'm not sure if it has always been the case. Silly example to test: \mainlanguage [de] \setuppapersize [A6] \setupbodyfont [14pt] \starttext „Originalgenie“ „Originalgenie“ „Originalgenie“ \quotation{Originalgenie} \quotation{Originalgenie} \quotation{Originalgenie} \stoptext All best Thomas
Thomas A. Schmitz schrieb am 19.08.2023 um 16:01:
Hi,
is this a limitation or a bug? Text inside \quotation{} is not hyphenated. It appears to be like this for a couple of versions, but I'm not sure if it has always been the case. Silly example to test:
You can use the font method to have hyphenated words back. The culprit which prevents hyphenation are the penalty settings which are added by ConTeXt when the default method is used. \mainlanguage [de] \setuppapersize [A6] \setupquotation[method=text] \starttext „Originalgenie“ „Originalgenie“ „Originalgenie“ \quotation{Originalgenie} \quotation{Originalgenie} \quotation{Originalgenie} „\penalty\plustenthousand Originalgenie\penalty\plustenthousand“ „\penalty\plustenthousand Originalgenie\penalty\plustenthousand“ „\penalty\plustenthousand Originalgenie\penalty\plustenthousand“ \stoptext Wolfgang
On 8/19/23 17:51, Wolfgang Schuster wrote:
You can use the font method to have hyphenated words back. The culprit which prevents hyphenation are the penalty settings which are added by ConTeXt when the default method is used.
\mainlanguage [de]
\setuppapersize [A6]
\setupquotation[method=text]
Hi Wolfgang, as always, thanks for the precise explanation. Is there a reason why this behavior is not the default? I.e.: in what situations would the default behavior be (more) desirable? Or is it just because \setupquotation is a subset of \setupdelimitedtext? All best Thomas
Thomas A. Schmitz schrieb am 19.08.2023 um 18:10:
On 8/19/23 17:51, Wolfgang Schuster wrote:
You can use the font method to have hyphenated words back. The culprit which prevents hyphenation are the penalty settings which are added by ConTeXt when the default method is used.
\mainlanguage [de]
\setuppapersize [A6]
\setupquotation[method=text]
Hi Wolfgang,
as always, thanks for the precise explanation. Is there a reason why this behavior is not the default? I.e.: in what situations would the default behavior be (more) desirable? Or is it just because \setupquotation is a subset of \setupdelimitedtext?
Quotation is a instance of delimitedtext and the \setupquotation command is \setupdelimitedtext[quotation]. In the next release you don't need the method=font anymore because the missing hyphenation is the result of a old patch which was needed in 2013. Back than there was no problem with hyphenation and the patch but since than Hans added a few new features to Luametatex to improve the quotation mechanism and the patch results now in the unwanted side effect. Wolfgang
Am 20.08.23 um 08:32 schrieb Wolfgang Schuster:
In the next release you don't need the method=font anymore because the missing hyphenation is the result of a old patch which was needed in 2013. Back than there was no problem with hyphenation and the patch but since than Hans added a few new features to Luametatex to improve the quotation mechanism and the patch results now in the unwanted side effect.
I always had \setupdelimitedtext[quotation][method=font] in my environments without really understanding it (remark: enables hanging quotation marks). So both methods (font/text) are obsolete now / with an upcoming update? Hraban
On 8/22/2023 9:59 AM, Henning Hraban Ramm wrote:
Am 20.08.23 um 08:32 schrieb Wolfgang Schuster:
In the next release you don't need the method=font anymore because the missing hyphenation is the result of a old patch which was needed in 2013. Back than there was no problem with hyphenation and the patch but since than Hans added a few new features to Luametatex to improve the quotation mechanism and the patch results now in the unwanted side effect.
I always had \setupdelimitedtext[quotation][method=font] in my environments without really understanding it (remark: enables hanging quotation marks).
So both methods (font/text) are obsolete now / with an upcoming update? no, we only remove a penalty preventing hyphensation .. there is no need to change this mechanism
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Henning Hraban Ramm
-
Thomas A. Schmitz
-
Wolfgang Schuster