[DOWNSTREAM] Cyrillic Support v2 (#24075)

* cyrillic fixes https://github.com/ss220club/Paradise/commit/cbdad6f11f0e0e16694cdb60f8ccb3d6dd23fe92

* fix: remove control characters

* utf-8 support

* more fixes

* spellbook to utf8

* Update code/modules/research/server.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* Update code/modules/research/server.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* Update code/modules/paperwork/paper.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* Update code/modules/paperwork/folders.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* Update code/modules/mob/mob_say_base.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* update formatting

* fix ai alerts

* fix spaceheater

* fix noticeboard

---------

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
larentoun
2024-03-11 09:35:08 +00:00
committed by GitHub
co-authored by Burzah
parent d0514fef1f
commit c5c911d252
68 changed files with 185 additions and 185 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
/obj/item/areaeditor/attack_self(mob/user as mob)
add_fingerprint(user)
var/text = "<BODY><HTML><head><title>[src]</title></head> \
var/text = "<BODY><HTML><meta charset='utf-8'><head><title>[src]</title></head> \
<h2>[station_name()] [src.name]</h2> \
<small>[fluffnotice]</small><hr>"
switch(get_area_type())
+1 -1
View File
@@ -36,7 +36,7 @@
user.set_machine(src)
var/dat = {"
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<html><meta charset='utf-8'>
<head>
<style>
body {
@@ -40,7 +40,7 @@
to_chat(user, "<span class='notice'>You are now mimicking the voice on your ID card.</span>")
return
voice = sanitize(copytext(chosen_voice, 1, MAX_MESSAGE_LEN))
voice = sanitize(copytext_char(chosen_voice, 1, MAX_MESSAGE_LEN))
to_chat(user, "<span class='notice'>You are now mimicking <b>[voice]</b>.</span>")
/obj/item/voice_changer/voice_modulator
+1 -1
View File
@@ -360,7 +360,7 @@
var/answer = params["answer"]
if(!answer)
return
door_name = sanitize(copytext(answer, 1, UI_MODAL_INPUT_MAX_LENGTH_NAME))
door_name = sanitize(copytext_char(answer, 1, UI_MODAL_INPUT_MAX_LENGTH_NAME))
else
return FALSE
+12 -12
View File
@@ -34,7 +34,7 @@
icon_state ="bookDetective"
author = "Nanotrasen"
title = "The Film Noir: Proper Procedures for Investigations"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -75,7 +75,7 @@
author = "Engineering Encyclopedia"
title = "Particle Accelerator User's Guide"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -158,7 +158,7 @@
icon_state = "pipingbook"
author = "Maria Crash, Senior Atmospherics Technician"
title = "Pipes and You: Getting To Know Your Scary Tools"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -245,7 +245,7 @@
icon_state = "evabook"
author = "Maria Crash, Senior Atmospherics Technician"
title = "EVA Gear and You: Not Spending All Day Inside"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -306,7 +306,7 @@
author = "Engineering Encyclopedia"
title = "Singularity Safety in Special Circumstances"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -354,7 +354,7 @@
author = "Medical Journal, volume 3"
title = "Cloning techniques of the 26th century"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -431,7 +431,7 @@
author = "Weyland-Yutani Corp"
title = "APLU \"Ripley\" Construction and Operation Manual"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -506,7 +506,7 @@
author = "Dr. L. Ight"
title = "Research and Development 101"
pages = list({"
<html>
<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -556,7 +556,7 @@
icon_state = "barbook"
author = "Sir John Rose"
title = "Barman Recipes"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -600,7 +600,7 @@
author = "Syndicate"
protected = TRUE
title = "Fission Mailed: Nuclear Sabotage 101"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
Nuclear Explosives 101:<br>
Hello and thank you for choosing the Syndicate for your nuclear information needs.<br>
Today's crash course will deal with the operation of a Fusion Class Nanotrasen made Nuclear Device.<br>
@@ -636,7 +636,7 @@
icon_state ="bookHydroponicsPodPeople"
author = "Farmer John"
title = "The Human Harvest - From seed to market"
pages = list({"<html>
pages = list({"<html><meta charset='utf-8'>
<head>
<style>
h1 {font-size: 18px; margin: 15px 0px 5px;}
@@ -692,7 +692,7 @@
/obj/item/book/manual/wiki/Initialize()
. = ..()
pages = list({"
<html><head></head><body bgcolor='[book_bgcolor]'>
<html><meta charset='utf-8'><head></head><body bgcolor='[book_bgcolor]'>
<iframe width='100%' height='97%' src="[GLOB.configuration.url.wiki_url]/index.php/[wiki_article_title]?action=render" frameborder="0" id="main_frame"></iframe>
</body></html>"})
+3 -3
View File
@@ -34,10 +34,10 @@
return ..()
/obj/structure/noticeboard/attack_hand(user as mob)
var/dat = "<B>Noticeboard</B><BR>"
var/dat = "<b>Noticeboard</b><br>"
for(var/obj/item/paper/P in src)
dat += "<A href='?src=[UID()];read=\ref[P]'>[P.name]</A> <A href='?src=[UID()];write=\ref[P]'>Write</A> <A href='?src=[UID()];remove=\ref[P]'>Remove</A><BR>"
user << browse("<HEAD><TITLE>Notices</TITLE></HEAD>[dat]","window=noticeboard")
dat += "<a href='?src=[UID()];read=\ref[P]'>[P.name]</a> <a href='?src=[UID()];write=\ref[P]'>Write</a> <a href='?src=[UID()];remove=\ref[P]'>Remove</a><br>"
user << browse("<meta charset='utf-8'><head><title>Notices Записки</title></head>[dat]","window=noticeboard")
onclose(user, "noticeboard")
/obj/structure/noticeboard/deconstruct(disassembled = TRUE)