File tree 1 file changed +9
-3
lines changed
biblemulticonverter/src/main/java/biblemulticonverter/format
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -654,7 +654,7 @@ public void visitVerseSeparator() throws RuntimeException {
654
654
@ Override
655
655
public void visitLineBreak (LineBreakKind kind ) throws RuntimeException {
656
656
ensureInParagraph ();
657
- if (kind == LineBreakKind .PARAGRAPH )
657
+ if (interlinearTypes != null || kind == LineBreakKind .PARAGRAPH )
658
658
sb .append ("</p>\n <p>" );
659
659
else
660
660
sb .append ("<br />" );
@@ -692,8 +692,14 @@ else if (formatted.startsWith("H"))
692
692
@ Override
693
693
public Visitor <RuntimeException > visitDictionaryEntry (String dictionary , String entry ) throws RuntimeException {
694
694
ensureInParagraph ();
695
- System .out .println ("WARNING: Skipping unsupported dictionary entry" );
696
- suffixStack .add ("" );
695
+ String target = System .getProperty ("biblemulticonverter.dictionarytarget." + dictionary );
696
+ if (target != null ) {
697
+ sb .append ("<a href=\" " + target + entry + "\" >" );
698
+ suffixStack .add ("</a>" );
699
+ } else {
700
+ System .out .println ("WARNING: Skipping unsupported dictionary entry for " + dictionary );
701
+ suffixStack .add ("" );
702
+ }
697
703
return this ;
698
704
}
699
705
You can’t perform that action at this time.
0 commit comments