unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4084: 23.1; boxquote uses ugly ASCII "drawing" characters rather than Unicode
@ 2009-08-08 10:18 Roger Leigh
  2009-08-08 15:24 ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Leigh @ 2009-08-08 10:18 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 2712 bytes --]

The standard boxquote looks like this:

,----[ title ]
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi et
| dolor vitae quam fringilla vulputate ac id sapien. Nullam auctor
| consequat magna in fringilla. Praesent sed dolor vel felis
| condimentum faucibus eget in risus. Phasellus dignissim vehicula
| purus, non tempus arcu rutrum vel.
`----

However, since Emacs now has perfectly good Unicode support, the
following shows boxquote configured to use standard Unicode line drawing
characters with rounded corners:

(set-variable 'boxquote-bottom-corner "╰")   ; U+2570
(set-variable 'boxquote-side "│ ")           ; U+2572 + space
(set-variable 'boxquote-top-and-tail "────") ; U+2500 (×4)
(set-variable 'boxquote-top-corner "╭")      ; U+256F

╭────[ title ]
│ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi et
│ dolor vitae quam fringilla vulputate ac id sapien. Nullam auctor
│ consequat magna in fringilla. Praesent sed dolor vel felis
│ condimentum faucibus eget in risus. Phasellus dignissim vehicula
│ purus, non tempus arcu rutrum vel.
╰────

Much nicer!  It would be great if these could be made the default in
place of the ugly ASCII.


Regards,
Roger


In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2009-08-03 on nautilus, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10603000
configured using `configure  '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#4084: 23.1; boxquote uses ugly ASCII "drawing" characters rather than Unicode
       [not found] <mailman.4179.1249740673.2239.bug-gnu-emacs@gnu.org>
@ 2009-08-08 14:37 ` Teemu Likonen
  0 siblings, 0 replies; 4+ messages in thread
From: Teemu Likonen @ 2009-08-08 14:37 UTC (permalink / raw)
  To: Roger Leigh; +Cc: 4084

On 2009-08-08 11:18 (+0100), Roger Leigh wrote:
> The standard boxquote looks like this:

Boxquote is not part of the standard Emacs. I guess you need to contact
the author of boxquote.el or someone who distributes your version of
Emacs.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#4084: 23.1; boxquote uses ugly ASCII "drawing" characters rather than Unicode
  2009-08-08 10:18 Roger Leigh
@ 2009-08-08 15:24 ` Drew Adams
  2009-08-08 15:37   ` 'Roger Leigh'
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2009-08-08 15:24 UTC (permalink / raw)
  To: 'Roger Leigh', 4084, bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

> Much nicer!  It would be great if these could be made the default in
> place of the ugly ASCII.

Sure doesn't look nicer to me! See attachment.

Boxquote should not use Unicode characters unless the buffer is already Unicode
encoded. Even then, I'm not convinced the Unicode version looks better.

[-- Attachment #2: throw-boxquote.png --]
[-- Type: image/png, Size: 22166 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#4084: 23.1; boxquote uses ugly ASCII "drawing" characters rather than Unicode
  2009-08-08 15:24 ` Drew Adams
@ 2009-08-08 15:37   ` 'Roger Leigh'
  0 siblings, 0 replies; 4+ messages in thread
From: 'Roger Leigh' @ 2009-08-08 15:37 UTC (permalink / raw)
  To: Drew Adams; +Cc: bug-gnu-emacs, 4084

On Sat, Aug 08, 2009 at 08:24:29AM -0700, Drew Adams wrote:
> > Much nicer!  It would be great if these could be made the default in
> > place of the ugly ASCII.
> 
> Sure doesn't look nicer to me! See attachment.
> 
> Boxquote should not use Unicode characters unless the buffer is already Unicode
> encoded. Even then, I'm not convinced the Unicode version looks better.

I think your font is to blame here; perhaps it's using a fallback as
the corners, and as a result they don't line up correctly.  Even so,
IMO this looks (subjectively) better than ASCII.  I agree that
using Unicode characters in a non-Unicode buffer would be wrong;
boxquote should use a fallback in that case (can Emacs do
transliteration for non-representable characters when you insert
characters not represented in the buffer encoding)?

Anyhow, I'll pass this along to the author, since it's not part of
Emacs itself.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-08 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.4179.1249740673.2239.bug-gnu-emacs@gnu.org>
2009-08-08 14:37 ` bug#4084: 23.1; boxquote uses ugly ASCII "drawing" characters rather than Unicode Teemu Likonen
2009-08-08 10:18 Roger Leigh
2009-08-08 15:24 ` Drew Adams
2009-08-08 15:37   ` 'Roger Leigh'

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).