Skip to content

Commit c1b51e9

Browse files
committed
MyBibleZone: support noteasfootnote on export
This is the inverse of 5285171, see #92. Fixes #89
1 parent c6a27c0 commit c1b51e9

File tree

1 file changed

+7
-0
lines changed
  • biblemulticonverter-sqlite/src/main/java/biblemulticonverter/sqlite/format

1 file changed

+7
-0
lines changed

biblemulticonverter-sqlite/src/main/java/biblemulticonverter/sqlite/format/MyBibleZone.java

+7
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,8 @@ public Visitor<IOException> visitSpeaker(String labelOrStrongs) throws IOExcepti
10551055

10561056
private static class MyBibleVerseVisitor extends AbstractNoCSSVisitor<IOException> {
10571057

1058+
private final boolean noteAsFootnote = Boolean.getBoolean("mybiblezone.note.asfootnote");
1059+
10581060
private final StringBuilder builder;
10591061
private final List<String> suffixStack = new ArrayList<>();
10601062
private final Set<String> unsupportedFeatures;
@@ -1112,6 +1114,11 @@ public void visitText(String text) throws RuntimeException {
11121114

11131115
@Override
11141116
public Visitor<IOException> visitFootnote(boolean ofCrossReferences) throws IOException {
1117+
if (noteAsFootnote) {
1118+
builder.append("<n>");
1119+
suffixStack.add("</n>");
1120+
return this;
1121+
}
11151122
lastFootnote++;
11161123
MyBibleHTMLVisitor fnv = new MyBibleHTMLVisitor(unsupportedFeatures, "in footnote");
11171124
if (ofCrossReferences) {

0 commit comments

Comments
 (0)