Re: [O] Export as HTML does not preserve nonstandard entities as TODO signs

2011-10-16 Thread Christian Moe

Hi,

I can't reproduce this. After adding your example to a test buffer and 
re-saving the buffer, I get the expected html export. (Before 
resaving, the buffer was still exported in iso-8859-1, producing 
garbage -- but not underscores -- in html; after resaving, in utf-8.)


With point in your example buffer, what does `C-h v 
buffer-file-coding-system' say?


Yours,
Christian


On 10/14/11 5:47 PM, Arne Babenhauserheide wrote:

Hi,

I started using ✔ and ❢ as replacement for DONE und TODO and I realized that 
they get replaced by an underscore (_) in HTML output. Since I really like 
using symbols for TODO and DONE¹, I wanted to ask, if this is a bug.

Best wishes,
Arne

¹: Just compare:

* ✔ Sent bug question
* ❢ check for response

and

* DONE Sent bug question
* TODO check for response

PS: I actually have ✔ on my keyboard, and C-c C-t makes it easy to use any kind 
of symbol for TODO states which is supported by the font.







Re: [O] Export as HTML does not preserve nonstandard entities as TODO signs

2011-10-16 Thread Arne Babenhauserheide
Hi Cristian,

Am Sonntag, 16. Oktober 2011, 08:39:08 schrieb Christian Moe:
 On 10/14/11 5:47 PM, Arne Babenhauserheide wrote:
  I started using ✔ and ❢ as replacement for DONE und TODO and I realized
  that they get replaced by an underscore (_) in HTML output. Since I
  really like using symbols for TODO and DONE¹, I wanted to ask, if this
  is a bug.

 I can't reproduce this. After adding your example to a test buffer and
 re-saving the buffer, I get the expected html export. (Before
 resaving, the buffer was still exported in iso-8859-1, producing
 garbage -- but not underscores -- in html; after resaving, in utf-8.)

 With point in your example buffer, what does `C-h v
 buffer-file-coding-system' say?

Its value is utf-8-unix
Local in buffer emacs-plan.org; global value is utf-8

What I get is output like this:

h3 id=sec-11-10span class=section-number-311.10/span span
class=done ✔ _/span Müll runter /h3

(copied to the clipboard)

Interesting is that ✔ gets correctly exported as class name, but not as
identifier in the text.

Best wishes,
Arne

signature.asc
Description: This is a digitally signed message part.


Re: [O] Export as HTML does not preserve nonstandard entities as TODO signs

2011-10-16 Thread Christian Moe

Hi,

First, sorry about the noise: I had failed to activate your symbols as 
TODO keywords. Now I do reproduce your results.


It also doesn't seem to help to add your special characters to Emacs 
word syntax, as the FAQ says you should.

http://orgmode.org/worg/org-faq.html#sec-9-6

I think there's a bug in org-html.el (org-export-as-html), around line 
1611. A function that is meant to get a valid class name for the todo 
keyword is not called when the class attribute of the span tag is 
inserted, but a  line below, where the visible text content of the 
span tag is inserted. I'm posting a patch.


Yours,
Christian








Re: [O] Export as HTML does not preserve nonstandard entities as TODO signs

2011-10-16 Thread Arne Babenhauserheide
Am Sonntag, 16. Oktober 2011, 16:33:52 schrieb Christian Moe:
 First, sorry about the noise: I had failed to activate your symbols as
 TODO keywords. Now I do reproduce your results.

No problem and many thanks for checking - and fixing!

As soon as it’s in the emacs 24 repo, I can test it.

Best wishes,
Arne
--
1w6 sie zu achten,
sie alle zu finden,
in Spiele zu leiten
und sacht zu verbinden.
→ http://1w6.org



signature.asc
Description: This is a digitally signed message part.


[O] Export as HTML does not preserve nonstandard entities as TODO signs

2011-10-15 Thread Arne Babenhauserheide
Hi, 

I started using ✔ and ❢ as replacement for DONE und TODO and I realized that 
they get replaced by an underscore (_) in HTML output. Since I really like 
using symbols for TODO and DONE¹, I wanted to ask, if this is a bug. 

Best wishes,
Arne

¹: Just compare: 

* ✔ Sent bug question
* ❢ check for response

and 

* DONE Sent bug question
* TODO check for response

PS: I actually have ✔ on my keyboard, and C-c C-t makes it easy to use any kind 
of symbol for TODO states which is supported by the font.