From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95076 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Bug with setuplanguage Date: Sat, 4 Jun 2016 18:32:46 -0400 (EDT) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-752992378-1465079569=:43048" X-Trace: ger.gmane.org 1465079626 8551 80.91.229.3 (4 Jun 2016 22:33:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2016 22:33:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 05 00:33:35 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 1b9K8M-0005f7-Em for gctc-ntg-context-518@m.gmane.org; Sun, 05 Jun 2016 00:33:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C1FDBEC99; Sun, 5 Jun 2016 00:33:05 +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 XiKKX_JM-jlj; Sun, 5 Jun 2016 00:33:03 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BFC3CEC9D; Sun, 5 Jun 2016 00:33:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6E7B5EC99 for ; Sun, 5 Jun 2016 00:33:03 +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 2TBWn_VfJRNM for ; Sun, 5 Jun 2016 00:33:01 +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 90344EC98 for ; Sun, 5 Jun 2016 00:32:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2016-05-12; t=1465079569; bh=Lm5fkAncsuLc2nhB4709k66/qvzdV2zUU5DkjTFT5SY=; h=Date:From:To:Subject; b=Y1hcFxqA7KuGBiT9/7Jp8cq3+8E8MZz0UfIf4Mkvg3YrSPHaAATfwyKeo+aC3vFMH MEj39S/wdMiPP5jzZKbE+R3/I9+OlBuFm6ZSQVZ50C0e54EbJcK1WEeijiTwVpwNXe VRy0iB9brBAxpUukW3mGaz75mcAycRGEutEbyE5NgeCgy/ZbPuiCarf2c/bMaExioT FfQhTGQFFFUb3ksnO2hibGbkDjC7lqLQzdlqQVdGkntWUH6Th6+F8l6uL8A23DRHdX 5ZbnuzXoX/tA9eNhOiy27Cg5vDxE0onCOXXmWx29b1VqpdkZPhFsd4X3Cmk5hTJPSi rPjyH/weMlDZg== 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 57535711.3C156.10745; Authuser adityam; Sat, 04 Jun 2016 18:32:49 -0400 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:95076 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-752992378-1465079569=:43048 Content-Type: TEXT/PLAIN; format=flowed; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Hi, I discovered this bug while answering a question on TeX.SX. Consider: \define\cyrdash{\dontleavehmode\scale[sx=3D0.80]{---}} \unprotect \setuplanguage [\s!ru] [ \c!midsentence=3D\cyrdash, \c!leftsentence=3D\cyrdash, \c!rightsentence=3D\cyrdash, ] \protect \setupbodyfont[dejavu] \starttext Normal text|<|English \mainlanguage[ru] Normal text|<|Russian \stoptext The pdf shows: Normal text=E2=80=94English Normal text=E2=80=9ERussian Why the quote instead of the emdash. The output is okay is if=20 \mainlanguage is set before |<| is used for the first time. Aditya --0-752992378-1465079569=:43048 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-752992378-1465079569=:43048--