Skip to content

Commit

Permalink
fix for reference
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao committed Mar 12, 2014
1 parent 244764f commit ed2ecfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/reader.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ sup.footnote, sup.crossreference { font-weight: normal }
.introduction .io1 { background-color: #f2f2f2; font-size: 0.8em; margin: 0; padding: 8px 5px 8px 20px; }
a.notelink, .footnote a, .crossreference a { text-decoration: none; color: #2c96dd; }
@font-face { font-family: 'annotation'; src: url('annotation.svg') format('svg'); }
a.notelink { font-family: "annotation"; }
a.notelink, sup.footnote, sup.crossreference { font-family: "annotation"; }
a.notelink { padding: 0 0.2em }
img.note { height: 1em }
body { background-color: white; color: black; }
.nightmode { background-color: black; color: white; }
Expand Down
2 changes: 1 addition & 1 deletion assets/reader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/me/piebridge/bible/Chapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ protected void showAnnotation(String link, String annotation) {
} else if (link.contains("!x.") || link.startsWith("c")) {
isCross = true;
title = getString(R.string.xlink);
annotation = annotation.replaceAll("^.*?/passage/\\?search=([^&]*?)&.*?$", "$1").replaceAll(",", ";");
}
// <span verse_id="Sir.2.1" id="Sir.2.1!f.1" class="note f"><span class="fr">2:1–11</span><span class="ft">Serving the Lord is not without its trials (v. 1); but no matter what happens, the genuine believer will remain sincere, steadfast, and faithful (vv. 2–3). Misfortune and humiliation are means of purification to prove one’s worth (vv. 4–5). Ben Sira believed that patience and unwavering trust in God are ultimately rewarded with the benefits of God’s mercy and of lasting joy (vv. 6–11).</span></span>
annotation = annotation.replaceAll("<span class=\"fr\">(.*?)</span>", "<strong>$1&nbsp;</strong>");
annotation = annotation.replaceAll("<span class=\"xo\">(.*?)</span>", "");
final AlertDialog dialog = new AlertDialog.Builder(Chapter.this).setTitle(title)
Expand Down

0 comments on commit ed2ecfc

Please sign in to comment.