Hello, thank you for creating this project. If I can get it to work, I'd love to use it.
I don't know what version it is ... I don't know StarDict at all, have just started looking at it today.
dict-data.dict.dz
dict-data.idx
dict-data.ifo
dict-data.syn
<?php
use StarDict\StarDict;
require dirname(__FILE__) . '/vendor/autoload.php';
$dict = StarDict::createFromFiles('dict-data.ifo', 'dict-data.idx', 'dict-data.dict.dz');
foreach ($dict->get('gato') as $result) {
echo $result->getValue();
}
MacBook-Pro:__stardict_test jeff$ pwd
/Users/jeff/Downloads/__stardict_test
MacBook-Pro:__stardict_test jeff$ php main.php
PHP Fatal error: Uncaught RuntimeException: Unknown type "h", maybe it should be registered ? in /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/DictData/TypeSequenceManager.php:42
Stack trace:
#0 /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/StarDict.php(51): StarDict\DictData\TypeSequenceManager->getSequences('h')
#1 /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/StarDict.php(115): StarDict\StarDict->__construct(Object(StarDict\Dict), Object(StarDict\Index\BinaryIndexHandler), Object(StarDict\DictData\FileDZDataReader), Object(StarDict\DictData\TypeSequenceManager))
#2 /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/StarDict.php(98): StarDict\StarDict::create(Object(StarDict\DictFiles))
#3 /Users/jeff/Downloads/__stardict_test/main.php(7): StarDict\StarDict::createFromFiles('dict-data.ifo', 'dict-data.idx', 'dict-data.dict....')
#4 {main}
thrown in /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/DictData/TypeSequenceManager.php on line 42
Fatal error: Uncaught RuntimeException: Unknown type "h", maybe it should be registered ? in /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/DictData/TypeSequenceManager.php:42
Stack trace:
#0 /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/StarDict.php(51): StarDict\DictData\TypeSequenceManager->getSequences('h')
#1 /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/StarDict.php(115): StarDict\StarDict->__construct(Object(StarDict\Dict), Object(StarDict\Index\BinaryIndexHandler), Object(StarDict\DictData\FileDZDataReader), Object(StarDict\DictData\TypeSequenceManager))
#2 /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/StarDict.php(98): StarDict\StarDict::create(Object(StarDict\DictFiles))
#3 /Users/jeff/Downloads/__stardict_test/main.php(7): StarDict\StarDict::createFromFiles('dict-data.ifo', 'dict-data.idx', 'dict-data.dict....')
#4 {main}
thrown in /Users/jeff/Downloads/__stardict_test/vendor/skoro/stardict/src/DictData/TypeSequenceManager.php on line 42
Any guidance would be appreciated. Thank you!