Skip to content

itkach/aar2slob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aar2slob

aar2slob converts Aard Dictionary .aar files to slob format.

Installation

Create Python 3 virtual environment and install slob.py as described at http://github.org/itkach/slob/. In this virtual environment run

pip install git+https://github.com/itkach/aar2slob.git

Usage

usage: aar2slob [-h] [-o OUTPUT_FILE] [-c {lzma2,zlib}] [-b BIN_SIZE]
                [-s START] [-e END] [-u URI] [-l LICENSE_NAME]
                [-L LICENSE_URL] [-a CREATED_BY] [-w WORK_DIR]
                input_file [input_file ...]

positional arguments:
  input_file            Name of Aard Dictionary file to read

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        Name of output slob file
  -c {lzma2,zlib}, --compression {lzma2,zlib}
                        Name of compression to use. Default: lzma2
  -b BIN_SIZE, --bin-size BIN_SIZE
                        Minimum storage bin size in kilobytes. Default: 384
  -s START, --start START
                        Start index
  -e END, --end END     End index
  -u URI, --uri URI     Value for uri tag. Slob-specific article URLs such as
                        bookmarks can be migrated to another slob based on
                        matching "uri" tag values
  -l LICENSE_NAME, --license-name LICENSE_NAME
                        Value for license.name tag. This should be name under
                        which the license is commonly known.
  -L LICENSE_URL, --license-url LICENSE_URL
                        Value for license.url tag. This should be a URL for
                        license text
  -a CREATED_BY, --created-by CREATED_BY
                        Value for created.by tag. Identifier (e.g. name or
                        email) for slob file creator
  -w WORK_DIR, --work-dir WORK_DIR
                        Directory for temporary files created during
                        compilation. Default: .

For example, to convert wordnet-3.0-1.html.aar:

aar2slob wordnet-3.0-1.html.aar

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published