Skip Menu |

This queue is for tickets about the Text-WikiCreole CPAN distribution.

Report information
The Basics
Id: 98294
Status: new
Priority: 0/
Queue: Text-WikiCreole

People
Owner: Nobody in particular
Requestors: oss [...] c-mauderer.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Feature Request: Easy Way for Replacing Special Character with HTML Entities
Date: Sun, 24 Aug 2014 16:54:02 +0200
To: bug-Text-WikiCreole [...] rt.cpan.org
From: Christian Mauderer <oss [...] c-mauderer.de>
Hello, is there any easy way to let the module encode special characters in the text passages? I'm searching for a way to convert all special characters that are not part of the creole formatting to html entities. E.g. the '<' should become a '&lt;' or some special characters like 'รค' (German umlaut a) should become a '&auml;'. Eventually that could be implemented as some kind of application defined filter-function for all text parts. The user could define the function (similar to the plugin function) to one that uses e.g. HTML::Entities to encode all "critical" characters. The main problem that keeps me from implementing it and providing a patch is that I'm not sure where plain text junks are added to the output. I think that I'm able to get a working solution if you could provide me some hints where to start. I would suppose that most of the work is done in the 'parse' function? Are there any other sub-functions that add plain non-html text to the output? Kind regards, Christian Mauderer
Subject: Re: [rt.cpan.org #98294] Feature Request: Easy Way for Replacing Special Character with HTML Entities - First try
Date: Thu, 28 Aug 2014 21:26:55 +0200
To: bug-Text-WikiCreole [...] rt.cpan.org
From: Christian Mauderer <oss [...] c-mauderer.de>
Hello again, I just analysed the module and tried to write the patch myself. It seems that all of the text is already printed in one place, so adding the filter was not to bad. The only problem has been that some text should not be filtered (e.g. preformatted or the one from plugins). Plese see and review attached patch. It should not introduce any incompatibilities to prior versions of your module. If you think that the patch is OK, I would be happy if you would think about integrating it. If I should change something, just tell me. Kind regards, Christian Mauderer

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #98294] Feature Request: Easy Way for Replacing Special Character with HTML Entities
Date: Sat, 13 Sep 2014 10:34:32 +0200
To: bug-Text-WikiCreole [...] rt.cpan.org
From: Christian Mauderer <oss [...] c-mauderer.de>
Hello, is there some prospect of getting the patch added to the official module? I'm willing to adapt the patch if that should be necessary. Kind regards, Christian Mauderer Am 28.08.2014 um 21:26 schrieb Christian Mauderer: Show quoted text
> Hello again, > > I just analysed the module and tried to write the patch myself. It seems > that all of the text is already printed in one place, so adding the > filter was not to bad. The only problem has been that some text should > not be filtered (e.g. preformatted or the one from plugins). > > Plese see and review attached patch. It should not introduce any > incompatibilities to prior versions of your module. If you think that > the patch is OK, I would be happy if you would think about integrating > it. If I should change something, just tell me. > > Kind regards, > > Christian Mauderer > > >