From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: valign.el Date: Mon, 30 Nov 2020 09:55:23 -0500 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_924B173D-FB85-4C71-83CC-A31756B72004" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36753"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Pankaj Jangid Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 30 15:56:07 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjkb0-0009QB-U8 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 15:56:07 +0100 Original-Received: from localhost ([::1]:41094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjkaz-0001Tx-UM for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 09:56:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjkaP-0000yR-Dd for emacs-devel@gnu.org; Mon, 30 Nov 2020 09:55:29 -0500 Original-Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:39938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjkaL-0000l2-Hk for emacs-devel@gnu.org; Mon, 30 Nov 2020 09:55:29 -0500 Original-Received: by mail-qv1-xf2c.google.com with SMTP id es6so5691312qvb.7 for ; Mon, 30 Nov 2020 06:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=prTvLy76QHegV/qjkAFprmt6e3eNa+EvdYlA8QD+9Ag=; b=pVNkXZjrrMRvU/at+arljEYAnpSLkE+LfNQbKfAR7UE41kTAfbNec0eMKnF0P5vyaC zrLaI/pg4GhhmH7UW9whdm+g7pHcX51C3wR9Jnmz4Us7z1V+TCZ7PH6mF+jaspzJY0qs fJd11kMqlEXpWJ6isYG8l+fx7KPSFABS7yysYZoPiVAmjye5ICUJCBAVz5b6VvkwNGLG 6se7GT9gQUU3B9eTO45rbJkaDmCFzePJbb+eL6V1mbzHv4+DrGeI7zdL30RbZaoHWi7H CvPk+W6NMF/VG8IqyXwlDwqKcUCE7fiAIDgifRyANCj7/W8NfjsBeVfdWEMAcgmALk09 u39g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=prTvLy76QHegV/qjkAFprmt6e3eNa+EvdYlA8QD+9Ag=; b=bzGdaVAlAgbw0qlcUgfaOG6G6l/BtJgHiUyxMmz2oBKELx4V3Bdk5Lcr4lzqXdGHSe oizSIPQqXASyTt5fbfh3LMlDaDe+V5TFQN/r1miRC0AcyChzQ9qZVfl2y1b97Nqtwu3I MlnXoP08ClhPi5WwOVf64RDRgxk7o5zmhipJ0+bVge6Y7BLZj1zg1MZwjU97BNbgLFgQ vbknlSUrAwe+QgAnl8Oz/duOH55ApwbRtrdcYeSD6VFpdkBhMLNWaBp9GzfDQ7PyDtaO hJJ4MneZWf8tMDD74L2uXTqcmZHINguJLjKlpdZzcGSg7w44byDLSydt52UdLikHzFnB ZANw== X-Gm-Message-State: AOAM531h7vZr57kvPSpssG+HpSO7QXLuIudS2WxGAoUMCn6T6+FTaaBf unAMiLW52ehcMu+0uT6wNQs= X-Google-Smtp-Source: ABdhPJzYeDjkE1junegTY566PgDLFRaoQgjFe56Xl+4m63flvmp+9jlHVCAM/D4ncnuzy854OBUBUw== X-Received: by 2002:a05:6214:126:: with SMTP id w6mr22561606qvs.35.1606748124704; Mon, 30 Nov 2020 06:55:24 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4200:9210:4022:b2c2:a66c:3914? ([2601:98a:4200:9210:4022:b2c2:a66c:3914]) by smtp.gmail.com with ESMTPSA id o9sm15846280qte.35.2020.11.30.06.55.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2020 06:55:24 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.20.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=casouri@gmail.com; helo=mail-qv1-xf2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=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-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260065 Archived-At: --Apple-Mail=_924B173D-FB85-4C71-83CC-A31756B72004 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 30, 2020, at 2:43 AM, Pankaj Jangid = wrote: >=20 > Yuan Fu > writes: >=20 >> Text-based tables in Emacs has a problem when used with = variable-pitch >> fonts and CJK characters: they don=E2=80=99t align. To solve that = problem, I >> wrote a package, vailgn.el, to provide automatic alignment for Org >> Mode, Markdown, and table.el tables. Many people have been using it >> (primarily the Chinese community) with success and many bugs have = been >> fixed. With the latest version, I am satisfied with the features >> valign.el provides and its stability, so I want to see added to ELPA. >>=20 >> I=E2=80=99ve updated the copyright header and I=E2=80=99ve signed the = assignment. What >> should I do next? I wish to keep hosting the project on GitHub. Here >> is the project homepage: https://github.com/casouri/valign >=20 > This looks really good. I have a question. >=20 > Is this package related to tables only or will this be a generic > enhancement? I feel that this should be a generic enhancement. = Following > are the two cases where I see its appliation: >=20 This package is only about tables. AFAICT providing a generic = auto-alignment is difficult. A better way is to ask the author of each = of the packages to align the columns in the package. That=E2=80=99s = quite easy, often one only need to replace (insert (make-string 3 ?\s)) with (insert (propertize " " 'display '(space :align-to xxx))) Yuan --Apple-Mail=_924B173D-FB85-4C71-83CC-A31756B72004 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Nov 30, 2020, at 2:43 AM, Pankaj Jangid <pankaj@codeisgreat.org> wrote:

Yuan Fu <casouri@gmail.com> writes:

Text-based tables in Emacs has a = problem when used with variable-pitch
fonts and CJK = characters: they don=E2=80=99t align. To solve that problem, I
wrote a package, vailgn.el, to provide automatic alignment = for Org
Mode, Markdown, and table.el tables. Many people = have been using it
(primarily the Chinese community) with = success and many bugs have been
fixed. With the latest = version, I am satisfied with the features
valign.el = provides and its stability, so I want to see added to ELPA.

I=E2=80=99ve updated the copyright header and = I=E2=80=99ve signed the assignment. What
should I do next? = I wish to keep hosting the project on GitHub. Here
is the = project homepage: https://github.com/casouri/valign

This looks really good. I have a question.

Is this = package related to tables only or will this be a generic
enhancement? = I feel that this should be a generic enhancement. Following
are the two = cases where I see its appliation:


This package is only about tables. AFAICT = providing a generic auto-alignment is difficult. A better way is to ask = the author of each of the packages to align the columns in the package. = That=E2=80=99s quite easy, often one only need to replace

(insert (make-string 3 ?\s))

with

(insert = (propertize " " 'display '(space :align-to xxx)))


Yuan

= --Apple-Mail=_924B173D-FB85-4C71-83CC-A31756B72004--