Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2017, 01:19 PM   #166
Teom@n
Enthusiast
Teom@n began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Dec 2014
Location: Lyon
Device: Kindle PW3
Quote:
Originally Posted by Doitsu View Post
That depends on your technical skills. If your MS Excel spreadsheet contains only two columns you could save it as a tab-delimited text file and process it with tab2opf.py.
If you're familiar with regular expressions, you could also convert the tab-delimited text file directly using a couple of regular expressions.
I have a computer skills so I will try to do my best.

Thanks.
Teom@n is offline   Reply With Quote
Old 01-10-2017, 03:10 PM   #167
Teom@n
Enthusiast
Teom@n began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Dec 2014
Location: Lyon
Device: Kindle PW3
Quote:
Originally Posted by Doitsu View Post
That depends on your technical skills. If your MS Excel spreadsheet contains only two columns you could save it as a tab-delimited text file and process it with tab2opf.py.
If you're familiar with regular expressions, you could also convert the tab-delimited text file directly using a couple of regular expressions.
Do you know any script(python, etc.) for converting huge html files to other formats?
Teom@n is offline   Reply With Quote
Old 01-10-2017, 03:14 PM   #168
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,728
Karma: 15356729
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Teom@n View Post
Do you know any script(python, etc.) for converting huge html files to other formats?
I usually use the Python bs4 library for HTML parsing.
Doitsu is offline   Reply With Quote
Old 01-10-2017, 04:50 PM   #169
Teom@n
Enthusiast
Teom@n began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Dec 2014
Location: Lyon
Device: Kindle PW3
Quote:
Originally Posted by Doitsu View Post
I usually use the Python bs4 library for HTML parsing.
Ok, I will try it. Thanks.
Teom@n is offline   Reply With Quote
Old 01-22-2017, 03:37 PM   #170
Teom@n
Enthusiast
Teom@n began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Dec 2014
Location: Lyon
Device: Kindle PW3
Quote:
Originally Posted by Doitsu View Post
I usually use the Python bs4 library for HTML parsing.
hi,

could you share the script/commands that you were using for converting html to text? I have a html file(124mb) which I took it from a mobi file. I installed the python and beautifulsoap.

could you guide me?

thanks
Teom@n is offline   Reply With Quote
Old 01-22-2017, 06:26 PM   #171
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,728
Karma: 15356729
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Teom@n View Post
could you share the script/commands that you were using for converting html to text? I have a html file(124mb) which I took it from a mobi file. I installed the python and beautifulsoap.
Unfortunately, I can't help you with that, because scripts and commands will vary depending on the exact input and output formats. However, BS4 is well documented. For example:

Code:
soup.get_text()
will strip all tags from an HTML file.

If you're not a Python programmer, you could also use a text editor with regular expressions support, e.g. Notepad++, to remove unwanted tags or convert them to a different format.
Doitsu is offline   Reply With Quote
Old 01-23-2017, 05:51 AM   #172
Teom@n
Enthusiast
Teom@n began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Dec 2014
Location: Lyon
Device: Kindle PW3
Quote:
Originally Posted by Doitsu View Post
Unfortunately, I can't help you with that, because scripts and commands will vary depending on the exact input and output formats. However, BS4 is well documented. For example:

Code:
soup.get_text()
will strip all tags from an HTML file.

If you're not a Python programmer, you could also use a text editor with regular expressions support, e.g. Notepad++, to remove unwanted tags or convert them to a different format.
Thanks mate.
Teom@n is offline   Reply With Quote
Old 03-03-2019, 10:06 PM   #173
sayonaroo
Junior Member
sayonaroo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2017
Device: likebook plus
Could someone make one for me? I cannot figure out how to use python

I wanted to make a kindle dictionary out of the korean-Japanese naver dictionary

http://download.huzheng.org/babylon/japanese/

It says

You can convert any babylon .bgl file to StarDict format by the PyGlossary tool, just visit: http://pyglossary.sourceforge.net
sayonaroo is offline   Reply With Quote
Old 10-17-2019, 11:05 PM   #174
Phionz Paranto
Junior Member
Phionz Paranto began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2019
Device: Kindle Oasis 3
Smile Please the update.

Quote:
Originally Posted by thomass View Post
why don't you try one to see.

BTW: attached an Indonesian – English dict with ~22300 words (stardict-quick)
I have downloaded and tried this dictionary to see if it works well. I found that this dictionary is very simple and basic for Indonesian-English. Do you have the most updated one? It's 2019 now. Thank you very much.

Phionz Paranto is offline   Reply With Quote
Old 10-18-2019, 12:12 AM   #175
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 6,505
Karma: 29828061
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by Phionz Paranto View Post
I have downloaded and tried this dictionary to see if it works well. I found that this dictionary is very simple and basic for Indonesian-English. Do you have the most updated one? It's 2019 now. Thank you very much.
The last time thomass visited Mobileread was a year ago. And yes, it's been 8 years since that dictionary was posted. The advice on how to create your own dictionary is still valid so you may want to apply it. Or if your time is worth more, you might purchase an Indonesian/English dictionary from Amazon. Check Kindle Default Dictionaries Indonesian for example.

Last edited by DNSB; 10-18-2019 at 12:18 AM.
DNSB is offline   Reply With Quote
Reply

Tags
ebook tools, kindle tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionary lookup in iBooks 1.1: "Dictionary not available for this language" kjk Apple Devices 71 09-18-2010 07:24 AM
best foreign language & dictionary options? joedevivre Which one should I buy? 2 12-13-2009 10:40 AM
How do I create headword-enabled Mobipocket dictionary? owl123 Kindle Formats 1 07-24-2009 12:13 PM
Useful tip: How to change the BD language AFTER you create a book HarryT Workshop 4 04-15-2009 01:36 AM
creating a foreign language dictionary dirtylc Amazon Kindle 1 03-30-2009 09:40 AM


All times are GMT -4. The time now is 09:47 PM.


MobileRead.com is a privately owned, operated and funded community.