Commit Graph

159 Commits

Author SHA1 Message Date
syimyuzya c757410737 Update README about Unicode support 2021-12-06 16:35:22 +08:00
syimyuzya 763733bf52 Improve escaping syntax
`#` is now a general escaping character:

- `#[0-9a-fA-F]` changes color
- `##` and `#^` produces literal `#` and `^` respectively
- A `#` not followed by characters above produces a normal `#`

Examples:

- `^3` produces `→`
- `#^3` produces `^3`
- `##^3` produces `#→`
- `###^3` produces `#^3`
- `####^3` produces `##→`
- `^k` and `#^k` both produce `^k` (`^k` is not a valid arrow sequence)
- `##^k` and `###^k` both produce `#^k`
- `####^k` produces `##^k`
- `#1` changes color
- `##1` produces `#1`
- `###1` produces `#`, then changes color
- `####1` produces `##1`
- `#k` and `##k` both produce `#k` (`k` is not a hex digit)
- `##` produces `#`
- `###` and `####` both produce `##`
2021-12-06 15:58:25 +08:00
syimyuzya 65c86c8a9c Distinguish Unifont full/half-width & split sheets 2021-12-06 15:06:59 +08:00
syimyuzya 79b74178f6 Add unicode-font switch 2021-12-06 12:19:37 +08:00
syimyuzya 36e58a6622 Add & test force_unicode_font 2021-12-06 11:44:18 +08:00
syimyuzya 850bfa74a7 Render `&#u...;` chars using Unifont 2021-12-05 21:12:10 +08:00
syimyuzya 2ba26cc9cc Fully support UTF-8 decoding
`Utf8ToAnsi` now parses all UTF-8 code points, chars not in
`utf8_decode` are represented by `&#u<hex>;` sequence.

Note: `&#x...;` and `&#u...;` have different meanings. The former
represents a char with an individual PNG glyph, and the latter a char
without one (and have to fallback to Unifont).
2021-12-05 19:16:21 +08:00
syimyuzya 2da37c48c0 Add note about the "ANSI" encoding 2021-12-05 16:49:20 +08:00
syimyuzya 7e4e2a7adb Fix accents 2021-12-05 16:49:04 +08:00
syimyuzya b18bba0c56 Change font size to 16 & 32px 2021-12-05 16:07:47 +08:00
Vanessa Dannenberg 1327cb2112 make sure digger is valid before checking for creative
(else assume survival)
2021-07-15 15:14:52 -04:00
OgelGames c08eb3452f allow writing `#` on signs 2021-06-05 17:06:08 +10:00
Vanessa Dannenberg 3ee06f9ba2 protect against nil player on rightclick
(some mods' machines don't supply a valid player object)
2021-06-03 08:40:45 -04:00
Vanessa Dannenberg 02c19e89d9 don't try to run the glow code if the sign's being punched by a machine
that doesn't use a fake player object e.g. basic_machines
2021-05-29 08:03:50 -04:00
Vanessa Dannenberg 8b6f5e23a6 fix typo 2021-05-28 13:24:01 -04:00
tenplus1 85dd92fb25 update register_sign to add glow effect for all signs with allow_glow check. 2021-05-27 19:07:46 +00:00
tenplus1 16b9251511 Add glow feature to signs, with three brightness levels 2021-05-27 17:33:20 +00:00
Vanessa Dannenberg b0fac5ef9f remove the old blue/starry background
(replaced with a transparent image so that
it can still be themed by Dreambuilder)
tidied up the formspec a bit
2021-03-04 09:40:14 -05:00
Vanessa Dannenberg 34689b5b04 bump minimum engine ver 2021-03-04 08:47:17 -05:00
bri cassa 8b6e41c3fe Fix warnings regarding use_texture_alpha
Add use_texture_alpha = "clip" for standard signs.
Break Minetest 5.4< compatibility.
2021-02-28 12:27:34 +01:00
Nathaniel Freeman d077d23f1a mod.conf update to minetest 5.2.0+ compat 2021-02-27 05:15:21 +00:00
tenplus1 d71dcf4874 add text check for entity creation 2021-02-19 09:33:14 +00:00
Isidor Zeuner ac8b00f826 Merge branch 'nonascii' into nonascii-european-test 2021-02-17 17:37:36 +01:00
Isidor Zeuner 707f633f0d Merge branch 'master' into nonascii 2021-02-17 17:37:11 +01:00
VanessaE 8527f1d5b2 writing [ or ] into a sign breaks the form for some users
the exact effect varies with client behavior and the particular text contents.
(characters erased, disappering formspec elements, loss of text)
2021-01-21 13:34:58 -05:00
Vanessa Dannenberg 3c824aedf8 Merge branch 'updateonoff' into 'master'
On/off switch doesn't reset the text anymore

See merge request VanessaE/signs_lib!5
2021-01-18 15:18:55 +00:00
Zughy fe72e32396 update on off 2021-01-16 11:57:06 +01:00
Vanessa Dannenberg f7a4fefd34 Merge branch 'no_priv' into 'master'
Sign and land owners always able to edit a sign

See merge request VanessaE/signs_lib!4
2021-01-08 18:29:44 +00:00
Zughy 664e99d34a Sign and land owners always able to edit a sign 2021-01-08 18:29:44 +00:00
Vanessa Dannenberg e3c5fd2736 Merge branch 'separate_formspec' into 'master'
Signs formspec as separate formspecs (instead of dwelling in nodes metadata)

See merge request VanessaE/signs_lib!3
2021-01-03 18:39:29 +00:00
Zughy e7ab3e66a7 Signs formspec as separate formspecs (instead of dwelling in nodes metadata) 2021-01-03 18:39:29 +00:00
Isidor Zeuner c82952befb Merge branch 'nonascii' into nonascii-european-test 2020-12-07 13:45:07 +01:00
Isidor Zeuner 26c3935c9b add texture generation scripts from https://github.com/zeuner/signs-font-generate 2020-12-07 13:38:31 +01:00
Isidor Zeuner 3ef11a995b recreate textures using latest version of https://github.com/zeuner/signs-font-generate 2020-12-05 18:55:42 +01:00
Isidor Zeuner 22af21aeaf Merge branch 'nonascii' into nonascii-european-test 2020-12-05 18:53:57 +01:00
Isidor Zeuner af45e591e3 recreate textures using https://github.com/zeuner/signs-font-generate 2020-12-05 18:53:42 +01:00
Isidor Zeuner b174cea893 Merge branch 'nonascii' into nonascii-european-test 2020-11-26 05:54:25 +01:00
Isidor Zeuner 4a196211ee Merge branch 'master' into nonascii 2020-11-26 05:53:45 +01:00
Isidor Zeuner 942e91e00e better align to existing font 2020-11-14 13:04:50 +01:00
Isidor Zeuner 4b2d4db848 test with some european languages 2020-11-13 12:08:39 +01:00
Isidor Zeuner 4b432eec08 support for non-ascii characters 2020-11-12 06:22:34 +01:00
Isidor Zeuner d956c87dbc support for non-ascii characters 2020-11-12 06:02:56 +01:00
VanessaE 1a6b9f38ff enable static save on signs' entities 2020-11-01 12:43:55 -05:00
VanessaE 8b975d7fa1 add minimum minetest version key for contentdb 2020-06-03 13:00:34 -04:00
VanessaE b633a4bf8c fix wrong default sign entity ref 2020-04-16 17:06:07 -04:00
Vanessa Dannenberg bd20f9b776 add prefab_redo to opt depends 2020-02-26 16:03:48 +00:00
Vanessa Dannenberg 7c6a1c7611 add some missing aliases (and rearrange them) 2019-10-22 15:25:58 -04:00
Vanessa Dannenberg bd8ae112d0 README tweaks 2019-10-11 06:00:31 -04:00
Vanessa Dannenberg 8669385718 various readability improvements
in API.md, MODELS.md, and README.md

I also added a couple of things to API.md that I forgot to
document before.
2019-09-26 03:27:01 -04:00
Vanessa Dannenberg 0398684bfb tweak README 2019-09-26 02:01:06 -04:00