all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, rms@gnu.org, kjambunathan@gmail.com
Subject: Re: Personal gift - INR 10,000  (Ten Thousand) - to new contributors
Date: Fri, 21 Mar 2014 17:57:49 -0400	[thread overview]
Message-ID: <jwvtxarnrua.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <834n2r5q9h.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Mar 2014 21:02:34 +0200")

>> What I would like to see is a feature to enhance Emacs's ability
>> to display formatted documents.  For instance, making indentation
>> work in terms of fractions of characters, so we can display properly
>> aligned tables with variable-with fonts.
> Isn't this already possible with ':align-to' display specs?  See the
> nodes "Specified Space" and "Pixel Specification" in the ELisp manual.

Yes, "indentation in terms of fractions of characters" is possible
with :align-to, but that doesn't really help displaying tables with
variable-width fonts.  I mean, it helps, but not enough to get
a reliable result.

I know of immediate 2 problems when doing such an aligned table:
- can't do right-alignment because the indentation needed depends on the
  pixel width of the variable-width text.
- can't reliably truncate elements because, again, we don't know their
  pixel width, so if we use "char-width" instead (the best we have so
  far) we sometimes truncate too early and sometimes too late.
Both of those problems affect existing Emacs packages.  We could
probably solve both problems by adding a new display spec which would
specify a width to use for the covered text, along with whether to align
it on the left or the right (and maybe which glyph to use the indicate
truncation when truncation is needed).


        Stefan



      reply	other threads:[~2014-03-21 21:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 13:34 Personal gift - INR 10,000 (Ten Thousand) - to new contributors Jambunathan K
2014-03-21 13:47 ` Jambunathan K
2014-03-21 18:57   ` Richard Stallman
2014-03-21 19:02     ` Eli Zaretskii
2014-03-21 21:57       ` Stefan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtxarnrua.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=kjambunathan@gmail.com \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.