From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SC76L+GX2mCjJQAAgWs5BA (envelope-from ) for ; Tue, 29 Jun 2021 05:47:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QJSgK+GX2mALZAAAbx9fmQ (envelope-from ) for ; Tue, 29 Jun 2021 03:47:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ED42816509 for ; Tue, 29 Jun 2021 05:47:44 +0200 (CEST) Received: from localhost ([::1]:48216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ly4is-0003wg-Gw for larch@yhetil.org; Mon, 28 Jun 2021 23:47:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ly4iW-0003wJ-KS for emacs-orgmode@gnu.org; Mon, 28 Jun 2021 23:47:20 -0400 Received: from sender4-pp-o91.zoho.com ([136.143.188.91]:25161) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ly4iU-0003mm-RN for emacs-orgmode@gnu.org; Mon, 28 Jun 2021 23:47:20 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1624938433; cv=none; d=zohomail.com; s=zohoarc; b=CmVc9LxqKqJVstigSj0a50U8+0uxkLLIkl2uDM+MPM2i4HWT5lBwY/eZSe+ceJck2z0Tb7ljOiSRcwY8+QIHhFnnqS4AOMTYH8Dkojl33FuCJASu1f1RcpioL+8uw0ctAdWSlsmhxPZC1ZWYvJZ5k0ngh/hNdEKgFZsume/JWio= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624938433; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=AAIR+hWdYc37u7o6rvfIPfmFW9BrUsq9Z0VIAVrVt3A=; b=bMmxQbEp3mo4eZaRsAjKJN7ODm1xxf4o6HRn0B2W3oXQocm/3KQzpwZ8M46oisgi3J3GKG6RTmgGBDwSlzMZGhdhC4DG4MWcu+QdatXT5DUrQ4ONZBFHf3an+JvqFPuhEbYOq/es9IcDXMingh3IE5inU1nZrz4600VuTHGjEAc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=jamshark70@zoho.com; dmarc=pass header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:message-id:in-reply-to:subject:mime-version:content-type:user-agent; b=ZclzVSQ1g6JLWqGe0+DOt4a2lVJnc2p4uVjtSj6QDu18PJ7N6uYpeja5ICslgtY4W17nvTyqE4sW l77xse0JR6Kcp4Zbe6IFC8a5y9IdpxknsScHZYUBamgAcQ+38yB2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1624938433; s=zm2020; d=zoho.com; i=jamshark70@zoho.com; h=Date:From:To:Message-ID:In-Reply-To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=AAIR+hWdYc37u7o6rvfIPfmFW9BrUsq9Z0VIAVrVt3A=; b=fwPQt5GFgd7NWCCAEUKMeI0XrXXIMCHIOE+XU4ZqOYt4Td2+gxW6i6CynGTZTW10 Hv44aI3wahq/Ic8hDfl/HP8uVzS+V2gzM7n8Q61nfQrVG3ULwksUlxdD96VUyH4sPFM LeX+bXuxnNN+g69NiDG9bor0AdU6W3p8gVizZFOQ= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1624938426425128.20041687321657; Mon, 28 Jun 2021 20:47:06 -0700 (PDT) Received: from [104.168.14.206] by mail.zoho.com with HTTP;Mon, 28 Jun 2021 20:47:06 -0700 (PDT) Date: Tue, 29 Jun 2021 11:47:06 +0800 From: James Harkins To: "emacs-orgmode" Message-ID: <17a55e0b01d.11be78c6c72761.7557666657037565597@zoho.com> In-Reply-To: Subject: Bug: ODT export of Chinese text inserts spaces for line breaks MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.91; envelope-from=jamshark70@zoho.com; helo=sender4-pp-o91.zoho.com X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624938465; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AAIR+hWdYc37u7o6rvfIPfmFW9BrUsq9Z0VIAVrVt3A=; b=XlbQZ+esVp4pPjKPTC3iBHwZNLpq2j7MtMbyUqKOuW0yZF3eJquywgpbrje1MFZWgF49a/ DGUU6kFMg5azIX+nwykkdI2pgPuVIolXQ6V8Z1m6AviV/vz+8XJT30gIr6hrnPrZ1EMk6T Zadx4niJR8Z/ZMPOOCGEQsMEpbBMQWbhUY2vcEzx5uThQUVoAu/rE3SM6FjVYFxC0RZ5x/ RlbnP4hpGRazdo7cmN3QMkfee3I2zbLTKz9lA3B1Vyxf8QSvINz/w86fMtf4y5S5/MmHrj LAjjFDUwmLR8JO3b+or8eA0IAADmqM3K6GYZxzjmQKLbih7RXOsPR6U36jMk+Q== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1624938465; a=rsa-sha256; cv=pass; b=bg5I3D9R58sZ837KNv3NQfO4SB57obeEnxJ2U7ud0bS75sKtJDQfx+MzGtkiFKPN9ZMAsu u36PdOu10ohx6EelMrPlneYJSbI6ielOoHy2oLQSrbMVmnG2O9P6/c/Z0sth/wRV5YMP7U gg2UZzWwGCYqvKYuhZa8DO4NNxb2kx9gX/X1Q7/IkPveZjD+R1suWBGs5Mb6jg0uVehXou mBxju1yXAKfcI/HUef4C7aVGGH4HYwf+H5ZJka+VHRcBM8B8S/K6sEFfjv5b09V5MJdQXo 15PDq5hHzCAbFVU+QVukOIAF43reFeYSAJYtQTYDVrqUWd3eAe5+SDcJ97E3wg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=zoho.com header.s=zm2020 header.b=fwPQt5GF; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=pass (policy=reject) header.from=zoho.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zoho.com header.s=zm2020 header.b=fwPQt5GF; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=pass (policy=reject) header.from=zoho.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: ED42816509 X-Spam-Score: -4.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5sgDrBCrwByi Consider the following org document. * Test 1=E6=9C=AC=E4=BA=BA=E4=B8=8D=E6=83=B3=E4=BA=B2=E8=87=AA=E6=8B=BF=E5=88=B0= =E5=AD=A6=E5=8E=86=E5=AD=A6=E4=BD=8D=E8=AF=81=E4=B9=A6=E3=80=81=E6=80=A5=E4= =BA=8E=E7=A6=BB=E6=A0=A1=E8=80=85,=E5=8F=AF=E4=B9=A6=E9=9D=A2=E5=A7=94=E6= =89=98=E4=BB=96=E4=BA=BA=E4=BB=A3=E9=A2=86=E5=AD=A6=E5=8E=86=E5=AD=A6=E4=BD= =8D=E8=AF=81 =E4=B9=A6,29=E6=97=A5=E8=B5=B7=E5=8D=B3=E5=8F=AF=E7=A6=BB=E6=A0=A1;2=E6=9C= =AC=E4=BA=BA=E6=83=B3=E4=BA=B2=E8=87=AA=E9=A2=86=E5=8F=96=E5=AD=A6=E5=8E=86= =E5=AD=A6=E4=BD=8D=E8=AF=81=E4=B9=A6=E8=80=85,=E6=8C=89=E5=AD=A6=E6=A0=A1= =E8=A7=84=E5=AE=9A=E7=9A=84=E7=A8=8B=E5=BA=8F=E5=8F=8A=E6=9C=89=E5=85=B3 =E8=A6=81=E6=B1=82=E5=8A=9E=E7=90=86=E7=A6=BB=E6=A0=A1=E6=89=8B=E7=BB=AD,= =E9=A2=86=E5=8F=96=E7=9B=B8=E5=85=B3=E8=AF=81=E4=B9=A6=E5=90=8E=E7=A6=BB=E6= =A0=A1; This was produced by pasting in a single, long line, and then using alt-Q (= a normal thing to do, and good for readability, because org-mode doesn't wr= ap lines by default). Exporting to ODT produces the following (body text, omitting titles, header= s and such). 1=E6=9C=AC=E4=BA=BA=E4=B8=8D=E6=83=B3=E4=BA=B2=E8=87=AA=E6=8B=BF=E5=88=B0= =E5=AD=A6=E5=8E=86=E5=AD=A6=E4=BD=8D=E8=AF=81=E4=B9=A6=E3=80=81=E6=80=A5=E4= =BA=8E=E7=A6=BB=E6=A0=A1=E8=80=85,=E5=8F=AF=E4=B9=A6=E9=9D=A2=E5=A7=94=E6= =89=98=E4=BB=96=E4=BA=BA=E4=BB=A3=E9=A2=86=E5=AD=A6=E5=8E=86=E5=AD=A6=E4=BD= =8D=E8=AF=81 =E4=B9=A6,29=E6=97=A5=E8=B5=B7=E5=8D=B3=E5=8F=AF=E7=A6=BB=E6= =A0=A1;2=E6=9C=AC=E4=BA=BA=E6=83=B3=E4=BA=B2=E8=87=AA=E9=A2=86=E5=8F=96=E5= =AD=A6=E5=8E=86=E5=AD=A6=E4=BD=8D=E8=AF=81=E4=B9=A6=E8=80=85,=E6=8C=89=E5= =AD=A6=E6=A0=A1=E8=A7=84=E5=AE=9A=E7=9A=84=E7=A8=8B=E5=BA=8F=E5=8F=8A=E6=9C= =89=E5=85=B3 =E8=A6=81=E6=B1=82=E5=8A=9E=E7=90=86=E7=A6=BB=E6=A0=A1=E6=89= =8B=E7=BB=AD,=E9=A2=86=E5=8F=96=E7=9B=B8=E5=85=B3=E8=AF=81=E4=B9=A6=E5=90= =8E=E7=A6=BB=E6=A0=A1; Between =E8=AF=81 and =E4=B9=A6, and between =E5=85=B3 and =E8=A6=81, there= is a space. Chinese typography does not allow for spaces mid-sentence. So, it would make sense to add a rule to the exporter: if one of the charac= ters before or after a source-text line break is a Chinese, Japanese or Kor= ean character, do not add a space. (The space is valid, of course, if the c= haracters on either side of the line breaks are Roman or [I would guess] Cy= rillic as well.) (Side note: Exporting to a LaTeX buffer shows that the line breaks have bee= n copied into the .tex document as is -- but, provided that you have a `use= package{xeCJK}` in the preamble, LaTeX produces correct, space-free output.= So -- Org "gets away with it" because of LaTeX's handling of CJK text. It = seems for ODT, Org needs to handle the spacing within its own logic.) This is org 9.1.9... bit old, I know, but I'm gonna take a wild guess that = this has not been a high-visibility issue. hjh