-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite project to be more manageable
- Loading branch information
Showing
35 changed files
with
2,401 additions
and
3,004,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<body> | ||
<section id="header"> | ||
<h1 id="page_title">{{ entry.page_title }}</h1> | ||
</section> | ||
|
||
<section id="sub_header"> | ||
{% if entry.readings | count > 0 or entry.kanji | count > 1 %} | ||
<section id="readings"> | ||
{% if entry.readings | count > 0 %} | ||
<section id="onyomi"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">Readings</h3> | ||
{% for reading in entry.readings %} | ||
<div class="reading"> | ||
<p>{{ reading.text }}</p> | ||
{% for info in reading.info %} | ||
<div class="badge">{{ info }}</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</section> | ||
{% endif %} | ||
|
||
{% if entry.kanji | count > 1 %} | ||
<section id="alt_kanji"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">Alternate Kanji</h3> | ||
{% for kanji in entry.kanji[1:] %} | ||
<div class="reading"> | ||
<p>{{ kanji.text }}</p> | ||
{% for info in kanji.info %} | ||
<div class="badge">{{ info }}</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</section> | ||
{% endif %} | ||
</section> | ||
{% endif %} | ||
|
||
{% if entry.containing_kanji | count > 0 %} | ||
<section id="containing_kanji"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">Kanji in this Term</h3> | ||
{% for kanji in entry.containing_kanji %} | ||
<a href="x-dictionary:r:jp_kanji_{{ kanji }}">{{ kanji }}</a> | ||
{% endfor %} | ||
</section> | ||
{% endif %} | ||
|
||
{% if entry.sentences | count > 0 %} | ||
<details id="sentences"> | ||
<summary class="section_heading" apple_mouseover_disable="1">Example Sentences</summary> | ||
{% for sentence in entry.sentences %} | ||
<article class="sentence"> | ||
<p>{{ sentence.japanese }}</p> | ||
<p>{{ sentence.english }}</p> | ||
</article> | ||
{% endfor %} | ||
</details> | ||
{% endif %} | ||
</section> | ||
|
||
<section id="definitions"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">Definitions</h3> | ||
{% for definition in entry.definitions %} | ||
<article> | ||
<p class="number" apple_mouseover_disable="1">{{ loop.index }}</p> | ||
<div class="translation_line"> | ||
{% for translation in definition.translations %} | ||
{% if loop.last %} | ||
<p class="translation">{{ translation }}</p> | ||
{% else %} | ||
<p class="translation">{{ translation }},</p> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
<div class="badges"> | ||
{% for pos in definition.pos %} | ||
<div class="badge">{{ pos }}</div> | ||
{% endfor %} | ||
</div> | ||
</article> | ||
{% endfor %} | ||
</section> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<body> | ||
<section id="header"> | ||
<h1 id="page_title">{{ entry.page_title }}</h1> | ||
</section> | ||
|
||
<section id="sub_header"> | ||
|
||
{% if entry.on_yomi | count > 0 and entry.kun_yomi | count > 0 %} | ||
<section id="readings"> | ||
|
||
{% if entry.on_yomi | count > 0 %} | ||
<section id="onyomi"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">On-Yomi</h3> | ||
{% for reading in entry.on_yomi %} | ||
<div class="reading"> | ||
<p>{{ reading }}</p> | ||
</div> | ||
{% endfor %} | ||
</section> | ||
{% endif %} | ||
|
||
{% if entry.kun_yomi | count > 0 %} | ||
<section id="kunyomi"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">Kun-Yomi</h3> | ||
{% for reading in entry.kun_yomi %} | ||
<div class="reading"> | ||
<p>{{ reading }}</p> | ||
</div> | ||
{% endfor %} | ||
</section> | ||
{% endif %} | ||
|
||
</section> | ||
{% endif %} | ||
|
||
{% if entry.nanor | count > 0 %} | ||
<details id="nanori"> | ||
<summary class="section_heading" apple_mouseover_disable="1">Nanori</summary> | ||
{% for reading in entry.nanori %} | ||
{% if loop.last %} | ||
<p>{{ reading }}</p> | ||
{% else %} | ||
<p>{{ reading }}、</p> | ||
{% endif %} | ||
{% endfor %} | ||
</details> | ||
{% endif %} | ||
|
||
|
||
<details id="stroke_order"> | ||
<summary class="section_heading" apple_mouseover_disable="1">Stroke Order</summary> | ||
<img src="Images/{{ entry.image }}" /> | ||
</details> | ||
</section> | ||
|
||
<section id="definitions"> | ||
<h3 class="section_heading" apple_mouseover_disable="1">Definitions</h3> | ||
{% for definition in entry.definitions %} | ||
<article> | ||
<p class="number" apple_mouseover_disable="1">{{ loop.index }}</p> | ||
<div class="translation_line"> | ||
{% for translation in definition %} | ||
{% if loop.last %} | ||
<p class="translation">{{ translation }}</p> | ||
{% else %} | ||
<p class="translation">{{ translation }},</p> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</article> | ||
{% endfor %} | ||
</section> | ||
</body> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
@charset "UTF-8"; | ||
@namespace d url(http://www.apple.com/DTDs/DictionaryService-1.0.rng); | ||
|
||
d|entry { | ||
} | ||
|
||
p { | ||
margin: 0px 0; | ||
width: min-content; | ||
white-space: nowrap; | ||
} | ||
|
||
summary { | ||
cursor: pointer !important; | ||
} | ||
|
||
#header, #sub_header, #definitions { | ||
max-width: 600px; | ||
} | ||
|
||
#sub_header { | ||
display: grid; | ||
grid-gap: 10px; | ||
} | ||
|
||
#sub_header > details, #sub_header > section { | ||
background-color: rgba(230,230,230,100); | ||
padding: 10px; | ||
border-radius: 5px; | ||
} | ||
|
||
#sub_header > #readings { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
|
||
.section_heading { | ||
cursor: default; | ||
font-size: small; | ||
font-weight: normal; | ||
margin: 2px 0; | ||
} | ||
|
||
#sub_header > #nanori > p { | ||
display: inline-block; | ||
} | ||
|
||
#sub_header > #readings .reading { | ||
display: flex; | ||
} | ||
|
||
#sub_header > #readings .reading > p { | ||
margin-right: 10px; | ||
} | ||
|
||
#sub_header > #stroke_order img { | ||
width: 100%; | ||
} | ||
|
||
#definitions { | ||
border: 1px solid lightgrey; | ||
margin: 10px 0; | ||
border-radius: 5px; | ||
} | ||
|
||
#definitions h3 { | ||
padding: 10px 0 0 10px; | ||
margin: 0; | ||
font-size: medium; | ||
font-weight: normal; | ||
} | ||
|
||
#definitions > article { | ||
display: grid; | ||
grid-template-columns: min-content 1fr min-content; | ||
grid-gap: 10px; | ||
margin: 10px; | ||
padding-bottom: 5px; | ||
border-bottom: dotted 1.5px lightgray; | ||
} | ||
|
||
#definitions > article:last-of-type { | ||
border-bottom: none; | ||
} | ||
|
||
#definitions .translation_line > p { | ||
display: inline-block; | ||
} | ||
|
||
#definitions .number { | ||
grid-column: 1; | ||
font-size: smaller; | ||
align-self: center; | ||
color: grey; | ||
} | ||
|
||
#definitions .badges { | ||
display: flex; | ||
} | ||
|
||
#containing_kanji a { | ||
color: black; | ||
font-size: larger; | ||
margin-right: 5px; | ||
} | ||
|
||
#sentences { | ||
max-width: 600px; | ||
} | ||
|
||
.sentence { | ||
width: 100%; | ||
padding: 10px 0; | ||
} | ||
|
||
.sentence > p { | ||
white-space: normal; | ||
width: 100%; | ||
} | ||
|
||
.badge { | ||
display: inline-block; | ||
padding: 2px 5px; | ||
margin: 0 2px; | ||
background: rgba(230,230,230,100); | ||
width: min-content; | ||
white-space: nowrap; | ||
border-radius: 5px; | ||
font-size: 80%; | ||
} |
Oops, something went wrong.