The unofficial English to Gor'Tog Translator! W/updated link 03/16/2015 07:57 PM CDT
EDIT: Link is updated to a permanent site so it wont get deleted.

Sooo I may or may not have messed up where I put this buuut I have basically this same thing on the gor'tog forum. I'm sorry if there is an issue with essentially duplicate posts but!


I with the help of a friend with the coding, present to you an English/common to Toggish/kortok translator! (MY POOR WRISTS!)

http://orias1992.github.io/

I created this mainly for the simple fact I was a bit tired of just switching so everyone sees "Ambigor says something to someone in Toggish" I REFUSE TO DILUTE MY TOGGISH VERNACULAR TO SUCH BROAD SPECTRUM!

Anyways I like the language and like rp'n my learned Tog bard. Yea I'm going that route, so I would use words like Kinomi for Gnomes and Rakasi for Rakash etc etc, but I wanted more than just having to sift through the Gor'tog language book. So this was spawned.

WHAT YOU MUST KNOW:

1.Yes you can do phrases/sentences PLEASE DO NOT ADD PUNCTUATION such as commas and periods. But if it's actually in the name like Gor'Tog it's cool and should work.

2.Lowercase only, don't ask me why, my friend helped with the code and he explained it. I dunno.

3.Certain words if they do not translate in plural try singular version then add an s or vice versa (The Toggish language is rough, I just went 1 for 1 with Volume 1 language book for em.)

4.Things such as warrior mage and moon mage should be used with a hyphen (-) between them. example: warrior-mage moon-mage

5.Some words may or may not be correct due to this translator doesn't account for adj/nouns etc because that would by far complicate the code further. I used the version of the words I figured would be more commonly used. (If you can correct this you can download the entire thing from plunker and improve upon it)

6. Enjoy it!

I feel like I have carpal tunnel now, but I'm glad I actually did this. This is simple code you can rework it for other races if you like (a friend of mine wants me to do rakash) but yea... not gunna happen willy nilly unless I'm really really into doing it.

ENJOY!
Reply
Re: The unofficial English to Gor'Tog Translator! W/updated link 03/17/2015 08:28 AM CDT
>>only lowercase, no punctuation

Out of curiosity, what did your friend write it in and why didn't they use regex to handle this?


---
NaOH+HI
Reply
Re: The unofficial English to Gor'Tog Translator! W/updated link 03/17/2015 10:12 AM CDT
>>only lowercase, no punctuation

Clearly this is just because this is how Togs really talk.

Nikpack
Reply
Re: The unofficial English to Gor'Tog Translator! W/updated link 03/17/2015 01:50 PM CDT


From tinkering with the code myself to try and flush out some things I had an issue with in the final product (i don't know a lot of coding I know a little) It is in javascript. Being a glutton for punishment I'm working on a Gorbesh translator as well but if you want to check the code you can find it on github here https://github.com/orias1992/Orias1992.github.io

You can fiddle around with it if you like. I just got the base concept of it all.
Reply
Re: The unofficial English to Gor'Tog Translator! W/updated link 03/17/2015 02:53 PM CDT
This at least will handle stripping punctuation.. and save you having to warn people. If you want to add it back in, you'll want to handle it a different way (future project for you?)

var example "String with, some, punctuation -- to be removed.";
var newExample = example.replace(/[\.,()#!$-\/%\^;:&\*{}=\-_`~]/g,"");
var finalExample = newExample.replace(/\s{2,}/g," ");

Or... just strip out anything except English alphanumeric characters?

str = str.replace(/[^\w\s]|_/g, "")
.replace(/\s+/g, " ");

I'd probably strip anything that would allow someone to do a code injection. :)
---
NaOH+HI
Reply