From f164694b5e7ad5ed5f6d95743f9259bd3a9292bd Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 20 Nov 2024 14:55:31 +0100 Subject: [PATCH 1/1] Basic biblical tools. --- src/librarian/elements/__init__.py | 7 +++++- src/librarian/elements/footnotes/__init__.py | 8 +++++++ .../locale/pl/LC_MESSAGES/messages.mo | Bin 659 -> 717 bytes .../locale/pl/LC_MESSAGES/messages.po | 20 +++++++++++------- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/librarian/elements/__init__.py b/src/librarian/elements/__init__.py index 0191ae5..affcb9e 100644 --- a/src/librarian/elements/__init__.py +++ b/src/librarian/elements/__init__.py @@ -79,6 +79,7 @@ WL_ELEMENTS = { "pe": footnotes.PE, "pr": footnotes.PR, "pt": footnotes.PT, + "ptrad": footnotes.PTrad, "ref": ref.Ref, @@ -127,10 +128,14 @@ WL_ELEMENTS = { "rownolegle": tools.Rownolegle, "tab": tools.Tab, - # Section "wywiad_pyt": blocks.WywiadPyt, "wywiad_odp": blocks.WywiadOdp, + # Biblical + "werset": bible.Werset, + "sekcja_petucha": bible.Petucha, + "sekcja_stuma": bible.Stuma, + # Inline MathML, should really be namespaced. "mrow": styles.MRow, "mi": styles.M, diff --git a/src/librarian/elements/footnotes/__init__.py b/src/librarian/elements/footnotes/__init__.py index a94b968..a342e05 100644 --- a/src/librarian/elements/footnotes/__init__.py +++ b/src/librarian/elements/footnotes/__init__.py @@ -134,3 +134,11 @@ class PE(Footnote): def qualifier(self): _ = self.gettext return _("source editor's footnote") + + +class PTrad(Footnote): + """Przypis tradycyjny.""" + @property + def qualifier(self): + _ = self.gettext + return _("traditional footnote") diff --git a/src/librarian/locale/pl/LC_MESSAGES/messages.mo b/src/librarian/locale/pl/LC_MESSAGES/messages.mo index 1246851f96253d07d1b6cd4f2ff5f52fa1b8b93a..aa1ab3dfa40ddfb86633160d8f71dccabd23f838 100644 GIT binary patch delta 286 zcmbQtdX}~Ro)F7a1|Z-7Vi_Qg0b*_-o&&@nZ~}-qf%qg43j*Zens(A_D*s CSuU*r delta 241 zcmX@hI+?Zpo)F7a1|VPuVi_O~0b*_-?g3&D*a5_xK)e%(1%dc5l)eh2C4l%j5c2{t z10w^2D3Ia<(qcfY0>m6ZzBLmAg8-0r0n$Q1IuuBQ%*g=KYzz!~3{_BpMj#E;0|r0| z1|S#gC}xNd0}F_rxHoLF24j+dfv%x}u7SCNp^=rLp|*k1\n" "Language-Team: \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" +"X-Generator: Poedit 3.4.2\n" -#: src/librarian/builders/html.py:94 +#: src/librarian/builders/html.py:136 msgid "translated by" msgstr "tłum." -#: src/librarian/builders/html.py:118 +#: src/librarian/builders/html.py:157 msgid "Footnotes" msgstr "Przypisy" -#: src/librarian/elements/footnotes/__init__.py:111 +#: src/librarian/elements/footnotes/__init__.py:112 msgid "author's footnote" msgstr "przypis autorski" -#: src/librarian/elements/footnotes/__init__.py:119 +#: src/librarian/elements/footnotes/__init__.py:120 msgid "translator's footnote" msgstr "przypis tłumacza" -#: src/librarian/elements/footnotes/__init__.py:127 +#: src/librarian/elements/footnotes/__init__.py:128 msgid "editor's footnote" msgstr "przypis redakcyjny" -#: src/librarian/elements/footnotes/__init__.py:135 +#: src/librarian/elements/footnotes/__init__.py:136 msgid "source editor's footnote" msgstr "przypis edytorski" + +#: src/librarian/elements/footnotes/__init__.py:144 +msgid "traditional footnote" +msgstr "przypis tradycyjny" -- 2.20.1