.\" .\" Copyright (c) 2004-2017, Doug Harple. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions are .\" met: .\" .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" 3. Neither the name of author nor the names of its contributors may be .\" used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT .\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd August 3, 2004 .Dt DETOX.TBL 5 .Os .Sh NAME .Nm detox.tbl .Nd translation table for .Xr detox 1 .Sh OVERVIEW detox allows for configuration of how the ISO 8859-1 and UTF-8 (Unicode) filters operate. Through text based translation tables, it is possible to tune how these character sets are interpreted. .Sh SYNTAX The format of the translation tables is simple. There are two levels: one containing meta data and one containing the actual translations. .Bl -tag -width 0.25i .It Cm default Ar _ Default specifies the default translation for a character. An empty or nonexistent default indicates that any unknown character should fall through to the next filter. In this manner, it is possible to chain together multiple translation tables in a sequence. .It Cm start Indicates the start of a value list within the translation table. .It Cm start Ar lang Indicates the start of a language specific value list within the translation table. .It Cm end Indicates the end of a value list within the translation table. .It Ar value translation Value can be specified in decimal (1), hex (0x01) or octal (01). The same rules that apply to sscanf apply here. .Pp Translation can be a string or a quoted string, with either single or double quotes. .El .Sh EXAMPLE .Bd -literal default _ start 0x0101 a 0x0102 b end .Ed .Sh SEE ALSO .Xr detox 1 , .Xr detoxrc 5 . .Sh AUTHORS detox was written by .An "Doug Harple" .