TextFX

Dedicated board for extension releases/support threads

Moderators: Lootyhoof, FranklinDM

Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37505
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: TextFX

Unread post by Moonchild » 2024-06-14, 12:09

moonbat wrote:
2024-06-14, 12:01
This one is a simplified version, for eg I don't use |) or |\/| for D and M, just changing the letters that can be substituted by a single numeral.
Ahh good. I always thought some went a bit too far with using graphical "parts" for letters. It becomes a waste when you are too |\/| ├\ |) 1337
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2854
Joined: 2012-08-19, 20:32

Re: TextFX

Unread post by back2themoon » 2025-04-26, 18:11

Great extension, thanks. Any chance you may add a "Clear FX" option, to remove any effect from selected text? Undo usually works, but being able to select would be even better.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5545
Joined: 2015-12-09, 15:45

Re: TextFX

Unread post by moonbat » 2025-04-28, 23:57

You mean you want to remove the effect partially from a selection? Complicated because one would have to detect what effect was applied first and they differ.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2854
Joined: 2012-08-19, 20:32

Re: TextFX

Unread post by back2themoon » 2025-04-29, 09:42

moonbat wrote:
2025-04-28, 23:57
You mean you want to remove the effect partially from a selection?
Yes, that was the thought. But it seems it is not possible even with a "full" (non-partial) selection? Reapplying the same effect does not undo it, it re-applies it. You can actually add combined styles which is interesting.

Never mind, using undo is good enough. The only problem I see is if you later decide to clear a style, when undo is no longer an option. A "clear any/whatever style" option would help, but if specific style detection is required then it's fine as it is. Thanks.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37505
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: TextFX

Unread post by Moonchild » 2025-04-29, 14:59

You have to understand that the extension just replaces text with altered text. The method to get to the altered text isn't reversible by applying the same algorithm twice, so you can't "undo" it that way.
What you're asking for would require the extension to keep a full history of every change made to be able to remove the effect again by restoring the selection to the previous state. That's going to be both complex and potentially very bug-prone.
Even if it'd just be restoring something to the original before any changes were made by the extension, it'd not be simple, since the text would still have to be analyzed and detections made as to what the original selection was. Once again very high complexity stuff there.
back2themoon wrote:
2025-04-29, 09:42
using undo is good enough.
It'll have to be :)
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2854
Joined: 2012-08-19, 20:32

Re: TextFX

Unread post by back2themoon » 2025-04-29, 15:11

Ok, I was thinking something like "clear all formatting" would be fairly straightforward, but I guess it's not. I assumed there's a "stylized" and "non-stylized" starus (altered / non-altered).

Didn't have in mind a full undo history record, but sort of a "Remove hyperlink" equivalent. No worries.

Kris_88
Board Warrior
Board Warrior
Posts: 1092
Joined: 2021-01-26, 11:18

Re: TextFX

Unread post by Kris_88 » 2025-04-29, 20:56

Perhaps it makes sense to make a mode for the reverse replacement of Unicode characters with regular ones.
Oddly enough, this operation is almost unambiguous.
I tried to reverse the table from the extension, and here is what happened:

Code: Select all

'\u0048' : 'H', '\u00A1' : '!', '\u00BF' : '?', '\u012F' : 'j', '\u0131' : 'i',
'\u017F' : 'J', '\u0183' : 'g', '\u0186' : 'C', '\u018E' : 'E', '\u0190' : '3',
'\u0196' : '1', '\u01A7' : 'S', '\u01A8' : 's', '\u01DD' : 'e', '\u01EB' : 'q',
'\u0248' : 't', '\u0250' : 'a', '\u0252' : 'a', '\u0254' : 'c', '\u0258' : 'e',
'\u025F' : 'f', '\u0262' : 'g', '\u0265' : 'h', '\u026A' : 'i', '\u026F' : 'm',
'\u0274' : 'n', '\u0279' : 'r', '\u027E' : 'j', '\u027F' : 'r', '\u0280' : 'r',
'\u0287' : 't', '\u028C' : 'v', '\u028D' : 'w', '\u028E' : 'y', '\u028F' : 'y',
'\u0299' : 'b', '\u029C' : 'h', '\u029E' : 'k', '\u029F' : 'l', '\u02D9' : '.',
'\u02E5' : 'L', '\u039B' : 'V', '\u03B3' : 'y', '\u03BC' : '4', '\u03C2' : '2',
'\u03C5' : 'u', '\u03D8' : 'Q', '\u03F1' : 'g', '\u03FD' : 'C', '\u0406' : 'I',
'\u0408' : 'J', '\u0410' : 'A', '\u0412' : 'B', '\u0415' : 'E', '\u0418' : 'N',
'\u041A' : 'K', '\u041C' : 'M', '\u041D' : 'N', '\u041E' : 'O', '\u0420' : 'P',
'\u0421' : 'C', '\u0423' : 'Y', '\u0425' : 'X', '\u042F' : 'R', '\u0430' : 'a',
'\u0432' : 'b', '\u0435' : 'e', '\u043A' : 'k', '\u043C' : 'm', '\u043D' : 'h',
'\u043E' : 'o', '\u0440' : 'p', '\u0441' : 'c', '\u0443' : 'y', '\u0445' : 'x',
'\u0456' : 'i', '\u0458' : 'j', '\u0493' : 'f', '\u04D8' : 'G', '\u0500' : 'P',
'\u0533' : 'P', '\u05DF' : 'l', '\u061B' : ';', '\u0662' : '7', '\u091F' : '5',
'\u0A98' : 'B', '\u0B67' : '9', '\u10A7' : 'D', '\u10B1' : 'J', '\u10DB' : '6',
'\u11BF' : 'F', '\u15E1' : 'D', '\u1D00' : 'a', '\u1D04' : 'c', '\u1D05' : 'd',
'\u1D07' : 'e', '\u1D0A' : 'j', '\u1D0B' : 'k', '\u1D0D' : 'm', '\u1D0F' : 'o',
'\u1D18' : 'p', '\u1D1A' : 'R', '\u1D1B' : 't', '\u1D1C' : 'u', '\u1D20' : 'v',
'\u1D21' : 'w', '\u1D22' : 'z', '\u1F49' : 'Q', '\u201E' : '"', '\u203E' : '_',
'\u203F' : ' ', '\u2040' : ' ', '\u2045' : 'E', '\u2046' : 'E', '\u2132' : 'F',
'\u2143' : 'L', '\u2200' : 'A', '\u2229' : 'U', '\u2234' : '`', '\u2235' : '`',
'\u22A5' : 'T', '\u2E2E' : '?', '\uA644' : 'S', '\uFEFC' : 'K'          
Update:
And, yes, Cyrillic characters can also be replaced with Latin...
In short, the idea of ​​reverse transformation is almost workable.
There is just a problem with reverse inverting of text.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5545
Joined: 2015-12-09, 15:45

Re: TextFX

Unread post by moonbat » 2025-04-30, 00:14

Kris_88 wrote:
2025-04-29, 20:56
I tried to reverse the table from the extension, and here is what happened:
Interesting, what characters are these?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Kris_88
Board Warrior
Board Warrior
Posts: 1092
Joined: 2021-01-26, 11:18

Re: TextFX

Unread post by Kris_88 » 2025-04-30, 05:49

moonbat wrote:
2025-04-30, 00:14
what characters are these?
These are the unicode characters from your "arraySubs" table.