Tag: writing systems - adamb924/mortal-engine GitHub Wiki
The <writing-systems> tag defines the writing systems for a morphology file.
<writing-systems>
<writing-system name="Kiwakanda Arabic Orthography" lang="wk-AR" font="Adobe Arabic" font-size="24" right-to-left="true"/>
<writing-system name="Kiwakanda IPA" lang="wk-IPA" font="Times New Roman" font-size="18" right-to-left="false"/>
<writing-system name="Kiwakanda Latin Orthography" lang="wk-LA" font="Times New Roman" font-size="18" right-to-left="false"/>
<writing-system name="English" lang="en-US" font="Times New Roman" font-size="12" right-to-left="false"/>
</writing-systems>
The attributes are these:
nameAnything you want; be as descriptive as you like.langA short identifier for the language. I would suggest something based on ISO 639 codes. You're going to be typing this a lot, so keep it short.
The following attributes are intended to be used in GUI applications. They don't affect parsing at all.
fontA suggested font family for displaying text in the writing system.font-sizeA suggested font size (in points).right-to-leftWhether the writing system is right-to-left (true) or not (false).
Linking to an external file
If you're creating several test files, you may wish to put your writing systems in a separate file. To do that, instead of the long form above, you just use the src attribute.
<writing-systems src="writing-systems.xml"/>
In that case, writing-systems.xml should be an XML file with a full <writing-systems> tag as the root element:
<?xml version="1.0" encoding="UTF-8"?>
<writing-systems
xmlns="https://www.adambaker.org/mortal-engine"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.adambaker.org/mortal-engine writing-systems.xsd">
<writing-system name="Kiwakanda Arabic Orthography" lang="wk-AR" font="Adobe Arabic" font-size="24" right-to-left="true"/>
<writing-system name="Kiwakanda IPA" lang="wk-IPA" font="Times New Roman" font-size="18" right-to-left="false"/>
<writing-system name="Kiwakanda Latin Orthography" lang="wk-LA" font="Times New Roman" font-size="18" right-to-left="false"/>
<writing-system name="English" lang="en-US" font="Times New Roman" font-size="12" right-to-left="false"/>
</writing-systems>