Page 1 of 1

Add header and footer filters

Posted: Tue Feb 19, 2013 7:28 pm
by dfhtextpipe
Now that Comment filters permit the direct inclusion of UTF-8 text,
it would make sense also for the Add header and Add footer filters to do the same,
i.e. For the "Using this text" option.

Ditto for filters Add left margin & Add right margin.

It already works for external files, so it should be a simple tweak to the UI to facilitate the improvement.

Currently, even if I paste the copyright symbol © into the header text pane, it does not get encoded correctly.
Neither does it work to add a single special character such as \A9.
One has to insert the hexadecimal byte code \xC2\xA9 for it to be properly applied.
For new users, this could be quite a challenge.

Re: Add header and footer filters

Posted: Mon Feb 25, 2013 1:45 pm
by DataMystic Support
Hi David,

The comment filter simply stores this data, it does not output it, and hence does not have to worry about the myriad problems of matching the pasted data to the current file encoding.

Referring to an external file simply dumps the data into the filter stream without regard to the file encoding.

\xC2\xA9 is the correct data to output for a UTF-8 file.

Should TextPipe figure out the input file encoding, as one of
UTF-8, UTF16LE/BE, UTF32, ANSI, or some other type pre-specified by the user, and operate accordingly?

Re: Add header and footer filters

Posted: Sat Mar 09, 2013 11:39 pm
by dfhtextpipe
Simon,

I see the difficulty.

I'll defer this to your closer knowledge of what might be feasible to implement without too much hassle.

David