From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 9A45123563 for ; Thu, 14 Nov 2024 18:13:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 162194851DA for ; Thu, 14 Nov 2024 18:11:19 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:from:from:content-language:references :user-agent:mime-version:date:date:message-id:received:received :received:received:received:received; s=cgl; t=1731604278; x= 1734196279; bh=dbL8SpeVgpM3dmpvm7fTdQwuLMlV7a4ZKaO7bOtdUKo=; b=G yMHKOYE/Rbo0/TsnEzimmIe3NhynvPCCSGSw3e95gKLIyYJAvJbHlGoT8et5hID1 liAtVNb6vT2PUiFDqFrNrCLGaq3qkKc/Yy1uZ8K2hwvWjNm0gNdOzdr8m2T7tChn rDtEgsxsnFfir/8JyQlv+gEDzsv53nFh1RADX+4Q70= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id su76S9kBO-27 for ; Thu, 14 Nov 2024 18:11:18 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 39900482068 for ; Thu, 14 Nov 2024 18:10:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7FA354809AD for ; Thu, 14 Nov 2024 18:10:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cDNq-C0QeVGN for ; Thu, 14 Nov 2024 18:10:32 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=85.18.95.64; helo=mcpmr011msr.fastwebnet.it; envelope-from=massifr@fastwebnet.it; receiver= Received: from mcpmr011msr.fastwebnet.it (mcpmr011msr.fastwebnet.it [85.18.95.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 0D755480991 for ; Thu, 14 Nov 2024 18:10:31 +0100 (CET) X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeefuddrvddvgdeljecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhtefuvfghgfeupdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpehmfhcuoehmrghsshhifhhrsehfrghsthifvggsnhgvthdrihhtqeenucggtffrrghtthgvrhhnpeeiledthfekieeftddvvdehjeetueefjeejieekveehieehteelleeuieeijeekieenucfkphepleehrddvvdelrddutdekrdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddrhedvngdpihhnvghtpeelhedrvddvledruddtkedrhedtpdhmrghilhhfrhhomhepmhgrshhsihhfrhesfhgrshhtfigvsghnvghtrdhithdpnhgspghrtghpthhtohepvddprhgtphhtthhopehnthhgqdgtohhnthgvgihtsehnthhgrdhnlhdprhgtphhtthhopeifohhlfhhgrghnghdrshgthhhushhtvghrrdhlihhsthhssehgmhgrihhlrdgtohhm X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.52] (95.229.108.50) by mcpmr011msr.fastwebnet.it (5.8.715.01) (authenticated as massifr@fastwebnet.it) id 63720D5C2C15FC65; Thu, 14 Nov 2024 18:10:31 +0100 Message-ID: <9d734e8c-bbdc-4c1f-8cfd-aa3b276cb1ce@fastwebnet.it> Date: Thu, 14 Nov 2024 18:10:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Wolfgang Schuster , mailing list for ConTeXt users References: <14e70c33-16c0-4ed7-a008-80d686337e3e@fastwebnet.it> <7e553eea-e2a9-1fe8-42c3-8207fe2355ff@gmail.com> Content-Language: en-US, it-IT From: mf In-Reply-To: <7e553eea-e2a9-1fe8-42c3-8207fe2355ff@gmail.com> Message-ID-Hash: M726MAZDGYGSDIW24FSJQRCQCEDZFSEK X-Message-ID-Hash: M726MAZDGYGSDIW24FSJQRCQCEDZFSEK X-MailFrom: massifr@fastwebnet.it X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: full-width Chinese comma (U+FF0C) and ordinary comma (U+002C) in Chinese texts List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Il 14/11/24 17:52, Wolfgang Schuster ha scritto: > mf schrieb am 14.11.2024 um 17:45: >> Hello, >> >> I'm typesetting a bibliography with some Chinese books that have both >> the English translation and the original title in Chinese ideograms. >> >> The Chinese titles contain both full-width commas (U+FF0C) and >> ordinary commas (U+002C), followed by spaces. >> >> Full-width comma has a wide glyph that incorporates some space on the >> right side; I read on Wikipedia it's a mistake putting a space after it. >> >> THE PROBLEM >> ConTeXt does not break a line after a full-width comma (even inside a >> "{\cn ... }" group), while it does with an ordinary comma, followed by >> a space. >> When there are only full-width commas, sometimes I'll get overfull >> boxes, because ConTeXt finds no feasible breakpoints. >> >> I'm tempted to replace all the full-width commas with ordinary commas >> followed by a space. Is it possible, or is it a mistake? >> >> Or, how do I tell ConTeXt that breaks can occur after full-width commas? > > Use \setscript[hanzi] to enable linebreaking for chinese. > > Wolfgang Thank you, Wolfgang! It works! Since I'm typesetting mixed-languages text (mainly Italian, with some English, French and German), should I limit the \setscript[hanzi] to the Chinese spans of text, or can I set it for the whole bibliography containing Chinese titles? It looks like the latter is true (and simpler, of course). Massi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________