sv99 / lsdreader

decompile Lingvo LSD dictionary to DSL
MIT License
93 stars 19 forks source link

instructions for new user #7

Open TeomanCrtgl opened 7 years ago

TeomanCrtgl commented 7 years ago

Hi, thanks for this code.

I installed it in Windows. I have lsd file. How could I convert it with your code. Could you explain step by step, please?

sv99 commented 7 years ago

pip install lingvoreader install script lsdreader

in the cmd window:

lsdreader -h
lsdreader --header -i xxx.lsd
lsdreader -i xxx.lsd

make xxx.dsl

TeomanCrtgl commented 7 years ago

thanks for answer but I couldn't do it and took this error.

C:\Users\xxxx\Downloads\lsdreader-master>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.

pip install lingvoreader File "", line 1 pip install lingvoreader ^ SyntaxError: invalid syntax

balta2ar commented 7 years ago

These are commands to run in the console (bash, zsh, etc..) not in the Python shell.

sv99 commented 7 years ago

Download not need. pip - package manager for python. in the windows command shell (cmd):

pip install lingvoreader
lsdreader -h

lsdreader - python command script for windows shell, don`t run python shell

TeomanCrtgl commented 7 years ago

Thanks for your answers. I tried it many times with windows cmd but I received an error:

C:\Users\Teoman\Desktop\lsdreader-0.2.8>pip install lingvoreader 'pip' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

C:\Users\Teoman\Desktop\lsdreader-0.2.8>

I have the Python 2.7 and 3.4 in my PC. Normally these versions contain "pip". I can not be success with Windows CMD and Python Shell when I try to insert the code " pip install lingvoreader".

I could be success like that in Windows CMD:

C:\Users\Teoman\Desktop\lsdreader-0.2.8>python setup.py install running install running bdist_egg running egg_info creating lingvoreader.egg-info writing lingvoreader.egg-info\PKG-INFO writing top-level names to lingvoreader.egg-info\top_level.txt writing dependency_links to lingvoreader.egg-info\dependency_links.txt writing entry points to lingvoreader.egg-info\entry_points.txt writing manifest file 'lingvoreader.egg-info\SOURCES.txt' reading manifest file 'lingvoreader.egg-info\SOURCES.txt' writing manifest file 'lingvoreader.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build creating build\lib creating build\lib\lingvoreader . . . .

Where I am making mistake?

sv99 commented 7 years ago

which python distro used?

TeomanCrtgl commented 7 years ago

Python 2.7 and 3.4

sv99 commented 7 years ago

which distribution? How you install python?

sv99 commented 7 years ago

If you have single lsd send me link to this file. I convert this file for you.

TeomanCrtgl commented 7 years ago

Thanks for your kindness. I have to learn to use your script because I want to help to my friend for creating Russian Turkish dictionary. Also I am trying to create my own French English dictionary. So I have to learn to use your script.

I installed the python from official web site to use pyglossary by illus.

sv99 commented 7 years ago

Official distribution install 2.7 in the c:/Python27 pip and scripts in the folder c:\Python27\Scripts - this folder must be in the %PATH%

cmd>echo %PATH%
cmd>set PATH=C:\Python27;C:\Python27\Scripts;%PATH%
cmd>echo %PATH%
cmd>pip --version
cmd>pip install lingvoreader
cmd>lsdreader --version 
TeomanCrtgl commented 7 years ago

It works! Thanks a lot!

Now Its time to convert .dsl file to csv and other formats.

But pyglossary doesn't convert my .dsl (.lsd to .dsl)

sv99 commented 7 years ago

try full path

TeomanCrtgl commented 7 years ago

Thanks sv99 for your helping, I converted my file to .dsl successfully, I have some questions; How could I take output with UTF-8 Is there a way to convert .dsl file to mobi or other formats?

sith-on-mars commented 6 years ago

Hi @sv99 . I was trying to covert two dictionaries to from lsd to dsl format. I've finished the installation of lsdreader, but I'm stuck at the file conversion. I've tried it for many hours but no help. I'm really bad at programming because I'm totally new.

Could you convert two files for me, please?