Print this page
5051 import mdocml-1.12.3
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: TBD
   1 /*      $Id: chars.in,v 1.42 2011/10/02 10:02:26 kristaps Exp $ */
   2 /*
   3  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
   4  *
   5  * Permission to use, copy, modify, and distribute this software for any
   6  * purpose with or without fee is hereby granted, provided that the above
   7  * copyright notice and this permission notice appear in all copies.
   8  *
   9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16  */
  17 
  18 /*
  19  * The ASCII translation tables.  
  20  *
  21  * The left-hand side corresponds to the input sequence (\x, \(xx, \*(xx


  25  *
  26  * XXX - C-escape strings!
  27  * XXX - update LINES_MAX if adding more!
  28  */
  29 
  30 /* Non-breaking, non-collapsing space uses unit separator. */
  31 static const char ascii_nbrsp[2] = { ASCII_NBRSP, '\0' };
  32 
  33 CHAR_TBL_START
  34 
  35 /* Spacing. */
  36 CHAR("c",                       "",             0)
  37 CHAR("0",                       " ",            8194)
  38 CHAR(" ",                       ascii_nbrsp,    160)
  39 CHAR("~",                       ascii_nbrsp,    160)
  40 CHAR("%",                       "",             0)
  41 CHAR("&",                   "",             0)
  42 CHAR("^",                       "",             0)
  43 CHAR("|",                       "",             0)
  44 CHAR("}",                       "",             0)

  45 
  46 /* Accents. */
  47 CHAR("a\"",                     "\"",           779)
  48 CHAR("a-",                      "-",            175)
  49 CHAR("a.",                      ".",            729)
  50 CHAR("a^",                      "^",            770)
  51 CHAR("\'",                      "\'",           769)
  52 CHAR("aa",                      "\'",           769)
  53 CHAR("ga",                      "`",            768)
  54 CHAR("`",                       "`",            768)
  55 CHAR("ab",                      "`",            774)
  56 CHAR("ac",                      ",",            807)
  57 CHAR("ad",                      "\"",           776)
  58 CHAR("ah",                      "v",            711)
  59 CHAR("ao",                      "o",            730)
  60 CHAR("a~",                      "~",            771)
  61 CHAR("ho",                      ",",            808)
  62 CHAR("ha",                      "^",            94)
  63 CHAR("ti",                      "~",            126)
  64 


   1 /*      $Id: chars.in,v 1.43 2013/06/20 22:39:30 schwarze Exp $ */
   2 /*
   3  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
   4  *
   5  * Permission to use, copy, modify, and distribute this software for any
   6  * purpose with or without fee is hereby granted, provided that the above
   7  * copyright notice and this permission notice appear in all copies.
   8  *
   9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16  */
  17 
  18 /*
  19  * The ASCII translation tables.  
  20  *
  21  * The left-hand side corresponds to the input sequence (\x, \(xx, \*(xx


  25  *
  26  * XXX - C-escape strings!
  27  * XXX - update LINES_MAX if adding more!
  28  */
  29 
  30 /* Non-breaking, non-collapsing space uses unit separator. */
  31 static const char ascii_nbrsp[2] = { ASCII_NBRSP, '\0' };
  32 
  33 CHAR_TBL_START
  34 
  35 /* Spacing. */
  36 CHAR("c",                       "",             0)
  37 CHAR("0",                       " ",            8194)
  38 CHAR(" ",                       ascii_nbrsp,    160)
  39 CHAR("~",                       ascii_nbrsp,    160)
  40 CHAR("%",                       "",             0)
  41 CHAR("&",                   "",             0)
  42 CHAR("^",                       "",             0)
  43 CHAR("|",                       "",             0)
  44 CHAR("}",                       "",             0)
  45 CHAR("t",                       "",             0)
  46 
  47 /* Accents. */
  48 CHAR("a\"",                     "\"",           779)
  49 CHAR("a-",                      "-",            175)
  50 CHAR("a.",                      ".",            729)
  51 CHAR("a^",                      "^",            770)
  52 CHAR("\'",                      "\'",           769)
  53 CHAR("aa",                      "\'",           769)
  54 CHAR("ga",                      "`",            768)
  55 CHAR("`",                       "`",            768)
  56 CHAR("ab",                      "`",            774)
  57 CHAR("ac",                      ",",            807)
  58 CHAR("ad",                      "\"",           776)
  59 CHAR("ah",                      "v",            711)
  60 CHAR("ao",                      "o",            730)
  61 CHAR("a~",                      "~",            771)
  62 CHAR("ho",                      ",",            808)
  63 CHAR("ha",                      "^",            94)
  64 CHAR("ti",                      "~",            126)
  65