Rename mod: unicode_text → rp_unicode_text

This commit is contained in:
Wuzzy 2024-11-22 18:03:12 +01:00
parent 87074a47c7
commit 3d587e3b48
25 changed files with 15 additions and 21 deletions

View File

@ -1,3 +1,3 @@
name = rp_signs
description = Writable signs
depends = rp_sounds, rp_formspec, unicode_text, rp_fonts, rp_default, rp_paint
depends = rp_sounds, rp_formspec, rp_unicode_text, rp_fonts, rp_default, rp_paint

View File

@ -1,21 +1,15 @@
unicode_text - Repixture version
================================
`rp_unicode_text`: Unicode Text for Repixture
=============================================
This is `unicode_text`, but modified for Repixture!
This is a fork of the mod `unicode_text`, modified for Repixture!
Original mod by erle.
Synopsis
--------
This repository contains Lua code to render Unicode text to a pixels table.
This mod contains Lua code to render Unicode text to a pixels table.
`unicode_text` requires font files encoded in GNU Unifont hexfont format.
The resulting pixels table can be written to a file using `tga_encoder`_.
However, `tga_encoder` is not neccessary.
.. _`tga_encoder`: https://git.minetest.land/erlehmann/tga_encoder
`rp_unicode_text` requires font files encoded in GNU Unifont hexfont format.
Features
--------
@ -36,7 +30,7 @@ However, there are some limitations:
even if the font has them. Our motto: Rather refuse to render, than render incorrectly!
- GNU Unifont is not included!
Example Code
Example code
------------
If you are impatient, just copy and paste the following example code:
@ -265,7 +259,7 @@ Like in school, the x axis points right and the y axis points up …
Scanline order `bottom-top` was chosen as the default to match the
default scanline order of `tga_encoder` and to require users using
another file format encoder to care about scanline order. Users of
`unicode_text` that “do not care about scanline order” may see the
`rp_unicode_text` that “do not care about scanline order” may see the
glyphs upside down the fault, naturally, lies with the user.
TGA is an obsolete format! Why write TGA files?
@ -365,7 +359,7 @@ Medium Images (up to 512×512)
If you care about how many bytes are written to disk or sent over the
network, it is likely that you will get “good enough” results using a
DEFLATE-compressed TGA file instead of a PNG file if an image has few
colors and regular features, like images that `unicode_text` renders.
colors and regular features, like images that `rp_unicode_text` renders.
To verify, generate a TGA image with a black and orange checkerboard:
@ -500,7 +494,7 @@ for details.
License
-------
unicode_text, a Unicode text renderer mod for Luanti
`rp_unicode_text`, a Unicode text renderer mod for Luanti
Copyright (C) 2024 Wuzzy and erle
This program is free software: you can redistribute it and/or modify

View File

@ -37,7 +37,7 @@ local ENABLE_BIDI = false
local modpath = minetest and
minetest.get_modpath and
minetest.get_modpath("unicode_text") or
minetest.get_modpath("rp_unicode_text") or
"."
if ENABLE_BIDI then
dofile(modpath .. "/luabidi/bidi.lua")

View File

@ -18,8 +18,8 @@ unicode_text = {}
local modpath = minetest and
minetest.get_modpath and
minetest.get_modpath("unicode_text") or
minetest.get_modpath("rp_unicode_text") or
"."
-- unicode_text only supports GNU Unifont .hex file format for now
-- rp_unicode_text only supports GNU Unifont .hex file format for now
dofile( modpath .. "/unicodedata.lua" )
dofile( modpath .. "/hexfont.lua" )

View File

@ -1,3 +1,3 @@
name = unicode_text
name = rp_unicode_text
description = This library can be used to render UTF-8 encoded Unicode text to a texture. It is intended to be used from code that needs to render in-game signs. Fork for Repixture.
title = Unicode Text for Repixture

View File

@ -16,7 +16,7 @@ Codezeilen und schreibe das auch nicht dran.
local modpath = minetest and
minetest.get_modpath and
minetest.get_modpath("unicode_text") or
minetest.get_modpath("rp_unicode_text") or
"."
-- Maximum possible codepoint