diff --git a/HISTORY.md b/HISTORY.md index 5aeebe4..53f128a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,6 +4,14 @@ Release History master ------ +0.5.1 (2020-08-31) +------------------ + +**Bugfixes** + +* [#48](https://github.com/vinayak-mehta/present/issues/48), [#54](https://github.com/vinayak-mehta/present/issues/54), [#52](https://github.com/vinayak-mehta/present/issues/52) Remove italics support temporarily. [#58](https://github.com/vinayak-mehta/present/pull/58) by Vinayak Mehta. +* [#55](https://github.com/vinayak-mehta/present/issues/55) Yank versions older than `0.5.0` from PyPI because they didn't have `python_requires>=3.7`. + 0.5.0 (2020-08-30) ------------------ diff --git a/README.md b/README.md index 021a4b9..12f50ae 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,6 @@ This is normal text This is **bold text** -This is *italic text* - This is `inline code` This is a [link](www.google.com) diff --git a/docs/codio.rst b/docs/codio.rst index ade49f2..6e47f19 100644 --- a/docs/codio.rst +++ b/docs/codio.rst @@ -84,7 +84,7 @@ You can add colors and styles to your output like this: color: green bold: true -Currently, these colors are supported: ``black``, ``red``, ``green``, ``yellow``, ``blue``, ``magenta``, ``cyan``, ``white``. In terms of styles, ``bold`` and ``underline`` are supported. (``italics`` coming soon!) +Currently, these colors are supported: ``black``, ``red``, ``green``, ``yellow``, ``blue``, ``magenta``, ``cyan``, ``white``. And these styles are supported: ``bold`` and ``underline``. (``italics`` coming soon!) You can add progress bars too. To add one, just set ``progress`` to ``true`` and add a progress character for your progress bar using ``progressChar``. The default ``progressChar`` is ``█``. diff --git a/docs/index.rst b/docs/index.rst index 6e245ea..4e12610 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -96,8 +96,6 @@ Text This is **bold text** - This is *italic text* - This is `inline code` This is a [link](www.google.com) diff --git a/examples/sample.md b/examples/sample.md index d2c79d7..a3f147c 100644 --- a/examples/sample.md +++ b/examples/sample.md @@ -38,8 +38,6 @@ This is normal text This is **bold text** -This is *italic text* - This is `inline code` This is a [link](www.google.com) diff --git a/present/__version__.py b/present/__version__.py index 77cbcb9..efbba5f 100644 --- a/present/__version__.py +++ b/present/__version__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -VERSION = (0, 5, 0) +VERSION = (0, 5, 1) PRERELEASE = None # alpha, beta or rc REVISION = None diff --git a/present/effects.py b/present/effects.py index 8a7af19..67a3e62 100644 --- a/present/effects.py +++ b/present/effects.py @@ -2,10 +2,6 @@ from random import randint, choice -import asciimatics.renderers - -asciimatics.renderers.ATTRIBUTES["5"] = 5 - from asciimatics.effects import Print from asciimatics.screen import Screen from asciimatics.effects import Stars, Matrix @@ -20,7 +16,6 @@ ATTRS = { - "italic": 5, "bold": Screen.A_BOLD, "normal": Screen.A_NORMAL, "reverse": Screen.A_REVERSE, diff --git a/present/markdown.py b/present/markdown.py index 2180eca..2123aab 100644 --- a/present/markdown.py +++ b/present/markdown.py @@ -319,7 +319,7 @@ class Emphasis(object): type: str = "emphasis" obj: dict = None fg: int = 0 - attr: int = 5 # Screen.A_ITALIC + attr: int = 2 # Screen.A_NORMAL normal: int = 2 # Screen.A_NORMAL bg: int = 7 @@ -328,11 +328,8 @@ def size(self): raise NotImplementedError def render(self): - return ( - f"${{{self.fg},{self.attr},{self.bg}}}" - + self.obj["children"][0]["text"] - + f"${{{self.fg},{self.normal},{self.bg}}}" - ) + # TODO: add italic support + return self.obj["children"][0]["text"] @dataclass diff --git a/present/slideshow.py b/present/slideshow.py index e705c20..4fd32f7 100644 --- a/present/slideshow.py +++ b/present/slideshow.py @@ -3,9 +3,9 @@ import time from asciimatics.scene import Scene +from asciimatics.screen import Screen from asciimatics.effects import Print from asciimatics.event import KeyboardEvent -from asciimatics.screen import Screen, _CursesScreen from asciimatics.exceptions import ResizeScreenError, StopApplication from .effects import ( @@ -88,14 +88,6 @@ def __init__(self, slides): def __enter__(self): self.screen = Screen.open() - - if isinstance(self.screen, _CursesScreen): - import curses - - self.screen.A_ITALIC = 5 - self.screen._a_italic = curses.tigetstr("sitm").decode("utf-8") - self.screen._ATTRIBUTES[self.screen.A_ITALIC] = self.screen._a_italic - return self def __exit__(self, type, value, traceback):