From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100683 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Question about paragraphs and hanging punctuation Date: Sat, 21 Apr 2018 20:01:40 +0200 Message-ID: <5ADB7C84.1070304@gmail.com> References: <20180320191705.GB20687@akela.mendelu.cz> <6495bebb-2dce-757f-fbe0-e6bc56685414@gmx.es> <20180320205947.GA4682@akela.mendelu.cz> <2e32b81b-1ecb-6b1d-96c5-788c984af8fc@gmx.es> <20180418154525.GA22490@akela.mendelu.cz> <9e1cdd2f-cb7b-7656-04e9-62a0165d7e65@gmx.es> <20180421070939.GA6744@akela.mendelu.cz> <5ADAE576.2070305@gmail.com> <20180421160101.GA16547@akela.mendelu.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7993232338009435815==" X-Trace: blaine.gmane.org 1524333621 23226 195.159.176.226 (21 Apr 2018 18:00:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2018 18:00:21 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 21 20:00:17 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9wo4-0005xk-Nw for gctc-ntg-context-518@m.gmane.org; Sat, 21 Apr 2018 20:00:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C9ADE6262FB; Sat, 21 Apr 2018 20:02:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 68s83W0QABPh; Sat, 21 Apr 2018 20:02:12 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BAF16262FC; Sat, 21 Apr 2018 20:02:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A2F7F6262FC for ; Sat, 21 Apr 2018 20:02:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0I--oH3hKQYc for ; Sat, 21 Apr 2018 20:02:09 +0200 (CEST) Original-Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C650F6262FB for ; Sat, 21 Apr 2018 20:01:59 +0200 (CEST) Original-Received: by mail-wr0-f180.google.com with SMTP id q3-v6so20602651wrj.6 for ; Sat, 21 Apr 2018 11:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=hYJfkLioA7lcZ5/jUwAj9kxwCGHd7FWtxxjEgDEeafM=; b=kuXlkyNo4WYFV9F29iQL0ILceVhOQZwcIGdSRicp6BC7DF2odVcy4iJDstKXihh/aj CEj0SDL97cQFmPpolAKql3iuEnfB46FoboMnIgK6kEOu3j2gAcBiWj66YVRWdE2eoxiL 3Q5TNBRKF/9T7PQzH7rxpNMiCYUzq0k2nu8Nd5bZP1IWyiLx7E3bcEzvs5njgdlxnsva KRs7OL/RSv92109DHtegkH/hRvvyrCVlzsOwI2/gDi9Z6alYIwFhx4lvNI5B/ecImHUA FhVB4jvvvQQmJGawUUSGgE9jWjz75rvDpUV3AHsHqQNqJJtx1SAkfRQV0Nk2lQgREIw2 TISw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=hYJfkLioA7lcZ5/jUwAj9kxwCGHd7FWtxxjEgDEeafM=; b=lDz2ikpJXhcGJmm3WL1u99SFfyy1ikO1nfrZB7jReQpAzUypbAjWHZzFHkbjJhirCZ lKAE2bSfZjM0JNC3dGz1dl3/EB+5Apd0On4469PIpU/74IaiJ5kA2WkfIbageSzkWorm SWqffwI5mwhWiHeCci2x+5APiSvq6yrQ5V3Wqsh4iJcF30t5MEit9rYd3cTT66iDUj8A QRDNnowhnOjkAn+RV9oQ/H6iG82FBHnaW0qpexPGR1W3EjF++w8f9etYSJw807b4H6QH XfGPlO31BGN/7UmkdD5tuBATHxO+BMx6ORRXbIsK5EBxWUIpTNXlKdXYh1owI2zVoOUq I2Ag== X-Gm-Message-State: ALQs6tD/KcDY99CDdi0clgZ3c4Q9gsJQ8zp1p/f3CBZ1v3Ri7hMAAiyR haw4+EDGZ+rH+/arre7KF0vSOEqf X-Google-Smtp-Source: AIpwx4+/QoGSXXRQMU9bmhrRYky/Jpjd60+G4I2rKM32mGpFC4ZuaDAHcpTGtZPpWRpWQkW9m+y+FA== X-Received: by 10.28.124.5 with SMTP id x5mr1486369wmc.7.1524333718914; Sat, 21 Apr 2018 11:01:58 -0700 (PDT) Original-Received: from [192.168.1.11] (x4dbe95e4.dyn.telefonica.de. [77.190.149.228]) by smtp.gmail.com with ESMTPSA id r200sm6527479wmb.39.2018.04.21.11.01.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Apr 2018 11:01:58 -0700 (PDT) In-Reply-To: <20180421160101.GA16547@akela.mendelu.cz> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100683 Archived-At: This is a multi-part message in MIME format. --===============7993232338009435815== Content-Type: multipart/alternative; boundary="------------050104010909080001080106" This is a multi-part message in MIME format. --------------050104010909080001080106 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Add this fix to your document: \unprotect \def\typo_delimited_fontdriven {\dontleavehmode \begingroup \dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext \usedlanguageparameter{\c!left\currentparentdelimitedtext}% was: \currentdelimitedtext \usedelimitedtextstyleandcolor\c!style\c!color \typo_delimited_start_content \bgroup \aftergroup\typo_delimited_fontdriven_e \let\next=} \protect There was a bug when “method=font” was used but this was fixed last October. Wolfgang > Tomas Hala > 21. April 2018 um 18:01 > # > # unfortunately, this does not work (on my computer with TL2017). > # > # Proper Czech quotation marks are available via \quotation command: > # \mainlanguage[cz] > # \quotation{text} > # > # But it is language independent problem, I did more tests: > # neither Czech, nor US, nor Dutch, nor German quotation marks are > # hanging. > # Without influence is also font (font family), tested on modern, > # libertine, > # EB Garamond 12 from your example, times... > # > # No change appeared switching the order of commands > # \definefontfeature and \setupalign. > # > # \setupdelimitedtext[quotation][method=font] > > I tried it but it generates an error -- "Extra }, or forgotten \endgroup", > after run till the end, the opening character is hanging but closing > character disappeared. (Similarly with \setupquotation[method=font].) > > Tomáš > > > # Wolfgang > > \starttext\showframe\mainlanguage[cz] > \definefontfeature [default] [default] [protrusion=quality, > expansion=quality] > \setupalign[hz,hanging] > > \setupdelimitedtext[quotation][method=font] > > \setupbodyfont[times] % libertine, times, modern > \quotation{pokus s uvozovkami} > \stoptext > > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry > to the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ --------------050104010909080001080106 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Add this fix to your document:

\unprotect

\def\typo_delimited_fontdriven
  {\dontleavehmode
   \begingroup
   \dostarttaggedchained\t!delimited\currentdelimitedtext\??delimitedtext
   \usedlanguageparameter{\c!left\currentparentdelimitedtext}% was: \currentdelimitedtext
   \usedelimitedtextstyleandcolor\c!style\c!color
   \typo_delimited_start_content
   \bgroup
   \aftergroup\typo_delimited_fontdriven_e
   \let\next=}

\protect

There was a bug when “method=font” was used but this was fixed last October.

Wolfgang
21. April 2018 um 18:01
#
# unfortunately, this does not work (on my computer with TL2017).
#
# Proper Czech quotation marks are available via \quotation command:
# \mainlanguage[cz]
# \quotation{text}
#
# But it is language independent problem, I did more tests:
# neither Czech, nor US, nor Dutch, nor German quotation marks are
# hanging.
# Without influence is also font (font family), tested on modern,
# libertine,
# EB Garamond 12 from your example, times...
#
# No change appeared switching the order of commands
# \definefontfeature and \setupalign.
#
# \setupdelimitedtext[quotation][method=font]

I tried it but it generates an error -- "Extra }, or forgotten \endgroup",
after run till the end, the opening character is hanging but closing
character disappeared. (Similarly with \setupquotation[method=font].)

Tomáš


# Wolfgang

\starttext\showframe\mainlanguage[cz]
\definefontfeature [default] [default] [protrusion=quality, expansion=quality]
\setupalign[hz,hanging]

\setupdelimitedtext[quotation][method=font]

\setupbodyfont[times] % libertine, times, modern
\quotation{pokus s uvozovkami}
\stoptext



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________

--------------050104010909080001080106-- --===============7993232338009435815== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7993232338009435815==--