3 Commits

Author SHA1 Message Date
Bradley Richins
5f4414df03 Update README.md 2020-10-28 16:38:05 +00:00
bradley.richins
57a1d729dd added .gitlab-ci.yml 2020-10-28 10:10:08 -06:00
bradley.richins
67db2e32ef Updated README.md 2020-10-24 10:38:28 -06:00
2 changed files with 48 additions and 8 deletions

9
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,9 @@
stages:
- test
test:
stage: test
image: golang:1.15.3
script:
- go test

View File

@@ -1,9 +1,12 @@
# NMSlib # NMSlib
**master Branch** : ![](https://gitlab.com/bradley.richins/nmslib/badges/master/pipeline.svg)
**develop Branch** : ![](https://gitlab.com/bradley.richins/nmslib/badges/develop/pipeline.svg)
NMSlib is a GoLang package for dealing with converting Galactic coordinates to Portal codes and vice versa. NMSlib is a GoLang package for dealing with converting Galactic coordinates to Portal codes and vice versa.
NMSlib also translates known Korvax words to English and back. NMSlib also translates in game languages to english.
- Gek, Vykeen, etc will be added in the future
## Installation ## Installation
@@ -64,7 +67,7 @@ nmslib.CreateBanner("006afa556c30", "NewLennon.png", 0)
### Converting Portal code to Galactic address with P2gc() ### Converting Portal code to Galactic address with P2gc()
This function only takes 1 parameter and returns a string This function only takes 1 parameter and returns a string and error
* portalcode: 12 char hex string of portal glyphs * portalcode: 12 char hex string of portal glyphs
@@ -81,7 +84,7 @@ Output:
### Converting Galactic coordinates to Portal codes with Gc2p() ### Converting Galactic coordinates to Portal codes with Gc2p()
This function only takes 1 parameter and returns a string This function only takes 1 parameter and returns a string and error
* galacticaddress: 16 char 4 block hex address * galacticaddress: 16 char 4 block hex address
@@ -96,21 +99,30 @@ Output:
``006AFA556C30`` ``006AFA556C30``
### Translate Korvax to English with Korvax2Eng() ## Translate Words
Supported languages
- Korvax
- Gek
- Vy'keen
- Atlas
### Translate Atlas to English with Atl2Eng()
This function takes only 1 parameter and returns a string This function takes only 1 parameter and returns a string
* korvaxword: Any known Korvaxen word (ex. eapoluch) * Word: Any known Atlas word (ex. Paka)
**Example:** **Example:**
```golang ```golang
fmt.Println(Translate{"KIHTYOMOLES"}.Kor2Eng()) fmt.Println(Translate{"Paka"}.Atl2Eng())
``` ```
Output: Output:
``CONTRABAND`` ``Awake``
### Translate English to Korvax with Eng2Korvax() ### Translate English to Korvax with Eng2Korvax()
@@ -129,5 +141,24 @@ Output:
``Zelidovoso`` ``Zelidovoso``
### Language commands
Gek:
- ``Translate{word}.Gek2Eng()``
- ``Translate{word}.Eng2Gek()``
Korvax:
- ``Translate{word}.Kor2Eng()``
- ``Translate{word}.Eng2Kor()``
Vy'keen:
- ``Translate{word}.Vyk2Eng()``
- ``Translate{word}.Eng2Vyk()``
Atlas:
- ``Translate{word}.Atl2Eng()``
- ``Translate{word}.Eng2Atl()``
## License ## License
[MIT](COPYING) [MIT](COPYING)