Mikita Wiśniewski
25965094e2
Signs code and documentation clean-up
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
080513412f
Add an option to choose which wrap character to use
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
666f2ebacb
Get rid of Lua string processing, use UTF-8 strings
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
ee3e358d8f
Use codepoints for charmap
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
77b39e25c9
Fix placing signs on buildable_to nodes
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
bd2317e9ad
Fix character wrap overflow and add Ș and Ț
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
501b11a81d
Add C with caron (Latin-2)
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
7d44155ea6
Fix bamboo signs not being converted
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
85dcaa0f61
Check protection earlier in signs' on_rightclick
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
607a0295f6
Re-add cherry and bamboo sign recipes
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
56a2e5008a
Guard against invalid UTF-8 instead of crashing the server
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
a0ba232ca7
Signs code clean-up
2025-02-25 21:40:58 +07:00
Mikita Wiśniewski
8ab4748c0c
Improve API documentation and readability
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
0deb03766b
Add Greek support and extend Cyrillics
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
30c05c8e69
Use UTF-8 codepoint parsing and disable word wrap
...
characters get hyphenated and line broken instead
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
122b8b6ea0
Switch to using TSV for charmap, add Cyrillic support
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
4d1c9aac1a
Fix and optimize word wrapping algorithm
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
82bf44e793
Clean-up, remove the obsolete 04.jp.org attribution
...
the font is not coming from them. also, the 04.jp.org bitmap fonts are all crayon-licensed with no commercial use allowed, so it's not good to claim to source your bitmaps from them
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
e4e8e324ff
Latin-4 support
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
17f8fa0ed8
Add Latin-3 support
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
8f9f1822b1
Fix word wrap with empty lines, make it a global setting
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
ca2cb679a1
Improve word wrap
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
d9019ce341
Add Latin-2 support and zopfli all sign chars
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
3a597ed86e
Implement greedy word wrap
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
f1a4391bc4
Fix old signs conversion
2025-02-25 21:40:57 +07:00
goblin_mode
0e66a42b78
Move signs to "decorations" category
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
0824649e2e
Clean-up
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
07f08287b3
Update mcl_signs's mod.conf and fluff
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
ad950d88f0
Restore the ability to color signs with dye
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
02de0103b1
Decouple mcl_signs/init.lua
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
723814acd6
Clean-up, improve compatibility code and remove the editable signs setting
2025-02-25 21:40:57 +07:00
ellesheepy
d53c92a539
Fix Å displayed as å.
2025-02-25 21:40:57 +07:00
Mikita Wiśniewski
a0b7293a2e
Adapt mcl_signs for VoxeLibre
...
also re-adds some files missed by rebase, in particular Wuzzy's sign models and ryvnf's greyscale sign textures
2025-02-25 21:40:57 +07:00
Jürgen Rühle
5bd1252cab
Use item_place_node instead of item_place after mcl_util.call_on_rightclick
...
This prevents (harmlessly) checking for on_rightclick a second time.
2025-02-25 21:40:57 +07:00
cora
25b9b927c9
Fix sign text being erased when hitting ESC in formspec
2025-02-25 21:40:57 +07:00
Elias Åström
66887d044e
Fix placing sign with empty text getting "nil"
2025-02-25 21:40:57 +07:00
cora
f2028670cf
Add missing dependency for mcl_signs
...
random mod load order appears to work fine now
2025-02-25 21:40:57 +07:00
cora
1167898147
Fix lua_ls warnings in mcl_signs
2025-02-25 21:40:57 +07:00
cora
1003affbeb
Limit amount of text saved in signs meta to 256 chars
2025-02-25 21:40:57 +07:00
cora
f8a46546b4
Fix mistake in handling of signs text entity
...
the i = 0 clearly needs to be outside of the loop
2025-02-25 21:40:57 +07:00
cora
00d05c9676
Make sure only one text entity exists for signs
2025-02-25 21:40:57 +07:00
cora
3999b74c5f
Add mcl_signs API documentation
2025-02-25 21:40:57 +07:00
cora
55c87966a6
Fix crash when signs text get_properties returns are nil
2025-02-25 21:40:57 +07:00
cora
6e879752d1
Remove empty sign texture entities
2025-02-25 21:40:57 +07:00
cora
1cb6b8a275
Potentially fix the mcl_signs texture bug
...
Sometimes signs show unknown texture textures
2025-02-25 21:40:57 +07:00
Jürgen Rühle
67d4a2eb0a
Fix CR as 1st/16th char in a line
...
Rename cr to cr_last and introduce is_cr and is_lf for readability.
Update the internal state correctly in all cases:
- cr_last is set to true if, and only if the current char is CR
- add is set to true if, and only if the current char is neither CR nor LF
Also gobble up CR before doing any linebreak stuff.
2025-02-25 21:40:57 +07:00
Jürgen Rühle
3ab40e6801
Add simple line breaking
2025-02-25 21:40:57 +07:00
Jürgen Rühle
6ffee07cfb
Handle CR and CR LF sequences in sign text
2025-02-25 21:40:57 +07:00
cora
3bfc4244ca
Respect protection when editing signs
2025-02-25 21:40:57 +07:00
cora
5c7c2d2b60
Optionally allow editing signs
2025-02-25 21:40:57 +07:00