Re: [O] Org Mode TOOD two way sync tool

2012-10-07 Thread Jonathan BISSON
Sriram Karra karra.etc at gmail.com writes:

 
 
 I am the author of ASynK (http://karra-asynk.appspot.com), a PIM sync tool and
framework written in python that works across a variety of PIM providers such as
Outlook, Google and BBDB. I am considering extending ASynK to do a
bi-directional sync of Outlook tasks to Org Mode tasks. To be able to do this I
need a working read/write API for reading and creating TODOs in org mode.
 
 
 
 Offline parsers
 
 My first preference is to be able to parser org files without required Emacs -
this is the approach that I have implemented for BBDB sync. I considered
PyOrgMode (https://github.com/bjonnh/PyOrgMode/network), but it appears unable
to process TODOs, or even recurring events. To be able to extend PyOrgMode so I
can read and write TODOs, I needed a full description of the format of TODO
entries in all its forms. The Org manual itself has this information, I'm sure
but scattered all over the place, given its real audience. Can someone point me
to some sort of a concise representation, if any, of the org file format 
grammar?
 
Hi, 

I'm the maintener and creator of PyOrgMode, some contributors (that I can't
thanks enough there), added many TODO related enhancements to it. If you want to
give it a try, we may be able to work together in getting your needs included in
PyOrgMode.





Re: [O] Latex export : newlines in footnotes.

2012-05-29 Thread Jonathan BISSON
Jonathan BISSON bissonjonathan at gmail.com writes:

 
 Hello,
 
 When I try to export my org file using latest git (1 month ago version
 got this problem too) to a tex file, I have problems with footnotes.
 
 * Orgfile
 
 Hello [fn:foo: bar]
 
 - Latex Output
 
 Hello \footnote{bar
 }
 
 So I got a newline after bar, which causes big troubles in tables as the
 latex exporter puts the closing } at the end of the table, not a the end
 of the current cell.
 
 Any clue on how to get rid of this new line, and get the closing element
 at the right place ?
 
 Thanks !
 
 

In function org-export-latex-preprocess (file org-latex.el) 

I relace the (setq def …) on the beginning of the function by :
  (setq def
(concat (replace-regexp-in-string \n  def)
(if (string-match ORG-LIST-END-MARKER\\' def)
\n  )))

And now the footnotes are exported correctly.

I can't find where in org-export-footnotes-seen the things are added with a \n
inside. If anyone can take a look at this.


Thanks,

J.





[O] Latex export : newlines in footnotes.

2012-05-28 Thread Jonathan BISSON
Hello,

When I try to export my org file using latest git (1 month ago version
got this problem too) to a tex file, I have problems with footnotes.


* Orgfile

Hello [fn:foo: bar]




- Latex Output

Hello \footnote{bar
}



So I got a newline after bar, which causes big troubles in tables as the
latex exporter puts the closing } at the end of the table, not a the end
of the current cell.



Any clue on how to get rid of this new line, and get the closing element
at the right place ?



Thanks !




signature.asc
Description: OpenPGP digital signature


[O] Avoiding div from special blocks to be in p…

2011-12-04 Thread Jonathan BISSON
Hi,

I just uncommented a line in org-special-blocks.el that made div special
blocks (like #+begin_foo) in html export to be between p…/p…
It seems to work well like this (and now the produced documents are W3C
valid).

Any clue on why it was commented ?

diff --git a/lisp/org-special-blocks.el b/lisp/org-special-blocks.el
index 2da57f0..d55e255 100644
--- a/lisp/org-special-blocks.el
+++ b/lisp/org-special-blocks.el
@@ -81,7 +81,7 @@ seen.  This is run after a few special cases are taken care of.
   Converts the special cookies into div blocks.
   ;; Uses the dynamically-bound variable `line'.
   (when (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ line)
-;(org-close-par-maybe)
+(org-close-par-maybe)
 (message %s (match-string 1))
 (if (equal (match-string 2 line) START)
 	(insert div class=\ (match-string 1 line) \\n)


signature.asc
Description: OpenPGP digital signature


Re: [O] Avoiding div from special blocks to be in p…

2011-12-04 Thread Jonathan BISSON
On 12/04/2011 07:57 PM, Christian Moe wrote:
 Hi,
 
 I submitted a patch to this effect a month and a half back.
 
 http://patchwork.newartisans.com/patch/979/
 
 Apart from uncommenting that line, I put in an org-open-par after the
 div and rearranged a few lines to follow the same structure as other
 similar bits of code.
 
 
 Yours,
 Christian
 

Neater implementation, I vote for it :)

Jonathan



signature.asc
Description: OpenPGP digital signature


[O] [PATCH] Adding features to contrib/lisp/org-collector.el (propview)

2011-10-28 Thread Jonathan BISSON
Hi there,


I did a small patch for org-collector.

Here are the changes :
- Adding a :colnames property, allowing to give the column names
(instead of displaying the function used to populate the table)
- Adding a :noquote property, allowing to remove the double quotes
around strings

I hope some of you would find it useful.

121a122,123
   (noquote (plist-get params :noquote))
   (colnames (plist-get params :colnames))
132a135
 (setq stringformat (if noquote %s %S))
134c137,138
  (org-propview-collect cols conds match scope inherit)))
---
  (org-propview-collect cols stringformat conds match scope
inherit
(if colnames colnames cols)) 
 stringformat))
170c174
 (defun org-propview-collect (cols optional conds match scope inherit)
---
 (defun org-propview-collect (cols stringformat optional conds match
scope inherit colnames)
194,195c198,199
   (mapcar (lambda (el) (format %S el)) cols) ;; output headers
   'hline) ;; 
---
   (if colnames colnames (mapcar (lambda (el) (format stringformat
el)) cols))
'hline) ;; 
214c218
 (defun org-propview-to-table (results)
---
 (defun org-propview-to-table (results stringformat)
221c225
   (mapcar (lambda (el) (format %S el)) row)))
---
   (mapcar (lambda (el) (format stringformat el)) row)))



signature.asc
Description: OpenPGP digital signature


Re: [O] [PATCH] Adding features to contrib/lisp/org-collector.el (propview)

2011-10-28 Thread Jonathan BISSON
On 10/28/2011 04:32 PM, Bastien wrote:
 Hi Jonathan,
 
 Jonathan BISSON bissonjonat...@gmail.com writes:
 
 I did a small patch for org-collector.
 
 Thanks for this -- can you resend the patch by attaching 
 it, instead of inserting it in the body of the email?  It 
 is not readable here.
 
 Thanks!
 

Here it is,

121a122,123
 	(noquote (plist-get params :noquote))
 	(colnames (plist-get params :colnames))
132a135
 	  (setq stringformat (if noquote %s %S))
134c137,138
 		   (org-propview-collect cols conds match scope inherit)))
---
 		   (org-propview-collect cols stringformat conds match scope inherit 
 	 (if colnames colnames cols)) stringformat))
170c174
 (defun org-propview-collect (cols optional conds match scope inherit)
---
 (defun org-propview-collect (cols stringformat optional conds match scope inherit colnames)
194,195c198,199
   (mapcar (lambda (el) (format %S el)) cols) ;; output headers
   'hline) ;; 
---
   (if colnames colnames (mapcar (lambda (el) (format stringformat el)) cols))
'hline) ;; 
214c218
 (defun org-propview-to-table (results)
---
 (defun org-propview-to-table (results stringformat)
221c225
 	(mapcar (lambda (el) (format %S el)) row)))
---
 	(mapcar (lambda (el) (format stringformat el)) row)))


signature.asc
Description: OpenPGP digital signature


Re: [O] HTML Postamble is inside Content DIV

2011-04-30 Thread Jonathan BISSON
Sébastien Vauban wxhgmqzgwmuf@... writes:

 
 Hello,
 
 After a couple of tests, I've observed that the postamble is forced to be
 included *inside* the div content.
 
 Proof on Line 1764... These are the ending tags of every HTML page:
 
 #+begin_src emacs-lisp
   (unless body-only (insert \n/div\n/body\n/html\n))
 #+end_src
 
 ... the closing /div referring to the opening of content.
 
 Shouldn't it make sense to be able to insert something *out of* the content
 div?
 
I think so (and the same for preamble)!

I rewrote org-export-as-html and did a custom org-publish-org-to-html to call
it, in order to get them out off the content div (you can look at a first test
on my webpage http://www.bjonnh.net).
It's easy to do it I can send you my file if you are interested.


Cheers,

J.




Re: [O] Parsing org files with python

2011-04-23 Thread Jonathan BISSON

You have PyOrgMode also (https://github.com/bjonnh/PyOrgMode)







[O] Tools for working with Zotero and OrgMode

2011-04-22 Thread Jonathan BISSON
Hi,

1) Zotero-BibLaTeXToClipBoard-Firefox-module
I just started a new module for firefox, allowing one user to copy in
the clipboard bibtex elements for the current selection inside Zotero.
You just have to paste it to your bibtex file.
https://github.com/bjonnh/Zotero-BibLaTeXToClipBoard-Firefox-module

You would need this also as this module is based on this translator:

https://code.google.com/p/zotero-biblatex-export/

2) Zotero biblatex citation export

This should be inserted shortly in the zotero-biblatex-export repo. But
you can find it there for the moment :

http://www.bjonnh.net/BibLaTeX-cite.js

You just have to copy this one and the previous one (from the google
repo) inside your Zotero translators directory.

Using this and configuring Zotero to use it, I'm able to drag and drop
from Zotero to my Org document (or LaTeX) directly (it inserts
\cite{citationkey})

Hope it can help some of you.


Jonathan



signature.asc
Description: OpenPGP digital signature


Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-20 Thread Jonathan BISSON
Olivier Schwander olivier.schwander at chadok.info writes:

 
 Limitations 
 
   - Read-only (no org file modifications support)
   - No drawers parsing
   - No exporters
   - No formaters parsing (like ==, //, ** and so on, it 
 will wait for exporters)
   - No filtering support
 


Hi Olivier, nice to see a new project about org and python.

Maybe you should have a look at my project too: 

https://github.com/bjonnh/PyOrgMode

that supports reading and writing of org-files, drawers,…


Don't know if it can be of some help to you (or maybe just 
inspiring you).


Cheers,

Jonathan







Re: [O] [OT] Pomodoro for emacs

2011-04-19 Thread Jonathan BISSON
Marcelo de Moraes Serpa celoserpa at gmail.com writes:

 
 Hi list,
 
 I use Pomodoro to help keeping me focused, and right now I use Focus
 Booster on OSX.
 
 However, I just found http://kanis.fr/hg/lisp/ivan/pomodoro.el, which
 might be a good addition to the emacs PIM arsenal, haven't tried it
 yet, but wanted to spread the word :)
 
 Cheers,
 
 Marcelo.
 
 

Hi,

I use this one
: http://www.couchet.org/blog/index.php?post/2010/08/04/Pomodoro-et-org-mode

Nice and well integrated in orgmode.


Cheers,


Jonathan





[Orgmode] Publishing - Sitemap problem

2011-02-07 Thread Jonathan BISSON
Hi,

The sitemap generation when publishing a project does not take into
account a title change in a page.

I need to remove the org cache files (~/.org-timestamps/org-*) to get it
updated.

Is there a way to correct this behaviour (bug) ?

J.



signature.asc
Description: OpenPGP digital signature
___
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] (org-display-inline-images)

2011-02-06 Thread Jonathan BISSON
Hi,

I'm using inline images a lot in my org-files, but sometimes, the inline
image disappears and I need to do a  (org-display-inline-images) again.
I need to look in more details when does this really happen.

But what annoys me is that I added a : #+STARTUP: inlineimages, and it
doesn't seems to work…

Any ideas ?

Another nice thing would be a way to reduce the image size, just like
thumbnails. Do you think it can be done ?

J.



signature.asc
Description: OpenPGP digital signature
___
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: A python module for orgmode files

2010-12-14 Thread Jonathan BISSON
Charles Cave charles.cave at gmail.com writes:

 I wrote a Python Orgnode module at least a year ago.
 Have a look at this and feel free to adapt what you find
 of interest.  My module is designed to read an orgmode
 file into a list of Orgnode objects.  
 
 http://members.optusnet.com.au/~charles57/GTD/orgnode.html
 

Yes I have seen this project, but the way it was done doesn't suit what I am
looking for (totally object interface, possibility to add any kind of objects
type in Nodes, writing files). I made my module first for being able to write
org-mode files and it grows larger.

I hope we could find a way to get the best of each others solutions !

Feel free to tell me what you are using your module for to see how it could be
interfaced with my module (and which things need to be added).




___
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: A python module for orgmode files

2010-12-14 Thread Jonathan BISSON
Jeff Horn jrhorn424 at gmail.com writes:

 I think what Chris was referring to is the fact that you can write
 literate programs using org-mode and org-babel. You can mix
 documentation and code, and then run some nifty functions that
 separate them out. The advantage, of course, is that your source is
 self-documenting.
 
Yes, but an org file with babel is not python native. So I needed for one 
of my projects an orgmode translator that is totally python native.
org-babel is nice for orgfiles doing computations but not for software 
development.
 I suppose most people comment their code when they open-source a
 project, but I also suspect their are some real advantages to
 organizing your source code using org-mode's hierachies.
Yes, but I'm looking for a way to use org-mode kind of treating with 
text files
but with a native python file.
I need to look at this : 
http://tinyurl.com/2v26rsr


___
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: A python module for orgmode files

2010-12-14 Thread Jonathan BISSON
On 12/14/2010 03:15 PM, chris.m.mal...@gmail.com wrote:
  Jeff Horn gmail.com writes:
 
 What about tangling? When you tangle your org file, you get a source
 
 file for that language.
 
 
 
 Tangling is what I had in mind for my comment. It seems like an easy way
 to have literate programming...
 
 Chris
 
Wonderful, exactly what I was looking for !

So now, we can work with this org file :
https://github.com/bjonnh/PyOrgMode/raw/master/PyOrgMode.org

Need to work on HTML and LaTeX export also.

But it tangles correctly.

___
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: Announce: org-mode and thunderbird integration

2010-12-14 Thread Jonathan BISSON
Martin Svenson phromo at mail.com writes:

 
 I've successfully integrated org-capture with thunderbirdIt is very trivial,
but since I saw earlier posts on this: check
https://bitbucket.org/phromo/org-thunderbird/src/b6ac29949911/thund.jsIt has a
few limitations - works by org-mode shell links (see note in paste) - can't find
the email if it gets moved to another folder.Please post any improvements or
suggestions to me or on bitbucketRegards,Martin


Nice work, I was looking for that ! (I don't like the emacs mail clients)




___
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] A python module for orgmode files

2010-12-13 Thread Jonathan BISSON

Hi all,

A new project : A python module for orgmode files

https://github.com/bjonnh/PyOrgMode

Hope someone would find this useful/helpful.

You can also contribute as much as you wish/can ;)

The code is not really clean (I'm working on docstrings and cleaning-up) 
but should be usable. Please send the diff between your test file and 
the output (the included file test.org gives identical results, but it's 
not always the case) using the test.py test script.


This module works with Python 3.1 and 2.7.


Cheers

___
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] A python module for orgmode files

2010-12-13 Thread Jonathan BISSON

On 12/14/2010 01:03 AM, Chris Malone wrote:
 I guess the real question is: did you write the org-mode-parsing Python
 code using org-mode? ;-)

No but I was thinking that would be nice to fold classes and get TODO 
items (and even scheduled ones)
Maybe using # as a star. I don't know if it it possible to couple 
python-mode to org-mode


 Looks promising, and I'll see if there is anything I can contribute,
 although I am currently more familiar with Python than org-mode.

Thanks Jeff and Chris, I would be happy to see what can be done with this.


(I'm trying to follow the http://www.python.org/dev/peps/pep-0008/ 
Python Style Guide for the code to be clean and understandable)



J.

___
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] Automatic screenshot insertion

2010-11-18 Thread Jonathan BISSON
Here is a little function that allows a user to insert a screenshot 
easily. Only works on unix-like systems where ImageMagick is installed 
(adapt import to your screenshot program if needed).




(defun my-screenshot ()
Take a screenshot into a unique-named file in the current buffer file 
directory and insert a link to this file.


 (interactive)
 (setq filename
  (concat
   (make-temp-name
(file-name-directory (buffer-file-name))
   )
   .jpg
  )
 )

 (call-process import nil nil nil filename)
 (insert (concat [[ filename ]]))
 (org-display-inline-images)
)




Cheers,

___
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] Proposing a new way for org-get-level-face to behave (customizable)

2010-11-12 Thread Jonathan BISSON
On Fri, 2010-11-12 at 13:39 -0600, Carsten Dominik wrote:
 Ji Jonathan,
 
 thanks you for this, I have checked in a slightly modified version of  
 your patch.
 
 Thanks
 
 - Carsten
 
Hope this would be of some help. 

I was thinking about ways to add as much outlines as we wanted. Or ways
to have a cycling through a defined list of outlines (maybe I can start
by doing a cycling through defined elements (like looping through 4-8
only).
I'm looking to the code and git of org in order to understand a little
bit more the philosophy of the project.

Thanks !


___
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] Proposing a new way for org-get-level-face to behave (customizable)

2010-11-11 Thread Jonathan BISSON
Hi,

I needed to get my outline-level-9 and further to look at least like the
outline-level-8 and not cycling to outline-level-1 as my customization
for this one got a bigger face. And I don't want a child to be bigger
than its parent for visibility purpose.

So I'm proposing this (I could provide a patch but as I'm not using the
very last version of orgmode neither the git one, I thought it was
useless to do so):

(defcustom org-cycle-level-faces t
  If non-nil, level styles cycle after level org-n-level-faces, so
level org-n-level-faces+1 is styled like level 1. If nil, then all
levels =org-n-level-faces are styled like level org-n-level-faces
  :group 'org-appearance
  :type 'boolean)

(defun org-get-level-face (n)
  Get the right face for match N in font-lock matching of headlines.
  (setq org-l (- (match-end 2) (match-beginning 1) 1))
  (if org-odd-levels-only (setq org-l (1+ (/ org-l 2
  (if org-cycle-level-faces
  (setq org-f (nth (% (1- org-l) org-n-level-faces) org-level-faces))
  (setq org-f (nth (1- (if ( org-l org-n-level-faces) org-l
org-n-level-faces)) org-level-faces))
  )
  (cond
   ((eq n 1) (if org-hide-leading-stars 'org-hide org-f))
   ((eq n 2) org-f)
   (t (if org-level-color-stars-only nil org-f


Hope it will be of some interest for some of you.

Thanks to quicksilver on irc.freenode.net #org-mode for the help.


Cheers.


___
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] Proposing a new way for org-get-level-face to behave (customizable)

2010-11-10 Thread Jonathan BISSON
Hi,

I'm new to this list, and an 6-8 month (or so) user of org-mode.

I needed to get my outline-level-9 and further to look at least like the
outline-level-8 and not cycling to outline-level-1 as my customization
for this one got a bigger face. And I don't want a child to be bigger
than its parent for visibility purpose.

So I'm proposing this (I could provide a patch but as I'm not using the
very last version of orgmode neither the git one, I thought it was
useless to do so):

(defcustom org-cycle-level-faces t
  If non-nil, level styles cycle after level org-n-level-faces, so
level org-n-level-faces+1 is styled like level 1. If nil, then all
levels =org-n-level-faces are styled like level org-n-level-faces
  :group 'org-appearance
  :type 'boolean)

(defun org-get-level-face (n)
  Get the right face for match N in font-lock matching of headlines.
  (setq org-l (- (match-end 2) (match-beginning 1) 1))
  (if org-odd-levels-only (setq org-l (1+ (/ org-l 2
  (if org-cycle-level-faces
  (setq org-f (nth (% (1- org-l) org-n-level-faces) org-level-faces))
  (setq org-f (nth (1- (if ( org-l org-n-level-faces) org-l
org-n-level-faces)) org-level-faces))
  )
  (cond
   ((eq n 1) (if org-hide-leading-stars 'org-hide org-f))
   ((eq n 2) org-f)
   (t (if org-level-color-stars-only nil org-f


Hope it will be of some interest for some of you.

Thanks to quicksilver on irc.freenode.net #org-mode for the help.


Cheers.



___
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