From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95079 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bug with setuplanguage Date: Sun, 5 Jun 2016 13:22:44 -0400 (EDT) Message-ID: References: <5753C58F.10909@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-873540124-1465147365=:21883" X-Trace: ger.gmane.org 1465147408 12318 80.91.229.3 (5 Jun 2016 17:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2016 17:23:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 05 19:23:14 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9blZ-0003rV-5d for gctc-ntg-context-518@m.gmane.org; Sun, 05 Jun 2016 19:23:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E85E4ECAA; Sun, 5 Jun 2016 19:23:01 +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 3vuusH2eJClm; Sun, 5 Jun 2016 19:23:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D6369ECAB; Sun, 5 Jun 2016 19:23:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E2FEECA8 for ; Sun, 5 Jun 2016 19:22:59 +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 4TU9unTzzIG0 for ; Sun, 5 Jun 2016 19:22:57 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) (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 785D9ECA7 for ; Sun, 5 Jun 2016 19:22:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2016-05-12; t=1465147365; bh=Ey7txaXvOeXxRDaY4vruCFt8qP1D0m0xXYebBdDlVR4=; h=Date:From:To:Subject:In-Reply-To:References; b=NsWHOYJb7rtfl5salKMcgqfXLDS48ZhcC+LIQ9/oF6QsYcKWa0D5/ApN/iAf1pW+a o46KHKNqITFwO7C2Wk/mLsCTHvkQu5NZq+AS6kPO04p5r/FlJ8T3T9vt9yp9GTpB09 m9SSKPea+LDt/Xv9vpA6LD3bkGQda8mgFNsBh9K1xpATtQk4AfwG4+aKxXrAObeaO6 yDlHOFARd+222I2qnVtBk88MWV0til761Gi8SfInKDJIAPOfHWmo3CpTz/Go7PyRSe xiJ6BxgWegi4U1GfySBuJQKUm9d68clxMrx4aPwWXAr5/boFRPD/yKIPwlGgVIA31h 8SYUnwDQrTU0Q== Authentication-Results: hackers.mr.itd.umich.edu; iprev=permerror policy.iprev=135.0.226.147 (unknown); auth=pass smtp.auth=adityam Original-Received: FROM [192.168.0.14] (unknown [135.0.226.147]) By hackers.mr.itd.umich.edu ID 57545FE5.6579C.19676; Authuser adityam; Sun, 05 Jun 2016 13:22:45 -0400 In-Reply-To: <5753C58F.10909@gmail.com> User-Agent: Alpine 2.02 (OSX 1266 2009-07-14) 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:95079 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-873540124-1465147365=:21883 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 5 Jun 2016, Wolfgang Schuster wrote: >> Aditya Mahajan >> 5. Juni 2016 um 00:32 >> Hi, >>=20 >> I discovered this bug while answering a question on TeX.SX. Consider: >>=20 >> \define\cyrdash{\dontleavehmode\scale[sx=3D0.80]{---}} >> \unprotect >> \setuplanguage >> [\s!ru] >> [ >> \c!midsentence=3D\cyrdash, >> \c!leftsentence=3D\cyrdash, >> \c!rightsentence=3D\cyrdash, >> ] >> \protect >>=20 >>=20 >> \setupbodyfont[dejavu] >>=20 >> \starttext >> Normal text|<|English >>=20 >> \mainlanguage[ru] >> Normal text|<|Russian >> \stoptext >>=20 >> The pdf shows: >>=20 >> Normal text=E2=80=94English >> Normal text=E2=80=9ERussian >>=20 >> Why the quote instead of the emdash. The output is okay is if \mainlangu= age=20 >> is set before |<| is used for the first time. > When subsentences are nested the inner group uses the leftsubsentence and= =20 > rightsubsentence symbols. > > \mainlanguage[ru] > > \starttext > outer|<|inner|<|nested|>|inner|>|outer > \stoptext Ah, thanks! Aditya --0-873540124-1465147365=:21883 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --0-873540124-1465147365=:21883--