package yuku.alkitab.yes2.model;

import java.nio.ByteBuffer;
import java.nio.charset.Charset;

import yuku.bintex.BintexWriter;

public class Text implements SectionContent {
	private final Charset charset;
	public String[] xisi;

	public Text(Charset charset) {
		this.charset = charset;
	}

	@Override public void toBytes(BintexWriter writer) throws Exception {
		for (String isi : xisi) {
			ByteBuffer buf = charset.encode(isi);
			byte[] bytes = new byte[buf.limit()];
			buf.position(0);
			buf.get(bytes);
			writer.writeRaw(bytes);
			writer.writeUint8('\n');
		}
	}
}

@@ -218,20 +218,22 @@
 tring%5B%5D 
-xisi
+verses
 ;%0A%0A%09publ
@@ -378,18 +378,22 @@
 ing 
-isi : xisi
+verse : verses
 ) %7B%0A
@@ -431,11 +431,13 @@
 ode(
-isi
+verse
 );%0A%09

Rename vars