added greek letters and changed textures to 64 pixels
adapted gen.js for the texture size change textures for 16px and 32px are also providedmaster
19
gen.js
|
@ -1,6 +1,6 @@
|
||||||
var page = require('webpage').create();
|
var page = require('webpage').create();
|
||||||
var w = 32;
|
var w = 16;
|
||||||
var h = 32;
|
var h = 16;
|
||||||
var con = console;
|
var con = console;
|
||||||
|
|
||||||
//viewportSize being the actual size of the headless browser
|
//viewportSize being the actual size of the headless browser
|
||||||
|
@ -25,7 +25,12 @@ var chars = [
|
||||||
// cyrillic
|
// cyrillic
|
||||||
"А", "Б", "В", "Г", "Д", "Е", "Ё", "Ж", "З", "И", "Й", "К", "Л", "М", "Н",
|
"А", "Б", "В", "Г", "Д", "Е", "Ё", "Ж", "З", "И", "Й", "К", "Л", "М", "Н",
|
||||||
"О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь",
|
"О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь",
|
||||||
"Э", "Ю", "Я"
|
"Э", "Ю", "Я",
|
||||||
|
// greek
|
||||||
|
"Α", "Β", "Γ", "Δ", "Ε", "Ζ", "Η", "Θ", "Ι", "Κ", "Λ", "Μ", "Ν", "Ξ", "Ο",
|
||||||
|
"Π", "Ρ", "Σ", "Τ", "Υ", "Φ", "Χ", "Ψ", "Ω",
|
||||||
|
//
|
||||||
|
"猫" , // neko
|
||||||
];
|
];
|
||||||
|
|
||||||
function encode_utf8(s) {
|
function encode_utf8(s) {
|
||||||
|
@ -47,9 +52,13 @@ page.evaluate(function () {
|
||||||
|
|
||||||
document.body.style.backgroundColor = 'white';
|
document.body.style.backgroundColor = 'white';
|
||||||
document.body.style.margin = '0px';
|
document.body.style.margin = '0px';
|
||||||
chEl.style.fontSize = '24px';
|
chEl.style.fontSize = '12px'; // 16
|
||||||
|
// chEl.style.fontSize = '24px'; // 32
|
||||||
|
// chEl.style.fontSize = '48px'; // 64
|
||||||
chEl.style.fontWeight = 'bold';
|
chEl.style.fontWeight = 'bold';
|
||||||
chEl.style.marginTop = '2px';
|
chEl.style.marginTop = '1px'; // 16
|
||||||
|
// chEl.style.marginTop = '2px'; // 32
|
||||||
|
// chEl.style.marginTop = '4px'; // 64
|
||||||
chEl.style.textAlign = 'center';
|
chEl.style.textAlign = 'center';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
25
init.lua
|
@ -13,6 +13,14 @@ local cyrillic_chars = {
|
||||||
"О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь",
|
"О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь",
|
||||||
"Э", "Ю", "Я"
|
"Э", "Ю", "Я"
|
||||||
}
|
}
|
||||||
|
local greek_chars = {
|
||||||
|
"Α", "Β", "Γ", "Δ", "Ε", "Ζ", "Η", "Θ", "Ι", "Κ", "Λ", "Μ", "Ν", "Ξ", "Ο",
|
||||||
|
"Π", "Ρ", "Σ", "Τ", "Υ", "Φ", "Χ", "Ψ", "Ω"
|
||||||
|
}
|
||||||
|
local additional_chars = {
|
||||||
|
"猫"
|
||||||
|
}
|
||||||
|
|
||||||
local characters = {}
|
local characters = {}
|
||||||
|
|
||||||
ehlphabet = {}
|
ehlphabet = {}
|
||||||
|
@ -31,7 +39,8 @@ end
|
||||||
|
|
||||||
local function is_multibyte(ch)
|
local function is_multibyte(ch)
|
||||||
local byte = ch:byte()
|
local byte = ch:byte()
|
||||||
return (195 == byte) or (208 == byte) or (209 == byte)
|
-- return (195 == byte) or (208 == byte) or (209 == byte)
|
||||||
|
return (byte > 191)
|
||||||
end
|
end
|
||||||
|
|
||||||
table_merge(characters, base_chars)
|
table_merge(characters, base_chars)
|
||||||
|
@ -39,6 +48,8 @@ table_merge(characters, digits)
|
||||||
table_merge(characters, special_chars)
|
table_merge(characters, special_chars)
|
||||||
table_merge(characters, german_chars)
|
table_merge(characters, german_chars)
|
||||||
table_merge(characters, cyrillic_chars)
|
table_merge(characters, cyrillic_chars)
|
||||||
|
table_merge(characters, greek_chars)
|
||||||
|
table_merge(characters, additional_chars)
|
||||||
|
|
||||||
local create_alias = true
|
local create_alias = true
|
||||||
|
|
||||||
|
@ -197,4 +208,16 @@ minetest.register_craft({
|
||||||
type = "shapeless"
|
type = "shapeless"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "ehlphabet:231140 4",
|
||||||
|
recipe = {
|
||||||
|
{"", "", ""},
|
||||||
|
{"ehlphabet:78", "", ""},
|
||||||
|
{"ehlphabet:69", "ehlphabet:75", "ehlphabet:79"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- print(S("[MOD] Elphabet is loaded"))
|
-- print(S("[MOD] Elphabet is loaded"))
|
||||||
|
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 576 B |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 739 B |
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 742 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 668 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 856 B |
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 882 B |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 907 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 416 B |
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 398 B |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 939 B |
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 920 B |
Before Width: | Height: | Size: 526 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 747 B |
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 551 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 907 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 881 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 990 B |
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 876 B |
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 921 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 980 B |
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 849 B |
Before Width: | Height: | Size: 576 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 681 B |
Before Width: | Height: | Size: 681 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 724 B |
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 791 B |
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 912 B |
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 990 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 312 B |
After Width: | Height: | Size: 791 B |
After Width: | Height: | Size: 291 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 921 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 980 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 284 B |
After Width: | Height: | Size: 681 B |
After Width: | Height: | Size: 947 B |
After Width: | Height: | Size: 301 B |
After Width: | Height: | Size: 773 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 775 B |
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 990 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 668 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 595 B After Width: | Height: | Size: 916 B |