[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] DITAA and Unicode characters [babel]
From: |
Eric Schulte |
Subject: |
Re: [O] DITAA and Unicode characters [babel] |
Date: |
Mon, 25 Apr 2011 18:58:20 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Juan Pechiar <address@hidden> writes:
> 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.
>
OK, this is now part of the default ditaa header arguments, we'll see if
anyone complains...
Best -- Eric
>
> In case of not using UTF-8, the user can override this setting at
> will as you show above.
>
> Regards,
> .j.
--
Eric Schulte
http://cs.unm.edu/~eschulte/