I was carrying out a Rainmeter project and it occurred to me to create this script for my skins.
I've thought about adding more text styles, but I still can not think of cases that might be needed for the presentation of the strings.
"Script lua para mostrar el texto en mayúsculas, minúsculas o en formato de oraciones en un medidor de cuerdas en Rainmeter.
Estaba llevando a cabo un proyecto Rainmeter y se me ocurrió crear este script para mis máscaras.
He pensado en agregar más estilos de texto, pero todavía no puedo se me ha ocurrido casos que podrían ser necesarios para la presentación de los string".
this is the script in lua
Code: Select all
--Minúsculas
function min(p)
m=string.lower ( p )
return m
end
--Mayúsculas
function may(q)
n=string.upper ( q )
return n
end
--Oración
function ora(r)
o=string.lower (string.sub (r, 2,-1))
s=string.upper (string.sub (r, 1,1))
return s..o
end
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Metadata]
Name=TeXtO
Author=FernandoAleisy
Version=0.1
License=Libre
Information=Convertir texto a minuscula, mayuscula u oracion
[Variables]
Texto=eSte TextO
[Estilo]
x=0
y=R
W=200
Padding = 5 , 5 , 5 , 5
FontColor=255,255,255
FontFace=Lucida calligraphy
AntiAlias = 1
StringStyle=Bold
FontSize = 10
DynamicVariables=1
[TextoOriginal]
Meter=String
MeterStyle=Estilo
SolidColor=0,0,0
Text=Original #Texto#
[Texto]
Measure=Script
ScriptFile=Texto.lua
Disabled=1
[Minuscula]
Meter=String
MeterStyle=Estilo
SolidColor=0,200,100
Text=Minuscula [&Texto:min('#Texto#')]
[Mayuscula]
Meter=String
MeterStyle=Estilo
SolidColor=255,100,0
Text=Mayuscula [&Texto:may('#Texto#')]
[Oracion]
Meter=String
MeterStyle=Estilo
SolidColor=100,100,255
Text=Oracion [&Texto:ora('#Texto#')]
[Ejemplo]
Meter=String
MeterStyle=Estilo
SolidColor=0,200,200
Text=Ejemplo:#CRLF#[&Texto:ora('fernando')] [&Texto:ora('aleisy')] [&Texto:ora('gonzalez')]