lsdreader icon indicating copy to clipboard operation
lsdreader copied to clipboard

instructions for new user

Open TeomanCrtgl opened this issue 8 years ago • 21 comments

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?

TeomanCrtgl avatar Jun 20 '17 12:06 TeomanCrtgl

pip install lingvoreader install script lsdreader

in the cmd window:

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

make xxx.dsl

sv99 avatar Jun 21 '17 15:06 sv99

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

TeomanCrtgl avatar Jun 21 '17 15:06 TeomanCrtgl

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

balta2ar avatar Jun 21 '17 16:06 balta2ar

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

sv99 avatar Jun 21 '17 16:06 sv99

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?

TeomanCrtgl avatar Jun 22 '17 07:06 TeomanCrtgl

which python distro used?

sv99 avatar Jun 22 '17 18:06 sv99

Python 2.7 and 3.4

TeomanCrtgl avatar Jun 22 '17 19:06 TeomanCrtgl

which distribution? How you install python?

sv99 avatar Jun 22 '17 19:06 sv99

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

sv99 avatar Jun 22 '17 19:06 sv99

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.

TeomanCrtgl avatar Jun 22 '17 20:06 TeomanCrtgl

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 

sv99 avatar Jun 22 '17 20:06 sv99

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)

TeomanCrtgl avatar Jun 22 '17 21:06 TeomanCrtgl

try full path

sv99 avatar Jun 23 '17 04:06 sv99

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?

TeomanCrtgl avatar Jun 23 '17 05:06 TeomanCrtgl

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?

sith-on-mars avatar Apr 01 '18 09:04 sith-on-mars

Why do I encounter TypeError: write() argument must be str, not bytes when I run this program, please?

haoshu1995 avatar Jul 30 '24 15:07 haoshu1995

Why do I encounter TypeError: write() argument must be str, not bytes when I run this program, please?

OS, python version?

sv99 avatar Jul 30 '24 19:07 sv99

Why do I encounter TypeError: write() argument must be str, not bytes when I run this program, please?

OS, python version?

Python 3.12. What version does this program require?

haoshu1995 avatar Jul 31 '24 05:07 haoshu1995

Python 3.12. What version does this program require? Windows? Full command and replay please.

sv99 avatar Jul 31 '24 06:07 sv99

Python 3.12. What version does this program require?

Just checked on the my Mac. On Windows may check today.

sv99 avatar Jul 31 '24 06:07 sv99