From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Boxquote for code in UTF-8 export Date: Fri, 12 Sep 2014 21:10:22 +0200 Message-ID: <87ppf0psdd.fsf@nicolasgoaziou.fr> References: <86y4tori3n.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWEX-0008NJ-5w for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSWEO-0006ET-E0 for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:10:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:42181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWEO-0006Bj-7C for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:10:04 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XSWEL-0006um-On for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 21:10:01 +0200 In-Reply-To: <86y4tori3n.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 12 Sep 2014 17:09:16 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, Sebastien Vauban writes: > I'd advice to use UTF-8 characters more wildly available in the > different fonts for drawing the Boxquote around code, in function: > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 (defun org-ascii--box-string (s info) > =E2=94=82 "Return string S with a partial box to its left. > =E2=94=82 INFO is a plist used as a communication channel." > =E2=94=82 (let ((utf8p (eq (plist-get info :ascii-charset) 'utf-8))) > =E2=94=82 (format (if utf8p "=E2=95=AD=E2=94=80=E2=94=80=E2=94=80= =E2=94=80\n%s\n=E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80" ",----\n%s\n`= ----") > =E2=94=82 (replace-regexp-in-string > =E2=94=82 "^" (if utf8p "=E2=94=82 " "| ") > =E2=94=82 ;; Remove last newline character. > =E2=94=82 (replace-regexp-in-string "\n[ \t]*\\'" "" s))))) > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 [...] > 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, --=20 Nicolas Goaziou