obnox/wiki2beamer.git
13 years agodisable caching of static html
Kai Dietrich [Wed, 29 Dec 2010 12:06:47 +0000 (13:06 +0100)]
disable caching of static html

13 years agolink html manpage
Kai Dietrich [Wed, 29 Dec 2010 12:04:59 +0000 (13:04 +0100)]
link html manpage

13 years agomore links and text for webpage
Kai Dietrich [Wed, 29 Dec 2010 11:47:18 +0000 (12:47 +0100)]
more links and text for webpage

13 years agoour shiny new web page
Kai Dietrich [Wed, 29 Dec 2010 11:08:29 +0000 (12:08 +0100)]
our shiny new web page

13 years agosome more text for the great example
Kai Dietrich [Sun, 21 Nov 2010 20:30:54 +0000 (21:30 +0100)]
some more text for the great example

13 years agoremoved spaces before \end{frame} in testcases
Kai Dietrich [Sun, 21 Nov 2010 18:45:23 +0000 (19:45 +0100)]
removed spaces before \end{frame} in testcases

13 years agofix test_subexp_footer (testcase had invalid latex as input)
Kai Dietrich [Sun, 21 Nov 2010 18:40:17 +0000 (19:40 +0100)]
fix test_subexp_footer (testcase had invalid latex as input)

13 years agoMerge branch 'new-example'
Kai Dietrich [Sun, 21 Nov 2010 18:32:25 +0000 (19:32 +0100)]
Merge branch 'new-example'

13 years agoadd FRAMEHEADER and FRAMEFOOTER example
Kai Dietrich [Sun, 21 Nov 2010 18:29:59 +0000 (19:29 +0100)]
add FRAMEHEADER and FRAMEFOOTER example

13 years agoAdded fragile usecase
Kai Dietrich [Sun, 21 Nov 2010 17:59:26 +0000 (18:59 +0100)]
Added fragile usecase

13 years agonew example for use as documentation and test-case
Kai Dietrich [Sun, 21 Nov 2010 17:34:42 +0000 (18:34 +0100)]
new example for use as documentation and test-case

13 years agoFixed bug with fragile as I reported here: http://www-user.tu-chemnitz.de/~mren/wiki2...
Volker Mische [Tue, 16 Nov 2010 10:59:41 +0000 (11:59 +0100)]
Fixed bug with fragile as I reported here: www-user.tu-chemnitz.de/~mren/wiki2beamer/doku.php?id=bug_reports

13 years agotest for bug converting fragile frames
Valentin Haenel [Sat, 20 Nov 2010 11:07:38 +0000 (12:07 +0100)]
test for bug converting fragile frames

As reported on:
  http://www-user.tu-chemnitz.de/~mren/wiki2beamer/doku.php?id=bug_reports
there is one space too much when closing a frame with the [fragile] option. This
causes pdflatex to bail out with the error message: "! File ended while scanning
use of \next."

13 years agoversion.minor++
Kai Dietrich [Mon, 15 Nov 2010 05:30:23 +0000 (06:30 +0100)]
version.minor++

13 years agofix the bug in the file inclusion
Valentin Haenel [Mon, 8 Nov 2010 13:53:42 +0000 (14:53 +0100)]
fix the bug in the file inclusion

As exposed by unit tests: the file inclusion was not correctly escaped for
'code' environment. This commit fixes that bug, unit tests now pass again.

13 years agorefactor unit test to expose bug in file inclusion
Valentin Haenel [Mon, 8 Nov 2010 13:46:47 +0000 (14:46 +0100)]
refactor unit test to expose bug in file inclusion

It seems like two of the unit tests were not quite right. The unit tests in
question test to see if file inclusion is disabled inside the 'code'
environment. The problem is that they checked this works by giving input to the
'convert2beamer' function, but there is never any file inclusion in this
function. As a result the unit tests passed, even though wiki2beamer would have
failed on real[TM] input. All the file inclusion takes place earlier in the
include_file_recursive function. The unit tests were refactored to first run the
include_file_recursive function, and then the convert2beamer. They now correctly
expose the bug.

13 years agoprepare metafiles for release
Kai Dietrich [Mon, 8 Nov 2010 06:11:37 +0000 (07:11 +0100)]
prepare metafiles for release

13 years agofix attribution
Kai Dietrich [Mon, 8 Nov 2010 05:55:53 +0000 (06:55 +0100)]
fix attribution

13 years agodocumenting -h --help and >>>include<<< behaviour
Kai Dietrich [Mon, 8 Nov 2010 05:41:24 +0000 (06:41 +0100)]
documenting -h --help and >>>include<<< behaviour

13 years agominor syntactic changes
Kai Dietrich [Sun, 7 Nov 2010 16:01:17 +0000 (17:01 +0100)]
minor syntactic changes

13 years agoupdate version and author information for setup
Kai Dietrich [Sun, 7 Nov 2010 16:00:31 +0000 (17:00 +0100)]
update version and author information for setup

13 years agofix test (actually >>>include<<< shouldn't work inside code environments)
Kai Dietrich [Sun, 7 Nov 2010 15:54:47 +0000 (16:54 +0100)]
fix test (actually >>>include<<< shouldn't work inside code environments)

13 years agoMerge remote branch 'esc/fix-include-files'
Kai Dietrich [Sun, 7 Nov 2010 15:26:11 +0000 (16:26 +0100)]
Merge remote branch 'esc/fix-include-files'

13 years agofixed attribution
Kai Dietrich [Sun, 7 Nov 2010 15:25:37 +0000 (16:25 +0100)]
fixed attribution

13 years agoplaying with LL(1) grammar
Kai Dietrich [Thu, 4 Nov 2010 20:46:15 +0000 (21:46 +0100)]
playing with LL(1) grammar

13 years agoproper error message for include loop
Valentin Haenel [Wed, 3 Nov 2010 18:38:56 +0000 (19:38 +0100)]
proper error message for include loop

13 years agoadapt test case for inclusion loops
Valentin Haenel [Mon, 1 Nov 2010 23:10:08 +0000 (00:10 +0100)]
adapt test case for inclusion loops

Instead of waiting for one seconde, we now check that an Exception is raised, if
a recursive loop in the file inclusion is detected. Of course the Exception
should be adapted, and the offending filename reported to the user!

13 years agoadapt test cases for new include_file_recursive
Valentin Haenel [Mon, 1 Nov 2010 23:06:44 +0000 (00:06 +0100)]
adapt test cases for new include_file_recursive

Since the new include_file_recursive works on a given input file, instead of on
a list of input lines, the test cases are adapted accordingly. Monkey patching
the file cache works great btw.

13 years agoremove redundant test case
Valentin Haenel [Mon, 1 Nov 2010 22:57:56 +0000 (23:57 +0100)]
remove redundant test case

This was checking the same condition as
test_include_file_recursive_honors_nowiki, but using strings instead of files.

13 years agodelete old include_files_recursive and activate new one
Valentin Haenel [Mon, 1 Nov 2010 22:57:10 +0000 (23:57 +0100)]
delete old include_files_recursive and activate new one

The old (and buggy) include_files_recursive is removed and the new and shiny
include_files is renamed to include_files_recursive to take its place.

13 years agoadapt test case for new include_file
Valentin Haenel [Mon, 1 Nov 2010 22:53:24 +0000 (23:53 +0100)]
adapt test case for new include_file

13 years agodocstring for new include_file
Valentin Haenel [Mon, 1 Nov 2010 22:52:19 +0000 (23:52 +0100)]
docstring for new include_file

13 years agoinclude_file has new semantics
Valentin Haenel [Mon, 1 Nov 2010 22:47:54 +0000 (23:47 +0100)]
include_file has new semantics

We remove the old include_file and rename include_filename -> include_file

13 years agoremove old test_files
Valentin Haenel [Mon, 1 Nov 2010 23:44:27 +0000 (00:44 +0100)]
remove old test_files

These are no longer needed since we have the shiny new file cacheā„¢.

13 years agoactivate file cache for testing
Valentin Haenel [Mon, 1 Nov 2010 22:45:23 +0000 (23:45 +0100)]
activate file cache for testing

Before adapting the tests we start using the file cache.

13 years agoactivate new recursive include
Valentin Haenel [Mon, 1 Nov 2010 22:33:49 +0000 (23:33 +0100)]
activate new recursive include

We activate the new recursive include, renaming and removing the old code will
be done late.

13 years agoactivate file cache when including files recursively
Valentin Haenel [Mon, 1 Nov 2010 22:33:20 +0000 (23:33 +0100)]
activate file cache when including files recursively

13 years agolayz cache for file content
Valentin Haenel [Mon, 1 Nov 2010 22:16:48 +0000 (23:16 +0100)]
layz cache for file content

In preperation for including content from stdin and from files, as well as easy
testing using monkey patching, a lazy cache for file content has been added.
By default get_lines_from_cache should be used, this will either return the
lines in a file if it has already been loaded, or load the file from disk.

It can also be used to initialise a file cache, using pretend names and content,
using add_lines_to_cache. This is great for monkey patching content into the
cache without actually having any files on disk. A method clear_file_cache is
also provided, just in case.

As a side node, this also means that for the use case of multiple includes, the
code should be marginally faster since the file need not be loaded from disk
twice.

13 years agoremove call to include_file_recursive
Valentin Haenel [Tue, 2 Nov 2010 00:03:26 +0000 (01:03 +0100)]
remove call to include_file_recursive

In preperation for switching to the new algorithm the call to
include_file_recursive in the conversion has been deactivated. Warning this
breaks unit tests.

13 years agonew function to enable recursive inclusion
Valentin Haenel [Tue, 2 Nov 2010 00:03:19 +0000 (01:03 +0100)]
new function to enable recursive inclusion

As opposed to the old include_file_recursive, this one keeps track of which
files have been included, and can thus detect loops. It works using a stack of
included files and a depth first search. If a loop is detected an Exception is
raised. It will later replace the old include_file_recursive.

13 years agofunction to just extract the filename
Valentin Haenel [Mon, 1 Nov 2010 22:07:36 +0000 (23:07 +0100)]
function to just extract the filename

Instead of returning the lines contained in the file like the current
include_file does, include_filename returns the filename instead. This will
replace include_file later.

13 years agoadded test for recursive file inclusion detection
Kai Dietrich [Sat, 30 Oct 2010 17:57:56 +0000 (19:57 +0200)]
added test for recursive file inclusion detection

13 years agowhoops, now really renamed
Kai Dietrich [Sat, 30 Oct 2010 16:15:36 +0000 (18:15 +0200)]
whoops, now really renamed

13 years agorenamed include_files to include_file_recursive
Kai Dietrich [Sat, 30 Oct 2010 16:13:58 +0000 (18:13 +0200)]
renamed include_files to include_file_recursive

13 years agomore tests for file inclusion
Kai Dietrich [Sat, 30 Oct 2010 16:08:52 +0000 (18:08 +0200)]
more tests for file inclusion

13 years agorefactored and added some tests
Kai Dietrich [Sat, 30 Oct 2010 12:39:11 +0000 (14:39 +0200)]
refactored and added some tests

13 years agoadded documentation and improved makefile for manpage
Kai Dietrich [Sat, 30 Oct 2010 12:38:36 +0000 (14:38 +0200)]
added documentation and improved makefile for manpage

13 years agoincrease version number after merge
Kai Dietrich [Sat, 30 Oct 2010 08:47:23 +0000 (10:47 +0200)]
increase version number after merge

13 years agoMerge remote branches 'esc/fix-cmdline', 'esc/fix-escape' and 'esc/include-files'
Kai Dietrich [Sat, 30 Oct 2010 08:35:51 +0000 (10:35 +0200)]
Merge remote branches 'esc/fix-cmdline', 'esc/fix-escape' and 'esc/include-files'

13 years agotests for recursive includes
Valentin Haenel [Fri, 22 Oct 2010 18:47:58 +0000 (20:47 +0200)]
tests for recursive includes

13 years agorecursive includes
Valentin Haenel [Fri, 22 Oct 2010 18:47:42 +0000 (20:47 +0200)]
recursive includes

13 years agoactive file inclusion
Valentin Haenel [Fri, 22 Oct 2010 16:01:17 +0000 (18:01 +0200)]
active file inclusion

13 years agofunction to replace all occurrences of file inclusion in a file
Valentin Haenel [Fri, 22 Oct 2010 16:01:07 +0000 (18:01 +0200)]
function to replace all occurrences of file inclusion in a file

13 years agotest for correct escape in nowiki env
Valentin Haenel [Fri, 22 Oct 2010 16:00:06 +0000 (18:00 +0200)]
test for correct escape in nowiki env

13 years agoimplementation for including files
Valentin Haenel [Fri, 22 Oct 2010 15:59:43 +0000 (17:59 +0200)]
implementation for including files

13 years agofeature: file inclusion
Valentin Haenel [Fri, 22 Oct 2010 15:57:46 +0000 (17:57 +0200)]
feature: file inclusion

Syntax should be >>>filename<<<, and w2b should replace this with the lines from
the respective file.

This is the test for such a function.

13 years agousage message: multiple input files (or none)
Julius Plenz [Mon, 18 Oct 2010 17:28:26 +0000 (19:28 +0200)]
usage message: multiple input files (or none)

13 years agomust call joinLines() on stdin
Julius Plenz [Mon, 18 Oct 2010 16:59:10 +0000 (18:59 +0200)]
must call joinLines() on stdin

13 years agoadd ability to read from stdin
Valentin Haenel [Mon, 18 Oct 2010 16:22:35 +0000 (18:22 +0200)]
add ability to read from stdin

13 years agohandle multiple input files
Valentin Haenel [Mon, 18 Oct 2010 16:20:05 +0000 (18:20 +0200)]
handle multiple input files

13 years agorefactor the command-line-interface to use optparse
Valentin Haenel [Mon, 18 Oct 2010 16:11:50 +0000 (18:11 +0200)]
refactor the command-line-interface to use optparse

Optparse is in the standard library, and can be used in 2.4, 2.5 and 2.6.
However it will be superseded by 'argparse' module in 2.7.

The code is a bit cleaner now, and we get the help and version message for free.
However one difference is that in case no arguments are supplied the exit code
is '2', instead of '-1'.

13 years agoadapt for alerts
Valentin Haenel [Fri, 15 Oct 2010 20:33:12 +0000 (22:33 +0200)]
adapt for alerts

13 years agorefactor into a mini_parser
Valentin Haenel [Fri, 15 Oct 2010 20:32:10 +0000 (22:32 +0200)]
refactor into a mini_parser

13 years agosed the test code from typewriter to alert
Valentin Haenel [Fri, 15 Oct 2010 20:28:16 +0000 (22:28 +0200)]
sed the test code from typewriter to alert

13 years agonew transform_typewriter code
Valentin Haenel [Fri, 15 Oct 2010 20:24:58 +0000 (22:24 +0200)]
new transform_typewriter code

13 years agoadd some more exotic use cases
Valentin Haenel [Fri, 15 Oct 2010 20:22:05 +0000 (22:22 +0200)]
add some more exotic use cases

13 years agosimple test for desired escape behaviour
Valentin Haenel [Fri, 15 Oct 2010 20:10:32 +0000 (22:10 +0200)]
simple test for desired escape behaviour

13 years agowrite unit tests for transform_typewriter
Valentin Haenel [Fri, 15 Oct 2010 20:03:38 +0000 (22:03 +0200)]
write unit tests for transform_typewriter

14 years agogrammar rewrite from scratch, still not finished
Kai Dietrich [Sun, 18 Oct 2009 13:39:44 +0000 (15:39 +0200)]
grammar rewrite from scratch, still not finished

14 years agomore grammar
Kai Dietrich [Sat, 17 Oct 2009 23:02:16 +0000 (01:02 +0200)]
more grammar

14 years agofirst sketches for a LL(1) grammar for yapps
Kai Dietrich [Sat, 17 Oct 2009 21:11:31 +0000 (23:11 +0200)]
first sketches for a LL(1) grammar for yapps

14 years agochanged version numbering from 0.81 to 0.8.1
Kai Dietrich [Fri, 16 Oct 2009 19:13:47 +0000 (21:13 +0200)]
changed version numbering from 0.81 to 0.8.1

14 years agoVersion Tag
Kai Dietrich [Fri, 16 Oct 2009 18:19:22 +0000 (20:19 +0200)]
Version Tag

14 years agoVersion Tag
Kai Dietrich [Fri, 16 Oct 2009 18:17:45 +0000 (20:17 +0200)]
Version Tag

14 years agotypos and version tags
Kai Dietrich [Fri, 16 Oct 2009 18:09:41 +0000 (20:09 +0200)]
typos and version tags

14 years agoversion number updated
Kai Dietrich [Fri, 16 Oct 2009 17:59:34 +0000 (19:59 +0200)]
version number updated

14 years agoChangeLog for release
Kai Dietrich [Fri, 16 Oct 2009 17:56:24 +0000 (19:56 +0200)]
ChangeLog for release

14 years agosome more tests
Kai Dietrich [Fri, 16 Oct 2009 17:46:49 +0000 (19:46 +0200)]
some more tests

14 years agouncover and only (+<2->{} or -<2->{})
Kai Dietrich [Thu, 15 Oct 2009 22:06:11 +0000 (00:06 +0200)]
uncover and only (+<2->{} or -<2->{})

14 years agoaddedd \vspace syntax: --length--
Kai Dietrich [Thu, 15 Oct 2009 17:17:32 +0000 (19:17 +0200)]
addedd \vspace syntax: --length--

14 years agowiki2beamer 0.81 (select single frames with !=== title ====)
Kai Dietrich [Thu, 15 Oct 2009 15:07:50 +0000 (17:07 +0200)]
wiki2beamer 0.81 (select single frames with !=== title ====)

14 years agoexact size, shorter description
Kai Dietrich [Sun, 19 Jul 2009 16:17:50 +0000 (18:17 +0200)]
exact size, shorter description

14 years agoMakefile for deb package improved
Kai Dietrich [Sun, 19 Jul 2009 14:09:22 +0000 (16:09 +0200)]
Makefile for deb package improved

14 years agoDebian packaging env
Kai Dietrich [Sun, 19 Jul 2009 13:31:11 +0000 (15:31 +0200)]
Debian packaging env

14 years agoThe Gentoo-ebuild for wiki2beamer from sping
Kai Dietrich [Sun, 19 Jul 2009 13:18:19 +0000 (15:18 +0200)]
The Gentoo-ebuild for wiki2beamer from sping

14 years agoMakefile builds wiki2beamer.html via man2html
Kai Dietrich [Sat, 18 Jul 2009 16:50:09 +0000 (18:50 +0200)]
Makefile builds wiki2beamer.html via man2html

14 years agomissing release-date in ChangeLog
Kai Dietrich [Fri, 3 Jul 2009 09:50:52 +0000 (11:50 +0200)]
missing release-date in ChangeLog

14 years agosmall changelog fix
Kai Dietrich [Fri, 3 Jul 2009 07:51:08 +0000 (09:51 +0200)]
small changelog fix

14 years agoPreperations for 0.8 release
Kai Dietrich [Fri, 3 Jul 2009 07:46:58 +0000 (09:46 +0200)]
Preperations for 0.8 release

14 years agofix for failing transformation after bullet lists
Kai Dietrich [Fri, 3 Jul 2009 07:33:57 +0000 (09:33 +0200)]
fix for failing transformation after bullet lists

14 years agotest for failing transformation after bullet lists
Kai Dietrich [Fri, 3 Jul 2009 07:32:55 +0000 (09:32 +0200)]
test for failing transformation after bullet lists

14 years agodoooh, python 2.4/5 bug fixed
Kai Dietrich [Mon, 15 Jun 2009 15:12:58 +0000 (17:12 +0200)]
doooh, python 2.4/5 bug fixed

14 years agodocumentation -> GNU FDL
Kai Dietrich [Fri, 12 Jun 2009 09:45:00 +0000 (11:45 +0200)]
documentation -> GNU FDL

14 years agoman generation improvements
Kai Dietrich [Fri, 12 Jun 2009 09:14:21 +0000 (11:14 +0200)]
man generation improvements

14 years agoGPLv2 -> GPLv2 or later
Kai Dietrich [Fri, 12 Jun 2009 08:23:13 +0000 (10:23 +0200)]
GPLv2 -> GPLv2 or later

14 years agofinal minor changes for 0.7 release
Kai Dietrich [Sat, 6 Jun 2009 07:28:55 +0000 (09:28 +0200)]
final minor changes for 0.7 release

14 years agolicense filename changed
Kai Dietrich [Fri, 5 Jun 2009 22:04:04 +0000 (00:04 +0200)]
license filename changed

14 years agofurther moves to cleanup files
Kai Dietrich [Fri, 5 Jun 2009 21:56:09 +0000 (23:56 +0200)]
further moves to cleanup files

14 years agoexamples moved to doc
Kai Dietrich [Fri, 5 Jun 2009 21:47:21 +0000 (23:47 +0200)]
examples moved to doc

14 years agoPrepare for distributions
Kai Dietrich [Fri, 5 Jun 2009 16:31:26 +0000 (18:31 +0200)]
Prepare for distributions