Skip to content

Script to automatically replace any number of texts of the big text files without the need to open the file and do it manually.

Notifications You must be signed in to change notification settings

sobaee/replace-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

replace-text

This is a python script to automatically replace any number of texts with other texts from the big text files without the need to open the file and do it manually; then will save it to a new file.



DEPENDENCIES:

python3, pyglossary, mdict-utils, python-lzo



USAGE:

  • Navigate to the directory that contains this script and copy the dictionary file (or any other text file) to the same directory, and run the command: python replace-text.py

  • Before replacement the script will ask you to define the number of the text lines that you want to replace, then after replacement it will optionally convert the resulted file to MDICT MDX dictionary.

Thanks to the owners of Pyglossary, mdict-utils.

Download my modified version of Pyglossary from Google Drive, with octopus_mdict_source.py plugin added and setup.py file fixed; after decompression of the downloaded file, you can do: python setup.py install from inside the decompressed folder to install pyglossay and it will work perfectly: LINK

About

Script to automatically replace any number of texts of the big text files without the need to open the file and do it manually.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published