Re: [Orgmode] Re: export html -> doc

2010-12-21 Thread Eric Abrahamsen
On Tue, Dec 21 2010, Christian Moe wrote:

> On 12/21/10 9:21 AM, Eric Abrahamsen wrote:
>> On Tue, Dec 21 2010, Christian Moe wrote:
>>
>>> On 12/21/10 3:04 AM, Eric Abrahamsen wrote:
> #+BIND: org-export-html-xml-declaration ()
 That did the trick! Thank you.

 One small follow-up question: this produces iso-8859-1 encoded text by
 default; how do I go about asking for utf-8?
>>>
>>> With the same setup I still get utf-8. Though the XML declaration is
>>> lost, it's still there in the line:
>>>
>>> 
>>>
>>> What values do you have for the following?
>>>
>>> org-export-html-coding-system
>>> buffer-file-coding-system
>>> current-language-environment
>>
>> Aha! It's that first one I was looking for (I must not be using apropos
>> correctly). I had:
>>
>> org-export-html-coding-system>  nil
>> buffer-file-coding-system>  utf-8-with-signature-unix
>> current-language-environment>  "UTF-8"
>>
>> Setting org-export-html-coding-system to 'utf-8 resulted in a correct
>> coding system in the html export, but from the docs you'd think it would
>> have picked that up from buffer-file-coding-system to begin with…
>
> Mine does pick it up. I have
>
>  org-export-html-coding-system > nil
>  buffer-file-coding-system > utf-8-unix
>
> and get correct utf-8 html output in Org 7.4, GNU Emacs 23.2.1 on a Mac.
>
> I don't have any further clues why it doesn't work for you.

Thanks for getting me this far!

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: export html -> doc

2010-12-21 Thread Christian Moe

On 12/21/10 9:21 AM, Eric Abrahamsen wrote:

On Tue, Dec 21 2010, Christian Moe wrote:


On 12/21/10 3:04 AM, Eric Abrahamsen wrote:

#+BIND: org-export-html-xml-declaration ()

That did the trick! Thank you.

One small follow-up question: this produces iso-8859-1 encoded text by
default; how do I go about asking for utf-8?


With the same setup I still get utf-8. Though the XML declaration is
lost, it's still there in the line:



What values do you have for the following?

org-export-html-coding-system
buffer-file-coding-system
current-language-environment


Aha! It's that first one I was looking for (I must not be using apropos
correctly). I had:

org-export-html-coding-system>  nil
buffer-file-coding-system>  utf-8-with-signature-unix
current-language-environment>  "UTF-8"

Setting org-export-html-coding-system to 'utf-8 resulted in a correct
coding system in the html export, but from the docs you'd think it would
have picked that up from buffer-file-coding-system to begin with…


Mine does pick it up. I have

 org-export-html-coding-system > nil
 buffer-file-coding-system > utf-8-unix

and get correct utf-8 html output in Org 7.4, GNU Emacs 23.2.1 on a Mac.

I don't have any further clues why it doesn't work for you.

Yours,
Christian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: export html -> doc

2010-12-21 Thread Eric Abrahamsen
On Tue, Dec 21 2010, Christian Moe wrote:

> On 12/21/10 3:04 AM, Eric Abrahamsen wrote:
>>> #+BIND: org-export-html-xml-declaration ()
>> That did the trick! Thank you.
>>
>> One small follow-up question: this produces iso-8859-1 encoded text by
>> default; how do I go about asking for utf-8?
>
> With the same setup I still get utf-8. Though the XML declaration is
> lost, it's still there in the line:
>
> 
>
> What values do you have for the following?
>
> org-export-html-coding-system
> buffer-file-coding-system
> current-language-environment

Aha! It's that first one I was looking for (I must not be using apropos
correctly). I had:

org-export-html-coding-system > nil
buffer-file-coding-system > utf-8-with-signature-unix
current-language-environment > "UTF-8"

Setting org-export-html-coding-system to 'utf-8 resulted in a correct
coding system in the html export, but from the docs you'd think it would
have picked that up from buffer-file-coding-system to begin with…

Thanks,
Eric


>
> Yours,
> Christian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: export html -> doc

2010-12-21 Thread Christian Moe

On 12/21/10 3:04 AM, Eric Abrahamsen wrote:

#+BIND: org-export-html-xml-declaration ()

That did the trick! Thank you.

One small follow-up question: this produces iso-8859-1 encoded text by
default; how do I go about asking for utf-8?


With the same setup I still get utf-8. Though the XML declaration is 
lost, it's still there in the line:




What values do you have for the following?

org-export-html-coding-system
buffer-file-coding-system
current-language-environment

Yours,
Christian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: export html -> doc

2010-12-20 Thread Eric Abrahamsen
On Mon, Dec 20 2010, Christian Moe wrote:

> On 12/20/10 10:54 AM, Holger Wenzel wrote:
>> Did you try to suppress the xml declaration in the exported html?
>>
>> #+OPTIONS: org-export-html-xml-declaration (quote (("php" . "> \"\"; ?>")))
>
> Maybe that works for a publishing setup? It doesn't for ordinary export.
>
> This does work:
>
> #+BIND: org-export-html-xml-declaration ()

That did the trick! Thank you.

One small follow-up question: this produces iso-8859-1 encoded text by
default; how do I go about asking for utf-8?

And I'll check out both pandoc and latex2rtf for more complicated
exports, thanks to all!

Eric

>
> Yours,
> Christian
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: export html -> doc

2010-12-20 Thread Chris Thompson
Eric Abrahamsen  ericabrahamsen.net> writes:
> 
> I'm translating fiction, I don't need squat in the way of formatting
> besides the paragraphs getting unfilled, and italics and bold coming
> through properly. Has anyone seen this happen before, and have a
> potential solution?
> 

Eric, for your needs, you may find that Pandoc (which now supports Org files) is
a simpler solution that works now.

-- Chris


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: export html -> doc

2010-12-20 Thread Christian Moe

On 12/20/10 10:54 AM, Holger Wenzel wrote:

Did you try to suppress the xml declaration in the exported html?

#+OPTIONS: org-export-html-xml-declaration (quote (("php" . "\"; ?>")))


Maybe that works for a publishing setup? It doesn't for ordinary export.

This does work:

#+BIND: org-export-html-xml-declaration ()

Yours,
Christian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: export html -> doc

2010-12-20 Thread William Gardella
Eric Abrahamsen  writes:

> I know this is an awfully tired topic, and I'll be thrilled when the odt
> exporter is ready, but in the meantime exporting to HTML and then either
> opening or copying/pasting into OpenOffice is not working for me, while
> it does seem to be working for other people.
>
> I'm on Ubuntu, Emacs 23.3 and yesterday's org-mode. I export to html
> just fine. Then I figure I have two options: open the html directly with
> OpenOffice, or copy and paste the text. Opening the html directly just
> shows me an unrendered html document. Copying and pasting into
> OpenOffice turns all the italics into funny little grey boxes (one on
> either side of the meant-to-be-italics text), and no actual italics.
>
> I'm translating fiction, I don't need squat in the way of formatting
> besides the paragraphs getting unfilled, and italics and bold coming
> through properly. Has anyone seen this happen before, and have a
> potential solution?
>
> Thanks!
>
> Eric
>

Eric,

I think you will be better off using a tool such as `latex2rtf'
(available as a package here in Debian Sid, maybe in Ubuntu too?)  to
convert your LaTeX exporting output into a format OpenOffice can
understand.  Unlike taking your chances with the copy/paste behavior of
apps that aren't Emacs (egads!), latex2rtf will try to preserve the
formatting in a fairly consistent (if far from perfect) way.

Best,

Followup-To: poster
-- 
William Gardella
J.D. Candidate
Class of 2011, University of Pittsburgh School of Law


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: export html -> doc

2010-12-20 Thread Holger Wenzel
Hi Eric,

> I know this is an awfully tired topic, and I'll be thrilled when the odt
> exporter is ready, but in the meantime exporting to HTML and then either
> opening or copying/pasting into OpenOffice is not working for me, while
> it does seem to be working for other people.
>
> I'm on Ubuntu, Emacs 23.3 and yesterday's org-mode. I export to html
> just fine. Then I figure I have two options: open the html directly with
> OpenOffice, or copy and paste the text. Opening the html directly just
> shows me an unrendered html document. Copying and pasting into
> OpenOffice turns all the italics into funny little grey boxes (one on
> either side of the meant-to-be-italics text), and no actual italics.


Did you try to suppress the xml declaration in the exported html?

#+OPTIONS: org-export-html-xml-declaration (quote (("php" . "\"; ?>")))

At least MS-Word and Chromium don't seem to like that xml version line
and refuse to render the document.


Hth,

Holger


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode