Home » pdfbox-1.1.0-src » org.apache.fontbox.encoding » [javadoc | source]

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   package org.apache.fontbox.encoding;
   18   
   19   /**
   20    * This is an interface to a text encoder.
   21    *
   22    * @author Ben Litchfield
   23    * @version $Revision: 1.1 $
   24    */
   25   public class MacRomanEncoding extends Encoding
   26   {
   27       /**
   28        * Constructor.
   29        */
   30       public MacRomanEncoding()
   31       {
   32           addCharacterEncoding( 0101, "A" );
   33           addCharacterEncoding( 0256, "AE" );
   34           addCharacterEncoding( 0347, "Aacute" );
   35           addCharacterEncoding( 0345, "Acircumflex" );
   36           addCharacterEncoding( 0200, "Adieresis" );
   37           addCharacterEncoding( 0313, "Agrave" );
   38           addCharacterEncoding( 0201, "Aring" );
   39           addCharacterEncoding( 0314, "Atilde" );
   40           addCharacterEncoding( 0102, "B" );
   41           addCharacterEncoding( 0103, "C" );
   42           addCharacterEncoding( 0202, "Ccedilla" );
   43           addCharacterEncoding( 0104, "D" );
   44           addCharacterEncoding( 0105, "E" );
   45           addCharacterEncoding( 0203, "Eacute" );
   46           addCharacterEncoding( 0346, "Ecircumflex" );
   47           addCharacterEncoding( 0350, "Edieresis" );
   48           addCharacterEncoding( 0351, "Egrave" );
   49           addCharacterEncoding( 0106, "F" );
   50           addCharacterEncoding( 0107, "G" );
   51           addCharacterEncoding( 0110, "H" );
   52           addCharacterEncoding( 0111, "I" );
   53           addCharacterEncoding( 0352, "Iacute" );
   54           addCharacterEncoding( 0353, "Icircumflex" );
   55           addCharacterEncoding( 0354, "Idieresis" );
   56           addCharacterEncoding( 0355, "Igrave" );
   57           addCharacterEncoding( 0112, "J" );
   58           addCharacterEncoding( 0113, "K" );
   59           addCharacterEncoding( 0114, "L" );
   60           addCharacterEncoding( 0115, "M" );
   61           addCharacterEncoding( 0116, "N" );
   62           addCharacterEncoding( 0204, "Ntilde" );
   63           addCharacterEncoding( 0117, "O" );
   64           addCharacterEncoding( 0316, "OE" );
   65           addCharacterEncoding( 0356, "Oacute" );
   66           addCharacterEncoding( 0357, "Ocircumflex" );
   67           addCharacterEncoding( 0205, "Odieresis" );
   68           addCharacterEncoding( 0361, "Ograve" );
   69           addCharacterEncoding( 0257, "Oslash" );
   70           addCharacterEncoding( 0315, "Otilde" );
   71           addCharacterEncoding( 0120, "P" );
   72           addCharacterEncoding( 0121, "Q" );
   73           addCharacterEncoding( 0122, "R" );
   74           addCharacterEncoding( 0123, "S" );
   75           addCharacterEncoding( 0124, "T" );
   76           addCharacterEncoding( 0125, "U" );
   77           addCharacterEncoding( 0362, "Uacute" );
   78           addCharacterEncoding( 0363, "Ucircumflex" );
   79           addCharacterEncoding( 0206, "Udieresis" );
   80           addCharacterEncoding( 0364, "Ugrave" );
   81           addCharacterEncoding( 0126, "V" );
   82           addCharacterEncoding( 0127, "W" );
   83           addCharacterEncoding( 0130, "X" );
   84           addCharacterEncoding( 0131, "Y" );
   85           addCharacterEncoding( 0331, "Ydieresis" );
   86           addCharacterEncoding( 0132, "Z" );
   87           addCharacterEncoding( 0141, "a" );
   88           addCharacterEncoding( 0207, "aacute" );
   89           addCharacterEncoding( 0211, "acircumflex" );
   90           addCharacterEncoding( 0253, "acute" );
   91           addCharacterEncoding( 0212, "adieresis" );
   92           addCharacterEncoding( 0276, "ae" );
   93           addCharacterEncoding( 0210, "agrave" );
   94           addCharacterEncoding( 046, "ampersand" );
   95           addCharacterEncoding( 0214, "aring" );
   96           addCharacterEncoding( 0136, "asciicircum" );
   97           addCharacterEncoding( 0176, "asciitilde" );
   98           addCharacterEncoding( 052, "asterisk" );
   99           addCharacterEncoding( 0100, "at" );
  100           addCharacterEncoding( 0213, "atilde" );
  101           addCharacterEncoding( 0142, "b" );
  102           addCharacterEncoding( 0134, "backslash" );
  103           addCharacterEncoding( 0174, "bar" );
  104           addCharacterEncoding( 0173, "braceleft" );
  105           addCharacterEncoding( 0175, "braceright" );
  106           addCharacterEncoding( 0133, "bracketleft" );
  107           addCharacterEncoding( 0135, "bracketright" );
  108           addCharacterEncoding( 0371, "breve" );
  109           addCharacterEncoding( 0245, "bullet" );
  110           addCharacterEncoding( 0143, "c" );
  111           addCharacterEncoding( 0377, "caron" );
  112           addCharacterEncoding( 0215, "ccedilla" );
  113           addCharacterEncoding( 0374, "cedilla" );
  114           addCharacterEncoding( 0242, "cent" );
  115           addCharacterEncoding( 0366, "circumflex" );
  116           addCharacterEncoding( 072, "colon" );
  117           addCharacterEncoding( 054, "comma" );
  118           addCharacterEncoding( 0251, "copyright" );
  119           addCharacterEncoding( 0333, "currency1" );
  120           addCharacterEncoding( 0144, "d" );
  121           addCharacterEncoding( 0240, "dagger" );
  122           addCharacterEncoding( 0340, "daggerdbl" );
  123           addCharacterEncoding( 0241, "degree" );
  124           addCharacterEncoding( 0254, "dieresis" );
  125           addCharacterEncoding( 0326, "divide" );
  126           addCharacterEncoding( 044, "dollar" );
  127           addCharacterEncoding( 0372, "dotaccent" );
  128           addCharacterEncoding( 0365, "dotlessi" );
  129           addCharacterEncoding( 0145, "e" );
  130           addCharacterEncoding( 0216, "eacute" );
  131           addCharacterEncoding( 0220, "ecircumflex" );
  132           addCharacterEncoding( 0221, "edieresis" );
  133           addCharacterEncoding( 0217, "egrave" );
  134           addCharacterEncoding( 070, "eight" );
  135           addCharacterEncoding( 0311, "ellipsis" );
  136           addCharacterEncoding( 0321, "emdash" );
  137           addCharacterEncoding( 0320, "endash" );
  138           addCharacterEncoding( 075, "equal" );
  139           addCharacterEncoding( 041, "exclam" );
  140           addCharacterEncoding( 0301, "exclamdown" );
  141           addCharacterEncoding( 0146, "f" );
  142           addCharacterEncoding( 0336, "fi" );
  143           addCharacterEncoding( 065, "five" );
  144           addCharacterEncoding( 0337, "fl" );
  145           addCharacterEncoding( 0304, "florin" );
  146           addCharacterEncoding( 064, "four" );
  147           addCharacterEncoding( 0332, "fraction" );
  148           addCharacterEncoding( 0147, "g" );
  149           addCharacterEncoding( 0247, "germandbls" );
  150           addCharacterEncoding( 0140, "grave" );
  151           addCharacterEncoding( 076, "greater" );
  152           addCharacterEncoding( 0307, "guillemotleft" );
  153           addCharacterEncoding( 0310, "guillemotright" );
  154           addCharacterEncoding( 0334, "guilsinglleft" );
  155           addCharacterEncoding( 0335, "guilsinglright" );
  156           addCharacterEncoding( 0150, "h" );
  157           addCharacterEncoding( 0375, "hungarumlaut" );
  158           addCharacterEncoding( 055, "hyphen" );
  159           addCharacterEncoding( 0151, "i" );
  160           addCharacterEncoding( 0222, "iacute" );
  161           addCharacterEncoding( 0224, "icircumflex" );
  162           addCharacterEncoding( 0225, "idieresis" );
  163           addCharacterEncoding( 0223, "igrave" );
  164           addCharacterEncoding( 0152, "j" );
  165           addCharacterEncoding( 0153, "k" );
  166           addCharacterEncoding( 0154, "l" );
  167           addCharacterEncoding( 074, "less" );
  168           addCharacterEncoding( 0302, "logicalnot" );
  169           addCharacterEncoding( 0155, "m" );
  170           addCharacterEncoding( 0370, "macron" );
  171           addCharacterEncoding( 0265, "mu" );
  172           addCharacterEncoding( 0156, "n" );
  173           addCharacterEncoding( 071, "nine" );
  174           addCharacterEncoding( 0226, "ntilde" );
  175           addCharacterEncoding( 043, "numbersign" );
  176           addCharacterEncoding( 0157, "o" );
  177           addCharacterEncoding( 0227, "oacute" );
  178           addCharacterEncoding( 0231, "ocircumflex" );
  179           addCharacterEncoding( 0232, "odieresis" );
  180           addCharacterEncoding( 0317, "oe" );
  181           addCharacterEncoding( 0376, "ogonek" );
  182           addCharacterEncoding( 0230, "ograve" );
  183           addCharacterEncoding( 061, "one" );
  184           addCharacterEncoding( 0273, "ordfeminine" );
  185           addCharacterEncoding( 0274, "ordmasculine" );
  186           addCharacterEncoding( 0277, "oslash" );
  187           addCharacterEncoding( 0233, "otilde" );
  188           addCharacterEncoding( 0160, "p" );
  189           addCharacterEncoding( 0246, "paragraph" );
  190           addCharacterEncoding( 050, "parenleft" );
  191           addCharacterEncoding( 051, "parenright" );
  192           addCharacterEncoding( 045, "percent" );
  193           addCharacterEncoding( 056, "period" );
  194           addCharacterEncoding( 0341, "periodcentered" );
  195           addCharacterEncoding( 0344, "perthousand" );
  196           addCharacterEncoding( 053, "plus" );
  197           addCharacterEncoding( 0261, "plusminus" );
  198           addCharacterEncoding( 0161, "q" );
  199           addCharacterEncoding( 077, "question" );
  200           addCharacterEncoding( 0300, "questiondown" );
  201           addCharacterEncoding( 042, "quotedbl" );
  202           addCharacterEncoding( 0343, "quotedblbase" );
  203           addCharacterEncoding( 0322, "quotedblleft" );
  204           addCharacterEncoding( 0323, "quotedblright" );
  205           addCharacterEncoding( 0324, "quoteleft" );
  206           addCharacterEncoding( 0325, "quoteright" );
  207           addCharacterEncoding( 0342, "quotesinglbase" );
  208           addCharacterEncoding( 047, "quotesingle" );
  209           addCharacterEncoding( 0162, "r" );
  210           addCharacterEncoding( 0250, "registered" );
  211           addCharacterEncoding( 0373, "ring" );
  212           addCharacterEncoding( 0163, "s" );
  213           addCharacterEncoding( 0244, "section" );
  214           addCharacterEncoding( 073, "semicolon" );
  215           addCharacterEncoding( 067, "seven" );
  216           addCharacterEncoding( 066, "six" );
  217           addCharacterEncoding( 057, "slash" );
  218           addCharacterEncoding( 040, "space" );
  219           addCharacterEncoding( 0243, "sterling" );
  220           addCharacterEncoding( 0164, "t" );
  221           addCharacterEncoding( 063, "three" );
  222           addCharacterEncoding( 0367, "tilde" );
  223           addCharacterEncoding( 0252, "trademark" );
  224           addCharacterEncoding( 062, "two" );
  225           addCharacterEncoding( 0165, "u" );
  226           addCharacterEncoding( 0234, "uacute" );
  227           addCharacterEncoding( 0236, "ucircumflex" );
  228           addCharacterEncoding( 0237, "udieresis" );
  229           addCharacterEncoding( 0235, "ugrave" );
  230           addCharacterEncoding( 0137, "underscore" );
  231           addCharacterEncoding( 0166, "v" );
  232           addCharacterEncoding( 0167, "w" );
  233           addCharacterEncoding( 0170, "x" );
  234           addCharacterEncoding( 0171, "y" );
  235           addCharacterEncoding( 0330, "ydieresis" );
  236           addCharacterEncoding( 0264, "yen" );
  237           addCharacterEncoding( 0172, "z" );
  238           addCharacterEncoding( 060, "zero" );
  239       }
  240   }

Home » pdfbox-1.1.0-src » org.apache.fontbox.encoding » [javadoc | source]