emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Boxquote for code in UTF-8 export


From: Nicolas Goaziou
Subject: Re: [O] Boxquote for code in UTF-8 export
Date: Fri, 12 Sep 2014 21:10:22 +0200


Hello,

Sebastien Vauban <sva-news-D0wtAvR13HarG/address@hidden>
writes:

> I'd advice to use UTF-8 characters more wildly available in the
> different fonts for drawing the Boxquote around code, in function:
>
>   ╭────
>   │ (defun org-ascii--box-string (s info)
>   │   "Return string S with a partial box to its left.
>   │ INFO is a plist used as a communication channel."
>   │   (let ((utf8p (eq (plist-get info :ascii-charset) 'utf-8)))
>   │     (format (if utf8p "╭────\n%s\n╰────" ",----\n%s\n`----")
>   │       (replace-regexp-in-string
>   │        "^" (if utf8p "│ " "| ")
>   │        ;; Remove last newline character.
>   │        (replace-regexp-in-string "\n[ \t]*\\'" "" s)))))
>   ╰────

[...]

> The results is that only \u250C and \u2514 are "universal" (except in
> Lucida Sans Typewriter which implements almost nothing -- unlike DejaVu
> Sans Mono which implements almost everything).

There are three characters required. You are only suggesting two. What
should be the third?

Anyhow, do you want to provide a patch?


Regards,

-- 
Nicolas Goaziou




reply via email to

[Prev in Thread] Current Thread [Next in Thread]