aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOch Noe <och_noe@forksworld.de>2019-05-01 06:23:44 +0200
committerOch Noe <och_noe@forksworld.de>2019-05-01 06:23:44 +0200
commit6d375dfc8b008444867be97eee4794adffa2b9ab (patch)
treed7f7608a0547c33d61b3c8ea774ab7ab174ed839
parent0634f67347cc2bec495e85803efc2d8a22d0e43a (diff)
downloadehlphabet-6d375dfc8b008444867be97eee4794adffa2b9ab.tar.gz
ehlphabet-6d375dfc8b008444867be97eee4794adffa2b9ab.tar.bz2
ehlphabet-6d375dfc8b008444867be97eee4794adffa2b9ab.zip
sh.. git -- didn't added changed files
-rw-r--r--gen.js17
-rw-r--r--init.lua53
2 files changed, 62 insertions, 8 deletions
diff --git a/gen.js b/gen.js
index afddd61..89c2aa0 100644
--- a/gen.js
+++ b/gen.js
@@ -1,6 +1,6 @@
var page = require('webpage').create();
-var w = 16;
-var h = 16;
+var w = 64; // 16,32,64
+var h = 64;
var con = console;
//viewportSize being the actual size of the headless browser
@@ -31,6 +31,11 @@ var chars = [
"Π", "Ρ", "Σ", "Τ", "Υ", "Φ", "Χ", "Ψ", "Ω",
//
"猫" , // neko
+ "北", // (North, U+5317), pronounced běi
+ "东", // (East, Simplified, U+4E1C), pronounced dōng
+ "東", // (East, Traditional, U+6771), pronounced dōng
+ "南", // (South, U+5357), pronounced nán
+ "西", // (West, U+897F), pronounced xī
];
function encode_utf8(s) {
@@ -52,13 +57,13 @@ page.evaluate(function () {
document.body.style.backgroundColor = 'white';
document.body.style.margin = '0px';
- chEl.style.fontSize = '12px'; // 16
+// chEl.style.fontSize = '12px'; // 16
// chEl.style.fontSize = '24px'; // 32
-// chEl.style.fontSize = '48px'; // 64
+ chEl.style.fontSize = '48px'; // 64
chEl.style.fontWeight = 'bold';
- chEl.style.marginTop = '1px'; // 16
+// chEl.style.marginTop = '1px'; // 16
// chEl.style.marginTop = '2px'; // 32
-// chEl.style.marginTop = '4px'; // 64
+ chEl.style.marginTop = '4px'; // 64
chEl.style.textAlign = 'center';
});
diff --git a/init.lua b/init.lua
index d3038c8..17de987 100644
--- a/init.lua
+++ b/init.lua
@@ -18,7 +18,7 @@ local greek_chars = {
"Π", "Ρ", "Σ", "Τ", "Υ", "Φ", "Χ", "Ψ", "Ω"
}
local additional_chars = {
- "猫"
+ "猫","北","东","東","南","西",
}
local characters = {}
@@ -212,7 +212,7 @@ minetest.register_craft({
type = "shapeless"
})
---
+-- Chinese Characters - craft from latin characters
minetest.register_craft({
output = "ehlphabet:231140 4",
recipe = {
@@ -222,6 +222,55 @@ minetest.register_craft({
}
})
+minetest.register_craft({
+ output = "ehlphabet:229140 5",
+ recipe = {
+ {"ehlphabet:78", "ehlphabet:79", "ehlphabet:82"},
+ {"ehlphabet:84", "ehlphabet:72", ""},
+ {"", "", ""},
+ }
+})
+
+minetest.register_craft({
+ output = "ehlphabet:228184 5",
+ recipe = {
+ {"ehlphabet:69", "ehlphabet:65", "ehlphabet:83"},
+ {"ehlphabet:84", "", "ehlphabet:83"},
+ {"", "", ""},
+ }
+})
+
+minetest.register_craft({
+ output = "ehlphabet:230157 5",
+ recipe = {
+ {"ehlphabet:69", "ehlphabet:65", "ehlphabet:83"},
+ {"ehlphabet:84", "", "ehlphabet:84"},
+ {"", "", ""},
+ }
+})
+
+minetest.register_craft({
+ output = "ehlphabet:229141 5",
+ recipe = {
+ {"ehlphabet:83", "ehlphabet:79", "ehlphabet:85"},
+ {"ehlphabet:84", "ehlphabet:72", ""},
+ {"", "", ""},
+ }
+})
+
+minetest.register_craft({
+ output = "ehlphabet:232165 4",
+ recipe = {
+ {"ehlphabet:87", "ehlphabet:69", "ehlphabet:83"},
+ {"ehlphabet:84", "", ""},
+ {"", "", ""},
+ }
+})
+
+
+
+
+
-- print(S("[MOD] Elphabet is loaded"))