[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] DITAA and Unicode characters [babel]
From: |
Juan Pechiar |
Subject: |
Re: [O] DITAA and Unicode characters [babel] |
Date: |
Mon, 25 Apr 2011 21:27:40 -0300 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Apr 25, 2011 at 01:13:41PM -0600, Eric Schulte wrote:
> I just pushed up a change to ob-ditaa which adds a new header argument,
> namely :java through which options can be passed to the java command.
> With that patch the following should work
>
> #+begin_src ditaa :file ... :cmdline -e utf-8 -r -v :java
> -Dfile.encoding=UTF-8
> ...
> #+end_src
>
> Now that there is a :java header argument for ditaa code, the following
> could be put in a user's init file to set this flag for *all* ditaa code
> run on their system.
>
> #+begin_src emacs-lisp
> (push '(:java . "-Dfile.encoding=UTF-8")
> org-babel-default-header-args:ditaa)
> #+end_src
Works perfectly! Thanks!
> I wonder if there would be any downside to adding this as a default
> value? This could be added to `org-babel-default-header-args:ditaa' in
> ob-ditaa.el.
I think it'd be a reasonable default that will work out-of-the-box for
most users.
In case of not using UTF-8, the user can override this setting at
will as you show above.
Regards,
.j.