From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oJgDFKcU4l/bTQAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 15:45:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kAnZD6cU4l+NfgAA1q6Kng (envelope-from ) for ; Tue, 22 Dec 2020 15:45:43 +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 A7090940105 for ; Tue, 22 Dec 2020 15:45:42 +0000 (UTC) Received: from localhost ([::1]:55394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krjr3-00049F-Bp for larch@yhetil.org; Tue, 22 Dec 2020 10:45:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krjqi-00043L-7u for guix-devel@gnu.org; Tue, 22 Dec 2020 10:45:20 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:38498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krjqf-0000Ms-Mr; Tue, 22 Dec 2020 10:45:19 -0500 Received: by mail-wr1-x432.google.com with SMTP id r7so14954588wrc.5; Tue, 22 Dec 2020 07:45:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=QtSCMsk3uNkSq8C1opMvGpnie6cOmc01+MSrwZ/1nDk=; b=XdaPSLmCSCImZSA6HKsWSTnyBR3tXGZR0vMzN0Cm0k5IqE0gAXiQcMBMyPRroBo+Ip MYm4CtEb62M7gS0SvVOrPMBqBUJPkPIJPsM31yCLhXYV1RmFEpGU0lBwsvRlVpnPTPmJ iGpB1YZur8fxW1vuvkg1V6i8TN3OxyKNqrfg0OtZomxwGiIAZyVGo3KbHc1zNuo+HtMm FXXQ08hYQAnVN8cFJ1BPDGWMmNge6TE0+FrfuHTVuK8yteTmcH9u0kYWyqsJOyftiijt ScJWQNC4Lx0OGqrQ1ajZGSb34Xi9Vbd86p/yxSyeqvt2X7Og9pL5By0v3nxwT0qDHy/G x0QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=QtSCMsk3uNkSq8C1opMvGpnie6cOmc01+MSrwZ/1nDk=; b=hxMqIGi+Od9t5LONpKsIgL2NRIWU8ELWYa2a+8pQZvmbOwI42MIq1cdvzJUDdmKolG EddVbUiXD3BUflrOLmZYVYYb+hq4fKNTyYL6YPKTK25NKY4JsaooaKvsBfZ/N4VAtjji sMdQRpCI4DbQcdpxZbl/8+kLAPKFNPu7ylrMyC0+9pjbV8Ww37Gl1BkzIBd8Z/4B+Dzt YGw8/FBDaFhnKL4wMidvJ+tgZNeJYzwWMPOahjOALcBJCF0pnN/GzB3qzGcl+czE9E1h NcuTJGwZXNeOBHui843O235pMtM6QjW5GQczqxmXsFtlz7Z9ack+M693TSDommHAxl48 bdJg== X-Gm-Message-State: AOAM532HNhwsHirkDHv/wtfzhte6lM5U/wHBboJOVCDDNLCKJZ5wb8yW xmYRHsOn+SQCFcqrt/2NAOU= X-Google-Smtp-Source: ABdhPJzw36t2I6nmOK3HVxqxw1y+SOv1MdEr1TVaViROhhpnr60omoUMuOiRQmGOVr66puHqHwQIPw== X-Received: by 2002:adf:ee4d:: with SMTP id w13mr24958289wro.216.1608651915941; Tue, 22 Dec 2020 07:45:15 -0800 (PST) Received: from unfall (36.193.158.146.dynamic.jazztel.es. [146.158.193.36]) by smtp.gmail.com with ESMTPSA id r13sm31905098wrs.6.2020.12.22.07.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 07:45:15 -0800 (PST) From: =?utf-8?Q?Miguel_=C3=81ngel_Arruga_Vivas?= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Word order in Guix l10n References: <86mtyf49x7.fsf@163.com> <87ft43b1g6.fsf@gnu.org> <878s9vf0vc.fsf@systemreboot.net> <871rfh28do.fsf@gnu.org> Date: Tue, 22 Dec 2020 16:45:12 +0100 In-Reply-To: <871rfh28do.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 22 Dec 2020 16:00:35 +0100") Message-ID: <87lfdpyhdj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=rosen644835@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Zhu Zihao Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.22 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=XdaPSLmC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: A7090940105 X-Spam-Score: -1.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: pQxfT7CLNp8O Hi Ludo, Ludovic Court=C3=A8s writes: > With (ice-9 format), as has been suggested before, we should be able to > do away with the =E2=80=9Cargument jumping=E2=80=9D syntax (info "(guile)= Formatted > Output"): > > (format #f "~1@*~d Zeichen lang ist die Zeichenkette `~0@*~a'" "ab" 2) > > It=E2=80=99s a bit awkward though, in particular because we have to jump = to the > previous argument (0 and 1 here instead of 1 and 2). I wouldn't think of absolute goto directive jumping to the previous argument, it's just another chapter of the eternal debate regarding the first ordinal: Common Lisp/SLIB/ice-9 use the '0' convention for the 'first' position---the smallest element from the set of natural numbers---, instead of '1'. C-style arrays can be interpreted like this too. > Does xgettext support that syntax? We=E2=80=99ve had troubles before wit= h ~*. These troubles are related to plural forms[1]. Singular forms don't have any issue because the type and number of format specifiers must match always. > If it does, where should we use this syntax in lieu of the simpler > forms? Everywhere? Yup, for singular forms (non-ngettext) it can be used everywhere right now. The translation of plural forms could, at most, omit one numeric directive (the one used for the ngettext call) to allow a more natural way of expressing implicitly the numeral, but this will need to wait for the next release of GNU gettext---the patch is almost there[2]. Nonetheless, the current version of msgfmt works correctly when no format directive is omitted. Happy hacking! Miguel [1] https://lists.gnu.org/archive/html/bug-gettext/2020-11/msg00027.html [2] https://lists.gnu.org/archive/html/bug-gettext/2020-12/msg00041.html