文件名称:src2dic.py
介绍说明--下载内容来自于网络,使用问题请自行百度
又一个星际译王Stardict词库编译器。与官方的stardict-editor相比有如下特点:
1、输入格式仅支持Tabfile,但词条可以用竖线|分隔以表示同义词。
2、可指定最大.dict文件大小,若源数据过多则会按此大小分割成多个词库,以规避Stardict不支持超过2G词库文件的问题。适合于大型维基词库的编译。
3、可指定词条解释的的最长大小,解释过多的词条会被分割成多个条目,以避免在手机上使用时内存不足。
4、不会将源文件全部加载至内存。排序只针对词条索引,在.dict中不改变源文件中词条的顺序。而stardict-editor会将源文件全部加载,导致无法编译数百兆的大词典。-Yet another Stardict dictionary compiler. It features differently from the official stardict-editor in the following aspects:
1. Input source file format is limited to Tabfile. However, vertical bar (|) can be used to delimit synonyms by default.
2. Maximum .dict file size can be specified, so that when the source file is too large, its output are divided into multiple dictionaries, to work around the 2GB file size limitation of Stardict. Suitable for compilation of large Wikipedia dictionaries.
3. Maximum length of a word s meaning can be specified. Words with too long meanings are split into multiple entries, to avoid memory allocation failure when used on mobile devices.
4. This program does not load the entire source file into memory. Only word indices are loaded for sorting, nad the entry sequences are the same in .dict and in source file. In contrast, stardict-editor would load whole source file into memory, making it difficult to compile huge dictionaries with hundreds of me
1、输入格式仅支持Tabfile,但词条可以用竖线|分隔以表示同义词。
2、可指定最大.dict文件大小,若源数据过多则会按此大小分割成多个词库,以规避Stardict不支持超过2G词库文件的问题。适合于大型维基词库的编译。
3、可指定词条解释的的最长大小,解释过多的词条会被分割成多个条目,以避免在手机上使用时内存不足。
4、不会将源文件全部加载至内存。排序只针对词条索引,在.dict中不改变源文件中词条的顺序。而stardict-editor会将源文件全部加载,导致无法编译数百兆的大词典。-Yet another Stardict dictionary compiler. It features differently from the official stardict-editor in the following aspects:
1. Input source file format is limited to Tabfile. However, vertical bar (|) can be used to delimit synonyms by default.
2. Maximum .dict file size can be specified, so that when the source file is too large, its output are divided into multiple dictionaries, to work around the 2GB file size limitation of Stardict. Suitable for compilation of large Wikipedia dictionaries.
3. Maximum length of a word s meaning can be specified. Words with too long meanings are split into multiple entries, to avoid memory allocation failure when used on mobile devices.
4. This program does not load the entire source file into memory. Only word indices are loaded for sorting, nad the entry sequences are the same in .dict and in source file. In contrast, stardict-editor would load whole source file into memory, making it difficult to compile huge dictionaries with hundreds of me
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.