Skip to content

fix(sefariasqlite): drop translator footnotes from Noda BiYehudah I, Orach Chaim - #100

Merged
kdroidFilter merged 1 commit into
masterfrom
fix/noda-biyehuda-translator-footnotes-439
Oct 8, 2026
Merged

kdroidFilter merged 1 commit into
masterfrom
fix/noda-biyehuda-translator-footnotes-439

Conversation

@kdroidFilter

Copy link
Copy Markdown
Owner

Problem

In Noda BiYehudah I, Orach Chaim, the reader shows long English passages inside the Hebrew text.

Cause

Sefaria takes this section from Harold Landa's edition. Its 60 footnotes are a translator's apparatus, not part of the printed sefer: English notes ("See note 47") and Hebrew sources followed by Sefaria's English translations. The importer inlined them as text.

Fix

  • stripSefariaFootnotes: removes footnote markers and bodies, matching nested <i> tags by depth.
  • Applied only to refs under Noda BiYehudah I, Orach Chaim, (TRANSLATOR_FOOTNOTE_REF_PREFIXES).
  • Footnotes elsewhere are kept: the author's own הגה״ה in the introduction, and the English bibliography of other books (Puah, Nishmat HaBayit, Tosefta Kifshutah…).

Tests

  • 3 new unit tests in SefariaCleanSefariaLineTest; :sefariasqlite:jvmTest passes.
  • Importer run on the real export: 0 lines with English text in Noda BiYehudah I, the introduction's הגה״ה is kept.

Fixes kdroidFilter/Zayit#439

…Orach Chaim

Sefaria takes this section from Harold Landa's edition, whose 60 footnotes
are a translator's apparatus: English notes ("See note 47") and Hebrew
sources followed by Sefaria's English translations. They were inlined as
text, so the reader saw long English passages inside the sefer.

Strip footnote markers and bodies (nested <i> tags handled) for refs under
"Noda BiYehudah I, Orach Chaim". Footnotes elsewhere are kept: the author's
own הגה״ה in the introduction, and the English bibliography of other books.

Fixes kdroidFilter/Zayit#439

Signed-off-by: Elie Gambache <elyahou.hadass@gmail.com>
@kdroidFilter
kdroidFilter merged commit 5a7a38b into master Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in Noda BiYehuda Mahadura Kamma, Orach Chaim section

1 participant