Add header and footer filters

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
dfhtextpipe
Posts: 988
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Add header and footer filters

Post 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.
David
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Add header and footer filters

Post 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?
dfhtextpipe
Posts: 988
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Add header and footer filters

Post 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
David
Post Reply