Compare commits
	
		
			22 Commits
		
	
	
		
			e3c5fd2736
			...
			2021-03-04
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 34689b5b04 | ||
| 8b6e41c3fe | |||
|  | d077d23f1a | ||
|  | d71dcf4874 | ||
|  | ac8b00f826 | ||
|  | 707f633f0d | ||
|  | 8527f1d5b2 | ||
|  | 3c824aedf8 | ||
|  | fe72e32396 | ||
|  | f7a4fefd34 | ||
|  | 664e99d34a | ||
|  | c82952befb | ||
|  | 26c3935c9b | ||
|  | 3ef11a995b | ||
|  | 22af21aeaf | ||
|  | af45e591e3 | ||
|  | b174cea893 | ||
|  | 4a196211ee | ||
|  | 942e91e00e | ||
|  | 4b2d4db848 | ||
|  | 4b432eec08 | ||
|  | d956c87dbc | 
							
								
								
									
										99
									
								
								api.lua
									
									
									
									
									
								
							
							
						
						| @@ -155,6 +155,7 @@ signs_lib.flip_walldir = { | |||||||
|  |  | ||||||
| -- Initialize character texture cache | -- Initialize character texture cache | ||||||
| local ctexcache = {} | local ctexcache = {} | ||||||
|  | local ctexcache_wide = {} | ||||||
|  |  | ||||||
| -- entity handling | -- entity handling | ||||||
|  |  | ||||||
| @@ -251,7 +252,10 @@ function signs_lib.set_obj_text(pos, text) | |||||||
| 	local text_ansi = Utf8ToAnsi(text) | 	local text_ansi = Utf8ToAnsi(text) | ||||||
| 	local n = minetest.registered_nodes[minetest.get_node(pos).name] | 	local n = minetest.registered_nodes[minetest.get_node(pos).name] | ||||||
| 	signs_lib.delete_objects(pos) | 	signs_lib.delete_objects(pos) | ||||||
| 	signs_lib.spawn_entity(pos, signs_lib.make_sign_texture(split(text_ansi), pos) ) | 	-- only create sign entity for actual text | ||||||
|  | 	if text_ansi and text_ansi ~= "" then | ||||||
|  | 		signs_lib.spawn_entity(pos, signs_lib.make_sign_texture(split(text_ansi), pos) ) | ||||||
|  | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
| -- rotation | -- rotation | ||||||
| @@ -330,8 +334,10 @@ end | |||||||
| local TP = signs_lib.path .. "/textures" | local TP = signs_lib.path .. "/textures" | ||||||
| -- Font file formatter | -- Font file formatter | ||||||
| local CHAR_FILE = "%s_%02x.png" | local CHAR_FILE = "%s_%02x.png" | ||||||
|  | local CHAR_FILE_WIDE = "%s_%s.png" | ||||||
| -- Fonts path | -- Fonts path | ||||||
| local CHAR_PATH = TP .. "/" .. CHAR_FILE | local CHAR_PATH = TP .. "/" .. CHAR_FILE | ||||||
|  | local CHAR_PATH_WIDE = TP .. "/" .. CHAR_FILE_WIDE | ||||||
|  |  | ||||||
| -- Lots of overkill here. KISS advocates, go away, shoo! ;) -- kaeza | -- Lots of overkill here. KISS advocates, go away, shoo! ;) -- kaeza | ||||||
|  |  | ||||||
| @@ -391,6 +397,7 @@ end | |||||||
| local function build_char_db(font_size) | local function build_char_db(font_size) | ||||||
|  |  | ||||||
| 	local cw = {} | 	local cw = {} | ||||||
|  | 	local cw_wide = {} | ||||||
|  |  | ||||||
| 	-- To calculate average char width. | 	-- To calculate average char width. | ||||||
| 	local total_width = 0 | 	local total_width = 0 | ||||||
| @@ -406,20 +413,32 @@ local function build_char_db(font_size) | |||||||
| 		end | 		end | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
|  | 	for i = 1, #signs_lib.wide_character_codes do | ||||||
|  | 		local ch = signs_lib.wide_character_codes[i] | ||||||
|  | 		local w, h = signs_lib.read_image_size(CHAR_PATH_WIDE:format("signs_lib_font_"..font_size.."px", ch)) | ||||||
|  | 		if w and h then | ||||||
|  | 			cw_wide[ch] = w | ||||||
|  | 			total_width = total_width + w | ||||||
|  | 			char_count = char_count + 1 | ||||||
|  | 		end | ||||||
|  | 	end | ||||||
|  |  | ||||||
| 	local cbw, cbh = signs_lib.read_image_size(TP.."/signs_lib_color_"..font_size.."px_n.png") | 	local cbw, cbh = signs_lib.read_image_size(TP.."/signs_lib_color_"..font_size.."px_n.png") | ||||||
| 	assert(cbw and cbh, "error reading bg dimensions") | 	assert(cbw and cbh, "error reading bg dimensions") | ||||||
| 	return cw, cbw, cbh, (total_width / char_count) | 	return cw, cbw, cbh, (total_width / char_count), cw_wide | ||||||
| end | end | ||||||
|  |  | ||||||
| signs_lib.charwidth15, | signs_lib.charwidth15, | ||||||
| signs_lib.colorbgw15, | signs_lib.colorbgw15, | ||||||
| signs_lib.lineheight15, | signs_lib.lineheight15, | ||||||
| signs_lib.avgwidth15 = build_char_db(15) | signs_lib.avgwidth15, | ||||||
|  | signs_lib.charwidth_wide15 = build_char_db(15) | ||||||
|  |  | ||||||
| signs_lib.charwidth31, | signs_lib.charwidth31, | ||||||
| signs_lib.colorbgw31, | signs_lib.colorbgw31, | ||||||
| signs_lib.lineheight31, | signs_lib.lineheight31, | ||||||
| signs_lib.avgwidth31 = build_char_db(31) | signs_lib.avgwidth31, | ||||||
|  | signs_lib.charwidth_wide31 = build_char_db(31) | ||||||
|  |  | ||||||
| local sign_groups = {choppy=2, dig_immediate=2} | local sign_groups = {choppy=2, dig_immediate=2} | ||||||
| local fences_with_sign = { } | local fences_with_sign = { } | ||||||
| @@ -455,7 +474,22 @@ local function char_tex(font_name, ch) | |||||||
| 	end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
| local function make_line_texture(line, lineno, pos, line_width, line_height, cwidth_tab, font_size, colorbgw) | local function char_tex_wide(font_name, ch) | ||||||
|  | 	if ctexcache_wide[font_name..ch] then | ||||||
|  | 		return ctexcache_wide[font_name..ch], true | ||||||
|  | 	else | ||||||
|  | 		local exists, tex = file_exists(CHAR_PATH_WIDE:format(font_name, ch)) | ||||||
|  | 		if exists then | ||||||
|  | 			tex = CHAR_FILE_WIDE:format(font_name, ch) | ||||||
|  | 		else | ||||||
|  | 			tex = CHAR_FILE:format(font_name, 0x5f) | ||||||
|  | 		end | ||||||
|  | 		ctexcache_wide[font_name..ch] = tex | ||||||
|  | 		return tex, exists | ||||||
|  | 	end | ||||||
|  | end | ||||||
|  |  | ||||||
|  | local function make_line_texture(line, lineno, pos, line_width, line_height, cwidth_tab, font_size, colorbgw, cwidth_tab_wide) | ||||||
| 	local width = 0 | 	local width = 0 | ||||||
| 	local maxw = 0 | 	local maxw = 0 | ||||||
| 	local font_name = "signs_lib_font_"..font_size.."px" | 	local font_name = "signs_lib_font_"..font_size.."px" | ||||||
| @@ -492,6 +526,27 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi | |||||||
| 		local word_l = #word | 		local word_l = #word | ||||||
| 		local i = 1 | 		local i = 1 | ||||||
| 		while i <= word_l  do | 		while i <= word_l  do | ||||||
|  | 			local wide_c | ||||||
|  | 			if "&#x" == word:sub(i, i + 2) then | ||||||
|  | 				local j = i + 3 | ||||||
|  | 				local collected = "" | ||||||
|  | 				while j <= word_l do | ||||||
|  | 					local c = word:sub(j, j) | ||||||
|  | 					if c == ";" then | ||||||
|  | 						wide_c = collected | ||||||
|  | 						break | ||||||
|  | 					elseif c < "0" then | ||||||
|  | 						break | ||||||
|  | 					elseif "f" < c then | ||||||
|  | 						break | ||||||
|  | 					elseif ("9" < c) and (c < "a") then | ||||||
|  | 						break | ||||||
|  | 					else | ||||||
|  | 						collected = collected .. c | ||||||
|  | 						j = j + 1 | ||||||
|  | 					end | ||||||
|  | 				end | ||||||
|  | 			end | ||||||
| 			local c = word:sub(i, i) | 			local c = word:sub(i, i) | ||||||
| 			if c == "#" then | 			if c == "#" then | ||||||
| 				local cc = tonumber(word:sub(i+1, i+1), 16) | 				local cc = tonumber(word:sub(i+1, i+1), 16) | ||||||
| @@ -499,6 +554,25 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi | |||||||
| 					i = i + 1 | 					i = i + 1 | ||||||
| 					cur_color = cc | 					cur_color = cc | ||||||
| 				end | 				end | ||||||
|  | 			elseif wide_c then | ||||||
|  | 				local w = cwidth_tab_wide[wide_c] | ||||||
|  | 				if w then | ||||||
|  | 					width = width + w + 1 | ||||||
|  | 					if width >= (line_width - cwidth_tab[" "]) then | ||||||
|  | 						width = 0 | ||||||
|  | 					else | ||||||
|  | 						maxw = math_max(width, maxw) | ||||||
|  | 					end | ||||||
|  | 					if #chars < MAX_INPUT_CHARS then | ||||||
|  | 						table.insert(chars, { | ||||||
|  | 							off = ch_offs, | ||||||
|  | 							tex = char_tex_wide(font_name, wide_c), | ||||||
|  | 							col = ("%X"):format(cur_color), | ||||||
|  | 						}) | ||||||
|  | 					end | ||||||
|  | 					ch_offs = ch_offs + w | ||||||
|  | 				end | ||||||
|  | 				i = i + #wide_c + 3 | ||||||
| 			else | 			else | ||||||
| 				local w = cwidth_tab[c] | 				local w = cwidth_tab[c] | ||||||
| 				if w then | 				if w then | ||||||
| @@ -578,6 +652,7 @@ function signs_lib.make_sign_texture(lines, pos) | |||||||
| 	local line_width | 	local line_width | ||||||
| 	local line_height | 	local line_height | ||||||
| 	local char_width | 	local char_width | ||||||
|  | 	local char_width_wide | ||||||
| 	local colorbgw | 	local colorbgw | ||||||
| 	local widemult = 1 | 	local widemult = 1 | ||||||
|  |  | ||||||
| @@ -590,12 +665,14 @@ function signs_lib.make_sign_texture(lines, pos) | |||||||
| 		line_width = math.floor(signs_lib.avgwidth31 * def.chars_per_line) * (def.horiz_scaling * widemult) | 		line_width = math.floor(signs_lib.avgwidth31 * def.chars_per_line) * (def.horiz_scaling * widemult) | ||||||
| 		line_height = signs_lib.lineheight31 | 		line_height = signs_lib.lineheight31 | ||||||
| 		char_width = signs_lib.charwidth31 | 		char_width = signs_lib.charwidth31 | ||||||
|  | 		char_width_wide = signs_lib.charwidth_wide31 | ||||||
| 		colorbgw = signs_lib.colorbgw31 | 		colorbgw = signs_lib.colorbgw31 | ||||||
| 	else | 	else | ||||||
| 		font_size = 15 | 		font_size = 15 | ||||||
| 		line_width = math.floor(signs_lib.avgwidth15 * def.chars_per_line) * (def.horiz_scaling * widemult) | 		line_width = math.floor(signs_lib.avgwidth15 * def.chars_per_line) * (def.horiz_scaling * widemult) | ||||||
| 		line_height = signs_lib.lineheight15 | 		line_height = signs_lib.lineheight15 | ||||||
| 		char_width = signs_lib.charwidth15 | 		char_width = signs_lib.charwidth15 | ||||||
|  | 		char_width_wide = signs_lib.charwidth_wide15 | ||||||
| 		colorbgw = signs_lib.colorbgw15 | 		colorbgw = signs_lib.colorbgw15 | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| @@ -604,7 +681,7 @@ function signs_lib.make_sign_texture(lines, pos) | |||||||
| 	local lineno = 0 | 	local lineno = 0 | ||||||
| 	for i = 1, #lines do | 	for i = 1, #lines do | ||||||
| 		if lineno >= def.number_of_lines then break end | 		if lineno >= def.number_of_lines then break end | ||||||
| 		local linetex, ln = make_line_texture(lines[i], lineno, pos, line_width, line_height, char_width, font_size, colorbgw) | 		local linetex, ln = make_line_texture(lines[i], lineno, pos, line_width, line_height, char_width, font_size, colorbgw, char_width_wide) | ||||||
| 		table.insert(texture, linetex) | 		table.insert(texture, linetex) | ||||||
| 		lineno = ln + 1 | 		lineno = ln + 1 | ||||||
| 	end | 	end | ||||||
| @@ -623,11 +700,10 @@ end | |||||||
|  |  | ||||||
| function signs_lib.rightclick_sign(pos, node, player, itemstack, pointed_thing) | function signs_lib.rightclick_sign(pos, node, player, itemstack, pointed_thing) | ||||||
|  |  | ||||||
| 	local playername = player:get_player_name() | 	if not signs_lib.can_modify(pos, player) then return end | ||||||
| 	if not minetest.check_player_privs(playername, {signslib_edit = true}) then return end |  | ||||||
|  |  | ||||||
| 	player:get_meta():set_string("signslib:pos", minetest.pos_to_string(pos)) | 	player:get_meta():set_string("signslib:pos", minetest.pos_to_string(pos)) | ||||||
| 	minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name)) | 	minetest.show_formspec(player:get_player_name(), "signs_lib:sign", get_sign_formspec(pos, node.name)) | ||||||
| end | end | ||||||
|  |  | ||||||
| function signs_lib.destruct_sign(pos) | function signs_lib.destruct_sign(pos) | ||||||
| @@ -1152,7 +1228,7 @@ function get_sign_formspec(pos, nodename) | |||||||
|  |  | ||||||
| 	local formspec = { | 	local formspec = { | ||||||
| 		"size[6,4]", | 		"size[6,4]", | ||||||
| 		"textarea[0,-0.3;6.5,3;text;;" .. txt .. "]", | 		"textarea[0,-0.3;6.5,3;text;;" .. minetest.formspec_escape(txt) .. "]", | ||||||
| 		"background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]", | 		"background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]", | ||||||
| 		"button_exit[2,3.4;2,1;ok;" .. S("Write") .. "]" | 		"button_exit[2,3.4;2,1;ok;" .. S("Write") .. "]" | ||||||
| 	} | 	} | ||||||
| @@ -1196,14 +1272,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) | |||||||
| 			meta:set_int("widefont", 1) | 			meta:set_int("widefont", 1) | ||||||
| 			change = true | 			change = true | ||||||
| 		end | 		end | ||||||
|  |  | ||||||
| 		if change then | 		if change then | ||||||
| 			minetest.log("action", S("@1 flipped the wide-font switch to \"@2\" at @3", | 			minetest.log("action", S("@1 flipped the wide-font switch to \"@2\" at @3", | ||||||
| 				(playername or ""), | 				(playername or ""), | ||||||
| 				(fields.on and "off" or "on"), | 				(fields.on and "off" or "on"), | ||||||
| 				minetest.pos_to_string(pos) | 				minetest.pos_to_string(pos) | ||||||
| 			)) | 			)) | ||||||
| 			minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name)) |  | ||||||
| 			signs_lib.update_sign(pos, fields) | 			signs_lib.update_sign(pos, fields) | ||||||
|  | 			minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name)) | ||||||
| 		end | 		end | ||||||
| 	end | 	end | ||||||
| end) | end) | ||||||
|   | |||||||
| @@ -1,7 +0,0 @@ | |||||||
| default |  | ||||||
| intllib? |  | ||||||
| screwdriver? |  | ||||||
| streetspoles? |  | ||||||
| streetlamps? |  | ||||||
| cottages? |  | ||||||
| prefab_redo? |  | ||||||
| @@ -1 +0,0 @@ | |||||||
| Adds signs with readable text. |  | ||||||
							
								
								
									
										59
									
								
								encoding.lua
									
									
									
									
									
								
							
							
						
						| @@ -203,6 +203,32 @@ local utf8_decode = { | |||||||
| 	[210] = {[144] = "\165", [145] = "\180"} | 	[210] = {[144] = "\165", [145] = "\180"} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | local wide_character_codes = { | ||||||
|  | } | ||||||
|  |  | ||||||
|  | signs_lib.unicode_install = function( | ||||||
|  | 	numbers | ||||||
|  | ) | ||||||
|  | 	local scope = utf8_decode | ||||||
|  | 	for i = 1,#numbers-2 do | ||||||
|  | 		if not scope[numbers[i]] then | ||||||
|  | 			scope[numbers[i]] = {} | ||||||
|  | 		end | ||||||
|  | 		scope = scope[numbers[i]] | ||||||
|  | 	end | ||||||
|  | 	scope[numbers[#numbers-1]] = "&#x" .. numbers[#numbers] .. ";" | ||||||
|  | 	table.insert( | ||||||
|  | 		wide_character_codes, | ||||||
|  | 		numbers[#numbers] | ||||||
|  | 	) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | signs_lib.unicode_install({38,"26"}) | ||||||
|  |  | ||||||
|  | dofile(signs_lib.path.."/nonascii-de.lua") | ||||||
|  | dofile(signs_lib.path.."/nonascii-fr.lua") | ||||||
|  | dofile(signs_lib.path.."/nonascii-pl.lua") | ||||||
|  |  | ||||||
| local nmdc = { | local nmdc = { | ||||||
| 	[36] = "$", | 	[36] = "$", | ||||||
| 	[124] = "|" | 	[124] = "|" | ||||||
| @@ -230,36 +256,33 @@ function AnsiToUtf8(s) | |||||||
| end | end | ||||||
|  |  | ||||||
| function Utf8ToAnsi(s) | function Utf8ToAnsi(s) | ||||||
| 	local a, j, r, b = 0, 0, "" | 	local a, j, r, b, scope = 0, 0, "" | ||||||
| 	for i = 1, s and s:len() or 0 do | 	for i = 1, s and s:len() or 0 do | ||||||
| 		b = s:byte(i) | 		b = s:byte(i) | ||||||
| 		if b < 128 then | 		if b == 0x26 then | ||||||
|  | 			r = r .. "&" | ||||||
|  | 		elseif b < 128 then | ||||||
| 			if nmdc[b] then | 			if nmdc[b] then | ||||||
| 				r = r .. nmdc[b] | 				r = r .. nmdc[b] | ||||||
| 			else | 			else | ||||||
| 				r = r .. string.char(b) | 				r = r .. string.char(b) | ||||||
| 			end | 			end | ||||||
| 		elseif a == 2 then | 		elseif scope then | ||||||
| 			a, j = a - 1, b | 			if scope[b] then | ||||||
| 		elseif a == 1 then | 				scope = scope[b] | ||||||
| 			--if j == nil or b == nil then return r end | 				if "string" == type(scope) then | ||||||
| 			--print(j) | 					r, scope = r .. scope | ||||||
| 			--print(b) |  | ||||||
| 			--local ansi = utf8_decode[j] |  | ||||||
| 			--if ansi == nil then return r end |  | ||||||
| 			--if ansi[b] == nil then return r end |  | ||||||
| 			if utf8_decode[j] then |  | ||||||
| 				if utf8_decode[j][b] then |  | ||||||
| 					a, r = a - 1, r .. utf8_decode[j][b] |  | ||||||
| 				end | 				end | ||||||
|  | 			else | ||||||
|  | 				r, scope = r .. "_" | ||||||
| 			end | 			end | ||||||
| 		elseif b == 226 then | 		elseif utf8_decode[b] then | ||||||
| 			a = 2 | 			scope = utf8_decode[b] | ||||||
| 		elseif b == 194 or b == 208 or b == 209 or b == 210 then |  | ||||||
| 			j, a = b, 1 |  | ||||||
| 		else | 		else | ||||||
| 			r = r .. "_" | 			r = r .. "_" | ||||||
| 		end | 		end | ||||||
| 	end | 	end | ||||||
| 	return r | 	return r | ||||||
| end | end | ||||||
|  |  | ||||||
|  | signs_lib.wide_character_codes = wide_character_codes | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						| @@ -10,7 +10,7 @@ signs_lib.path = minetest.get_modpath(minetest.get_current_modname()) | |||||||
| local S, NS = dofile(signs_lib.path .. "/intllib.lua") | local S, NS = dofile(signs_lib.path .. "/intllib.lua") | ||||||
| signs_lib.gettext = S | signs_lib.gettext = S | ||||||
|  |  | ||||||
| dofile(signs_lib.path.."/api.lua") |  | ||||||
| dofile(signs_lib.path.."/encoding.lua") | dofile(signs_lib.path.."/encoding.lua") | ||||||
|  | dofile(signs_lib.path.."/api.lua") | ||||||
| dofile(signs_lib.path.."/standard_signs.lua") | dofile(signs_lib.path.."/standard_signs.lua") | ||||||
| dofile(signs_lib.path.."/compat.lua") | dofile(signs_lib.path.."/compat.lua") | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						| @@ -1,2 +1,6 @@ | |||||||
| name = signs_lib | name = signs_lib | ||||||
| min_minetest_version = 5.2.0 | author = VanessaE | ||||||
|  | depends = default | ||||||
|  | optional_depends = intllib, screwdriver, streetspoles, streetlamps, cottages, prefab_redo | ||||||
|  | description = Adds signs with readable text. | ||||||
|  | min_minetest_version = 5.4.0 | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								nonascii-de.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,7 @@ | |||||||
|  | signs_lib.unicode_install({195,132,"00c4"}) | ||||||
|  | signs_lib.unicode_install({195,150,"00d6"}) | ||||||
|  | signs_lib.unicode_install({195,156,"00dc"}) | ||||||
|  | signs_lib.unicode_install({195,159,"00df"}) | ||||||
|  | signs_lib.unicode_install({195,164,"00e4"}) | ||||||
|  | signs_lib.unicode_install({195,182,"00f6"}) | ||||||
|  | signs_lib.unicode_install({195,188,"00fc"}) | ||||||
							
								
								
									
										16
									
								
								nonascii-fr.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,16 @@ | |||||||
|  | signs_lib.unicode_install({195,128,"00c0"}) | ||||||
|  | signs_lib.unicode_install({195,134,"00c6"}) | ||||||
|  | signs_lib.unicode_install({195,135,"00c7"}) | ||||||
|  | signs_lib.unicode_install({195,136,"00c8"}) | ||||||
|  | signs_lib.unicode_install({195,137,"00c9"}) | ||||||
|  | signs_lib.unicode_install({195,138,"00ca"}) | ||||||
|  | signs_lib.unicode_install({195,148,"00d4"}) | ||||||
|  | signs_lib.unicode_install({195,153,"00d9"}) | ||||||
|  | signs_lib.unicode_install({195,160,"00e0"}) | ||||||
|  | signs_lib.unicode_install({195,166,"00e6"}) | ||||||
|  | signs_lib.unicode_install({195,167,"00e7"}) | ||||||
|  | signs_lib.unicode_install({195,168,"00e8"}) | ||||||
|  | signs_lib.unicode_install({195,169,"00e9"}) | ||||||
|  | signs_lib.unicode_install({195,170,"00ea"}) | ||||||
|  | signs_lib.unicode_install({195,180,"00f4"}) | ||||||
|  | signs_lib.unicode_install({195,185,"00f9"}) | ||||||
							
								
								
									
										16
									
								
								nonascii-pl.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,16 @@ | |||||||
|  | signs_lib.unicode_install({195,147,"00d3"}) | ||||||
|  | signs_lib.unicode_install({195,179,"00f3"}) | ||||||
|  | signs_lib.unicode_install({196,132,"0104"}) | ||||||
|  | signs_lib.unicode_install({196,133,"0105"}) | ||||||
|  | signs_lib.unicode_install({196,134,"0106"}) | ||||||
|  | signs_lib.unicode_install({196,135,"0107"}) | ||||||
|  | signs_lib.unicode_install({196,152,"0118"}) | ||||||
|  | signs_lib.unicode_install({196,153,"0119"}) | ||||||
|  | signs_lib.unicode_install({197,129,"0141"}) | ||||||
|  | signs_lib.unicode_install({197,130,"0142"}) | ||||||
|  | signs_lib.unicode_install({197,154,"015a"}) | ||||||
|  | signs_lib.unicode_install({197,155,"015b"}) | ||||||
|  | signs_lib.unicode_install({197,185,"0179"}) | ||||||
|  | signs_lib.unicode_install({197,186,"017a"}) | ||||||
|  | signs_lib.unicode_install({197,187,"017b"}) | ||||||
|  | signs_lib.unicode_install({197,188,"017c"}) | ||||||
| @@ -14,7 +14,8 @@ signs_lib.register_sign("default:sign_wall_wood", { | |||||||
| 	allow_widefont = true, | 	allow_widefont = true, | ||||||
| 	allow_onpole = true, | 	allow_onpole = true, | ||||||
| 	allow_onpole_horizontal = true, | 	allow_onpole_horizontal = true, | ||||||
| 	allow_yard = true | 	allow_yard = true, | ||||||
|  | 	use_texture_alpha = "clip", | ||||||
| }) | }) | ||||||
|  |  | ||||||
| signs_lib.register_sign("default:sign_wall_steel", { | signs_lib.register_sign("default:sign_wall_steel", { | ||||||
| @@ -35,7 +36,8 @@ signs_lib.register_sign("default:sign_wall_steel", { | |||||||
| 	allow_widefont = true, | 	allow_widefont = true, | ||||||
| 	allow_onpole = true, | 	allow_onpole = true, | ||||||
| 	allow_onpole_horizontal = true, | 	allow_onpole_horizontal = true, | ||||||
| 	allow_yard = true | 	allow_yard = true, | ||||||
|  | 	use_texture_alpha = "clip", | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_alias("signs:sign_hanging",                   "default:sign_wood_hanging") | minetest.register_alias("signs:sign_hanging",                   "default:sign_wood_hanging") | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00c0.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 337 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00c4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 337 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00c6.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 345 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00c7.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 334 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00c8.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 323 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00c9.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 324 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00ca.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 325 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00d3.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 331 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00d4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 341 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00d6.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 341 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00d9.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 324 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00dc.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 326 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00df.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 332 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00e0.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 332 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00e4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 328 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00e6.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 340 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00e7.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 329 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00e8.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 337 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00e9.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 333 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00ea.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 337 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00f3.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 330 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00f4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 334 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00f6.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 332 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00f9.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 327 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_00fc.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 319 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0104.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 339 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0105.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 331 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0106.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 334 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0107.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 329 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0118.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 323 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0119.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 332 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0141.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 319 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0142.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 310 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_015a.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 340 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_015b.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 330 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_0179.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 329 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_017a.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 324 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_017b.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 329 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/signs_lib_font_15px_017c.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 326 B | 
| Before Width: | Height: | Size: 83 B After Width: | Height: | Size: 305 B | 
| Before Width: | Height: | Size: 83 B After Width: | Height: | Size: 296 B | 
| Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 323 B | 
| Before Width: | Height: | Size: 112 B After Width: | Height: | Size: 332 B | 
| Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 347 B | 
| Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 341 B | 
| Before Width: | Height: | Size: 78 B After Width: | Height: | Size: 299 B | 
| Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 312 B | 
| Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 312 B | 
| Before Width: | Height: | Size: 90 B After Width: | Height: | Size: 313 B | 
| Before Width: | Height: | Size: 84 B After Width: | Height: | Size: 309 B | 
| Before Width: | Height: | Size: 79 B After Width: | Height: | Size: 302 B | 
| Before Width: | Height: | Size: 77 B After Width: | Height: | Size: 298 B | 
| Before Width: | Height: | Size: 77 B After Width: | Height: | Size: 298 B | 
| Before Width: | Height: | Size: 93 B After Width: | Height: | Size: 313 B | 
| Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 316 B | 
| Before Width: | Height: | Size: 87 B After Width: | Height: | Size: 318 B | 
| Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 332 B | 
| Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 334 B | 
| Before Width: | Height: | Size: 103 B After Width: | Height: | Size: 326 B | 
| Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 325 B | 
| Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 331 B | 
| Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 321 B | 
| Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 328 B | 
| Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 332 B | 
| Before Width: | Height: | Size: 77 B After Width: | Height: | Size: 298 B | 
| Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 305 B | 
| Before Width: | Height: | Size: 96 B After Width: | Height: | Size: 322 B | 
| Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 302 B | 
| Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 324 B | 
| Before Width: | Height: | Size: 102 B After Width: | Height: | Size: 329 B | 
| Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 359 B | 
| Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 332 B | 
| Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 324 B | 
| Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 330 B | 
| Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 330 B | 
| Before Width: | Height: | Size: 92 B After Width: | Height: | Size: 315 B | 
| Before Width: | Height: | Size: 91 B After Width: | Height: | Size: 311 B | 
| Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 335 B | 
| Before Width: | Height: | Size: 89 B After Width: | Height: | Size: 313 B | 
| Before Width: | Height: | Size: 77 B After Width: | Height: | Size: 300 B | 
| Before Width: | Height: | Size: 91 B After Width: | Height: | Size: 319 B | 
| Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 336 B | 
| Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 305 B | 
| Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 333 B | 
| Before Width: | Height: | Size: 103 B After Width: | Height: | Size: 329 B | 
| Before Width: | Height: | Size: 116 B After Width: | Height: | Size: 333 B | 
| Before Width: | Height: | Size: 99 B After Width: | Height: | Size: 321 B | 
| Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 338 B | 
| Before Width: | Height: | Size: 100 B After Width: | Height: | Size: 330 B | 
| Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 337 B |