From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72791 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Error while compiling : ! String contains an invalid utf-8 sequence. Date: Mon, 28 Nov 2011 10:20:51 +0100 Message-ID: <79DE5C6A-FFAA-47E5-ACA8-026426BC768E@googlemail.com> References: <015801ccaba4$df06e8e0$9d14baa0$@gmx.de> <4ECFF60D.1090804@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322472078 5815 80.91.229.12 (28 Nov 2011 09:21:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2011 09:21:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 28 10:21:14 2011 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 1RUxOj-000745-01 for gctc-ntg-context-518@m.gmane.org; Mon, 28 Nov 2011 10:21:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C595DCB0FF; Mon, 28 Nov 2011 10:21:12 +0100 (CET) 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 CBv2CyoqxfNz; Mon, 28 Nov 2011 10:21:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B321CB0E9; Mon, 28 Nov 2011 10:21:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 61272CB0E9 for ; Mon, 28 Nov 2011 10:21:05 +0100 (CET) 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 rpb+pDoBhmVI for ; Mon, 28 Nov 2011 10:20:59 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 1F546CB0E8 for ; Mon, 28 Nov 2011 10:20:59 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAS9Kwxh001620 for ; Mon, 28 Nov 2011 10:20:58 +0100 Original-Received: by bke17 with SMTP id 17so9926915bke.14 for ; Mon, 28 Nov 2011 01:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=/MW6JmbCBV0+ad7/6DDYOMYNr0qSb9Pqlrl0k2VAw6Y=; b=iotn/1hhWFZIH1ll25ehVJXlGxmE7ivqpGHCzJqXiyFT2qvD2OpUy5g7OZ/wZ9f3WV gW0ZORxb8p2VSDOA+lrAaBQnErQ7W6JSoAVVgCGH89NJh992j9p7IrFXn3EdMoMGm/dN EJkJQ1rJ+IdzfjlLoH2IOC6FlRCdlKx0OjAUY= Original-Received: by 10.204.152.87 with SMTP id f23mr44721455bkw.18.1322472057834; Mon, 28 Nov 2011 01:20:57 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB6F4.dip.t-dialin.net. [87.175.182.244]) by mx.google.com with ESMTPS id f14sm28479153bkv.3.2011.11.28.01.20.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Nov 2011 01:20:56 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dG2xkWv5 - 3686f9b63a0c - 20111128 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:72791 Archived-At: Am 26.11.2011 um 00:56 schrieb Alexandre Krispin: > Now that japanese display correctly, there is still another problem. Japa= nese sentences (long titles in bibliography) don't break at the end of line= . I have tested the behavior of japanese with entire paragraphs, and I get = the same problem as in the bibliography, lines don't break and go "through"= the page. As I already told you need =93\setscript[hanzi]=94 to enable linbreaks for = chinese and japanese. Instead of a global setting you can also write \startscript[hanzi] =85 \stopscript to enable linebreaking for a area. Another valid form for \setscript[hanzi] is the command \hanzi which is a s= hortcut for the longer definition. > Though I have looked to documentation about chinese on the wiki, none hel= ped me to solve this problem. Does someone have any idea ? > = > Here is a minimal example with a paragraph sample in japanese : > %%%%%%%%%beginning of file%%%%%%%%%% > \usemodule[simplefonts] > \setmainfont[HeiseiMinStd-W3] > \definesimplefonttypeface[jpn][HeiseiMinStd-W3] > \setupbodyfont[12pt] > \setuptolerance[\v!verytolerant,\v!stretch] Don=92t use the =93\v!=94 prefix for settings in your document, in this cas= e it=92s harmless but there can be cases where you don=92t get the expected result of this because in normal text = =93\v=94 is a command to place a accent over the next character (here the =93!=94). > \enableregime[utf] This is not necessary because MkIV use UTF-8 by default. > \usemodule[typearea] > \setupTypeArea[bcor=3D30mm,alphabets=3D2.6,oneside] You can=92t mix keywords and assignments in the same argument of a setup co= mmand, to use the onside option you have to write =93oneside=3Dyes=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________