[TYPO3-core] RFC: #9336 Enable ascii for parsefunc-short replacement
Martin Kutschker
masi-no at spam-typo3.org
Fri Sep 12 11:36:31 CEST 2008
Georg Ringer schrieb:
> This is a SVN patch request.
>
> Problem:
> The parsefunc is very nice, e.g. to replace a string with another. A
> problem is that it is not possible to replace e.g. a space character
> because TS would be like this
> stdWrap.parseFunc {
> short {
> = abc
> }
> }
>
>
> Solution:
> Introtuce a new TS key to be able to set the character which needs to be
> replaced by the ascii number.
>
> To replace a space character it would look like
> stdWrap.parseFunc {
> useAscii = 1
> short {
> 32 = %20
> }
> }
This is of limited use. There are few ASCII characters this is needed
for (maybe LF as well). OTOH no other character sets besides ASCII are
supported. Unicode has a number of charcters that may be not well suited
for the left hand side of a TS property declaration.
Maybe a better solution is to inven some new syntax for parseFunc or
stdWrap:
replace.from = ...
replace.to = ...
If both properties were stdWraps themselves you can use noTrimWrap to
load them with any value.
Masi
More information about the TYPO3-team-core
mailing list