From: Brian S. <xue...@us...> - 2007-10-05 18:36:50
|
Update of /cvsroot/popfile/windows/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10522/languages Added Files: Tag: b0_22_2 English-parser.nsh Japanese-parser.nsh Log Message: Previous releases of POPFile only supported one parser (Kakasi) for Japanese text. Update the installer to offer a choice of 3 parsers (Kakasi, MeCab and Internal) when Nihongo is selected. The MeCab files are too big to include in the installer so they will be downloaded during the installation if the MeCab option is selected. The new Nihongo Parser pages and text are only shown when Nihongo is selected (or if an English-only build is made) so string constants are used instead of LanguageString commands (in order to keep things simple). Removed support for the NO_KAKASI compile-time switch as it is no longer relevant. (May introduce a similar switch affecting all of the Nihongo Parser selection handling later on.) Fix the bug in the NSIS2IO function that truncated MBCS strings. --- NEW FILE: Japanese-parser.nsh --- #-------------------------------------------------------------------------- # Japanese-parser.nsh # # This file contains the "Japanese" text strings used by the Windows installer # when installing the "Nihongo Parser". Normally the multi-language build of # the installer uses language strings for the text but since the "Nihongo Parser" # is only installed when the "Nihongo" (Japanese) language is selected, this # file defines some constants instead of using LanguageString commands. # # Copyright (c) 2007 John Graham-Cumming # # This file is part of POPFile # # POPFile is free software; you can redistribute it and/or modify it # under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # POPFile is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with POPFile; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # #-------------------------------------------------------------------------- ;------------------------------------------------------------------------------------------- ; Custom Page - Choose Nihongo Parser ;------------------------------------------------------------------------------------------- ; Page title and sub-title !define C_NPLS_HEADER_ChooseParser "ú{ê̪©¿«Égp·évOðIðµÄ¾³¢B" !define C_NPLS_DESC_ChooseParser "POPFile ðgÁÄú{êÌ[ðªÍ·é½ßÉÍA[Ì{¶ðPê²ÆÉª·éiª©¿«jKvª èÜ·B" ; Description shown in the text box when 'Kakasi' has been selected !define C_NPLS_DESC_Kakasi "POPFile 0.22.5 ÜÅÌo[WÅgp³êÄ¢½vOÅ·B$\r$\n$\r$\nª©¿«Ì¸xÍ MeCab Éä×éÆá¢iÐçªÈâJ^JiÅ\¬³êÄ¢éPêÌîñðÁĢȢjÅ·ªAMeCab Éä׫TCYª¬³Ä·ÝÜ·iMeCab 40MB É뵀 2MB öxjB$\r$\n$\r$\nKakasi Æ«t@CÍCXg[Éà ³êĢܷB" ; Description shown in the text box when 'MeCab' has been selected !define C_NPLS_DESC_MeCab "Kakasi æèàæè³mȪ©¿«ðs¤±ÆªÅ«Ü·ªA«TCYªå«ÈèÜ·i40MB öxjB$\r$\n$\r$\nCXg[ÉÍà ³êĢܹñBMeCab IvVðIðµ½êA¨æ» 13MB Ìt@CªC^[lbgæè_E[h³êACXg[³êÜ·B" ; Description shown in the text box when 'Internal' has been selected !define C_NPLS_DESC_Internal "OvOðgí¸ÉA¶ÌíÞi¿AÐçªÈAJ^JiÈÇj¾¯ð½æèɪ©¿«ðs¢Ü·B$\r$\n$\r$\n«ðgpµ½ª©¿«Éäת©¿«Ì¸xͿܷªA«ðKvƹ¸A¬É®ìµÜ·B" ; Flags setting for the text box (allows English version to use a vertical scroll bar even if the Japanese version does not use one) !define C_NPLS_DESC_Flags "READONLY|MULTILINE|VSCROLL" ; Text for the three radio buttons used to select the parser to be installed !define C_NPLS_Option_Kakasi "Kakasi: ¿¨©È([})Ï·vOi§j(&K)" !define C_NPLS_Option_MeCab "MeCab: Yet Another Part-of-Speech and Morphological Analyzer (&M)" !define C_NPLS_Option_Internal "à p[T: ¶íÉæéª (&I)" ; Text and URL used in the area below the description text box !define C_NPLS_Note "¦ ª©¿«Ì¸xÆ POPFile ̪޸xÆÌÔÉͼÚÌöÊÖWÍÈAÇÌvOðgpµÄà POPFile ̪޸xÉÍÙÆñÇá¢ÍȢƢ¤ÊªoĢܷB\r\n\r\n¦ ª©¿«ÌvOðÏX·éÆAêIÉ POPFile ̪޸xªáº·éÂ\«ª èÜ·B\r\n\r\n¦ CXg[ãɪ©¿«ÌvOðÏX·é±ÆàūܷBڵͺÌNðNbNB" !define C_NPLS_Link "http://getpopfile.org/wiki/jp:faq:mecab" ;------------------------------------------------------------------------------------------- ; Standard MUI Page - COMPONENTS (text used when the mouse hovers over the "Nihongo Parser" entry) ;------------------------------------------------------------------------------------------- !define C_NPLS_DESC_SecParser "POPFile Íú{êÌeLXgðPê²ÆÉª·é½ßÌvOðgpµÜ·B¡ñÍu$G_PARSERvªIð³êĢܷ" ;------------------------------------------------------------------------------------------- ; Custom Page - Setup Summary Page (lists the items which are going to be installed) ;------------------------------------------------------------------------------------------- !define C_NPLS_SUMMARY_KAKASI "ú{êvOiuKakasivªCXg[³êÜ·j" !define C_NPLS_SUMMARY_MECAB "ú{êvOiuMeCabvª_E[hECXg[³êÜ·j" !define C_NPLS_SUMMARY_INTERNAL "ú{êvOiuà p[Tvªgp³êÜ·j" #-------------------------------------------------------------------------- # End of 'Japanese-parser.nsh' #-------------------------------------------------------------------------- --- NEW FILE: English-parser.nsh --- #-------------------------------------------------------------------------- # English-parser.nsh # # This file contains the "English" text strings used by the special # "English only" build of the Windows installer for POPFile. This # special build only uses English text, unlike the normal multi-language # build of the installer. # # Copyright (c) 2007 John Graham-Cumming # # This file is part of POPFile # # POPFile is free software; you can redistribute it and/or modify it # under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # POPFile is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with POPFile; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # #-------------------------------------------------------------------------- ;------------------------------------------------------------------------------------------- ; Custom Page - Choose Nihongo Parser ;------------------------------------------------------------------------------------------- ; Page title and sub-title !define C_NPLS_HEADER_ChooseParser "Please choose Japanese wakachi-gaki (split words) parser program:" !define C_NPLS_DESC_ChooseParser "To analyze Japanese e-mails by POPFile we have to split (wakachi-gaki) the e-mail body texts into words." ; Description shown in the text box when 'Kakasi' has been selected !define C_NPLS_DESC_Kakasi "This is the program used by POPFile 0.22.5 (and earlier releases of POPFile).$\r$\n$\r$\nThe wakachi-gaki accuracy is poorer than MeCab (because Kakasi does not have information about words constructed using Hira-gana or Kata-kana), but Kakasi uses smaller dictionaries than MeCab (about 2 MB instead of 40 MB).$\r$\n$\r$\nThe POPFile installer contains Kakasi and its dictionaries." ; Description shown in the text box when 'MeCab' has been selected !define C_NPLS_DESC_MeCab "The wakachi-gaki accuracy is better than Kakasi, but MeCab uses larger dictionaries (about 40 MB).$\r$\n$\r$\nThe POPFile installer does not contain MeCab. About 13 MB will be downloaded from the Internet if MeCab is selected." ; Description shown in the text box when 'Internal' has been selected !define C_NPLS_DESC_Internal "Instead of using external programs, the parser splits texts by the kinds of characters (i.e. Kanji, Hira-gana or Kata-kana).$\r$\n$\r$\nThe wakachi-gaki accuracy is poorer than programs which use dictionaries, but it does not use dictionaries so it is faster." ; Flags setting for the text box (allows English version to use a vertical scroll bar even if the Japanese version does not use one) !define C_NPLS_DESC_Flags "READONLY|MULTILINE|VSCROLL" ; Text for the three radio buttons used to select the parser to be installed !define C_NPLS_Option_Kakasi "&Kakasi: KAnji KAna Simple Inverter (Recommended)" !define C_NPLS_Option_MeCab "&MeCab: Yet Another Part-of-Speech and Morphological Analyzer" !define C_NPLS_Option_Internal "The &Internal parser: splitting by the kinds of characters" ; Text and URL used in the area below the description text box !define C_NPLS_Note "* The wakachi-gaki accuracy does not relate directly to POPFile's classification accuracy.\r\n In an experiment POPFile's accuracy was not significantly affected by the choice of parser.\r\n\r\n* Changing wakachi-gaki program may temporarily reduce POPFile's classification accuracy.\r\n\r\n* You can change the wakachi-gaki program after the installation. For more information, click" !define C_NPLS_Link "http://getpopfile.org/wiki/jp:faq:mecab" ;------------------------------------------------------------------------------------------- ; Standard MUI Page - COMPONENTS (text used when the mouse hovers over the "Nihongo Parser" entry) ; Note: The $G_PARSER variable will contain the lowercase name of the parser to be installed ;------------------------------------------------------------------------------------------- !define C_NPLS_DESC_SecParser "POPFile uses a parser (Kakasi, MeCab or Internal) to split Japanese text into words. The '$G_PARSER' parser has been selected for this installation" ;------------------------------------------------------------------------------------------- ; Custom Page - Setup Summary Page (lists the items which are going to be installed) ;------------------------------------------------------------------------------------------- !define C_NPLS_SUMMARY_KAKASI "Nihongo parser (the 'Kakasi' parser will be installed)" !define C_NPLS_SUMMARY_MECAB "Nihongo parser (the 'MeCab' parser will be downloaded and installed)" !define C_NPLS_SUMMARY_INTERNAL "Nihongo parser (the 'internal' parser will be used)" #-------------------------------------------------------------------------- # End of 'English-parser.nsh' #-------------------------------------------------------------------------- |