mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Merge pull request #1608 from GD-fix/staged
feature: Update xdxf.cc to support "dict.bmp" icons
This commit is contained in:
commit
17ff4a3eff
|
@ -323,6 +323,11 @@ void XdxfDictionary::loadIcon() noexcept
|
|||
info = QFileInfo( fileName );
|
||||
}
|
||||
|
||||
if ( !info.isFile() ) {
|
||||
fileName = baseInfo.absoluteDir().absoluteFilePath( "dict.bmp" );
|
||||
info = QFileInfo( fileName );
|
||||
}
|
||||
|
||||
if ( info.isFile() )
|
||||
loadIconFromFile( fileName, true );
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Popular dictionary formats are all supported.
|
|||
* [MDict](https://www.mdict.cn/) dictionaries (.mdx/.mdd)
|
||||
* [StarDict](http://www.huzheng.org/stardict/) dictionaries (.ifo/.dict./.idx/.syn)
|
||||
* [DSL](https://lingvoboard.ru/store/html/DSLReference_HTML/index.html) dictionaries (ABBYY Lingvo source files .dsl(.dz))
|
||||
* [Xdxf](https://github.com/soshial/xdxf_makedict) dictionaries (.xdxf(.dz))
|
||||
* [XDXF](https://github.com/soshial/xdxf_makedict) dictionaries (.xdxf(.dz))
|
||||
* [Zim](https://wiki.openzim.org/wiki/OpenZIM) dictionaries (.zim)
|
||||
* [Slob (Aard 2)](https://aarddict.org/) dictionaries (.slob)
|
||||
* [DictD](https://en.wikipedia.org/wiki/DICT#Dict_file_format) dictionaries (.index/.dict(.dz))
|
||||
|
@ -44,7 +44,7 @@ Every local dictionary can have individual icon. BMP, PNG, JPG or ICO files can
|
|||
|
||||
For Babylon, StarDict, DictD, ABBYY Lingvo, AardDictionary, SDictionary, Zim, MDict, Lsa, Zips, Slob, Gls dictionaries such graphics file must be named by main dictionary file name and places beside one. That is if main file of your dictionary, for example, named "My_best_dictionary.dsl" therefore icon file must be named "My_best_dictionary.bmp" (.png, .jpg etc.).
|
||||
|
||||
For Xdxf dictionaries icon file must be named "icon16.png" (for 16х16 images) or "icon32.png" (for 32х32 images) and placed into dictionary folder.
|
||||
For XDXF dictionaries, the icon file must be named "icon16.png" (for 16х16 images) or "icon32.png" (for 32х32 images) or "dict.bmp" and placed into the dictionary folder.
|
||||
|
||||
For Epwing dictionaries icon file must be named by name of folder with dictionary data beside "catalogs" file (a few folders can be presented, every folder is separate dictionary) and placed beside "catalogs" file.
|
||||
|
||||
|
@ -64,9 +64,9 @@ Additional dictionary resources (images, sound files, etc.) also can be compress
|
|||
|
||||
GoldenDict supports the "#SOUND_DICTIONARY" directive. Sounds missing in the resources of the dictionary will be searched first in the dictionary specified in this directive.
|
||||
|
||||
### DictD, Xdxf
|
||||
### DictD and XDXF compression
|
||||
|
||||
Main file of DictD dictionary (.dict) or Xdxf dictionary (.xdxf) can be compressed by Dictzip program to reduce its size.
|
||||
Main file of DictD dictionary (.dict) or XDXF dictionary (.xdxf) can be compressed into `*.dict.dz` or `*.xdxf.dz` by Dictzip program to reduce its size.
|
||||
|
||||
### Slob
|
||||
|
||||
|
@ -90,4 +90,4 @@ Zips sound pack is zip archive with extension ".zips" contains set of sound file
|
|||
|
||||
### General notes
|
||||
|
||||
At every launch GoldenDict scan folders with dictionaries to create dictionaries list. The more files in these folder is the more time for scanning. Therefore it is recommended to compress dictionary resources into zip archives and to use Zips sound packs instead of sound files in separate folders.
|
||||
At every launch GoldenDict scan folders with dictionaries to create dictionaries list. The more files in these folder is the more time for scanning. Therefore it is recommended to compress dictionary resources into zip archives and to use Zips sound packs instead of sound files in separate folders.
|
||||
|
|
Loading…
Reference in a new issue