Re: viewrendered - file not found

2011-10-29 Thread lewis
Edward, I updated viewrendered.py replaced: fn = fn.strip() with fn = fn.strip() old_path = g.os_path_finalize_join(g.app.loadDir,fn) and replaced ok = g.os_path_exists(path) with ok = g.os_path_exists(path) g.trace('old_path: %s\nnew_path: %s' % ( repr(old_path),repr(path))) For b

Re: viewrendered - file not found

2011-10-29 Thread lewis
Edward, The filename isn't bad. I used \C:Users\Lewisn\Downloads\introducing- creo_5mb.wmv as a second example of the problem. Maybe I misled you by using a different example. The text "Movie file not found: C:\Python32\Lib\site-packages\leo- editor\leo\core\" is the common first section of the e

viewrendered doesn't render reStructuredText math

2011-10-29 Thread jireva
Docutils math directives (http://docutils.sourceforge.net/docs/ref/rst/ directives.html#math) render as literal LaTeX code which should be a fall back (see: http://docutils.sourceforge.net/docs/user/config.html#math-output). The MathJax output works very nicely, and MathML works too (though it ha

Re: Any leo plugin that can import HTML code into a tree?

2011-10-29 Thread zpcspm
On Oct 29, 7:57 pm, "Edward K. Ream" wrote: > On Sat, Oct 29, 2011 at 6:28 AM, Edward K. Ream wrote: > > >> error: import command did not import @file data.html perfectly > >> first mismatched line: 272 > > [snip] > > > Somehow the second line uses Leo's  strange -4 convention for > > repres

Re: Any leo plugin that can import HTML code into a tree?

2011-10-29 Thread Edward K. Ream
On Oct 28, 9:20 pm, zpcspm wrote: > 1. Why are there redundant values (uppercase and lowercase) in this > setting? Fixed on the trunk. > 2. Is it possible to have an alternative value for this setting. leoSettings.leo now contains two separate settings: @data import_html_tags @data

Re: Caution: fixed colorizer bugs by changing g.importFromPath

2011-10-29 Thread Edward K. Ream
On Oct 28, 8:02 pm, "Edward K. Ream" wrote: > I also fixed another bug related to syntax coloring: the colorer now lowers > tag names passed in by the mode files, so "MARKUP" is equivalent to "markup". This fix disabled some Leo-specific colorizing. The second fix is on the trunk at rev 4679.

Re: Any leo plugin that can import HTML code into a tree?

2011-10-29 Thread Edward K. Ream
On Sat, Oct 29, 2011 at 6:28 AM, Edward K. Ream wrote: >> error: import command did not import @file data.html perfectly >> first mismatched line: 272 [snip] > Somehow the second line uses Leo's  strange -4 convention for > representing underindented lines. Please send me a small .html fil

Re: Any leo plugin that can import HTML code into a tree?

2011-10-29 Thread Edward K. Ream
On Fri, Oct 28, 2011 at 9:20 PM, zpcspm wrote: > error: import command did not import @file data.html perfectly > first mismatched line: 272 [snip] >  272 u'\t\t cellpadding="0">\t\t\t\n' >  272 u'             cellpadding="0">-4\t\t\n' It's hard to see as shown above, but the differences a

Re: Any leo plugin that can import HTML code into a tree?

2011-10-29 Thread Edward K. Ream
On Oct 29, 5:51 am, "Edward K. Ream" wrote: > > 2. Is it possible to have an alternative value for this setting > > (commented, so it won't interfere with the default one) in > > leoSettings.leo, that would contain all HTML tags? Here is the list, according to w3schools.com Except for the fir

Re: Any leo plugin that can import HTML code into a tree?

2011-10-29 Thread Edward K. Ream
On Fri, Oct 28, 2011 at 9:20 PM, zpcspm wrote: > 1. Why are there redundant values (uppercase and lowercase) in this > setting? I know that XML tags are case sensitive, but HTML tags are > not. Having to double each HTML tag is slightly inconvenient. Good question. I suspect it is a case of the