diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js
index 1133e41a..f61cc52b 100644
--- a/ext/bg/js/templates.js
+++ b/ext/bg/js/templates.js
@@ -14,18 +14,38 @@ templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(c
+ container.escapeExpression(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"root","hash":{},"data":data}) : helper)))
+ "/css/frame.css\">\n \n
\n";
},"useData":true});
-templates['kanji.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
- var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+templates['kanji.html'] = template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1;
- return ""
- + alias4(((helper = (helper = helpers.character || (depth0 != null ? depth0.character : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"character","hash":{},"data":data}) : helper)))
- + "
\n\n\n "
- + alias4(((helper = (helper = helpers.kunyomi || (depth0 != null ? depth0.kunyomi : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"kunyomi","hash":{},"data":data}) : helper)))
- + "\n
\n\n\n "
- + alias4(((helper = (helper = helpers.onyomi || (depth0 != null ? depth0.onyomi : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"onyomi","hash":{},"data":data}) : helper)))
- + "\n
\n\n\n "
- + alias4(((helper = (helper = helpers.glossary || (depth0 != null ? depth0.glossary : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"glossary","hash":{},"data":data}) : helper)))
- + "\n
\n";
+ return " \n - Kunyomi
\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.kunyomi : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\n";
+},"2":function(container,depth0,helpers,partials,data) {
+ return " "
+ + container.escapeExpression(container.lambda(depth0, depth0))
+ + "\n";
+},"4":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return " \n - Onyomi
\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.onyomi : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\n";
+},"6":function(container,depth0,helpers,partials,data) {
+ return " "
+ + container.escapeExpression(container.lambda(depth0, depth0))
+ + "\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : {};
+
+ return "\n
"
+ + container.escapeExpression(((helper = (helper = helpers.character || (depth0 != null ? depth0.character : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"character","hash":{},"data":data}) : helper)))
+ + "
\n\n
\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.kunyomi : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.onyomi : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\n\n
\n
\n"
+ + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"each","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\n
\n
\n";
},"useData":true});
templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper;
@@ -37,9 +57,7 @@ templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":functi
templates['kanji-list.html'] = template({"1":function(container,depth0,helpers,partials,data) {
var stack1;
- return "\n"
- + ((stack1 = container.invokePartial(partials["kanji.html"],depth0,{"name":"kanji.html","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
- + "
\n";
+ return ((stack1 = container.invokePartial(partials["kanji.html"],depth0,{"name":"kanji.html","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1;
@@ -49,7 +67,7 @@ templates['kanji-list.html'] = template({"1":function(container,depth0,helpers,p
},"usePartial":true,"useData":true});
templates['term.html'] = template({"1":function(container,depth0,helpers,partials,data) {
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer =
- "";
+ " ";
stack1 = ((helper = (helper = helpers.kanjiLinks || (depth0 != null ? depth0.kanjiLinks : depth0)) != null ? helper : alias2),(options={"name":"kanjiLinks","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data}),(typeof helper === alias3 ? helper.call(alias1,options) : helper));
if (!helpers.kanjiLinks) { stack1 = helpers.blockHelperMissing.call(depth0,stack1,options)}
if (stack1 != null) { buffer += stack1; }
@@ -62,7 +80,7 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial
return container.escapeExpression(((helper = (helper = helpers.expression || (depth0 != null ? depth0.expression : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"expression","hash":{},"data":data}) : helper)));
},"4":function(container,depth0,helpers,partials,data) {
var stack1, helper, options, buffer =
- "";
+ "
";
stack1 = ((helper = (helper = helpers.kanjiLinks || (depth0 != null ? depth0.kanjiLinks : depth0)) != null ? helper : helpers.helperMissing),(options={"name":"kanjiLinks","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data}),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},options) : helper));
if (!helpers.kanjiLinks) { stack1 = helpers.blockHelperMissing.call(depth0,stack1,options)}
if (stack1 != null) { buffer += stack1; }
@@ -70,13 +88,13 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial
},"6":function(container,depth0,helpers,partials,data) {
var stack1;
- return "
\n"
+ return "
\n"
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.rules : depth0),{"name":"each","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
- + "
\n";
+ + "
\n";
},"7":function(container,depth0,helpers,partials,data) {
var stack1;
- return "
"
+ return " "
+ container.escapeExpression(container.lambda(depth0, depth0))
+ " "
+ ((stack1 = helpers.unless.call(depth0 != null ? depth0 : {},(data && data.last),{"name":"unless","hash":{},"fn":container.program(8, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
@@ -86,13 +104,13 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial
},"10":function(container,depth0,helpers,partials,data) {
var stack1;
- return "\n";
},"11":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
- return " \n";
},"13":function(container,depth0,helpers,partials,data) {
- return " "
+ return " "
+ container.escapeExpression(container.lambda(depth0, depth0))
+ "\n";
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, alias1=depth0 != null ? depth0 : {};
- return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.reading : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "")
+ return "\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.reading : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "")
+ "\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.rules : depth0),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.tags : depth0),{"name":"if","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
- + "\n
\n
\n"
+ + "\n \n
\n"
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"each","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
- + "
\n
\n";
+ + "
\n
\n
\n";
},"useData":true});
templates['term-list.html'] = template({"1":function(container,depth0,helpers,partials,data) {
var stack1;
- return "\n"
- + ((stack1 = container.invokePartial(partials["term.html"],depth0,{"name":"term.html","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
- + "
\n";
+ return ((stack1 = container.invokePartial(partials["term.html"],depth0,{"name":"term.html","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1;
diff --git a/ext/fg/css/frame.css b/ext/fg/css/frame.css
index 893f4e4a..d9ffde84 100644
--- a/ext/fg/css/frame.css
+++ b/ext/fg/css/frame.css
@@ -43,6 +43,10 @@ body {
display: inline-block;
}
+.kanji {
+ font-size: 82px;
+}
+
.tag {
border-radius: 0.25em;
color: #fff;
diff --git a/util/tmpl/kanji-list.html b/util/tmpl/kanji-list.html
index b0e43634..542a5e2f 100644
--- a/util/tmpl/kanji-list.html
+++ b/util/tmpl/kanji-list.html
@@ -1,7 +1,5 @@
{{> header.html}}
{{#each defs}}
-
- {{> kanji.html}}
-
+{{> kanji.html}}
{{/each}}
{{> footer.html}}
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 66e4647e..0e85e966 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,13 +1,31 @@
-{{character}}
+
+
{{character}}
-
- {{kunyomi}}
-
+
+ {{#if kunyomi}}
+
+ - Kunyomi
+ {{#each kunyomi}}
+ - {{.}}
+ {{/each}}
+
+ {{/if}}
-
- {{onyomi}}
-
+ {{#if onyomi}}
+
+ - Onyomi
+ {{#each onyomi}}
+ - {{.}}
+ {{/each}}
+
+ {{/if}}
+
-
- {{glossary}}
+
+
+ {{#each glossary}}
+ - {{.}}
+ {{/each}}
+
+
diff --git a/util/tmpl/term-list.html b/util/tmpl/term-list.html
index 9e55a80e..6206f323 100644
--- a/util/tmpl/term-list.html
+++ b/util/tmpl/term-list.html
@@ -1,7 +1,5 @@
{{> header.html}}
{{#each defs}}
-
- {{> term.html}}
-
+{{> term.html}}
{{/each}}
{{> footer.html}}
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
index 054f7510..00a9d156 100644
--- a/util/tmpl/term.html
+++ b/util/tmpl/term.html
@@ -1,29 +1,31 @@
-{{#if reading}}
-
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
-{{else}}
-
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
-{{/if}}
+
+ {{#if reading}}
+
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
+ {{else}}
+
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
+ {{/if}}
-{{#if rules}}
-
- {{#each rules}}
- {{.}} {{#unless @last}}«{{/unless}}
- {{/each}}
-
-{{/if}}
-
-{{#if tags}}
-
- {{#each tags}}
- {{name}}
- {{/each}}
-
-{{/if}}
-
-
-
- {{#each glossary}}
- - {{.}}
+ {{#if rules}}
+
+ {{#each rules}}
+ {{.}} {{#unless @last}}«{{/unless}}
{{/each}}
-
+
+ {{/if}}
+
+ {{#if tags}}
+
+ {{#each tags}}
+ {{name}}
+ {{/each}}
+
+ {{/if}}
+
+
+
+ {{#each glossary}}
+ - {{.}}
+ {{/each}}
+
+