unfoldingWord-dev / translationCore-PoC

Focused PoC of translationCore to be produced just for Metaphors.
1 stars 1 forks source link

Organize figures.json data #43

Open klappy opened 8 years ago

klappy commented 8 years ago

translationCore/data/figures.json

from:

{
  "you": [
    {
      "quote": "grace be to you",
      "notes": "<strong>grace be to you</strong> - The word \"you\" refers to all the believers at Ephesus.",
      "vol": "1",
      "reference": {
        "book": "Ephesians",
        "chapter": 1,
        "chunk": 1,
        "verse": 2
      }
    },
...

to:

[
 {
  "id": "you",
  "name": "Forms of You",
  "ta-volume": 1,
  "link": "https://door43.org/_export/xhtmlbody/en/ta/vol1/translate/figs_you",
  "data": [
    {
      "quote": "grace be to you",
      "notes": "<strong>grace be to you</strong> - The word \"you\" refers to all the believers at Ephesus.",
      "reference": {
        "book": "Ephesians",
        "chapter": 1,
        "chunk": 1,
        "verse": 2
      }
    },
klappy commented 8 years ago

Still having a challenge in grouping ta-volume 1 & 2 at root level and organizing figures of speech into those logical categories, without overcomplicating the data structure.