Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema #3

Open
pathumego opened this issue Mar 7, 2018 · 1 comment
Open

Schema #3

pathumego opened this issue Mar 7, 2018 · 1 comment

Comments

@pathumego
Copy link
Member

pathumego commented Mar 7, 2018

Following our discussion I am posting the simple YAML structure that I propose to use as a base.

---
# Comments
metadata:
	- map:
		- version:
		- description:
		- source:
		- authour:
		- copyright:
		- license:
		- script:
		- language:
	- encoding:
		- name:
		- source:
		- author:
	- font:
		- name:
		- source:
		- author:
mapping:
- combinations:
               ªè: "கெ"
		ªé: "ஙெ"
		ªê: "செ"
		ªë: "ஞெ"
- base:
		ã: "ஏ"
		ä: "ஐ"
		å: "ஒ"
		æ: "ஓ"
		è: "க"
- marks:
		§: "ு"
		ª: "ெ"
		«: "ே"
		¬: "ை"
---
  • Text should be processed in the order
  • [Combinations, base, marks] This classification dose not do much in the conversion process I think. However if this data is important we can classify. Either way mapping=mapping.combinations,mapping.base, mapping.marks
  • Many-to-one: Multiple visual representations of the same codepoint should be added as two values in the map.

Above parsed to JSON <with https://www.json2yaml.com/>

{
  "metadata": [
    {
      "map": [
        {
          "version": null
        },
        {
          "description": null
        },
        {
          "source": null
        },
        {
          "authour": null
        },
        {
          "copyright": null
        },
        {
          "license": null
        },
        {
          "script": null
        },
        {
          "language": null
        }
      ]
    },
    {
      "encoding": [
        {
          "name": null
        },
        {
          "source": null
        },
        {
          "author": null
        }
      ]
    },
    {
      "font": [
        {
          "name": null
        },
        {
          "source": null
        },
        {
          "author": null
        }
      ]
    }
  ],
  "mapping": [
    {
      "combinations": {
        "ªè": "கெ",
        "ªé": "ஙெ",
        "ªê": "செ",
        "ªë": "ஞெ"
      }
    },
    {
      "base": {
        "ã": "ஏ",
        "ä": "ஐ",
        "å": "ஒ",
        "æ": "ஓ",
        "è": "க"
      }
    },
    {
      "marks": {
        "§": "ு",
        "ª": "ெ",
        "«": "ே",
        "¬": "ை"
      }
    }
  ]
}
@pathumego
Copy link
Member Author

@asdofindia ping :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant