From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57970 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: hyphens in verbatim text Date: Thu, 08 Apr 2010 01:14:02 +0200 Message-ID: <4BBD11BA.4050407@googlemail.com> References: <4BBBF63B.8040008@gmail.com> <4BBC3E84.30006@wxs.nl> <4BBC4968.9030203@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270682068 14173 80.91.229.12 (7 Apr 2010 23:14:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 23:14:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 08 01:14:27 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NzeS1-0002T5-U8 for gctc-ntg-context-518@m.gmane.org; Thu, 08 Apr 2010 01:14:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 733F3C9D67; Thu, 8 Apr 2010 01:14:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C4evQuZJU0pu; Thu, 8 Apr 2010 01:14:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9219C9D37; Thu, 8 Apr 2010 01:14:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A45E2C9D37 for ; Thu, 8 Apr 2010 01:14:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jsKtstzrE9Af for ; Thu, 8 Apr 2010 01:14:05 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by balder.ntg.nl (Postfix) with ESMTP id 6CC88C9D2F for ; Thu, 8 Apr 2010 01:14:05 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id d23so1568891fga.2 for ; Wed, 07 Apr 2010 16:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=P11pbsXaOpZ5Cq6BCaALfiZdl/3kU1tkE26ptNuUAsI=; b=GNTTRqTRToqwnXxHCFaeHWXX7A8IgTJxmgrfTGnkeMOPkqw+HFgZzn9jxiSv6izApf gXuodn8BL6t7lanXaTSg4tP7wCNsAb+PV/ao74Z6B1KEM+OIAE9JmPQTqqzcagVO/vhc wEHCJTsL6G6/OxiXWsYK6f/gISgn1fFw/9zx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=DwfXXG2Gz0is6iQffoLjmZiqVO4UHipaRLbDDny8ivvvXbOXPBTHdgjbqZ8zdx9TRj UL+damKdNHDNEDnU+zejbVu4UH6hlbyAi9SozYxcFouZYY1PqlwC40ynyGlBUuyubmWK xJ/Ct7P6QvVJpZjgvj/D6ksTAM/gZctIxcua0= Original-Received: by 10.87.5.30 with SMTP id h30mr1079873fgi.3.1270682045194; Wed, 07 Apr 2010 16:14:05 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B295287.dip.t-dialin.net [91.41.82.135]) by mx.google.com with ESMTPS id e11sm740142fga.13.2010.04.07.16.14.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Apr 2010 16:14:04 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <4BBC4968.9030203@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:57970 Archived-At: Am 07.04.10 10:59, schrieb Hongwen Qiu: > I found that the problem can only be produced when using the > simplefonts module, while loading the adobesongstd font and some other > Chinese fonts. So, the problem maybe something's wrong with the > simplefonts module. The following is a simple example. > > \usemodule[simplefonts] > > \setcjkmainfont[adobesongstd] > > \starttext > > \starttyping > -- > \stoptyping > > \type{--} > > \stoptext > > And if I use \setmainfont[some Western Fonts] instead of the > \setcjkmainfont line, the problem still exists. Add '\setmonofont[Latin Modern Mono][features=none]' to your file. You can see the effect also without simplefonts: \starttypescript [serif] [mainfont] \setups[font:fallback:serif] \definefontsynonym [Serif] [name:lmroman10regular] [features=default] \stoptypescript \starttypescript [mono] [monofont] \setups[font:fallback:mono] \definefontsynonym [Mono] [name:lmmono10regular] [features=default] % \definefontsynonym [Mono] [name:lmmono10regular] [features=none] \stoptypescript \definetypeface[simplefonts][rm][serif][mainfont][default] \definetypeface[simplefonts][tt][mono] [monofont][default] \setupbodyfont[simplefonts] \starttext \starttyping -- --- \stoptyping \type{--} \stoptext Comment the first synonym in the mono typescript and uncomment the second to get correct dashes in verbatim mode. Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________