1<?php 2// $Header: /cvsroot/html2ps/ps.unicode.inc.php,v 1.22 2007/01/24 18:56:10 Konstantin Exp $ 3 4// TODO: make encodings-related stuff more transparent 5// function &find_vector_by_ps_name($psname) { 6// global $g_utf8_converters; 7 8// foreach ($g_utf8_converters as $key => $value) { 9// if ($value[1] == $psname) { 10// return $value[0]; 11// }; 12// }; 13 14// return 0; 15// }; 16 17$GLOBALS['g_encoding_aliases'] = array( 18 'us-ascii' => 'iso-8859-1', 19 'cp1250' => 'windows-1250', 20 'cp1251' => 'windows-1251', 21 'cp1252' => 'windows-1252' 22 ); 23 24$GLOBALS['g_utf8_converters'] = array( 25 'iso-8859-1' => array($GLOBALS['g_iso_8859_1'],"ISO-8859-1-Encoding"), 26 'iso-8859-2' => array($GLOBALS['g_iso_8859_2'],"ISO-8859-2-Encoding"), 27 'iso-8859-3' => array($GLOBALS['g_iso_8859_3'],"ISO-8859-3-Encoding"), 28 'iso-8859-4' => array($GLOBALS['g_iso_8859_4'],"ISO-8859-4-Encoding"), 29 'iso-8859-5' => array($GLOBALS['g_iso_8859_5'],"ISO-8859-5-Encoding"), 30 'iso-8859-6' => array($GLOBALS['g_iso_8859_6'],"ISO-8859-6-Encoding"), 31 'iso-8859-7' => array($GLOBALS['g_iso_8859_7'],"ISO-8859-7-Encoding"), 32 'iso-8859-8' => array($GLOBALS['g_iso_8859_8'],"ISO-8859-8-Encoding"), 33 'iso-8859-9' => array($GLOBALS['g_iso_8859_9'],"ISO-8859-9-Encoding"), 34 'iso-8859-10' => array($GLOBALS['g_iso_8859_10'],"ISO-8859-10-Encoding"), 35 'iso-8859-11' => array($GLOBALS['g_iso_8859_11'],"ISO-8859-11-Encoding"), 36 'iso-8859-13' => array($GLOBALS['g_iso_8859_13'],"ISO-8859-13-Encoding"), 37 'iso-8859-14' => array($GLOBALS['g_iso_8859_14'],"ISO-8859-14-Encoding"), 38 'iso-8859-15' => array($GLOBALS['g_iso_8859_15'],"ISO-8859-15-Encoding"), 39 'koi8-r' => array($GLOBALS['g_koi8_r'],"KOI8-R-Encoding"), 40 'cp866' => array($GLOBALS['g_cp866'],"CP-866"), 41 'windows-1250' => array($GLOBALS['g_windows_1250'],"Windows-1250-Encoding"), 42 'windows-1251' => array($GLOBALS['g_windows_1251'],"Windows-1251-Encoding"), 43 'windows-1252' => array($GLOBALS['g_windows_1252'],"Windows-1252-Encoding"), 44 'symbol' => array($GLOBALS['g_symbol'],"Symbol-Encoding"), 45 'dingbats' => array($GLOBALS['g_dingbats'],"Dingbats-Encoding") 46 ); 47?>