Add Greek support and extend Cyrillics

This commit is contained in:
Mikita Wiśniewski 2025-01-26 15:36:00 +07:00
parent 30c05c8e69
commit 0deb03766b
66 changed files with 130 additions and 13 deletions

View file

@ -4,7 +4,7 @@
* `mcl_signs.register_sign(name, color, [definition])`
* `name` is the part of the namestring that will follow `"mcl_signs:"`
* `color` is the HEX color value to color the greyscale sign texture with.
* `color` is the HEX color value to color the greyscale sign texture with.\
**Hint:** use `""` or `"#ffffff"` if you're overriding the texture fields
in sign definition
* `definition` is optional, see section below for reference
@ -15,12 +15,14 @@
{
-- This can contain any node definition fields which will ultimately make
-- up the sign nodes.
-- Usually you'll want to at least supply `description`.
-- Usually you'll want to at least supply `description`:
description = S("Significant Sign"),
-- If you don't want to use texture coloring, you'll have to supply the
-- textures yourself:
tiles = {"vl_significant_sign.png"},
inventory_image = "vl_significant_sign_inv.png",
wield_image = "vl_significant_sign_inv.png",
}
```
@ -32,7 +34,7 @@ opening it in a spreadsheet editor, it's still plaintext values separated with
`\t` (tab idents). The separated values are _columns_, and the lines they are
located at are _cells_. 1 cell and 3 columns per character:
* **Column 1:** The literal UTF-8 encoded character
* **Column 1:** The literal (as-is) glyph. Only [precomposed characters](https://en.wikipedia.org/wiki/Precomposed_character) are supported
* **Column 2:** Name of the texture file for this character minus the ".png"
suffix (found in the "textures/" sub-directory in root)
* **Column 3:** Currently ignored. This is reserved for character width in

View file

@ -1,18 +1,42 @@
# `mcl_signs`
* Originally based on reworked signs mod by PilzAdam (<https://forum.minetest.net/viewtopic.php?t=3289>)
* Originally based on reworked signs mod by PilzAdam (<https://forum.luanti.org/viewtopic.php?t=3289>)
* Adapted for MineClone2 by Wuzzy
* Later massively extended by Michieal
* Mostly rewritten for Mineclonia and simplified by cora
* Re-adapted for VoxeLibre and improved upon by rudzik8
## Characters
All characters are mapped to their textures in `characters.tsv`. See `API.md`
for technical details.
Currently supported character sets:
* [ASCII](https://en.wikipedia.org/wiki/ASCII)
* [Latin-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) (Western European)
* [Latin-2](https://en.wikipedia.org/wiki/ISO/IEC_8859-2) (Central/Eastern European)
* [Latin-3](https://en.wikipedia.org/wiki/ISO/IEC_8859-3) (South European)
* [Latin-4](https://en.wikipedia.org/wiki/ISO/IEC_8859-4) (North European)
* [Latin-5/Cyrillic](https://en.wikipedia.org/wiki/ISO/IEC_8859-5)
* with additional glyphs and diacritics
* [Latin-7/Greek](https://en.wikipedia.org/wiki/ISO/IEC_8859-7)
* Other math-related/miscellaneous characters
## License
Code and font: MIT (see `LICENSE` file for details)
**Code:** MIT
* `utf8.lua` is from `modlib`, by Lars Mueller alias LMD or appguru(eu) [(source)](https://github.com/appgurueu/modlib/blob/master/utf8.lua)
* See `LICENSE` file for details
`utf8.lua` is taken from `modlib`, by Lars Mueller alias LMD or appguru(eu): [source](https://github.com/appgurueu/modlib/blob/master/utf8.lua)
**Font:** CC0
* Originally by PilzAdam (WTFPL)
* Modified and massively extended by rudzik8
* Can be found in the `/textures` sub-directory of game root, prefixed with `_`
* See <https://creativecommons.org/publicdomain/zero/1.0/> for details
License of models: GPLv3 (https://www.gnu.org/licenses/gpl-3.0.html)\
Models author: 22i.\
Source: <https://github.com/22i/amc>
**Models:** GPLv3
* by 22i: <https://github.com/22i/amc>
* See <https://www.gnu.org/licenses/gpl-3.0.html> for details

View file

@ -121,7 +121,6 @@ _ _un 3
¥ _yen 5
¤ _currency 5
£ _pound 5
µ _mu 5
¡ _ex_inv 5
¬ _not 5
¯ _macron 5
@ -310,6 +309,8 @@ _ _un 3
ӑ _a_breve 5
Ӓ _ae_ 7
ӓ _ae 5
Ә _cyr_ae_ 5
ә _cyr_ae 5
Б _cyr_b_ 5
б _cyr_b 5
В _b_ 5
@ -318,6 +319,8 @@ _ _un 3
г _cyr_g 5
Ґ _cyr_ge_ 5
ґ _cyr_ge 5
Ғ _cyr_g_stroke_ 5
ғ _cyr_g_stroke 5
Д _cyr_d_ 5
д _g 5
Ђ _cyr_dje_ 5
@ -332,8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tonos_ 5
ή _grk_eta_tonos 4
Θ _cyr_oo_ 4
θ _grk_th 4
Ι _i_ 5
ι _i_dotless 5
Ί _grk_i_tonos_ 5
ί _grk_i_tonos 5
Ϊ _cyr_yi_ 5
ϊ _cyr_yi 5
ΐ _grk_i_dtonos 5
Κ _k_ 5
κ _cyr_k 4
Ϗ _grk_kai_ 5
ϗ _grk_kai 5
Λ _grk_l_ 5
λ _grk_l 4
Μ _m_ 5
µ _mu 5
Ν _n_ 5
ν _v 5
Ξ _grk_xi_ 5
ξ _grk_xi 5
Ο _o_ 4
ο _o 4
Ό _grk_o_tonos_ 5
ό _grk_o_tonos 4
Π _cyr_p_ 6
π _grk_pi 5
Ρ _p_ 5
ρ _grk_r 4
Σ _grk_s_ 5
σ _grk_s 5
ς _grk_c 5
Τ _t_ 5
τ _grk_t 5
Υ _y_ 5
υ _u 5
Ύ _grk_u_tonos_ 5
ύ _grk_u_tonos 5
Ϋ _y_diaresis_ 5
ϋ _ue 5
ΰ _grk_u_dtonos 5
Φ _cyr_f_ 5
φ _grk_f 5
Χ _x_ 5
χ _grk_ch 5
Ψ _grk_ps_ 5
ψ _grk_ps 5
Ω _grk_om_ 4
ω _grk_om 5
Ώ _grk_om_tonos_ 4
ώ _grk_om_tonos 5

Can't render this file because it contains an unexpected character in line 511 and column 20.

Binary file not shown.

Before

(image error) Size: 88 B

After

(image error) Size: 89 B

Binary file not shown.

Before

(image error) Size: 90 B

After

(image error) Size: 91 B

BIN
textures/_cyr_ae.png Normal file

Binary file not shown.

After

(image error) Size: 83 B

BIN
textures/_cyr_ae_.png Normal file

Binary file not shown.

After

(image error) Size: 86 B

BIN
textures/_cyr_g_stroke.png Normal file

Binary file not shown.

After

(image error) Size: 82 B

BIN
textures/_cyr_g_stroke_.png Normal file

Binary file not shown.

After

(image error) Size: 84 B

BIN
textures/_cyr_h_.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_cyr_kh.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_cyr_kh_.png Normal file

Binary file not shown.

After

(image error) Size: 94 B

BIN
textures/_cyr_ng.png Normal file

Binary file not shown.

After

(image error) Size: 91 B

BIN
textures/_cyr_ng_.png Normal file

Binary file not shown.

After

(image error) Size: 92 B

BIN
textures/_cyr_oo.png Normal file

Binary file not shown.

After

(image error) Size: 86 B

BIN
textures/_cyr_oo_.png Normal file

Binary file not shown.

After

(image error) Size: 88 B

BIN
textures/_cyr_ue.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_cyr_ue_.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_cyr_uu.png Normal file

Binary file not shown.

After

(image error) Size: 87 B

View file

Before

(image error) Size: 86 B

After

(image error) Size: 86 B

View file

Before

(image error) Size: 86 B

After

(image error) Size: 86 B

BIN
textures/_cyr_zh_breve.png Normal file

Binary file not shown.

After

(image error) Size: 95 B

BIN
textures/_cyr_zh_breve_.png Normal file

Binary file not shown.

After

(image error) Size: 95 B

BIN
textures/_grk_a.png Normal file

Binary file not shown.

After

(image error) Size: 84 B

BIN
textures/_grk_a_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_grk_a_tonos_.png Normal file

Binary file not shown.

After

(image error) Size: 92 B

BIN
textures/_grk_b.png Normal file

Binary file not shown.

After

(image error) Size: 88 B

BIN
textures/_grk_c.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_grk_ch.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_grk_d.png Normal file

Binary file not shown.

After

(image error) Size: 88 B

BIN
textures/_grk_d_.png Normal file

Binary file not shown.

After

(image error) Size: 87 B

BIN
textures/_grk_e.png Normal file

Binary file not shown.

After

(image error) Size: 83 B

BIN
textures/_grk_e_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_grk_e_tonos_.png Normal file

Binary file not shown.

After

(image error) Size: 93 B

BIN
textures/_grk_eta.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_grk_eta_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 93 B

Binary file not shown.

After

(image error) Size: 95 B

BIN
textures/_grk_f.png Normal file

Binary file not shown.

After

(image error) Size: 87 B

BIN
textures/_grk_i_dtonos.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_grk_i_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 86 B

BIN
textures/_grk_i_tonos_.png Normal file

Binary file not shown.

After

(image error) Size: 84 B

BIN
textures/_grk_kai.png Normal file

Binary file not shown.

After

(image error) Size: 91 B

BIN
textures/_grk_kai_.png Normal file

Binary file not shown.

After

(image error) Size: 95 B

BIN
textures/_grk_l.png Normal file

Binary file not shown.

After

(image error) Size: 87 B

BIN
textures/_grk_l_.png Normal file

Binary file not shown.

After

(image error) Size: 86 B

BIN
textures/_grk_o_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_grk_o_tonos_.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_grk_om.png Normal file

Binary file not shown.

After

(image error) Size: 84 B

BIN
textures/_grk_om_.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_grk_om_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 90 B

BIN
textures/_grk_om_tonos_.png Normal file

Binary file not shown.

After

(image error) Size: 92 B

BIN
textures/_grk_pi.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_grk_ps.png Normal file

Binary file not shown.

After

(image error) Size: 86 B

BIN
textures/_grk_ps_.png Normal file

Binary file not shown.

After

(image error) Size: 87 B

BIN
textures/_grk_r.png Normal file

Binary file not shown.

After

(image error) Size: 84 B

BIN
textures/_grk_s.png Normal file

Binary file not shown.

After

(image error) Size: 83 B

BIN
textures/_grk_s_.png Normal file

Binary file not shown.

After

(image error) Size: 87 B

BIN
textures/_grk_t.png Normal file

Binary file not shown.

After

(image error) Size: 85 B

BIN
textures/_grk_th.png Normal file

Binary file not shown.

After

(image error) Size: 88 B

BIN
textures/_grk_u_dtonos.png Normal file

Binary file not shown.

After

(image error) Size: 95 B

BIN
textures/_grk_u_tonos.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_grk_u_tonos_.png Normal file

Binary file not shown.

After

(image error) Size: 95 B

BIN
textures/_grk_xi.png Normal file

Binary file not shown.

After

(image error) Size: 88 B

BIN
textures/_grk_xi_.png Normal file

Binary file not shown.

After

(image error) Size: 85 B

BIN
textures/_grk_z.png Normal file

Binary file not shown.

After

(image error) Size: 89 B

BIN
textures/_y_diaresis_.png Normal file

Binary file not shown.

After

(image error) Size: 93 B