summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-21Handle LF-only ansi artJames E. Blair
Most ansi-art has CRLF, but in case we get input with only LF, treat LF as "move to beginning of next line". That's partially redundant with CR, which is "move to beginning of current line", but I haven't seen any ansi art which uses LF to only mean "move to this position on next line", so the new interpretation should be safe and work for both examples seen.
2017-05-02Use getFlowedText in line block elementsJames E. Blair
A line block is essentially a kind of block quote. A '|' at the start of a line forces a new line. A subsequent line starting with a space is a continuation of the previous line. Indentation within a line block creates a nested line block. When the line block (or series of nested blocks) is finished, there should be a blank line separating it from the next element. Sphinx produces a 'line_block' event for each block (that is, series of lines, or nested group of lines), and a 'line' event for each line within that block. Currently, each of those line events accumulates text and then uses the formatted version of that text when creating urwid widgets. However, in the case of a continuation line, both lines from the source file appear in the same line event. This suggests that the correct action is to use the flowed version of the text we accumulate. In other words, the current behavior erroneously preserves the formatting of continuation lines, whereas by spec, it should not. The switch to getFlowedText corrects this. Additionally, because we are ignoring line_block events, it was not possible to create nested line_blocks. By treating them in the same manner as block quotes, where we put the contents inside of an urwid widget with left-hand padding, the resulting line block groupings are nested as expected.
2017-05-02Fix encoding error in rst.py test functionJames E. Blair
2017-05-02Add format-patch instructionJames E. Blair
2016-11-20Fail gracefully if jp2a is not installedJames E. Blair
2016-11-20Fail nicer if figlet/cowsay not installedJames E. Blair
If figlet or cowsay are not installed, print a warning at startup and continue.
2016-11-20Include navigation hints in demo presentationRoland Hieber
This minimizes confusion for new users who are used to different shortkeys (like Space for next slide, Esc to quit).
2016-11-20Proof-read demo presentationRoland Hieber
2016-11-20Fix loading images:Toshio Kuratomi
* images without exif data are now assumed to be in the correct orientation instead of raising an exception. * Images are now converted from their color mode to RGBA so they can be saved as JPEG.
2016-11-20Example using tree output and fix for the utf-8 characters that tree usesToshio Kuratomi
2016-11-20Allow scaling of imagesToshio Kuratomi
2015-10-27Pin PillowSpencer Krum
2015-08-14Fix setting of default transitionToshio Kuratomi
2015-07-25Update Git URL and add contributing docs0.2.0James E. Blair
Gitorious is gone, so update the upstream git URL and add a section on contributing.
2015-07-25Add a tilt transitionJeremy Stanley
The tilt transition is like pan, only vertical instead of horizontal.
2015-07-25Use the q key to quit gracefullyJeremy Stanley
Relying on ctrl-C user interrupt to exit leaves the terminal in a dirty state, and potentially unusable. Add the ability to exit gracefully by pressing the q key.
2015-07-25Use configured transition durationJeremy Stanley
When a duration is passed as a parameter into the Transition instantiation, use it.
2015-01-26README.rst: fix typo0.1.1Chris Packham
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
2015-01-14Add source location to README0.1.0James E. Blair
2015-01-10Add support for bright bg colors in ansi parserJames E. Blair
2015-01-09Initial commitJames E. Blair