Permalink
Browse files

Adds the Shage language

  • Loading branch information...
BlueNexus committed Jan 2, 2018
1 parent 009e9c6 commit 48b2fded5dc5fb33b15367e497977b6534fb0d5b
@@ -1 +1,3 @@
GLOBAL_LIST_EMPTY(all_observable_events)

GLOBAL_LIST_INIT(font_resources, list('fonts/Shage/Shage.ttf'))
@@ -0,0 +1,22 @@
---LEGAL SHIT---
The font file in this archive was created using Fontstruct the free, online
font-building tool.
This font was created by “BlueNexus”.
This font has a homepage where this archive and other versions may be found:
https://fontstruct.com/fontstructions/show/1476786

Try Fontstruct at http://fontstruct.com
It’s easy and it’s fun.

NOTE FOR FLASH USERS: Fontstruct fonts (fontstructions) are optimized for Flash.
If the font in this archive is a pixel font, it is best displayed at a font-size
of 7.

Fontstruct is copyright ©2018 Rob Meek

LEGAL NOTICE:
In using this font you must comply with the licensing terms described in the
file “license.txt” included with this archive.
If you redistribute the font file in this archive, it must be accompanied by all
the other files from this archive, including this one.
---END LEGAL SHIT--
BIN +4.5 KB fonts/Shage/Shage.ttf
Binary file not shown.
@@ -0,0 +1,4 @@
The FontStruction “Shage”
(https://fontstruct.com/fontstructions/show/1476786) by “BlueNexus” is
licensed under a Creative Commons Attribution license
(http://creativecommons.org/licenses/by/3.0/).
@@ -7,7 +7,7 @@

/obj/structure/monolith
name = "monolith"
desc = "An obviously artifical structure of unknown origin."
desc = "An obviously artifical structure of unknown origin. The symbols '<font face='Shage'>DWNbTX</font>' are engraved on the base."
icon = 'icons/obj/monolith.dmi'
icon_state = "jaggy1"
plane = ABOVE_HUMAN_PLANE
@@ -0,0 +1,61 @@
Contents:
1. Legal shit
2. Usage


---LEGAL SHIT---
The font file in this archive was created using Fontstruct the free, online
font-building tool.
This font was created by “BlueNexus”.
This font has a homepage where this archive and other versions may be found:
https://fontstruct.com/fontstructions/show/1476786

Try Fontstruct at http://fontstruct.com
It’s easy and it’s fun.

NOTE FOR FLASH USERS: Fontstruct fonts (fontstructions) are optimized for Flash.
If the font in this archive is a pixel font, it is best displayed at a font-size
of 7.

Fontstruct is copyright ©2018 Rob Meek

LEGAL NOTICE:
In using this font you must comply with the licensing terms described in the
file “license.txt” included with this archive.
If you redistribute the font file in this archive, it must be accompanied by all
the other files from this archive, including this one.
---END LEGAL SHIT---

---USAGE---
[ENGLISH TO SHAGE]
First, find the word you want to translate in shage_3.html, via ctrl-F.
Apply the grammar rules on the doc to get the correct IPA.
EXAMPLE
For example, if you wanted the word "shooter", well, that exact word doesn't
exist. But we can make that word via grammar rules.
you would get the word for
"shoot" (ħuˈʔos), and look at the derivational morphology section.
Applying those rules, we would add ɛʔ to get ħuˈʔosɛʔ. Brackets mean
that that character is only included if a vowel is required.
Contact BlueNexus on discord if you need help in this regard.

Once you have your input text:
1. copy the IPA (the weird characters after the word)
2. Start up transliterator.py (You'll need python 3.x for that)
3. Paste in your IPA

If this is for SS13:
4. Copy the second line of output into your code editor
5. Done

If this is for anything else:
4. Install the included font
5. Open up a word editor and select the "Shage" font
6. Paste in the first line of transliterator output
7. Done

[SHAGE TO ENGLISH]
1. Start up detransliterator.py
2. Copy the shage letters
3. Paste them into the program, and press enter
4. Done
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,23 @@
letters = ['A','B','C','D','E','F','G','H','I',\
'J','K','L','M','N','O','P','Q','R',\
'S','T','U','V','W','X','Y','Z','a','b','c','.',' ']
phonetics = ['m','b','f','θ','ð','t','d','s','z',\
'ɾ','r','l','ʃ','','j','g','x','ɣ',\
'ħ','ʕ','h','ʔ','i','ɛ','a','u','o','ɔ','ə','.',' ']

pholet = {}
for i in range(len(letters)):
pholet[letters[i]] = phonetics[i]

def convert(mes):
result = ""
for char in mes:
result += pholet[char] if char in pholet else ''
print(result)


def main():
while(True):
convert(input("Enter Shage to convert"))

main()
@@ -0,0 +1,4 @@
The FontStruction “Shage”
(https://fontstruct.com/fontstructions/show/1476786) by “BlueNexus” is
licensed under a Creative Commons Attribution license
(http://creativecommons.org/licenses/by/3.0/).
Binary file not shown.
@@ -0,0 +1,29 @@
letters = ['A','B','C','D','E','F','G','H','I',\
'J','K','L','M','N','O','P','Q','R',\
'S','T','U','V','W','X','Y','Z','a','b','c','.',' ']
phonetics = ['m','b','f','θ','ð','t','d','s','z',\
'ɾ','r','l','ʃ','','j','g','x','ɣ',\
'ħ','ʕ','h','ʔ','i','ɛ','a','u','o','ɔ','ə','.',' ']

pholet = {}
for i in range(len(letters)):
pholet[phonetics[i]] = letters[i]

def convert(mes):
result = ""
counter = 0
for char in mes:
if(char == 'd' and mes[counter + 1] == 'ʒ'):
result += 'N'
else:
result += pholet[char] if char in pholet else ''
counter += 1
print(result)
print("<font face='Shage'>" + result + "</font>")


def main():
while(True):
convert(input("Enter IPA to convert"))

main()

0 comments on commit 48b2fde

Please sign in to comment.