Skip to content

Commit 8cedfcc

Browse files
committed
Update to 0.4.0
1 parent 8d8f62a commit 8cedfcc

File tree

5 files changed

+38
-8
lines changed

5 files changed

+38
-8
lines changed

LICENSE.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright 2024 ZwerOxotnik
2+
3+
Permission is hereby granted, free of charge,
4+
to any person obtaining a copy of this software
5+
and associated documentation files (the "Software"),
6+
to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify,
8+
merge, publish, distribute, sublicense,
9+
and/or sell copies of the Software,
10+
and to permit persons to whom the Software
11+
is furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice
14+
shall be included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
20+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

changelog.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 0.4.0
3+
Date: 2024-05-18
4+
Features:
5+
- Changes some numbers to sitelen pona
6+
Bugfixes:
7+
- Changes some symbols to sitelen pona
8+
- Improved detection of symbols
9+
---------------------------------------------------------------------------------------------------
210
Version: 0.3.0
311
Date: 2024-05-18
412
Features:
513
- Added support of compound symbols
614
Changes:
7-
- Changes some symbols, numbers to sitelen pona
15+
- Changes some symbols to sitelen pona
816
---------------------------------------------------------------------------------------------------
917
Version: 0.2.2
1018
Date: 2024-05-17

info.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sitelen_pona",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"factorio_version": "1.1",
55
"title": "Sitelen pona",
66
"author": "ZwerOxotnik",

models/sitelen_pona.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function send_sitelen_pona_message_to_chat(message, _player)
4848
if part.is_new_line then
4949
goto continue
5050
end
51-
local text = part.sitelep_pona or part.original
52-
if not part.sitelep_pona then
51+
local text = part.sitelen_pona or part.original
52+
if not part.sitelen_pona then
5353
if is_sitelen_pona_part then
5454
i = i + 1
5555
text_parts[i] = "[/font]"
@@ -104,8 +104,8 @@ function send_sitelen_pona_message_to_chat(message, _player)
104104
if part.is_new_line then
105105
goto continue
106106
end
107-
local text = part.sitelep_pona or part.original
108-
if not part.sitelep_pona then
107+
local text = part.sitelen_pona or part.original
108+
if not part.sitelen_pona then
109109
if is_sitelen_pona_part then
110110
i = i + 1
111111
compounded_text_parts[i] = "[/font]"
@@ -177,7 +177,7 @@ function send_sitelen_pona_message_to_chat(message, _player)
177177
local is_compounded_text = player.mod_settings["sitelen_pona-use_compound_symbols"].value or player.mod_settings["sitelen_pona-use_complex_compound_symbols"].value
178178
local is_big_text = player.mod_settings["sitelen_pona-use_enlarged_symbols"].value
179179

180-
if is_compounded_text then
180+
if is_compounded_text and is_compounded then
181181
if player.mod_settings["sitelen_pona-use_monospaced_font"].value then
182182

183183
player.print((is_big_text and compounded_big_result_mono_text) or compounded_result_mono_text)

0 commit comments

Comments
 (0)