mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-21 23:48:18 -05:00
Slight change to the format of the Divine Name
This commit is contained in:
parent
caf2227555
commit
bb415d2d3d
@ -3,7 +3,6 @@
|
||||
*/
|
||||
package org.bspeice.minimalbible.service.format.osisparser
|
||||
|
||||
import com.google.gson.Gson
|
||||
import org.crosswire.jsword.passage.Verse
|
||||
import java.util.ArrayList
|
||||
|
||||
@ -15,13 +14,4 @@ data class VerseContent(val v: Verse,
|
||||
val verseNum: Int = v.getVerse(),
|
||||
val chapterTitle: String = "",
|
||||
val paraTitle: String = "",
|
||||
val references: MutableList<VerseReference> = ArrayList(),
|
||||
val content: String = "") {
|
||||
|
||||
// Gson is used mostly for serializing the verses
|
||||
public val json: String
|
||||
get() = Gson().toJson(this)
|
||||
|
||||
public fun appendContent(content: String): VerseContent =
|
||||
this.copy(this.v, content = this.content + content)
|
||||
}
|
||||
val references: MutableList<VerseReference> = ArrayList()) {}
|
@ -14,6 +14,6 @@ class DivineHandler() : TagHandler {
|
||||
|
||||
fun buildDivineName(chars: String) =
|
||||
listOf(AppendArgs(chars take 1, null),
|
||||
AppendArgs(chars drop 1, RelativeSizeSpan(.9f))
|
||||
AppendArgs((chars drop 1).toUpperCase(), RelativeSizeSpan(.8f))
|
||||
)
|
||||
}
|
@ -10,8 +10,6 @@ import android.text.style.CharacterStyle
|
||||
|
||||
trait TagHandler {
|
||||
fun render(builder: SpannableStringBuilder, info: VerseContent, chars: String)
|
||||
|
||||
|
||||
}
|
||||
|
||||
data class AppendArgs(val text: String, val span: Any?) {
|
||||
|
Loading…
Reference in New Issue
Block a user