[Orgmode] Re: DocBook exporter for Org-mode
Baoqiu == Baoqiu Cui cbao...@yahoo.com writes: Baoqiu You won't see real difference if we are talking about software Baoqiu manuals or documentation etc. For software manuals reST/Sphinx provides all what I need - check some of the docs here: http://sphinx.pocoo.org/examples.html Baoqiu Maybe you should take a look at Simplified DocBook: I played with it in the past, but simply do not see any advantage of using any Docbook-dialect over reST, but understand it makes sense for others. Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D pgpievxQ3iIkg.pgp Description: PGP signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DocBook exporter for Org-mode
Sebastian == Sebastian Rose sebastian_r...@gmx.de writes: Sebastian Frankly speaking, Org-mode provides a lot of expressive power Sebastian if you want it while still keeping document very readable and Sebastian nowadays can produce DocBook output simply by pressing `C-c Sebastian C-e D' ;-) I agree about Org-mode's expressive power. The case for reST is because it's more 'standard' markup for non-Emacs users. Otherwise, I could continue using Muse as well... Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D pgpj7hUQoev8t.pgp Description: PGP signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Worg: broken link for tracking habits minitutorial
It looks like the link to his tutorial has been lost with the new addition of the git/bzr tutorial that follows it, on worg. I hope it's still available, as I intend to implement some of the ideas in that document. Hi Alan, Apologies, it's probably my fault :( The link works correctly on my local git repo of worg. I'll try and work out what's gone wrong and fix it this morning. Best wishes, Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] DocBook exporter code (version 1.0)
Hello CD == Carsten Dominik writes: CD One of the really weak features in Org's design is that exporting is CD not implemented in a generic way. All exporters share a preprocessing CD step that turns Org format into something a little more sane and CD consistent. Then each exporter goes its own way. This setup makes CD maintenance sort of a nightmare, because each change to Org syntax CD needs to be implemented in all exporters separately. Maybe you have CD read my swearing when I was trying to fix the LaTeX exporter which I CD did not understand completely at first - it was written by Bastien. CD I had really hoped that the next step in exporting Org would be to CD rewrite the exporter from scratch, in a generic way, that will then CD make supporting different formatters more stable and easy. Adding a CD new exporter does not get us closer to that idea. I think, that instead of parsing text directly, we need to write generic exporter, that will export all data as a tree, consisting from header + list of the entries, and inside these entries provide all needed information about text (markup, url information, etc.). And for new export format, author will define only small piece of code -- mostly header generation, and replacement tables for formatting tags, urls decorations, etc. What do you think about this? I can try to define basic API and we'll see what we can do CD And I had feared that your exporter would be a badly hacked attempt CD reinventing lots of wheels, that could never become a really complete CD export. -- With best wishes, Alex Ott, MBA http://alexott.blogspot.com/http://xtalk.msk.su/~ott/ http://alexott-ru.blogspot.com/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] alter all subtrees containing specific tag
Hi, I use pgg to encrypt some org subtrees (e.g. the ones containing passwords). At the moment I have to encrypt/decrypt them one at a time by selecting the appropriate region and running pgg-encrypt-region/pgg-decrypt-region. I want to make a function that will automatically encrypt/decrypt all subtrees (in the current buffer) whose headings contain an :ENCRYPT: tag. I tried using org-map-entries, but it seems to restore the buffer to its original state after returning. Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? -- aleblanc ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] alter all subtrees containing specific tag
On Mar 8, 2009, at 5:31 AM, n...@aleblanc.cotse.net n...@aleblanc.cotse.net wrote: Hi, I use pgg to encrypt some org subtrees (e.g. the ones containing passwords). At the moment I have to encrypt/decrypt them one at a time by selecting the appropriate region and running pgg-encrypt-region/pgg-decrypt-region. I want to make a function that will automatically encrypt/decrypt all subtrees (in the current buffer) whose headings contain an :ENCRYPT: tag. I tried using org-map-entries, but it seems to restore the buffer to its original state after returning. No, org-map-entries should be perfect for this, and it does not restore the buffer. This should really well. The only thing that might happen, by replacing the subtree, that it does not know correctly where to continue and therefore it might do every tree twice? Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? (org-mark-subtree) ;; this will include the headline (re-search-forward ^\\*+ .*?:ENCRYPT: nil t) - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] alter all subtrees containing specific tag
I use pgg to encrypt some org subtrees (e.g. the ones containing passwords). At the moment I have to encrypt/decrypt them one at a time by selecting the appropriate region and running pgg-encrypt-region/pgg-decrypt-region. I want to make a function that will automatically encrypt/decrypt all subtrees (in the current buffer) whose headings contain an :ENCRYPT: tag. I tried using org-map-entries, but it seems to restore the buffer to its original state after returning. Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? Not really an answer, but I use epa and encrypt the whole file, which I find much fiddly. You can get epa to play nicely with org mode by putting something like: -*- mode:org; epa-file-encrypt-to: (m...@mmyemail.com) -*- at the top of your encrypted file. Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] DocBook exporter code (version 1.0)
On Mar 8, 2009, at 10:43 AM, Alex Ott wrote: Hello CD == Carsten Dominik writes: CD One of the really weak features in Org's design is that exporting is CD not implemented in a generic way. All exporters share a preprocessing CD step that turns Org format into something a little more sane and CD consistent. Then each exporter goes its own way. This setup makes CD maintenance sort of a nightmare, because each change to Org syntax CD needs to be implemented in all exporters separately. Maybe you have CD read my swearing when I was trying to fix the LaTeX exporter which I CD did not understand completely at first - it was written by Bastien. CD I had really hoped that the next step in exporting Org would be to CD rewrite the exporter from scratch, in a generic way, that will then CD make supporting different formatters more stable and easy. Adding a CD new exporter does not get us closer to that idea. I think, that instead of parsing text directly, we need to write generic exporter, that will export all data as a tree, consisting from header + list of the entries, and inside these entries provide all needed information about text (markup, url information, etc.). And for new export format, author will define only small piece of code -- mostly header generation, and replacement tables for formatting tags, urls decorations, etc. Yes, exactly. This is exactly the right idea. A complete parser that captures the *entire* structure including all meta data, without being specific to a backend. There is a start for such a system in the git repo, in EXPERIMENTAL/org-export.el, written by Bastien. It does a pass to get the headline structure of the document, and the properties as meta data in a property list. I believe it might not capture TODO state and/or priority, but I am not certain. The LaTeX exporter is based on this parser, but it is a half-done job as it does the parsing only for the outline structure, not really for the content. There is also a parser for plain lists, in org-list.el, which is also used in the LaTeX exporter (yes, Bastien had many of the right ideas). The is lots of other meta info like targets, links, formatting information that would have to be encoded in some way. It might be useful to start with the export preprocessor on the entire file and use it. One of the hard things will be to identify stuf that is LaTeX, but also this code is in principle present. This would be great to achieve. Be warned that it will be hard to get right, and that you and others would largely have to drive it. I will help, but cannot do the main thrust - maintaining Org as it is and adding some features takes most of the energy I can currently contribute. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-annotate on windows
Has anyone got org-annotation-helper to work on windows with firefox? As far as I can see the script does what it should but the firefox bookmarklet does not invoke the script (or do anything for that matter). I think that shell script should become a vbs (or some such) script for it to work in windows but Ive no clue how to debug javascript so not trying ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Publishing meta tags when exporting to HTML
Hello, I've searched for hours but can't find anything on this: is there a way to provide meta tags to the Org file that will be used when publishing to HTML? Needless to say the keywords are file-dependent: I can't hard-code them in the footer... I'm thinking at something like this: --8---cut here---start-8--- #+TITLE: This is my page about the great Emacs Org-mode #+AUTHOR: Sebastien Vauban #+DATE: 2008-09-26 #+KEYWORDS: home page, emacs, org-mode, init file #+DESCRIPTION: this page is all about... * My first level heading Please find here --8---cut here---end---8--- This is very important, IMHO, for getting a real Web site authoring system. Any help? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-annotate on windows
Rustom Mody rustompm...@gmail.com writes: Has anyone got org-annotation-helper to work on windows with firefox? As far as I can see the script does what it should but the firefox bookmarklet does not invoke the script (or do anything for that matter). I think that shell script should become a vbs (or some such) script for it to work in windows but Ive no clue how to debug javascript so not trying We're planning to solve this problem by dropping the dependency on the shell scipt entirely. But it should be easy to write a batch file for this too: c:\programme\...\emacsclient.exe --eval (progn (bzg/org-annotation-helper \%1\ ) nil) and save it as *.bat. Dose that work? Regards, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] org-agenda-add-entry-text
There seems to be an inconsistency in how org-agenda-add-entry-text handles links. Sometimes they are exported as descriptive links and sometimes as a [[URL][descriptive]] pair. The following patch adds a new variable, org-agenda-add-entry-text- descriptive-links, that controls which of the above formats to use when exporting the agenda. Best wishes, Christopher - Modified lisp/org-agenda.el diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 9b34d01..be2faab 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -126,6 +126,12 @@ that is listed in the agenda view. :group 'org-agenda :type 'integer) +(defcustom org-agenda-add-entry-text-descriptive-links t + Non-nil means, export org-links as descriptive links (obfuscating the +URL) when adding entry text to an agenda export. + :group 'org-agenda + :type 'boolean) + (defcustom org-agenda-export-html-style The style specification for exported HTML Agenda files. If this variable contains a string, it will replace the default style @@ -2132,6 +2138,15 @@ Drawers will be excluded, also the line with scheduling/deadline info. .*\n?)) (with-temp-buffer (insert txt) + (if org-agenda-add-entry-text-descriptive-links + (progn (goto-char (point-min)) +(while (org-activate-bracket-links (point-max)) + (add-text-properties (match-beginning 0) (match-end 0) + '(face org-link + (goto-char (point-min)) + (while (re-search-forward org-bracket-link-regexp (point-max) t) + (set-text-properties (match-beginning 0) (match-end 0) + nil))) (goto-char (point-min)) (while (re-search-forward drawer-re nil t) (delete-region ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] GOAL keyword with DEADLINE semantics?
Hi all! Currently we can use the DEADLINE keyword to indicate a target date for an item to be finished. By my way of thinking, deadlines make sense for externally imposed constraints. I also try to set goals for myself for when an item will be completed. These are softer than deadlines, but I think they could share the same semantics for creation, display, and export. Would it be possible to make `org-deadline-string' a list of strings that get handled in the same way as DEADLINE is currently handled? That way I could do things like * TODO write first chapter GOAL: 2009-03-09 Mon * TODO submit manuscript GOAL: 2009-05-15 Fri DEADLINE: 2009-06-01 Mon Where the first represents my own planning process and the second contains my target completion date (trying to work ahead!) and the hard constraint imposed by whoever I'm submitting to. In all cases, I'd like agenda notification as the date approaches, I'd like to know if I've passed it by, and I'd like the option of including it in ical export. Or maybe I should just learn to treat my GOALs like DEADLINEs and stop letting myself off the hook so easily ;) Do other people think about things this way? Would you have a use for a customizable list of keywords that all had the same semantics that DEADLINE currently has? Thanks for considering it, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpdzgoCrVqWy.pgp Description: PGP signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] org-agenda-add-entry-text
Applied, thanks. - Carsten On Mar 8, 2009, at 4:28 PM, Christopher Suckling wrote: There seems to be an inconsistency in how org-agenda-add-entry-text handles links. Sometimes they are exported as descriptive links and sometimes as a [[URL][descriptive]] pair. The following patch adds a new variable, org-agenda-add-entry-text- descriptive-links, that controls which of the above formats to use when exporting the agenda. Best wishes, Christopher - Modified lisp/org-agenda.el diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 9b34d01..be2faab 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -126,6 +126,12 @@ that is listed in the agenda view. :group 'org-agenda :type 'integer) +(defcustom org-agenda-add-entry-text-descriptive-links t + Non-nil means, export org-links as descriptive links (obfuscating the +URL) when adding entry text to an agenda export. + :group 'org-agenda + :type 'boolean) + (defcustom org-agenda-export-html-style The style specification for exported HTML Agenda files. If this variable contains a string, it will replace the default style @@ -2132,6 +2138,15 @@ Drawers will be excluded, also the line with scheduling/deadline info. .*\n?)) (with-temp-buffer (insert txt) + (if org-agenda-add-entry-text-descriptive-links + (progn (goto-char (point-min)) +(while (org-activate-bracket-links (point-max)) + (add-text-properties (match-beginning 0) (match-end 0) + '(face org-link + (goto-char (point-min)) + (while (re-search-forward org-bracket-link-regexp (point-max) t) + (set-text-properties (match-beginning 0) (match-end 0) + nil))) (goto-char (point-min)) (while (re-search-forward drawer-re nil t) (delete-region ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: alter all subtrees containing specific tag
Carsten Dominik domi...@science.uva.nl writes: Hi, I use pgg to encrypt some org subtrees (e.g. the ones containing passwords). At the moment I have to encrypt/decrypt them one at a time by selecting the appropriate region and running pgg-encrypt-region/pgg-decrypt-region. I want to make a function that will automatically encrypt/decrypt all subtrees (in the current buffer) whose headings contain an :ENCRYPT: tag. I tried using org-map-entries, but it seems to restore the buffer to its original state after returning. I discovered that the problem is with pgg-encrypt not org. For some reason it only works properly if I call it interactively. No, org-map-entries should be perfect for this, and it does not restore the buffer. This should really well. The only thing that might happen, by replacing the subtree, that it does not know correctly where to continue and therefore it might do every tree twice? Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? (org-mark-subtree) ;; this will include the headline I don't have this function (Org-mode version 6.24). -- aleblanc ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: alter all subtrees containing specific tag
Ian Barton li...@manor-farm.org writes: I use pgg to encrypt some org subtrees (e.g. the ones containing passwords). At the moment I have to encrypt/decrypt them one at a time by selecting the appropriate region and running pgg-encrypt-region/pgg-decrypt-region.I want to make a function that will automatically encrypt/decrypt all subtrees (in the current buffer) whose headings contain an :ENCRYPT: tag. I tried using org-map-entries, but it seems to restore the buffer to its original state after returning. Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? Not really an answer, but I use epa and encrypt the whole file, which I find much fiddly. You can get epa to play nicely with org mode by putting something like: -*- mode:org; epa-file-encrypt-to: (m...@mmyemail.com) -*- at the top of your encrypted file. I can encrypt the whole buffer with pgg-encrypt, but I want to be able to just encrypt a selection of subtrees. -- aleblanc ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: alter all subtrees containing specific tag
Carsten Dominik domi...@science.uva.nl writes: Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? (org-mark-subtree) ;; this will include the headline (re-search-forward ^\\*+ .*?:ENCRYPT: nil t) - Carsten Just discovered a bug in my previously posted function. It doesn't work too well if you have lower level subtrees tagged for encryption. Here is the fixed version: (defun aleblanc-org-toggle-encryption (rcpts passphrase) (interactive (list (split-string (read-string Recipients (default is none): ) [ \t,]+) (pgg-read-passphrase GnuPG passphrase: ))) (show-all) (org-map-entries '(let (start end teststring) (org-outline-level) (next-line) (org-beginning-of-line) (setq start (point)) (setq teststring (buffer-substring start (+ start 27))) (outline-get-next-sibling) (if (not (equal (point) (point-max))) (previous-line)) (org-end-of-line) (setq end (point)) (if (equal teststring -BEGIN PGP MESSAGE-) (if (pgg-decrypt-region start end passphrase) (pgg-display-output-buffer start end t) (message Can't decrypt region!)) (if (equal rcpts '()) (pgg-encrypt-symmetric-region start end passphrase) (pgg-encrypt-region start end rcpts nil passphrase)) (pgg-display-output-buffer start end t))) +ENCRYPT)) -- aleblanc ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: GOAL keyword with DEADLINE semantics?
On Sun, 08 Mar 2009 11:36:57 -0400, Austin Frank wrote: Hi all! Currently we can use the DEADLINE keyword to indicate a target date for an item to be finished. By my way of thinking, deadlines make sense for externally imposed constraints. I also try to set goals for myself for when an item will be completed. These are softer than deadlines, but I think they could share the same semantics for creation, display, and export. Would it be possible to make `org-deadline-string' a list of strings that get handled in the same way as DEADLINE is currently handled? That way I could do things like * TODO write first chapter GOAL: 2009-03-09 Mon * TODO submit manuscript GOAL: 2009-05-15 Fri DEADLINE: 2009-06-01 Mon Where the first represents my own planning process and the second contains my target completion date (trying to work ahead!) and the hard constraint imposed by whoever I'm submitting to. In all cases, I'd like agenda notification as the date approaches, I'd like to know if I've passed it by, and I'd like the option of including it in ical export. Or maybe I should just learn to treat my GOALs like DEADLINEs and stop letting myself off the hook so easily ;) Do other people think about things this way? Would you have a use for a customizable list of keywords that all had the same semantics that DEADLINE currently has? Thanks for considering it, /au I think this sounds like something I've wished for since I first found out about org-mode. Thank you for analysing it so succinctly. I would use this if it could be done. Shelagh ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: alter all subtrees containing specific tag
Carsten Dominik domi...@science.uva.nl writes: Is there a quick way to get the start and end points of a subtree, or place region around it? and a quick way to jump to the next heading with a given tag? (org-mark-subtree) ;; this will include the headline (re-search-forward ^\\*+ .*?:ENCRYPT: nil t) - Carsten Couldn't find the org-mark-subtree function, but the following code works for me. It will toggle the encryption of all subtrees in the current buffer that are tagged with :ENCRYPT:, i.e. if the subtree is encrypted (starting from the first line after the header, and finishing on the last non-empty line of the subtree), it will be decrypted, otherwise it will be encrypted. You can use either gpg keys or a passphrase to encrypt subtrees. To use gpg keys, enter the names of the owners of the keys at the prompt, otherwise just press enter to use a passphrase only. If the passphrase does not match for any encrypted subtrees they will be left as is. Perhaps someone could post this on Worg? (I am lazy). (defun org-toggle-encryption (rcpts passphrase) (interactive (list (split-string (read-string Recipients (default is none): ) [ \t,]+) (pgg-read-passphrase GnuPG passphrase: ))) (org-map-entries '(let (start end teststring) (org-show-subtree) (next-line) (org-beginning-of-line) (setq start (point)) (setq teststring (buffer-substring start (+ start 27))) (condition-case nil (progn (outline-forward-same-level 1) (previous-line)) (error (goto-char (point-max (org-end-of-line) (setq end (point)) (if (equal teststring -BEGIN PGP MESSAGE-) (if (pgg-decrypt-region start end passphrase) (pgg-display-output-buffer start end t) (message Can't decrypt region!)) (if (equal rcpts '()) (pgg-encrypt-symmetric-region start end passphrase) (pgg-encrypt-region start end rcpts nil passphrase)) (pgg-display-output-buffer start end t))) +ENCRYPT)) -- aleblanc ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Publishing meta tags when exporting to HTML
Hi Sebastian, admittedly a pretty blatant omission. I am surprised this has not come up before. Fixed now, exactly in the way you proposed. Thanks! - Carsten On Mar 6, 2009, at 11:40 PM, Sébastien Vauban wrote: Hello, I've searched for hours but can't find anything on this: is there a way to provide meta tags to the Org file that will be used when publishing to HTML? Needless to say the keywords are file-dependent: I can't hard-code them in the footer... I'm thinking at something like this: --8---cut here---start-8--- #+TITLE: This is my page about the great Emacs Org-mode #+AUTHOR: Sebastien Vauban #+DATE: 2008-09-26 #+KEYWORDS: home page, emacs, org-mode, init file #+DESCRIPTION: this page is all about... * My first level heading Please find here --8---cut here---end---8--- This is very important, IMHO, for getting a real Web site authoring system. Any help? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DocBook exporter code (version 1.0)
Hi Carsten, Carsten Dominik domi...@science.uva.nl writes: Hi Baoqui, thanks for the link to the code. Forgive me for so far staying quiet on this subject. When you first posted the announcement, I had some mixed feelings. No problem at all. This is totally understandable. First of all, I don't really know docbook, and I have never used it. Then: One of the really weak features in Org's design is that exporting is not implemented in a generic way. All exporters share a preprocessing step that turns Org format into something a little more sane and consistent. Then each exporter goes its own way. This setup makes maintenance sort of a nightmare, because each change to Org syntax needs to be implemented in all exporters separately. ... Yes, it would be nice to have a generic exporting framework in Org. When I just started working on the DocBook exporter, I tried to follow org-export-latex.el first but hit some limitation in org-list-to-generic after a short time. Then I switched to the style of org-export-as-html, and found its line-based exporting very easy to use. ... Maybe you have read my swearing when I was trying to fix the LaTeX exporter which I did not understand completely at first - it was written by Bastien. I haven't read about this, but I can imagine what kind of difficulty you might have... I had really hoped that the next step in exporting Org would be to rewrite the exporter from scratch, in a generic way, that will then make supporting different formatters more stable and easy. Adding a new exporter does not get us closer to that idea. Agreed. If Org documents can be parsed into tree representations by the generic exporter, and each individual exporter only needs to configure the tags (or formatting methods) for all components in the tree, writing different exporters would be much easier. Not sure if this can be easily done in Org. And I had feared that your exporter would be a badly hacked attempt reinventing lots of wheels, that could never become a really complete export. I have misjudged severely, the exporter you made looks quite complete, you have based it very heavily on the XHTML exporter and in this way it seems to be able to handle the entire Org syntax, if I see correctly. ... Yes, DocBook exporter is heavily based on the XHTML exporter. Both exporters shares a lot of processing, but differ at other areas. Some internal functions used by these two exporters could be merged in the future. ... So I have now made the changes you require in org-exp.el, and I would like to include the exporter, once you are satisfied, into our contrib directory or even, depending on copyright assignment, into the core. Thanks a lot for making the changes in org-exp.el! I've removed the modified version of org-exp.el from my repository on Google Code. I'll try to do more testing (including testing it on XEmacs) and incorporate any comments that other people may have before you can put this exporter into Org release. However, I need to make clear that I have no time to maintain another exporter, so I would hope that you would be willing to to the necessary work to keep it up to date and working. I won't have any problem with maintaining this exporter. Thanks, Baoqiu Best wishes - Carsten On Mar 8, 2009, at 6:10 AM, Baoqiu Cui wrote: Hi, I just posted the code for DocBook exporter to Google Code. You can use the following link to get access to the code and example files: http://code.google.com/p/bcui-emacs/source/browse/#svn/trunk/org- docbook Here is the README: = = == # # File: org-docbook/README # # $Id$ # This is the DocBook exporter for Org-mode, a tool written in Emacs Lisp to export text files written in Org-mode to DocBook. This directory contains: README This file. org-export-docbook.el The main part of DocBook exporter code. org-exp.el Slightly modified version of file org-exp.el that is part of Org-mode. Currently this file is synced up with Org-mode 6.24. test.org An Org file used for testing. It includes all the features that current version of DocBook exporter supports. test.xml DocBook XML file exported from test.org. test.pdf PDF file generated from DocBook XML file test.xml. If you have any comments on how to improve this exporter, please send email to cbaoqiu AT yahoo DOT com. = = == You are welcome to try this out, and give me any comments you may have. Bug reports and ideas on how to improve this will be highly appreciated. Thanks, Baoqiu ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-annotate on windows
On Sun, Mar 8, 2009 at 8:49 PM, Sebastian Rose sebastian_r...@gmx.de wrote: We're planning to solve this problem by dropping the dependency on the shell scipt entirely. But it should be easy to write a batch file for this too: c:\programme\...\emacsclient.exe --eval (progn (bzg/org-annotation-helper \%1\ ) nil) This I think works (even without the full path) and save it as *.bat. Dose that work? However the remember link in FF does not work. I tried registering the remember protocol in regedit with the foll file REGEDIT4 [HKEY_CLASSES_ROOT\remember] @=URL:remember Protocol URL Protocol= [HKEY_CLASSES_ROOT\remember\shell] [HKEY_CLASSES_ROOT\remember\shell\open] [HKEY_CLASSES_ROOT\remember\shell\open\command] @=\C:\\downloads\\emacs-22.1\\bin\\oah.bat\ \%1\ -- (yes my paths are strange and org-annotation-helper shell script is morphed into oah.bat) Now it seems to work in the sense that ff jumps into a remember buffer into emacs Not yet figured out the template stuff. Thanks ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode