README.txt 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. README.txt for cmap
  2. This directory contains *.pickle.gz files converted from Adobe CMap resources.
  3. CMaps are required to decode text data written in CJK (Chinese, Japanese,
  4. Korean) language. CMap resources are now available freely from Adobe web site:
  5. http://opensource.adobe.com/wiki/display/cmap/CMap+Resources
  6. The follwing files were extracted from the downloadable tarballs:
  7. cid2code_Adobe_CNS1.txt:
  8. http://download.macromedia.com/pub/opensource/cmap/cmapresources_cns1-6.tar.z
  9. cid2code_Adobe_GB1.txt:
  10. http://download.macromedia.com/pub/opensource/cmap/cmapresources_gb1-5.tar.z
  11. cid2code_Adobe_Japan1.txt:
  12. http://download.macromedia.com/pub/opensource/cmap/cmapresources_japan1-6.tar.z
  13. cid2code_Adobe_Korea1.txt:
  14. http://download.macromedia.com/pub/opensource/cmap/cmapresources_korean1-2.tar.z
  15. These *.pickle.gz files can be generated by running following commands in the
  16. top directory:
  17. $ make cmap
  18. python tools/conv_cmap.py pdfminer/cmap Adobe-CNS1 cmaprsrc/cid2code_Adobe_CNS1.txt
  19. reading 'cmaprsrc/cid2code_Adobe_CNS1.txt'...
  20. writing 'CNS1_H.py'...
  21. ...
  22. On Windows machines which don't have `make` command,
  23. paste the following commands on a command line prompt:
  24. mkdir pdfminer\cmap
  25. python tools\conv_cmap.py -c B5=cp950 -c UniCNS-UTF8=utf-8 pdfminer\cmap Adobe-CNS1 cmaprsrc\cid2code_Adobe_CNS1.txt
  26. python tools\conv_cmap.py -c GBK-EUC=cp936 -c UniGB-UTF8=utf-8 pdfminer\cmap Adobe-GB1 cmaprsrc\cid2code_Adobe_GB1.txt
  27. python tools\conv_cmap.py -c RKSJ=cp932 -c EUC=euc-jp -c UniJIS-UTF8=utf-8 pdfminer\cmap Adobe-Japan1 cmaprsrc\cid2code_Adobe_Japan1.txt
  28. python tools\conv_cmap.py -c KSC-EUC=euc-kr -c KSC-Johab=johab -c KSCms-UHC=cp949 -c UniKS-UTF8=utf-8 pdfminer\cmap Adobe-Korea1 cmaprsrc\cid2code_Adobe_Korea1.txt
  29. Here is the license information in the original files:
  30. %%Copyright: -----------------------------------------------------------
  31. %%Copyright: Copyright 1990-20xx Adobe Systems Incorporated.
  32. %%Copyright: All rights reserved.
  33. %%Copyright:
  34. %%Copyright: Redistribution and use in source and binary forms, with or
  35. %%Copyright: without modification, are permitted provided that the
  36. %%Copyright: following conditions are met:
  37. %%Copyright:
  38. %%Copyright: Redistributions of source code must retain the above
  39. %%Copyright: copyright notice, this list of conditions and the following
  40. %%Copyright: disclaimer.
  41. %%Copyright:
  42. %%Copyright: Redistributions in binary form must reproduce the above
  43. %%Copyright: copyright notice, this list of conditions and the following
  44. %%Copyright: disclaimer in the documentation and/or other materials
  45. %%Copyright: provided with the distribution.
  46. %%Copyright:
  47. %%Copyright: Neither the name of Adobe Systems Incorporated nor the names
  48. %%Copyright: of its contributors may be used to endorse or promote
  49. %%Copyright: products derived from this software without specific prior
  50. %%Copyright: written permission.
  51. %%Copyright:
  52. %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  53. %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  54. %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  55. %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  56. %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  57. %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  58. %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  59. %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  60. %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  61. %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  62. %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  63. %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  64. %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  65. %%Copyright: -----------------------------------------------------------