Fix line endings in a few files
Showing
25 changed files
with
856 additions
and
856 deletions
This diff is collapsed.
Click to expand it.
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | * PHPExcel | 3 | * PHPExcel |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2006 - 2011 PHPExcel | 5 | * Copyright (c) 2006 - 2011 PHPExcel |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | * | 20 | * |
| 21 | * @category PHPExcel | 21 | * @category PHPExcel |
| 22 | * @package PHPExcel_CachedObjectStorage | 22 | * @package PHPExcel_CachedObjectStorage |
| 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL |
| 25 | * @version 1.7.6, 2011-02-27 | 25 | * @version 1.7.6, 2011-02-27 |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | * PHPExcel_CachedObjectStorage_DiscISAM | 30 | * PHPExcel_CachedObjectStorage_DiscISAM |
| 31 | * | 31 | * |
| 32 | * @category PHPExcel | 32 | * @category PHPExcel |
| 33 | * @package PHPExcel_CachedObjectStorage | 33 | * @package PHPExcel_CachedObjectStorage |
| 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 35 | */ | 35 | */ |
| 36 | class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { | 36 | class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { |
| 37 | 37 | ||
| 38 | private $_fileName = null; | 38 | private $_fileName = null; |
| 39 | private $_fileHandle = null; | 39 | private $_fileHandle = null; |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | private function _storeData() { | 42 | private function _storeData() { |
| 43 | $this->_currentObject->detach(); | 43 | $this->_currentObject->detach(); |
| 44 | 44 | ||
| 45 | fseek($this->_fileHandle,0,SEEK_END); | 45 | fseek($this->_fileHandle,0,SEEK_END); |
| 46 | $offset = ftell($this->_fileHandle); | 46 | $offset = ftell($this->_fileHandle); |
| 47 | fwrite($this->_fileHandle, serialize($this->_currentObject)); | 47 | fwrite($this->_fileHandle, serialize($this->_currentObject)); |
| 48 | $this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset, | 48 | $this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset, |
| 49 | 'sz' => ftell($this->_fileHandle) - $offset | 49 | 'sz' => ftell($this->_fileHandle) - $offset |
| 50 | ); | 50 | ); |
| 51 | $this->_currentObjectID = $this->_currentObject = null; | 51 | $this->_currentObjectID = $this->_currentObject = null; |
| 52 | } // function _storeData() | 52 | } // function _storeData() |
| 53 | 53 | ||
| 54 | 54 | ||
| 55 | /** | 55 | /** |
| 56 | * Add or Update a cell in cache identified by coordinate address | 56 | * Add or Update a cell in cache identified by coordinate address |
| 57 | * | 57 | * |
| 58 | * @param string $pCoord Coordinate address of the cell to update | 58 | * @param string $pCoord Coordinate address of the cell to update |
| 59 | * @param PHPExcel_Cell $cell Cell to update | 59 | * @param PHPExcel_Cell $cell Cell to update |
| 60 | * @return void | 60 | * @return void |
| 61 | * @throws Exception | 61 | * @throws Exception |
| 62 | */ | 62 | */ |
| 63 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { | 63 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { |
| 64 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { | 64 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { |
| 65 | $this->_storeData(); | 65 | $this->_storeData(); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | $this->_currentObjectID = $pCoord; | 68 | $this->_currentObjectID = $pCoord; |
| 69 | $this->_currentObject = $cell; | 69 | $this->_currentObject = $cell; |
| 70 | 70 | ||
| 71 | return $cell; | 71 | return $cell; |
| 72 | } // function addCacheData() | 72 | } // function addCacheData() |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | /** | 75 | /** |
| 76 | * Get cell at a specific coordinate | 76 | * Get cell at a specific coordinate |
| 77 | * | 77 | * |
| 78 | * @param string $pCoord Coordinate of the cell | 78 | * @param string $pCoord Coordinate of the cell |
| 79 | * @throws Exception | 79 | * @throws Exception |
| 80 | * @return PHPExcel_Cell Cell that was found, or null if not found | 80 | * @return PHPExcel_Cell Cell that was found, or null if not found |
| 81 | */ | 81 | */ |
| 82 | public function getCacheData($pCoord) { | 82 | public function getCacheData($pCoord) { |
| 83 | if ($pCoord === $this->_currentObjectID) { | 83 | if ($pCoord === $this->_currentObjectID) { |
| 84 | return $this->_currentObject; | 84 | return $this->_currentObject; |
| 85 | } | 85 | } |
| 86 | $this->_storeData(); | 86 | $this->_storeData(); |
| 87 | 87 | ||
| 88 | // Check if the entry that has been requested actually exists | 88 | // Check if the entry that has been requested actually exists |
| 89 | if (!isset($this->_cellCache[$pCoord])) { | 89 | if (!isset($this->_cellCache[$pCoord])) { |
| 90 | // Return null if requested entry doesn't exist in cache | 90 | // Return null if requested entry doesn't exist in cache |
| 91 | return null; | 91 | return null; |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | // Set current entry to the requested entry | 94 | // Set current entry to the requested entry |
| 95 | $this->_currentObjectID = $pCoord; | 95 | $this->_currentObjectID = $pCoord; |
| 96 | fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']); | 96 | fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']); |
| 97 | $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz'])); | 97 | $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz'])); |
| 98 | // Re-attach the parent worksheet | 98 | // Re-attach the parent worksheet |
| 99 | $this->_currentObject->attach($this->_parent); | 99 | $this->_currentObject->attach($this->_parent); |
| 100 | 100 | ||
| 101 | // Return requested entry | 101 | // Return requested entry |
| 102 | return $this->_currentObject; | 102 | return $this->_currentObject; |
| 103 | } // function getCacheData() | 103 | } // function getCacheData() |
| 104 | 104 | ||
| 105 | 105 | ||
| 106 | /** | 106 | /** |
| 107 | * Clone the cell collection | 107 | * Clone the cell collection |
| 108 | * | 108 | * |
| 109 | * @return void | 109 | * @return void |
| 110 | */ | 110 | */ |
| 111 | public function copyCellCollection(PHPExcel_Worksheet $parent) { | 111 | public function copyCellCollection(PHPExcel_Worksheet $parent) { |
| 112 | parent::copyCellCollection($parent); | 112 | parent::copyCellCollection($parent); |
| 113 | // Get a new id for the new file name | 113 | // Get a new id for the new file name |
| 114 | $baseUnique = $this->_getUniqueID(); | 114 | $baseUnique = $this->_getUniqueID(); |
| 115 | $newFileName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.'.$baseUnique.'.cache'; | 115 | $newFileName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.'.$baseUnique.'.cache'; |
| 116 | // Copy the existing cell cache file | 116 | // Copy the existing cell cache file |
| 117 | copy ($this->_fileName,$newFileName); | 117 | copy ($this->_fileName,$newFileName); |
| 118 | $this->_fileName = $newFileName; | 118 | $this->_fileName = $newFileName; |
| 119 | // Open the copied cell cache file | 119 | // Open the copied cell cache file |
| 120 | $this->_fileHandle = fopen($this->_fileName,'a+'); | 120 | $this->_fileHandle = fopen($this->_fileName,'a+'); |
| 121 | } // function copyCellCollection() | 121 | } // function copyCellCollection() |
| 122 | 122 | ||
| 123 | 123 | ||
| 124 | public function unsetWorksheetCells() { | 124 | public function unsetWorksheetCells() { |
| 125 | if(!is_null($this->_currentObject)) { | 125 | if(!is_null($this->_currentObject)) { |
| 126 | $this->_currentObject->detach(); | 126 | $this->_currentObject->detach(); |
| 127 | $this->_currentObject = $this->_currentObjectID = null; | 127 | $this->_currentObject = $this->_currentObjectID = null; |
| 128 | } | 128 | } |
| 129 | $this->_cellCache = array(); | 129 | $this->_cellCache = array(); |
| 130 | 130 | ||
| 131 | // detach ourself from the worksheet, so that it can then delete this object successfully | 131 | // detach ourself from the worksheet, so that it can then delete this object successfully |
| 132 | $this->_parent = null; | 132 | $this->_parent = null; |
| 133 | 133 | ||
| 134 | // Close down the temporary cache file | 134 | // Close down the temporary cache file |
| 135 | $this->__destruct(); | 135 | $this->__destruct(); |
| 136 | } // function unsetWorksheetCells() | 136 | } // function unsetWorksheetCells() |
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | public function __construct(PHPExcel_Worksheet $parent) { | 139 | public function __construct(PHPExcel_Worksheet $parent) { |
| 140 | parent::__construct($parent); | 140 | parent::__construct($parent); |
| 141 | if (is_null($this->_fileHandle)) { | 141 | if (is_null($this->_fileHandle)) { |
| 142 | $baseUnique = $this->_getUniqueID(); | 142 | $baseUnique = $this->_getUniqueID(); |
| 143 | $this->_fileName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.'.$baseUnique.'.cache'; | 143 | $this->_fileName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.'.$baseUnique.'.cache'; |
| 144 | $this->_fileHandle = fopen($this->_fileName,'a+'); | 144 | $this->_fileHandle = fopen($this->_fileName,'a+'); |
| 145 | } | 145 | } |
| 146 | } // function __construct() | 146 | } // function __construct() |
| 147 | 147 | ||
| 148 | 148 | ||
| 149 | public function __destruct() { | 149 | public function __destruct() { |
| 150 | if (!is_null($this->_fileHandle)) { | 150 | if (!is_null($this->_fileHandle)) { |
| 151 | fclose($this->_fileHandle); | 151 | fclose($this->_fileHandle); |
| 152 | unlink($this->_fileName); | 152 | unlink($this->_fileName); |
| 153 | } | 153 | } |
| 154 | $this->_fileHandle = null; | 154 | $this->_fileHandle = null; |
| 155 | } // function __destruct() | 155 | } // function __destruct() |
| 156 | 156 | ||
| 157 | } | 157 | } | ... | ... |
This diff is collapsed.
Click to expand it.
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | * PHPExcel | 3 | * PHPExcel |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2006 - 2011 PHPExcel | 5 | * Copyright (c) 2006 - 2011 PHPExcel |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | * | 20 | * |
| 21 | * @category PHPExcel | 21 | * @category PHPExcel |
| 22 | * @package PHPExcel_CachedObjectStorage | 22 | * @package PHPExcel_CachedObjectStorage |
| 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL |
| 25 | * @version 1.7.6, 2011-02-27 | 25 | * @version 1.7.6, 2011-02-27 |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | * PHPExcel_CachedObjectStorage_MemoryGZip | 30 | * PHPExcel_CachedObjectStorage_MemoryGZip |
| 31 | * | 31 | * |
| 32 | * @category PHPExcel | 32 | * @category PHPExcel |
| 33 | * @package PHPExcel_CachedObjectStorage | 33 | * @package PHPExcel_CachedObjectStorage |
| 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 35 | */ | 35 | */ |
| 36 | class PHPExcel_CachedObjectStorage_MemoryGZip extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { | 36 | class PHPExcel_CachedObjectStorage_MemoryGZip extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { |
| 37 | 37 | ||
| 38 | private function _storeData() { | 38 | private function _storeData() { |
| 39 | $this->_currentObject->detach(); | 39 | $this->_currentObject->detach(); |
| 40 | 40 | ||
| 41 | $this->_cellCache[$this->_currentObjectID] = gzdeflate(serialize($this->_currentObject)); | 41 | $this->_cellCache[$this->_currentObjectID] = gzdeflate(serialize($this->_currentObject)); |
| 42 | $this->_currentObjectID = $this->_currentObject = null; | 42 | $this->_currentObjectID = $this->_currentObject = null; |
| 43 | } // function _storeData() | 43 | } // function _storeData() |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * Add or Update a cell in cache identified by coordinate address | 47 | * Add or Update a cell in cache identified by coordinate address |
| 48 | * | 48 | * |
| 49 | * @param string $pCoord Coordinate address of the cell to update | 49 | * @param string $pCoord Coordinate address of the cell to update |
| 50 | * @param PHPExcel_Cell $cell Cell to update | 50 | * @param PHPExcel_Cell $cell Cell to update |
| 51 | * @return void | 51 | * @return void |
| 52 | * @throws Exception | 52 | * @throws Exception |
| 53 | */ | 53 | */ |
| 54 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { | 54 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { |
| 55 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { | 55 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { |
| 56 | $this->_storeData(); | 56 | $this->_storeData(); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | $this->_currentObjectID = $pCoord; | 59 | $this->_currentObjectID = $pCoord; |
| 60 | $this->_currentObject = $cell; | 60 | $this->_currentObject = $cell; |
| 61 | 61 | ||
| 62 | return $cell; | 62 | return $cell; |
| 63 | } // function addCacheData() | 63 | } // function addCacheData() |
| 64 | 64 | ||
| 65 | 65 | ||
| 66 | /** | 66 | /** |
| 67 | * Get cell at a specific coordinate | 67 | * Get cell at a specific coordinate |
| 68 | * | 68 | * |
| 69 | * @param string $pCoord Coordinate of the cell | 69 | * @param string $pCoord Coordinate of the cell |
| 70 | * @throws Exception | 70 | * @throws Exception |
| 71 | * @return PHPExcel_Cell Cell that was found, or null if not found | 71 | * @return PHPExcel_Cell Cell that was found, or null if not found |
| 72 | */ | 72 | */ |
| 73 | public function getCacheData($pCoord) { | 73 | public function getCacheData($pCoord) { |
| 74 | if ($pCoord === $this->_currentObjectID) { | 74 | if ($pCoord === $this->_currentObjectID) { |
| 75 | return $this->_currentObject; | 75 | return $this->_currentObject; |
| 76 | } | 76 | } |
| 77 | $this->_storeData(); | 77 | $this->_storeData(); |
| 78 | 78 | ||
| 79 | // Check if the entry that has been requested actually exists | 79 | // Check if the entry that has been requested actually exists |
| 80 | if (!isset($this->_cellCache[$pCoord])) { | 80 | if (!isset($this->_cellCache[$pCoord])) { |
| 81 | // Return null if requested entry doesn't exist in cache | 81 | // Return null if requested entry doesn't exist in cache |
| 82 | return null; | 82 | return null; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | // Set current entry to the requested entry | 85 | // Set current entry to the requested entry |
| 86 | $this->_currentObjectID = $pCoord; | 86 | $this->_currentObjectID = $pCoord; |
| 87 | $this->_currentObject = unserialize(gzinflate($this->_cellCache[$pCoord])); | 87 | $this->_currentObject = unserialize(gzinflate($this->_cellCache[$pCoord])); |
| 88 | // Re-attach the parent worksheet | 88 | // Re-attach the parent worksheet |
| 89 | $this->_currentObject->attach($this->_parent); | 89 | $this->_currentObject->attach($this->_parent); |
| 90 | 90 | ||
| 91 | // Return requested entry | 91 | // Return requested entry |
| 92 | return $this->_currentObject; | 92 | return $this->_currentObject; |
| 93 | } // function getCacheData() | 93 | } // function getCacheData() |
| 94 | 94 | ||
| 95 | 95 | ||
| 96 | public function unsetWorksheetCells() { | 96 | public function unsetWorksheetCells() { |
| 97 | if(!is_null($this->_currentObject)) { | 97 | if(!is_null($this->_currentObject)) { |
| 98 | $this->_currentObject->detach(); | 98 | $this->_currentObject->detach(); |
| 99 | $this->_currentObject = $this->_currentObjectID = null; | 99 | $this->_currentObject = $this->_currentObjectID = null; |
| 100 | } | 100 | } |
| 101 | $this->_cellCache = array(); | 101 | $this->_cellCache = array(); |
| 102 | 102 | ||
| 103 | // detach ourself from the worksheet, so that it can then delete this object successfully | 103 | // detach ourself from the worksheet, so that it can then delete this object successfully |
| 104 | $this->_parent = null; | 104 | $this->_parent = null; |
| 105 | } // function unsetWorksheetCells() | 105 | } // function unsetWorksheetCells() |
| 106 | 106 | ||
| 107 | } | 107 | } | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | * PHPExcel | 3 | * PHPExcel |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2006 - 2011 PHPExcel | 5 | * Copyright (c) 2006 - 2011 PHPExcel |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | * | 20 | * |
| 21 | * @category PHPExcel | 21 | * @category PHPExcel |
| 22 | * @package PHPExcel_CachedObjectStorage | 22 | * @package PHPExcel_CachedObjectStorage |
| 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL |
| 25 | * @version 1.7.6, 2011-02-27 | 25 | * @version 1.7.6, 2011-02-27 |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | * PHPExcel_CachedObjectStorage_MemorySerialized | 30 | * PHPExcel_CachedObjectStorage_MemorySerialized |
| 31 | * | 31 | * |
| 32 | * @category PHPExcel | 32 | * @category PHPExcel |
| 33 | * @package PHPExcel_CachedObjectStorage | 33 | * @package PHPExcel_CachedObjectStorage |
| 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 35 | */ | 35 | */ |
| 36 | class PHPExcel_CachedObjectStorage_MemorySerialized extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { | 36 | class PHPExcel_CachedObjectStorage_MemorySerialized extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { |
| 37 | 37 | ||
| 38 | private function _storeData() { | 38 | private function _storeData() { |
| 39 | $this->_currentObject->detach(); | 39 | $this->_currentObject->detach(); |
| 40 | 40 | ||
| 41 | $this->_cellCache[$this->_currentObjectID] = serialize($this->_currentObject); | 41 | $this->_cellCache[$this->_currentObjectID] = serialize($this->_currentObject); |
| 42 | $this->_currentObjectID = $this->_currentObject = null; | 42 | $this->_currentObjectID = $this->_currentObject = null; |
| 43 | } // function _storeData() | 43 | } // function _storeData() |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * Add or Update a cell in cache identified by coordinate address | 47 | * Add or Update a cell in cache identified by coordinate address |
| 48 | * | 48 | * |
| 49 | * @param string $pCoord Coordinate address of the cell to update | 49 | * @param string $pCoord Coordinate address of the cell to update |
| 50 | * @param PHPExcel_Cell $cell Cell to update | 50 | * @param PHPExcel_Cell $cell Cell to update |
| 51 | * @return void | 51 | * @return void |
| 52 | * @throws Exception | 52 | * @throws Exception |
| 53 | */ | 53 | */ |
| 54 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { | 54 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { |
| 55 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { | 55 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { |
| 56 | $this->_storeData(); | 56 | $this->_storeData(); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | $this->_currentObjectID = $pCoord; | 59 | $this->_currentObjectID = $pCoord; |
| 60 | $this->_currentObject = $cell; | 60 | $this->_currentObject = $cell; |
| 61 | 61 | ||
| 62 | return $cell; | 62 | return $cell; |
| 63 | } // function addCacheData() | 63 | } // function addCacheData() |
| 64 | 64 | ||
| 65 | 65 | ||
| 66 | /** | 66 | /** |
| 67 | * Get cell at a specific coordinate | 67 | * Get cell at a specific coordinate |
| 68 | * | 68 | * |
| 69 | * @param string $pCoord Coordinate of the cell | 69 | * @param string $pCoord Coordinate of the cell |
| 70 | * @throws Exception | 70 | * @throws Exception |
| 71 | * @return PHPExcel_Cell Cell that was found, or null if not found | 71 | * @return PHPExcel_Cell Cell that was found, or null if not found |
| 72 | */ | 72 | */ |
| 73 | public function getCacheData($pCoord) { | 73 | public function getCacheData($pCoord) { |
| 74 | if ($pCoord === $this->_currentObjectID) { | 74 | if ($pCoord === $this->_currentObjectID) { |
| 75 | return $this->_currentObject; | 75 | return $this->_currentObject; |
| 76 | } | 76 | } |
| 77 | $this->_storeData(); | 77 | $this->_storeData(); |
| 78 | 78 | ||
| 79 | // Check if the entry that has been requested actually exists | 79 | // Check if the entry that has been requested actually exists |
| 80 | if (!isset($this->_cellCache[$pCoord])) { | 80 | if (!isset($this->_cellCache[$pCoord])) { |
| 81 | // Return null if requested entry doesn't exist in cache | 81 | // Return null if requested entry doesn't exist in cache |
| 82 | return null; | 82 | return null; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | // Set current entry to the requested entry | 85 | // Set current entry to the requested entry |
| 86 | $this->_currentObjectID = $pCoord; | 86 | $this->_currentObjectID = $pCoord; |
| 87 | $this->_currentObject = unserialize($this->_cellCache[$pCoord]); | 87 | $this->_currentObject = unserialize($this->_cellCache[$pCoord]); |
| 88 | // Re-attach the parent worksheet | 88 | // Re-attach the parent worksheet |
| 89 | $this->_currentObject->attach($this->_parent); | 89 | $this->_currentObject->attach($this->_parent); |
| 90 | 90 | ||
| 91 | // Return requested entry | 91 | // Return requested entry |
| 92 | return $this->_currentObject; | 92 | return $this->_currentObject; |
| 93 | } // function getCacheData() | 93 | } // function getCacheData() |
| 94 | 94 | ||
| 95 | 95 | ||
| 96 | public function unsetWorksheetCells() { | 96 | public function unsetWorksheetCells() { |
| 97 | if(!is_null($this->_currentObject)) { | 97 | if(!is_null($this->_currentObject)) { |
| 98 | $this->_currentObject->detach(); | 98 | $this->_currentObject->detach(); |
| 99 | $this->_currentObject = $this->_currentObjectID = null; | 99 | $this->_currentObject = $this->_currentObjectID = null; |
| 100 | } | 100 | } |
| 101 | $this->_cellCache = array(); | 101 | $this->_cellCache = array(); |
| 102 | 102 | ||
| 103 | // detach ourself from the worksheet, so that it can then delete this object successfully | 103 | // detach ourself from the worksheet, so that it can then delete this object successfully |
| 104 | $this->_parent = null; | 104 | $this->_parent = null; |
| 105 | } // function unsetWorksheetCells() | 105 | } // function unsetWorksheetCells() |
| 106 | 106 | ||
| 107 | } | 107 | } | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | /** | 2 | /** |
| 3 | * PHPExcel | 3 | * PHPExcel |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2006 - 2011 PHPExcel | 5 | * Copyright (c) 2006 - 2011 PHPExcel |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | * | 20 | * |
| 21 | * @category PHPExcel | 21 | * @category PHPExcel |
| 22 | * @package PHPExcel_CachedObjectStorage | 22 | * @package PHPExcel_CachedObjectStorage |
| 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 23 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | 24 | * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL |
| 25 | * @version 1.7.6, 2011-02-27 | 25 | * @version 1.7.6, 2011-02-27 |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | * PHPExcel_CachedObjectStorage_PHPTemp | 30 | * PHPExcel_CachedObjectStorage_PHPTemp |
| 31 | * | 31 | * |
| 32 | * @category PHPExcel | 32 | * @category PHPExcel |
| 33 | * @package PHPExcel_CachedObjectStorage | 33 | * @package PHPExcel_CachedObjectStorage |
| 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) | 34 | * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) |
| 35 | */ | 35 | */ |
| 36 | class PHPExcel_CachedObjectStorage_PHPTemp extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { | 36 | class PHPExcel_CachedObjectStorage_PHPTemp extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { |
| 37 | 37 | ||
| 38 | private $_fileHandle = null; | 38 | private $_fileHandle = null; |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | private $_memoryCacheSize = null; | 41 | private $_memoryCacheSize = null; |
| 42 | 42 | ||
| 43 | private function _storeData() { | 43 | private function _storeData() { |
| 44 | $this->_currentObject->detach(); | 44 | $this->_currentObject->detach(); |
| 45 | 45 | ||
| 46 | fseek($this->_fileHandle,0,SEEK_END); | 46 | fseek($this->_fileHandle,0,SEEK_END); |
| 47 | $offset = ftell($this->_fileHandle); | 47 | $offset = ftell($this->_fileHandle); |
| 48 | fwrite($this->_fileHandle, serialize($this->_currentObject)); | 48 | fwrite($this->_fileHandle, serialize($this->_currentObject)); |
| 49 | $this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset, | 49 | $this->_cellCache[$this->_currentObjectID] = array('ptr' => $offset, |
| 50 | 'sz' => ftell($this->_fileHandle) - $offset | 50 | 'sz' => ftell($this->_fileHandle) - $offset |
| 51 | ); | 51 | ); |
| 52 | $this->_currentObjectID = $this->_currentObject = null; | 52 | $this->_currentObjectID = $this->_currentObject = null; |
| 53 | } // function _storeData() | 53 | } // function _storeData() |
| 54 | 54 | ||
| 55 | 55 | ||
| 56 | /** | 56 | /** |
| 57 | * Add or Update a cell in cache identified by coordinate address | 57 | * Add or Update a cell in cache identified by coordinate address |
| 58 | * | 58 | * |
| 59 | * @param string $pCoord Coordinate address of the cell to update | 59 | * @param string $pCoord Coordinate address of the cell to update |
| 60 | * @param PHPExcel_Cell $cell Cell to update | 60 | * @param PHPExcel_Cell $cell Cell to update |
| 61 | * @return void | 61 | * @return void |
| 62 | * @throws Exception | 62 | * @throws Exception |
| 63 | */ | 63 | */ |
| 64 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { | 64 | public function addCacheData($pCoord, PHPExcel_Cell $cell) { |
| 65 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { | 65 | if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) { |
| 66 | $this->_storeData(); | 66 | $this->_storeData(); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | $this->_currentObjectID = $pCoord; | 69 | $this->_currentObjectID = $pCoord; |
| 70 | $this->_currentObject = $cell; | 70 | $this->_currentObject = $cell; |
| 71 | 71 | ||
| 72 | return $cell; | 72 | return $cell; |
| 73 | } // function addCacheData() | 73 | } // function addCacheData() |
| 74 | 74 | ||
| 75 | 75 | ||
| 76 | /** | 76 | /** |
| 77 | * Get cell at a specific coordinate | 77 | * Get cell at a specific coordinate |
| 78 | * | 78 | * |
| 79 | * @param string $pCoord Coordinate of the cell | 79 | * @param string $pCoord Coordinate of the cell |
| 80 | * @throws Exception | 80 | * @throws Exception |
| 81 | * @return PHPExcel_Cell Cell that was found, or null if not found | 81 | * @return PHPExcel_Cell Cell that was found, or null if not found |
| 82 | */ | 82 | */ |
| 83 | public function getCacheData($pCoord) { | 83 | public function getCacheData($pCoord) { |
| 84 | if ($pCoord === $this->_currentObjectID) { | 84 | if ($pCoord === $this->_currentObjectID) { |
| 85 | return $this->_currentObject; | 85 | return $this->_currentObject; |
| 86 | } | 86 | } |
| 87 | $this->_storeData(); | 87 | $this->_storeData(); |
| 88 | 88 | ||
| 89 | // Check if the entry that has been requested actually exists | 89 | // Check if the entry that has been requested actually exists |
| 90 | if (!isset($this->_cellCache[$pCoord])) { | 90 | if (!isset($this->_cellCache[$pCoord])) { |
| 91 | // Return null if requested entry doesn't exist in cache | 91 | // Return null if requested entry doesn't exist in cache |
| 92 | return null; | 92 | return null; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | // Set current entry to the requested entry | 95 | // Set current entry to the requested entry |
| 96 | $this->_currentObjectID = $pCoord; | 96 | $this->_currentObjectID = $pCoord; |
| 97 | fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']); | 97 | fseek($this->_fileHandle,$this->_cellCache[$pCoord]['ptr']); |
| 98 | $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz'])); | 98 | $this->_currentObject = unserialize(fread($this->_fileHandle,$this->_cellCache[$pCoord]['sz'])); |
| 99 | // Re-attach the parent worksheet | 99 | // Re-attach the parent worksheet |
| 100 | $this->_currentObject->attach($this->_parent); | 100 | $this->_currentObject->attach($this->_parent); |
| 101 | 101 | ||
| 102 | // Return requested entry | 102 | // Return requested entry |
| 103 | return $this->_currentObject; | 103 | return $this->_currentObject; |
| 104 | } // function getCacheData() | 104 | } // function getCacheData() |
| 105 | 105 | ||
| 106 | 106 | ||
| 107 | /** | 107 | /** |
| 108 | * Clone the cell collection | 108 | * Clone the cell collection |
| 109 | * | 109 | * |
| 110 | * @return void | 110 | * @return void |
| 111 | */ | 111 | */ |
| 112 | public function copyCellCollection(PHPExcel_Worksheet $parent) { | 112 | public function copyCellCollection(PHPExcel_Worksheet $parent) { |
| 113 | parent::copyCellCollection($parent); | 113 | parent::copyCellCollection($parent); |
| 114 | // Open a new stream for the cell cache data | 114 | // Open a new stream for the cell cache data |
| 115 | $newFileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+'); | 115 | $newFileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+'); |
| 116 | // Copy the existing cell cache data to the new stream | 116 | // Copy the existing cell cache data to the new stream |
| 117 | fseek($this->_fileHandle,0); | 117 | fseek($this->_fileHandle,0); |
| 118 | while (!feof($this->_fileHandle)) { | 118 | while (!feof($this->_fileHandle)) { |
| 119 | fwrite($newFileHandle,fread($this->_fileHandle, 1024)); | 119 | fwrite($newFileHandle,fread($this->_fileHandle, 1024)); |
| 120 | } | 120 | } |
| 121 | $this->_fileHandle = $newFileHandle; | 121 | $this->_fileHandle = $newFileHandle; |
| 122 | } // function copyCellCollection() | 122 | } // function copyCellCollection() |
| 123 | 123 | ||
| 124 | 124 | ||
| 125 | public function unsetWorksheetCells() { | 125 | public function unsetWorksheetCells() { |
| 126 | if(!is_null($this->_currentObject)) { | 126 | if(!is_null($this->_currentObject)) { |
| 127 | $this->_currentObject->detach(); | 127 | $this->_currentObject->detach(); |
| 128 | $this->_currentObject = $this->_currentObjectID = null; | 128 | $this->_currentObject = $this->_currentObjectID = null; |
| 129 | } | 129 | } |
| 130 | $this->_cellCache = array(); | 130 | $this->_cellCache = array(); |
| 131 | 131 | ||
| 132 | // detach ourself from the worksheet, so that it can then delete this object successfully | 132 | // detach ourself from the worksheet, so that it can then delete this object successfully |
| 133 | $this->_parent = null; | 133 | $this->_parent = null; |
| 134 | 134 | ||
| 135 | // Close down the php://temp file | 135 | // Close down the php://temp file |
| 136 | $this->__destruct(); | 136 | $this->__destruct(); |
| 137 | } // function unsetWorksheetCells() | 137 | } // function unsetWorksheetCells() |
| 138 | 138 | ||
| 139 | 139 | ||
| 140 | public function __construct(PHPExcel_Worksheet $parent, $memoryCacheSize = '1MB') { | 140 | public function __construct(PHPExcel_Worksheet $parent, $memoryCacheSize = '1MB') { |
| 141 | $this->_memoryCacheSize = (isset($arguments['memoryCacheSize'])) ? $arguments['memoryCacheSize'] : '1MB'; | 141 | $this->_memoryCacheSize = (isset($arguments['memoryCacheSize'])) ? $arguments['memoryCacheSize'] : '1MB'; |
| 142 | 142 | ||
| 143 | parent::__construct($parent); | 143 | parent::__construct($parent); |
| 144 | if (is_null($this->_fileHandle)) { | 144 | if (is_null($this->_fileHandle)) { |
| 145 | $this->_fileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+'); | 145 | $this->_fileHandle = fopen('php://temp/maxmemory:'.$this->_memoryCacheSize,'a+'); |
| 146 | } | 146 | } |
| 147 | } // function __construct() | 147 | } // function __construct() |
| 148 | 148 | ||
| 149 | 149 | ||
| 150 | public function __destruct() { | 150 | public function __destruct() { |
| 151 | if (!is_null($this->_fileHandle)) { | 151 | if (!is_null($this->_fileHandle)) { |
| 152 | fclose($this->_fileHandle); | 152 | fclose($this->_fileHandle); |
| 153 | } | 153 | } |
| 154 | $this->_fileHandle = null; | 154 | $this->_fileHandle = null; |
| 155 | } // function __destruct() | 155 | } // function __destruct() |
| 156 | 156 | ||
| 157 | } | 157 | } | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -184,9 +184,9 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader | ... | @@ -184,9 +184,9 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader |
| 184 | */ | 184 | */ |
| 185 | public function canRead($pFilename) | 185 | public function canRead($pFilename) |
| 186 | { | 186 | { |
| 187 | // Check if zip class exists | 187 | // Check if zip class exists |
| 188 | if (!class_exists('ZipArchive')) { | 188 | if (!class_exists('ZipArchive')) { |
| 189 | return false; | 189 | return false; |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | // Check if file exists | 192 | // Check if file exists |
| ... | @@ -822,11 +822,11 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader | ... | @@ -822,11 +822,11 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader |
| 822 | } else { | 822 | } else { |
| 823 | // Formula | 823 | // Formula |
| 824 | $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToBool'); | 824 | $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToBool'); |
| 825 | if (isset($c->f['t'])) { | 825 | if (isset($c->f['t'])) { |
| 826 | $att = array(); | 826 | $att = array(); |
| 827 | $att = $c->f; | 827 | $att = $c->f; |
| 828 | $docSheet->getCell($r)->setFormulaAttributes($att); | 828 | $docSheet->getCell($r)->setFormulaAttributes($att); |
| 829 | } | 829 | } |
| 830 | // echo '$calculatedValue = '.$calculatedValue.'<br />'; | 830 | // echo '$calculatedValue = '.$calculatedValue.'<br />'; |
| 831 | } | 831 | } |
| 832 | break; | 832 | break; |
| ... | @@ -1592,7 +1592,7 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader | ... | @@ -1592,7 +1592,7 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader |
| 1592 | if (isset($style->fill)) { | 1592 | if (isset($style->fill)) { |
| 1593 | if ($style->fill->gradientFill) { | 1593 | if ($style->fill->gradientFill) { |
| 1594 | $gradientFill = $style->fill->gradientFill[0]; | 1594 | $gradientFill = $style->fill->gradientFill[0]; |
| 1595 | if(!empty($gradientFill["type"])) { | 1595 | if(!empty($gradientFill["type"])) { |
| 1596 | $docStyle->getFill()->setFillType((string) $gradientFill["type"]); | 1596 | $docStyle->getFill()->setFillType((string) $gradientFill["type"]); |
| 1597 | } | 1597 | } |
| 1598 | $docStyle->getFill()->setRotation(floatval($gradientFill["degree"])); | 1598 | $docStyle->getFill()->setRotation(floatval($gradientFill["degree"])); | ... | ... |
This diff could not be displayed because it is too large.
This diff is collapsed.
Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed.
Click to expand it.
| 1 | Sentences that contain all letters commonly used in a language | 1 | Sentences that contain all letters commonly used in a language |
| 2 | -------------------------------------------------------------- | 2 | -------------------------------------------------------------- |
| 3 | 3 | ||
| 4 | Markus Kuhn <http://www.cl.cam.ac.uk/~mgk25/> -- 2001-09-02 | 4 | Markus Kuhn <http://www.cl.cam.ac.uk/~mgk25/> -- 2001-09-02 |
| 5 | 5 | ||
| 6 | This file is UTF-8 encoded. | 6 | This file is UTF-8 encoded. |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | Danish (da) | 9 | Danish (da) |
| 10 | --------- | 10 | --------- |
| 11 | 11 | ||
| 12 | Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen | 12 | Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen |
| 13 | Wolther spillede på xylofon. | 13 | Wolther spillede på xylofon. |
| 14 | (= Quiz contestants were eating strawbery with cream while Wolther | 14 | (= Quiz contestants were eating strawbery with cream while Wolther |
| 15 | the circus clown played on xylophone.) | 15 | the circus clown played on xylophone.) |
| 16 | 16 | ||
| 17 | German (de) | 17 | German (de) |
| 18 | ----------- | 18 | ----------- |
| 19 | 19 | ||
| 20 | Falsches Üben von Xylophonmusik quält jeden größeren Zwerg | 20 | Falsches Üben von Xylophonmusik quält jeden größeren Zwerg |
| 21 | (= Wrongful practicing of xylophone music tortures every larger dwarf) | 21 | (= Wrongful practicing of xylophone music tortures every larger dwarf) |
| 22 | 22 | ||
| 23 | Zwölf Boxkämpfer jagten Eva quer über den Sylter Deich | 23 | Zwölf Boxkämpfer jagten Eva quer über den Sylter Deich |
| 24 | (= Twelve boxing fighters hunted Eva across the dike of Sylt) | 24 | (= Twelve boxing fighters hunted Eva across the dike of Sylt) |
| 25 | 25 | ||
| 26 | Heizölrückstoßabdämpfung | 26 | Heizölrückstoßabdämpfung |
| 27 | (= fuel oil recoil absorber) | 27 | (= fuel oil recoil absorber) |
| 28 | (jqvwxy missing, but all non-ASCII letters in one word) | 28 | (jqvwxy missing, but all non-ASCII letters in one word) |
| 29 | 29 | ||
| 30 | English (en) | 30 | English (en) |
| 31 | ------------ | 31 | ------------ |
| 32 | 32 | ||
| 33 | The quick brown fox jumps over the lazy dog | 33 | The quick brown fox jumps over the lazy dog |
| 34 | 34 | ||
| 35 | Spanish (es) | 35 | Spanish (es) |
| 36 | ------------ | 36 | ------------ |
| 37 | 37 | ||
| 38 | El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y | 38 | El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y |
| 39 | frío, añoraba a su querido cachorro. | 39 | frío, añoraba a su querido cachorro. |
| 40 | (Contains every letter and every accent, but not every combination | 40 | (Contains every letter and every accent, but not every combination |
| 41 | of vowel + acute.) | 41 | of vowel + acute.) |
| 42 | 42 | ||
| 43 | French (fr) | 43 | French (fr) |
| 44 | ----------- | 44 | ----------- |
| 45 | 45 | ||
| 46 | Portez ce vieux whisky au juge blond qui fume sur son île intérieure, à | 46 | Portez ce vieux whisky au juge blond qui fume sur son île intérieure, à |
| 47 | côté de l'alcôve ovoïde, où les bûches se consument dans l'âtre, ce | 47 | côté de l'alcôve ovoïde, où les bûches se consument dans l'âtre, ce |
| 48 | qui lui permet de penser à la cænogenèse de l'être dont il est question | 48 | qui lui permet de penser à la cænogenèse de l'être dont il est question |
| 49 | dans la cause ambiguë entendue à Moÿ, dans un capharnaüm qui, | 49 | dans la cause ambiguë entendue à Moÿ, dans un capharnaüm qui, |
| 50 | pense-t-il, diminue çà et là la qualité de son œuvre. | 50 | pense-t-il, diminue çà et là la qualité de son œuvre. |
| 51 | 51 | ||
| 52 | l'île exiguë | 52 | l'île exiguë |
| 53 | Où l'obèse jury mûr | 53 | Où l'obèse jury mûr |
| 54 | Fête l'haï volapük, | 54 | Fête l'haï volapük, |
| 55 | Âne ex aéquo au whist, | 55 | Âne ex aéquo au whist, |
| 56 | Ôtez ce vœu déçu. | 56 | Ôtez ce vœu déçu. |
| 57 | 57 | ||
| 58 | Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en | 58 | Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en |
| 59 | canoë au delà des îles, près du mälström où brûlent les novæ. | 59 | canoë au delà des îles, près du mälström où brûlent les novæ. |
| 60 | 60 | ||
| 61 | Irish Gaelic (ga) | 61 | Irish Gaelic (ga) |
| 62 | ----------------- | 62 | ----------------- |
| 63 | 63 | ||
| 64 | D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh | 64 | D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh |
| 65 | 65 | ||
| 66 | Hungarian (hu) | 66 | Hungarian (hu) |
| 67 | -------------- | 67 | -------------- |
| 68 | 68 | ||
| 69 | Árvíztűrő tükörfúrógép | 69 | Árvíztűrő tükörfúrógép |
| 70 | (= flood-proof mirror-drilling machine, only all non-ASCII letters) | 70 | (= flood-proof mirror-drilling machine, only all non-ASCII letters) |
| 71 | 71 | ||
| 72 | Icelandic (is) | 72 | Icelandic (is) |
| 73 | -------------- | 73 | -------------- |
| 74 | 74 | ||
| 75 | Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa | 75 | Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa |
| 76 | 76 | ||
| 77 | Sævör grét áðan því úlpan var ónýt | 77 | Sævör grét áðan því úlpan var ónýt |
| 78 | (some ASCII letters missing) | 78 | (some ASCII letters missing) |
| 79 | 79 | ||
| 80 | Greek (el) | 80 | Greek (el) |
| 81 | ------------- | 81 | ------------- |
| 82 | 82 | ||
| 83 | Γαζέες καὶ μυρτιὲς δὲν θὰ βρῶ πιὰ στὸ χρυσαφὶ ξέφωτο | 83 | Γαζέες καὶ μυρτιὲς δὲν θὰ βρῶ πιὰ στὸ χρυσαφὶ ξέφωτο |
| 84 | (= No more shall I see acacias or myrtles in the golden clearing) | 84 | (= No more shall I see acacias or myrtles in the golden clearing) |
| 85 | 85 | ||
| 86 | Ξεσκεπάζω τὴν ψυχοφθόρα βδελυγμία | 86 | Ξεσκεπάζω τὴν ψυχοφθόρα βδελυγμία |
| 87 | (= I uncover the soul-destroying abhorrence) | 87 | (= I uncover the soul-destroying abhorrence) |
| 88 | 88 | ||
| 89 | Hebrew (iw) | 89 | Hebrew (iw) |
| 90 | ----------- | 90 | ----------- |
| 91 | 91 | ||
| 92 | ? דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה | 92 | ? דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה |
| 93 | 93 | ||
| 94 | Polish (pl) | 94 | Polish (pl) |
| 95 | ----------- | 95 | ----------- |
| 96 | 96 | ||
| 97 | Pchnąć w tę łódź jeża lub osiem skrzyń fig | 97 | Pchnąć w tę łódź jeża lub osiem skrzyń fig |
| 98 | (= To push a hedgehog or eight bins of figs in this boat) | 98 | (= To push a hedgehog or eight bins of figs in this boat) |
| 99 | 99 | ||
| 100 | Zażółć gęślą jaźń | 100 | Zażółć gęślą jaźń |
| 101 | 101 | ||
| 102 | Russian (ru) | 102 | Russian (ru) |
| 103 | ------------ | 103 | ------------ |
| 104 | 104 | ||
| 105 | В чащах юга жил бы цитрус? Да, но фальшивый экземпляр! | 105 | В чащах юга жил бы цитрус? Да, но фальшивый экземпляр! |
| 106 | (= Would a citrus live in the bushes of south? Yes, but only a fake one!) | 106 | (= Would a citrus live in the bushes of south? Yes, but only a fake one!) |
| 107 | 107 | ||
| 108 | Thai (th) | 108 | Thai (th) |
| 109 | --------- | 109 | --------- |
| 110 | 110 | ||
| 111 | [--------------------------|------------------------] | 111 | [--------------------------|------------------------] |
| 112 | ๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า กว่าบรรดาฝูงสัตว์เดรัจฉาน | 112 | ๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า กว่าบรรดาฝูงสัตว์เดรัจฉาน |
| 113 | จงฝ่าฟันพัฒนาวิชาการ อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร | 113 | จงฝ่าฟันพัฒนาวิชาการ อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร |
| 114 | ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า หัดอภัยเหมือนกีฬาอัชฌาสัย | 114 | ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า หัดอภัยเหมือนกีฬาอัชฌาสัย |
| 115 | ปฏิบัติประพฤติกฎกำหนดใจ พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ | 115 | ปฏิบัติประพฤติกฎกำหนดใจ พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ |
| 116 | 116 | ||
| 117 | [The copyright for the Thai example is owned by The Computer | 117 | [The copyright for the Thai example is owned by The Computer |
| 118 | Association of Thailand under the Royal Patronage of His Majesty the | 118 | Association of Thailand under the Royal Patronage of His Majesty the |
| 119 | King.] | 119 | King.] |
| 120 | 120 | ||
| 121 | Please let me know if you find others! Special thanks to the people | 121 | Please let me know if you find others! Special thanks to the people |
| 122 | from all over the world who contributed these sentences. | 122 | from all over the world who contributed these sentences. | ... | ... |
This diff is collapsed.
Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| 1 | <?php | 1 | <?php |
| 2 | // core font definition file for TCPDF (www.tcpdf.org) | 2 | // core font definition file for TCPDF (www.tcpdf.org) |
| 3 | $type='core'; | 3 | $type='core'; |
| 4 | $dw=500; | 4 | $dw=500; |
| 5 | $cw=array(0=>250,1=>250,2=>250,3=>250,4=>250,5=>250,6=>250,7=>250,8=>250,9=>250, | 5 | $cw=array(0=>250,1=>250,2=>250,3=>250,4=>250,5=>250,6=>250,7=>250,8=>250,9=>250, |
| 6 | 10=>250,11=>250,12=>250,13=>250,14=>250,15=>250,16=>250,17=>250,18=>250,19=>250, | 6 | 10=>250,11=>250,12=>250,13=>250,14=>250,15=>250,16=>250,17=>250,18=>250,19=>250, |
| 7 | 20=>250,21=>250,22=>250,23=>250,24=>250,25=>250,26=>250,27=>250,28=>250,29=>250, | 7 | 20=>250,21=>250,22=>250,23=>250,24=>250,25=>250,26=>250,27=>250,28=>250,29=>250, |
| 8 | 30=>250,31=>250,32=>250,33=>333,34=>713,35=>500,36=>549,37=>833,38=>778,39=>439, | 8 | 30=>250,31=>250,32=>250,33=>333,34=>713,35=>500,36=>549,37=>833,38=>778,39=>439, |
| 9 | 40=>333,41=>333,42=>500,43=>549,44=>250,45=>549,46=>250,47=>278,48=>500,49=>500, | 9 | 40=>333,41=>333,42=>500,43=>549,44=>250,45=>549,46=>250,47=>278,48=>500,49=>500, |
| 10 | 50=>500,51=>500,52=>500,53=>500,54=>500,55=>500,56=>500,57=>500,58=>278,59=>278, | 10 | 50=>500,51=>500,52=>500,53=>500,54=>500,55=>500,56=>500,57=>500,58=>278,59=>278, |
| 11 | 60=>549,61=>549,62=>549,63=>444,64=>549,65=>722,66=>667,67=>722,68=>612,69=>611, | 11 | 60=>549,61=>549,62=>549,63=>444,64=>549,65=>722,66=>667,67=>722,68=>612,69=>611, |
| 12 | 70=>763,71=>603,72=>722,73=>333,74=>631,75=>722,76=>686,77=>889,78=>722,79=>722, | 12 | 70=>763,71=>603,72=>722,73=>333,74=>631,75=>722,76=>686,77=>889,78=>722,79=>722, |
| 13 | 80=>768,81=>741,82=>556,83=>592,84=>611,85=>690,86=>439,87=>768,88=>645,89=>795, | 13 | 80=>768,81=>741,82=>556,83=>592,84=>611,85=>690,86=>439,87=>768,88=>645,89=>795, |
| 14 | 90=>611,91=>333,92=>863,93=>333,94=>658,95=>500,96=>500,97=>631,98=>549,99=>549, | 14 | 90=>611,91=>333,92=>863,93=>333,94=>658,95=>500,96=>500,97=>631,98=>549,99=>549, |
| 15 | 100=>494,101=>439,102=>521,103=>411,104=>603,105=>329,106=>603,107=>549,108=>549, | 15 | 100=>494,101=>439,102=>521,103=>411,104=>603,105=>329,106=>603,107=>549,108=>549, |
| 16 | 109=>576,110=>521,111=>549,112=>549,113=>521,114=>549,115=>603,116=>439,117=>576, | 16 | 109=>576,110=>521,111=>549,112=>549,113=>521,114=>549,115=>603,116=>439,117=>576, |
| 17 | 118=>713,119=>686,120=>493,121=>686,122=>494,123=>480,124=>200,125=>480,126=>549, | 17 | 118=>713,119=>686,120=>493,121=>686,122=>494,123=>480,124=>200,125=>480,126=>549, |
| 18 | 127=>0,128=>0,129=>0,130=>0,131=>0,132=>0,133=>0,134=>0,135=>0,136=>0,137=>0, | 18 | 127=>0,128=>0,129=>0,130=>0,131=>0,132=>0,133=>0,134=>0,135=>0,136=>0,137=>0, |
| 19 | 138=>0,139=>0,140=>0,141=>0,142=>0,143=>0,144=>0,145=>0,146=>0,147=>0,148=>0, | 19 | 138=>0,139=>0,140=>0,141=>0,142=>0,143=>0,144=>0,145=>0,146=>0,147=>0,148=>0, |
| 20 | 149=>0,150=>0,151=>0,152=>0,153=>0,154=>0,155=>0,156=>0,157=>0,158=>0,159=>0, | 20 | 149=>0,150=>0,151=>0,152=>0,153=>0,154=>0,155=>0,156=>0,157=>0,158=>0,159=>0, |
| 21 | 160=>750,161=>620,162=>247,163=>549,164=>167,165=>713,166=>500,167=>753,168=>753, | 21 | 160=>750,161=>620,162=>247,163=>549,164=>167,165=>713,166=>500,167=>753,168=>753, |
| 22 | 169=>753,170=>753,171=>1042,172=>987,173=>603,174=>987,175=>603,176=>400,177=>549, | 22 | 169=>753,170=>753,171=>1042,172=>987,173=>603,174=>987,175=>603,176=>400,177=>549, |
| 23 | 178=>411,179=>549,180=>549,181=>713,182=>494,183=>460,184=>549,185=>549,186=>549, | 23 | 178=>411,179=>549,180=>549,181=>713,182=>494,183=>460,184=>549,185=>549,186=>549, |
| 24 | 187=>549,188=>1000,189=>603,190=>1000,191=>658,192=>823,193=>686,194=>795,195=>987, | 24 | 187=>549,188=>1000,189=>603,190=>1000,191=>658,192=>823,193=>686,194=>795,195=>987, |
| 25 | 196=>768,197=>768,198=>823,199=>768,200=>768,201=>713,202=>713,203=>713,204=>713, | 25 | 196=>768,197=>768,198=>823,199=>768,200=>768,201=>713,202=>713,203=>713,204=>713, |
| 26 | 205=>713,206=>713,207=>713,208=>768,209=>713,210=>790,211=>790,212=>890,213=>823, | 26 | 205=>713,206=>713,207=>713,208=>768,209=>713,210=>790,211=>790,212=>890,213=>823, |
| 27 | 214=>549,215=>250,216=>713,217=>603,218=>603,219=>1042,220=>987,221=>603,222=>987, | 27 | 214=>549,215=>250,216=>713,217=>603,218=>603,219=>1042,220=>987,221=>603,222=>987, |
| 28 | 223=>603,224=>494,225=>329,226=>790,227=>790,228=>786,229=>713,230=>384,231=>384, | 28 | 223=>603,224=>494,225=>329,226=>790,227=>790,228=>786,229=>713,230=>384,231=>384, |
| 29 | 232=>384,233=>384,234=>384,235=>384,236=>494,237=>494,238=>494,239=>494,240=>0, | 29 | 232=>384,233=>384,234=>384,235=>384,236=>494,237=>494,238=>494,239=>494,240=>0, |
| 30 | 241=>329,242=>274,243=>686,244=>686,245=>686,246=>384,247=>384,248=>384,249=>384, | 30 | 241=>329,242=>274,243=>686,244=>686,245=>686,246=>384,247=>384,248=>384,249=>384, |
| 31 | 250=>384,251=>384,252=>494,253=>494,254=>494,255=>0); | 31 | 250=>384,251=>384,252=>494,253=>494,254=>494,255=>0); |
| 32 | // --- EOF --- | 32 | // --- EOF --- | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | //============================================================+ | 2 | //============================================================+ |
| 3 | // File name : makeallttffonts.php | 3 | // File name : makeallttffonts.php |
| 4 | // Begin : 2008-12-07 | 4 | // Begin : 2008-12-07 |
| 5 | // Last Update : 2010-08-08 | 5 | // Last Update : 2010-08-08 |
| 6 | // | 6 | // |
| 7 | // Description : Process all TTF files on current directory to | 7 | // Description : Process all TTF files on current directory to |
| 8 | // build TCPDF compatible font files. | 8 | // build TCPDF compatible font files. |
| 9 | // | 9 | // |
| 10 | // Author: Nicola Asuni | 10 | // Author: Nicola Asuni |
| 11 | // | 11 | // |
| 12 | // (c) Copyright: | 12 | // (c) Copyright: |
| 13 | // Nicola Asuni | 13 | // Nicola Asuni |
| 14 | // Tecnick.com S.r.l. | 14 | // Tecnick.com S.r.l. |
| 15 | // Via della Pace, 11 | 15 | // Via della Pace, 11 |
| 16 | // 09044 Quartucciu (CA) | 16 | // 09044 Quartucciu (CA) |
| 17 | // ITALY | 17 | // ITALY |
| 18 | // www.tecnick.com | 18 | // www.tecnick.com |
| 19 | // info@tecnick.com | 19 | // info@tecnick.com |
| 20 | // | 20 | // |
| 21 | // License: | 21 | // License: |
| 22 | // Copyright (C) 2004-2010 Nicola Asuni - Tecnick.com S.r.l. | 22 | // Copyright (C) 2004-2010 Nicola Asuni - Tecnick.com S.r.l. |
| 23 | // | 23 | // |
| 24 | // This file is part of TCPDF software library. | 24 | // This file is part of TCPDF software library. |
| 25 | // | 25 | // |
| 26 | // TCPDF is free software: you can redistribute it and/or modify it | 26 | // TCPDF is free software: you can redistribute it and/or modify it |
| 27 | // under the terms of the GNU Lesser General Public License as | 27 | // under the terms of the GNU Lesser General Public License as |
| 28 | // published by the Free Software Foundation, either version 3 of the | 28 | // published by the Free Software Foundation, either version 3 of the |
| 29 | // License, or (at your option) any later version. | 29 | // License, or (at your option) any later version. |
| 30 | // | 30 | // |
| 31 | // TCPDF is distributed in the hope that it will be useful, but | 31 | // TCPDF is distributed in the hope that it will be useful, but |
| 32 | // WITHOUT ANY WARRANTY; without even the implied warranty of | 32 | // WITHOUT ANY WARRANTY; without even the implied warranty of |
| 33 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 33 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 34 | // See the GNU Lesser General Public License for more details. | 34 | // See the GNU Lesser General Public License for more details. |
| 35 | // | 35 | // |
| 36 | // You should have received a copy of the GNU Lesser General Public License | 36 | // You should have received a copy of the GNU Lesser General Public License |
| 37 | // along with TCPDF. If not, see <http://www.gnu.org/licenses/>. | 37 | // along with TCPDF. If not, see <http://www.gnu.org/licenses/>. |
| 38 | // | 38 | // |
| 39 | // See LICENSE.TXT file for more information. | 39 | // See LICENSE.TXT file for more information. |
| 40 | //============================================================+ | 40 | //============================================================+ |
| 41 | 41 | ||
| 42 | /** | 42 | /** |
| 43 | * Process all TTF files on current directory to build TCPDF compatible font files. | 43 | * Process all TTF files on current directory to build TCPDF compatible font files. |
| 44 | * @package com.tecnick.tcpdf | 44 | * @package com.tecnick.tcpdf |
| 45 | * @author Nicola Asuni | 45 | * @author Nicola Asuni |
| 46 | * @copyright Copyright © 2004-2009, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com | 46 | * @copyright Copyright © 2004-2009, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com |
| 47 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | 47 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License |
| 48 | * @link www.tecnick.com | 48 | * @link www.tecnick.com |
| 49 | * @since 2008-12-07 | 49 | * @since 2008-12-07 |
| 50 | */ | 50 | */ |
| 51 | 51 | ||
| 52 | /** | 52 | /** |
| 53 | */ | 53 | */ |
| 54 | 54 | ||
| 55 | // read directory for files (only graphics files). | 55 | // read directory for files (only graphics files). |
| 56 | $handle = opendir('.'); | 56 | $handle = opendir('.'); |
| 57 | while($file = readdir($handle)) { | 57 | while($file = readdir($handle)) { |
| 58 | $path_parts = pathinfo($file); | 58 | $path_parts = pathinfo($file); |
| 59 | $file_ext = strtolower($path_parts['extension']); | 59 | $file_ext = strtolower($path_parts['extension']); |
| 60 | if ($file_ext == 'ttf') { | 60 | if ($file_ext == 'ttf') { |
| 61 | exec('./ttf2ufm -a -F '.$path_parts['basename'].''); | 61 | exec('./ttf2ufm -a -F '.$path_parts['basename'].''); |
| 62 | exec('php -q makefont.php '.$path_parts['basename'].' '.$path_parts['filename'].'.ufm'); | 62 | exec('php -q makefont.php '.$path_parts['basename'].' '.$path_parts['filename'].'.ufm'); |
| 63 | } | 63 | } |
| 64 | } | 64 | } |
| 65 | closedir($handle); | 65 | closedir($handle); |
| 66 | 66 | ||
| 67 | //============================================================+ | 67 | //============================================================+ |
| 68 | // END OF FILE | 68 | // END OF FILE |
| 69 | //============================================================+ | 69 | //============================================================+ | ... | ... |
| 1 | To embed TrueType and OpenType font files, you need to extract the | 1 | To embed TrueType and OpenType font files, you need to extract the |
| 2 | font metrics from the font files and build the required tables using | 2 | font metrics from the font files and build the required tables using |
| 3 | the utility TTF2UFM. | 3 | the utility TTF2UFM. |
| 4 | 4 | ||
| 5 | TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter | 5 | TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter |
| 6 | (http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net> | 6 | (http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net> |
| 7 | (http://www.acko.net/blog/ufpdf). That version has been further | 7 | (http://www.acko.net/blog/ufpdf). That version has been further |
| 8 | modified by Ulrich Telle for use with the wxWidgets component | 8 | modified by Ulrich Telle for use with the wxWidgets component |
| 9 | wxPdfDocument. | 9 | wxPdfDocument. |
| 10 | 10 | ||
| 11 | Following changes where made: | 11 | Following changes where made: |
| 12 | 12 | ||
| 13 | 1) Generated AFM files contain the glyph number for each character. | 13 | 1) Generated AFM files contain the glyph number for each character. |
| 14 | 2) Generated UFM files contain the bounding box for each character. | 14 | 2) Generated UFM files contain the bounding box for each character. |
| 15 | 3) OpenType support has been activated for the Windows binary, | 15 | 3) OpenType support has been activated for the Windows binary, |
| 16 | and the generated AFM/UFM files contain the associated | 16 | and the generated AFM/UFM files contain the associated |
| 17 | original Unicode codes for each character. | 17 | original Unicode codes for each character. | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | // core font definition file for TCPDF (www.tcpdf.org) | 2 | // core font definition file for TCPDF (www.tcpdf.org) |
| 3 | $type='core'; | 3 | $type='core'; |
| 4 | $dw=788; | 4 | $dw=788; |
| 5 | $cw=array(0=>0,1=>0,2=>0,3=>0,4=>0,5=>0,6=>0,7=>0,8=>0,9=>0,10=>0,11=>0,12=>0, | 5 | $cw=array(0=>0,1=>0,2=>0,3=>0,4=>0,5=>0,6=>0,7=>0,8=>0,9=>0,10=>0,11=>0,12=>0, |
| 6 | 13=>0,14=>0,15=>0,16=>0,17=>0,18=>0,19=>0,20=>0,21=>0,22=>0,23=>0,24=>0,25=>0, | 6 | 13=>0,14=>0,15=>0,16=>0,17=>0,18=>0,19=>0,20=>0,21=>0,22=>0,23=>0,24=>0,25=>0, |
| 7 | 26=>0,27=>0,28=>0,29=>0,30=>0,31=>0,32=>278,33=>974,34=>961,35=>974,36=>980, | 7 | 26=>0,27=>0,28=>0,29=>0,30=>0,31=>0,32=>278,33=>974,34=>961,35=>974,36=>980, |
| 8 | 37=>719,38=>789,39=>790,40=>791,41=>690,42=>960,43=>939,44=>549,45=>855,46=>911, | 8 | 37=>719,38=>789,39=>790,40=>791,41=>690,42=>960,43=>939,44=>549,45=>855,46=>911, |
| 9 | 47=>933,48=>911,49=>945,50=>974,51=>755,52=>846,53=>762,54=>761,55=>571,56=>677, | 9 | 47=>933,48=>911,49=>945,50=>974,51=>755,52=>846,53=>762,54=>761,55=>571,56=>677, |
| 10 | 57=>763,58=>760,59=>759,60=>754,61=>494,62=>552,63=>537,64=>577,65=>692,66=>786, | 10 | 57=>763,58=>760,59=>759,60=>754,61=>494,62=>552,63=>537,64=>577,65=>692,66=>786, |
| 11 | 67=>788,68=>788,69=>790,70=>793,71=>794,72=>816,73=>823,74=>789,75=>841,76=>823, | 11 | 67=>788,68=>788,69=>790,70=>793,71=>794,72=>816,73=>823,74=>789,75=>841,76=>823, |
| 12 | 77=>833,78=>816,79=>831,80=>923,81=>744,82=>723,83=>749,84=>790,85=>792,86=>695, | 12 | 77=>833,78=>816,79=>831,80=>923,81=>744,82=>723,83=>749,84=>790,85=>792,86=>695, |
| 13 | 87=>776,88=>768,89=>792,90=>759,91=>707,92=>708,93=>682,94=>701,95=>826,96=>815, | 13 | 87=>776,88=>768,89=>792,90=>759,91=>707,92=>708,93=>682,94=>701,95=>826,96=>815, |
| 14 | 97=>789,98=>789,99=>707,100=>687,101=>696,102=>689,103=>786,104=>787,105=>713, | 14 | 97=>789,98=>789,99=>707,100=>687,101=>696,102=>689,103=>786,104=>787,105=>713, |
| 15 | 106=>791,107=>785,108=>791,109=>873,110=>761,111=>762,112=>762,113=>759,114=>759, | 15 | 106=>791,107=>785,108=>791,109=>873,110=>761,111=>762,112=>762,113=>759,114=>759, |
| 16 | 115=>892,116=>892,117=>788,118=>784,119=>438,120=>138,121=>277,122=>415,123=>392, | 16 | 115=>892,116=>892,117=>788,118=>784,119=>438,120=>138,121=>277,122=>415,123=>392, |
| 17 | 124=>392,125=>668,126=>668,127=>0,128=>390,129=>390,130=>317,131=>317,132=>276, | 17 | 124=>392,125=>668,126=>668,127=>0,128=>390,129=>390,130=>317,131=>317,132=>276, |
| 18 | 133=>276,134=>509,135=>509,136=>410,137=>410,138=>234,139=>234,140=>334,141=>334, | 18 | 133=>276,134=>509,135=>509,136=>410,137=>410,138=>234,139=>234,140=>334,141=>334, |
| 19 | 142=>0,143=>0,144=>0,145=>0,146=>0,147=>0,148=>0,149=>0,150=>0,151=>0,152=>0, | 19 | 142=>0,143=>0,144=>0,145=>0,146=>0,147=>0,148=>0,149=>0,150=>0,151=>0,152=>0, |
| 20 | 153=>0,154=>0,155=>0,156=>0,157=>0,158=>0,159=>0,160=>0,161=>732,162=>544,163=>544, | 20 | 153=>0,154=>0,155=>0,156=>0,157=>0,158=>0,159=>0,160=>0,161=>732,162=>544,163=>544, |
| 21 | 164=>910,165=>667,166=>760,167=>760,168=>776,169=>595,170=>694,171=>626,172=>788, | 21 | 164=>910,165=>667,166=>760,167=>760,168=>776,169=>595,170=>694,171=>626,172=>788, |
| 22 | 173=>788,174=>788,175=>788,176=>788,177=>788,178=>788,179=>788,180=>788,181=>788, | 22 | 173=>788,174=>788,175=>788,176=>788,177=>788,178=>788,179=>788,180=>788,181=>788, |
| 23 | 182=>788,183=>788,184=>788,185=>788,186=>788,187=>788,188=>788,189=>788,190=>788, | 23 | 182=>788,183=>788,184=>788,185=>788,186=>788,187=>788,188=>788,189=>788,190=>788, |
| 24 | 191=>788,192=>788,193=>788,194=>788,195=>788,196=>788,197=>788,198=>788,199=>788, | 24 | 191=>788,192=>788,193=>788,194=>788,195=>788,196=>788,197=>788,198=>788,199=>788, |
| 25 | 200=>788,201=>788,202=>788,203=>788,204=>788,205=>788,206=>788,207=>788,208=>788, | 25 | 200=>788,201=>788,202=>788,203=>788,204=>788,205=>788,206=>788,207=>788,208=>788, |
| 26 | 209=>788,210=>788,211=>788,212=>894,213=>838,214=>1016,215=>458,216=>748,217=>924, | 26 | 209=>788,210=>788,211=>788,212=>894,213=>838,214=>1016,215=>458,216=>748,217=>924, |
| 27 | 218=>748,219=>918,220=>927,221=>928,222=>928,223=>834,224=>873,225=>828,226=>924, | 27 | 218=>748,219=>918,220=>927,221=>928,222=>928,223=>834,224=>873,225=>828,226=>924, |
| 28 | 227=>924,228=>917,229=>930,230=>931,231=>463,232=>883,233=>836,234=>836,235=>867, | 28 | 227=>924,228=>917,229=>930,230=>931,231=>463,232=>883,233=>836,234=>836,235=>867, |
| 29 | 236=>867,237=>696,238=>696,239=>874,240=>0,241=>874,242=>760,243=>946,244=>771, | 29 | 236=>867,237=>696,238=>696,239=>874,240=>0,241=>874,242=>760,243=>946,244=>771, |
| 30 | 245=>865,246=>771,247=>888,248=>967,249=>888,250=>831,251=>873,252=>927,253=>970, | 30 | 245=>865,246=>771,247=>888,248=>967,249=>888,250=>831,251=>873,252=>927,253=>970, |
| 31 | 254=>918,255=>0); | 31 | 254=>918,255=>0); |
| 32 | // --- EOF --- | 32 | // --- EOF --- | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | /* Mohammad Ali Golkar | 2 | /* Mohammad Ali Golkar |
| 3 | m.a.golkar@gmail.com | 3 | m.a.golkar@gmail.com |
| 4 | http://www.30minonline.com | 4 | http://www.30minonline.com |
| 5 | LICENSE : GPLv2 */ | 5 | LICENSE : GPLv2 */ |
| 6 | $type='TrueTypeUnicode'; | 6 | $type='TrueTypeUnicode'; |
| 7 | $name='ZarBold'; | 7 | $name='ZarBold'; |
| 8 | $desc=array('Ascent'=>733,'Descent'=>-317,'CapHeight'=>733,'Flags'=>32,'FontBBox'=>'[-126 -535 1164 1046]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600); | 8 | $desc=array('Ascent'=>733,'Descent'=>-317,'CapHeight'=>733,'Flags'=>32,'FontBBox'=>'[-126 -535 1164 1046]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600); |
| 9 | $up=-356; | 9 | $up=-356; |
| 10 | $ut=49; | 10 | $ut=49; |
| 11 | $dw=600; | 11 | $dw=600; |
| 12 | $cw=array( | 12 | $cw=array( |
| 13 | 0=>0,32=>227,33=>235,34=>282,35=>667,36=>458,37=>493,38=>635,39=>156,40=>303,41=>303,42=>489,43=>489,44=>237,45=>489,46=>231,47=>277, | 13 | 0=>0,32=>227,33=>235,34=>282,35=>667,36=>458,37=>493,38=>635,39=>156,40=>303,41=>303,42=>489,43=>489,44=>237,45=>489,46=>231,47=>277, |
| 14 | 48=>552,49=>552,50=>552,51=>552,52=>552,53=>552,54=>552,55=>552,56=>552,57=>552,58=>231,59=>237,60=>667,61=>489,62=>667,63=>448, | 14 | 48=>552,49=>552,50=>552,51=>552,52=>552,53=>552,54=>552,55=>552,56=>552,57=>552,58=>231,59=>237,60=>667,61=>489,62=>667,63=>448, |
| 15 | 64=>917,65=>604,66=>542,67=>615,68=>708,69=>479,70=>427,71=>667,72=>688,73=>302,74=>292,75=>583,76=>469,77=>885,78=>677,79=>729, | 15 | 64=>917,65=>604,66=>542,67=>615,68=>708,69=>479,70=>427,71=>667,72=>688,73=>302,74=>292,75=>583,76=>469,77=>885,78=>677,79=>729, |
| 16 | 80=>479,81=>729,82=>542,83=>448,84=>521,85=>677,86=>615,87=>969,88=>604,89=>583,90=>594,91=>208,92=>510,93=>208,94=>469,95=>500, | 16 | 80=>479,81=>729,82=>542,83=>448,84=>521,85=>677,86=>615,87=>969,88=>604,89=>583,90=>594,91=>208,92=>510,93=>208,94=>469,95=>500, |
| 17 | 96=>333,97=>469,98=>510,99=>448,100=>521,101=>438,102=>313,103=>500,104=>552,105=>271,106=>260,107=>500,108=>271,109=>802,110=>552,111=>490, | 17 | 96=>333,97=>469,98=>510,99=>448,100=>521,101=>438,102=>313,103=>500,104=>552,105=>271,106=>260,107=>500,108=>271,109=>802,110=>552,111=>490, |
| 18 | 112=>531,113=>521,114=>396,115=>365,116=>292,117=>552,118=>479,119=>750,120=>521,121=>469,122=>448,123=>479,124=>510,125=>479,126=>667,8218=>240, | 18 | 112=>531,113=>521,114=>396,115=>365,116=>292,117=>552,118=>479,119=>750,120=>521,121=>469,122=>448,123=>479,124=>510,125=>479,126=>667,8218=>240, |
| 19 | 402=>531,8222=>458,8230=>1000,8224=>438,8225=>438,710=>333,8240=>1010,352=>448,8249=>250,338=>865,8216=>240,8217=>240,8220=>317,8221=>317,8226=>281,8211=>500, | 19 | 402=>531,8222=>458,8230=>1000,8224=>438,8225=>438,710=>333,8240=>1010,352=>448,8249=>250,338=>865,8216=>240,8217=>240,8220=>317,8221=>317,8226=>281,8211=>500, |
| 20 | 8212=>1000,8482=>906,353=>365,8250=>250,339=>823,376=>583,160=>244,161=>317,162=>448,163=>583,164=>500,165=>583,166=>200,167=>417,168=>333,169=>765, | 20 | 8212=>1000,8482=>906,353=>365,8250=>250,339=>823,376=>583,160=>244,161=>317,162=>448,163=>583,164=>500,165=>583,166=>200,167=>417,168=>333,169=>765, |
| 21 | 170=>313,171=>417,172=>667,173=>564,174=>765,175=>333,176=>375,177=>462,178=>354,179=>354,180=>333,181=>510,182=>438,183=>198,184=>333,185=>354, | 21 | 170=>313,171=>417,172=>667,173=>564,174=>765,175=>333,176=>375,177=>462,178=>354,179=>354,180=>333,181=>510,182=>438,183=>198,184=>333,185=>354, |
| 22 | 186=>323,187=>417,188=>854,189=>854,190=>854,191=>448,192=>604,711=>333,215=>462,224=>469,226=>469,231=>448,232=>438,233=>438,234=>438,235=>438, | 22 | 186=>323,187=>417,188=>854,189=>854,190=>854,191=>448,192=>604,711=>333,215=>462,224=>469,226=>469,231=>448,232=>438,233=>438,234=>438,235=>438, |
| 23 | 238=>271,239=>271,244=>490,305=>271,247=>483,249=>552,251=>552,252=>552,255=>469,9249=>781,1548=>237,1563=>237,1567=>340,1569=>426,1570=>416,1571=>238, | 23 | 238=>271,239=>271,244=>490,305=>271,247=>483,249=>552,251=>552,252=>552,255=>469,9249=>781,1548=>237,1563=>237,1567=>340,1569=>426,1570=>416,1571=>238, |
| 24 | 1572=>429,1573=>260,1574=>817,1575=>238,1576=>853,1577=>439,1578=>853,1579=>853,1580=>720,1581=>720,1582=>720,1583=>485,1584=>485,1585=>423,1586=>423,1587=>1016, | 24 | 1572=>429,1573=>260,1574=>817,1575=>238,1576=>853,1577=>439,1578=>853,1579=>853,1580=>720,1581=>720,1582=>720,1583=>485,1584=>485,1585=>423,1586=>423,1587=>1016, |
| 25 | 1588=>1016,1589=>1128,1590=>1128,1591=>794,1592=>794,1593=>685,1594=>685,1600=>371,1601=>840,1602=>696,1603=>1148,1604=>744,1605=>514,1606=>686,1607=>439,1608=>429, | 25 | 1588=>1016,1589=>1128,1590=>1128,1591=>794,1592=>794,1593=>685,1594=>685,1600=>371,1601=>840,1602=>696,1603=>1148,1604=>744,1605=>514,1606=>686,1607=>439,1608=>429, |
| 26 | 1609=>817,1610=>817,1611=>0,1612=>0,1613=>0,1614=>0,1615=>0,1616=>0,1617=>0,1618=>0,1632=>479,1633=>479,1634=>479,1635=>479,1636=>479,1637=>479, | 26 | 1609=>817,1610=>817,1611=>0,1612=>0,1613=>0,1614=>0,1615=>0,1616=>0,1617=>0,1618=>0,1632=>479,1633=>479,1634=>479,1635=>479,1636=>479,1637=>479, |
| 27 | 1638=>479,1639=>479,1640=>479,1641=>483,1642=>493,1645=>563,1648=>227,1649=>363,1652=>227,1662=>853,1670=>720,1688=>423,1700=>840,1705=>1148,1711=>1149,1740=>817, | 27 | 1638=>479,1639=>479,1640=>479,1641=>483,1642=>493,1645=>563,1648=>227,1649=>363,1652=>227,1662=>853,1670=>720,1688=>423,1700=>840,1705=>1148,1711=>1149,1740=>817, |
| 28 | 1749=>439,1764=>227,1776=>479,1777=>479,1778=>479,1779=>479,1780=>479,1781=>479,1782=>479,1783=>479,1784=>479,1785=>483,8204=>22,8205=>22,8206=>22,8207=>22, | 28 | 1749=>439,1764=>227,1776=>479,1777=>479,1778=>479,1779=>479,1780=>479,1781=>479,1782=>479,1783=>479,1784=>479,1785=>483,8204=>22,8205=>22,8206=>22,8207=>22, |
| 29 | 59424=>227,59425=>227,59426=>227,59427=>227,59428=>227,59429=>227,59430=>227,59431=>227,59432=>227,59433=>227,59434=>227,59435=>227,59436=>227,59416=>227,59437=>227,59442=>227, | 29 | 59424=>227,59425=>227,59426=>227,59427=>227,59428=>227,59429=>227,59430=>227,59431=>227,59432=>227,59433=>227,59434=>227,59435=>227,59436=>227,59416=>227,59437=>227,59442=>227, |
| 30 | 59443=>227,59444=>227,59445=>227,59446=>227,64336=>363,64337=>263,64342=>853,64343=>967,64344=>267,64345=>271,64362=>840,64363=>959,64364=>305,64365=>341,64378=>720,64379=>725, | 30 | 59443=>227,59444=>227,59445=>227,59446=>227,64336=>363,64337=>263,64342=>853,64343=>967,64344=>267,64345=>271,64362=>840,64363=>959,64364=>305,64365=>341,64378=>720,64379=>725, |
| 31 | 64380=>630,64381=>652,64394=>423,64395=>450,64398=>1148,64399=>1089,64400=>522,64401=>461,64402=>1149,64403=>1084,64404=>525,64405=>462,64508=>817,64509=>784,64606=>227,64607=>227, | 31 | 64380=>630,64381=>652,64394=>423,64395=>450,64398=>1148,64399=>1089,64400=>522,64401=>461,64402=>1149,64403=>1084,64404=>525,64405=>462,64508=>817,64509=>784,64606=>227,64607=>227, |
| 32 | 64608=>227,64609=>227,64610=>227,64754=>371,64755=>371,64756=>371,64828=>331,64829=>276,64830=>303,64831=>303,65010=>866,65136=>227,65137=>371,65138=>227,65140=>227,65142=>227, | 32 | 64608=>227,64609=>227,64610=>227,64754=>371,64755=>371,64756=>371,64828=>331,64829=>276,64830=>303,64831=>303,65010=>866,65136=>227,65137=>371,65138=>227,65140=>227,65142=>227, |
| 33 | 65143=>371,65144=>227,65145=>371,65146=>227,65147=>371,65148=>227,65149=>371,65150=>227,65151=>371,65152=>426,65153=>416,65154=>354,65155=>238,65156=>282,65157=>429,65158=>507, | 33 | 65143=>371,65144=>227,65145=>371,65146=>227,65147=>371,65148=>227,65149=>371,65150=>227,65151=>371,65152=>426,65153=>416,65154=>354,65155=>238,65156=>282,65157=>429,65158=>507, |
| 34 | 65159=>260,65160=>286,65161=>817,65162=>784,65163=>190,65164=>276,65165=>238,65166=>263,65167=>853,65168=>967,65169=>186,65170=>271,65171=>439,65172=>452,65173=>853,65174=>967, | 34 | 65159=>260,65160=>286,65161=>817,65162=>784,65163=>190,65164=>276,65165=>238,65166=>263,65167=>853,65168=>967,65169=>186,65170=>271,65171=>439,65172=>452,65173=>853,65174=>967, |
| 35 | 65175=>256,65176=>271,65177=>853,65178=>967,65179=>267,65180=>271,65181=>720,65182=>725,65183=>630,65184=>652,65185=>720,65186=>725,65187=>630,65188=>652,65189=>720,65190=>725, | 35 | 65175=>256,65176=>271,65177=>853,65178=>967,65179=>267,65180=>271,65181=>720,65182=>725,65183=>630,65184=>652,65185=>720,65186=>725,65187=>630,65188=>652,65189=>720,65190=>725, |
| 36 | 65191=>630,65192=>652,65193=>485,65194=>608,65195=>485,65196=>608,65197=>423,65198=>450,65199=>423,65200=>450,65201=>1016,65202=>1041,65203=>498,65204=>475,65205=>1016,65206=>1041, | 36 | 65191=>630,65192=>652,65193=>485,65194=>608,65195=>485,65196=>608,65197=>423,65198=>450,65199=>423,65200=>450,65201=>1016,65202=>1041,65203=>498,65204=>475,65205=>1016,65206=>1041, |
| 37 | 65207=>498,65208=>475,65209=>1128,65210=>1150,65211=>633,65212=>655,65213=>1128,65214=>1150,65215=>633,65216=>655,65217=>794,65218=>814,65219=>566,65220=>588,65221=>794,65222=>814, | 37 | 65207=>498,65208=>475,65209=>1128,65210=>1150,65211=>633,65212=>655,65213=>1128,65214=>1150,65215=>633,65216=>655,65217=>794,65218=>814,65219=>566,65220=>588,65221=>794,65222=>814, |
| 38 | 65223=>566,65224=>588,65225=>685,65226=>655,65227=>414,65228=>330,65229=>685,65230=>655,65231=>414,65232=>330,65233=>840,65234=>959,65235=>305,65236=>341,65237=>696,65238=>780, | 38 | 65223=>566,65224=>588,65225=>685,65226=>655,65227=>414,65228=>330,65229=>685,65230=>655,65231=>414,65232=>330,65233=>840,65234=>959,65235=>305,65236=>341,65237=>696,65238=>780, |
| 39 | 65239=>305,65240=>341,65241=>1148,65242=>1089,65243=>522,65244=>461,65245=>744,65246=>741,65247=>202,65248=>259,65249=>514,65250=>585,65251=>345,65252=>477,65253=>686,65254=>764, | 39 | 65239=>305,65240=>341,65241=>1148,65242=>1089,65243=>522,65244=>461,65245=>744,65246=>741,65247=>202,65248=>259,65249=>514,65250=>585,65251=>345,65252=>477,65253=>686,65254=>764, |
| 40 | 65255=>186,65256=>271,65257=>439,65258=>452,65259=>501,65260=>381,65261=>429,65262=>507,65263=>817,65264=>784,65265=>817,65266=>784,64510=>265,64511=>271,65269=>610,65270=>652, | 40 | 65255=>186,65256=>271,65257=>439,65258=>452,65259=>501,65260=>381,65261=>429,65262=>507,65263=>817,65264=>784,65265=>817,65266=>784,64510=>265,64511=>271,65269=>610,65270=>652, |
| 41 | 65271=>539,65272=>611,65273=>539,65274=>611,65275=>539,65276=>611,65279=>0,64486=>408,64487=>408); | 41 | 65271=>539,65272=>611,65273=>539,65274=>611,65275=>539,65276=>611,65279=>0,64486=>408,64487=>408); |
| 42 | $enc=''; | 42 | $enc=''; |
| 43 | $diff=''; | 43 | $diff=''; |
| 44 | $file='zarbold.z'; | 44 | $file='zarbold.z'; |
| 45 | $ctg='zarbold.ctg.z'; | 45 | $ctg='zarbold.ctg.z'; |
| 46 | $originalsize=73296; | 46 | $originalsize=73296; |
| 47 | // --- EOF --- | 47 | // --- EOF --- | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment