Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burningtyger/farhang-txt2mongo
A converter and integrity checker for the farhang lexicon files
https://github.com/burningtyger/farhang-txt2mongo
Last synced: 7 days ago
JSON representation
A converter and integrity checker for the farhang lexicon files
- Host: GitHub
- URL: https://github.com/burningtyger/farhang-txt2mongo
- Owner: burningTyger
- Created: 2011-06-18T21:22:28.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-20T20:26:59.000Z (over 10 years ago)
- Last Synced: 2023-03-11T03:57:52.229Z (over 1 year ago)
- Language: Ruby
- Homepage: https://github.com/ckh/farhang
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#txt2mongo#
with txt2mongo you can check the integrity of your lexicon text files as
used in farhang. You pass the file name or wildcard along to check the
file entries. If you pass in a database name as a second argument txt2mongo
will store the entries in your mongodb. If you don't get any output it means
your files are ok. If you get filenames and line numbers it means you need to
correct them. Usually a `;` is forgotten.To check all files you need to put `*.txt` into quotation marks:
`ruby txt2mongo.rb file.txt|'*.txt' [database]`
example:
`ruby txt2mongo.rb k.txt test_db`
or:
`ruby txt2mongo.rb '*.txt'`