From: Radek Czajka Date: Thu, 23 Dec 2021 11:57:55 +0000 (+0100) Subject: numeracja in epub X-Git-Tag: 2.3.3 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/bc7e9351bc22788218e988c188defdbdfbe12fd8 numeracja in epub --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd7960..0366bf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ This document records all notable changes to Librarian. +## 2.3.3 (2021-12-23) + +### Added: +- Line numbering reset with numeracja. + + ## 2.3.2 (2021-12-21) ### Fixed: diff --git a/setup.py b/setup.py index 44537a7..d3c4afe 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='2.3.2', + version='2.3.3', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com', diff --git a/src/librarian/elements/__init__.py b/src/librarian/elements/__init__.py index c934299..6efd725 100644 --- a/src/librarian/elements/__init__.py +++ b/src/librarian/elements/__init__.py @@ -1,6 +1,7 @@ from lxml import etree from . import (blocks, comments, drama, figures, footnotes, front, headers, - masters, paragraphs, poetry, ref, root, separators, styles, themes) + masters, paragraphs, poetry, ref, root, separators, styles, themes, + tools) WL_ELEMENTS = { @@ -115,6 +116,8 @@ WL_ELEMENTS = { "animacja": figures.Animacja, "ilustr": figures.Ilustr, + "numeracja": tools.Numeracja, + # Section "wywiad_pyt": blocks.WywiadPyt, "wywiad_odp": blocks.WywiadOdp, diff --git a/src/librarian/elements/tools/__init__.py b/src/librarian/elements/tools/__init__.py new file mode 100644 index 0000000..1e9d53f --- /dev/null +++ b/src/librarian/elements/tools/__init__.py @@ -0,0 +1,6 @@ +from ..base import WLElement + + +class Numeracja(WLElement): + pass +