Skip to content

Commit

Permalink
Change 'txt' extsion to 'rst' to fix GitHub rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcginty committed Jun 11, 2011
1 parent f7cdb9e commit b4d9014
Show file tree
Hide file tree
Showing 9 changed files with 161 additions and 159 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion INSTALL.txt → INSTALL.rst
Expand Up @@ -13,4 +13,4 @@
cd mktoc-*
python setup.py install --user

2. View online docs or :file:`README.txt` for usage instructions.
2. View online docs or :file:`README.rst` for usage instructions.
6 changes: 3 additions & 3 deletions MANIFEST.in
@@ -1,5 +1,5 @@
include CHANGELOG.txt
include CHANGELOG.rst
include COPYING.txt
include INSTALL.txt
include README.txt
include INSTALL.rst
include README.rst
include Makefile
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -15,7 +15,7 @@ help:
@echo " test to run all unit-tests"
@echo " install to install the applicataion"
@echo " clean to remove tmp files"
@echo " readme to generate the README.txt file"
@echo " readme to generate the README.rst file"
@echo " doc to genearte Sphinx html documents"
@echo " doc-svnprop to set correct svn prop mime type on docs"
@echo " dist to generate a complete source archive"
Expand All @@ -36,7 +36,9 @@ clean:

.PHONY: readme
readme:
python -c "import mktoc; print mktoc.__doc__" > README.txt
python -c "import mktoc; \
from textwrap import dedent; \
print dedent(mktoc.__doc__)" > README.rst

.PHONY: doc
doc: readme
Expand Down
150 changes: 150 additions & 0 deletions README.rst
@@ -0,0 +1,150 @@

.. Mktoc // (c) 2008, Patrick C. McGinty
.. mktoc[@]tuxcoder[dot]com
Mktoc simplifies the steps needed to create audio CD TOC files for the
cdrdao CD burning program. For users familiar with ExactAudioCopy or CdrWin,
TOC files are synonymous with CUE sheets. The primary goal of mktoc is to
create TOC files using a previously generated CUE sheet.

Features
========
* Create a TOC file from a list of WAV files
* Convert an ExactAudioCopy (EAC) CUE file to the TOC format that
is usable by cdrdao.
* Non-compliant CUE sheet support.
* Support for various pregap methods.
* Can create offset corrected WAV files for true 'bit-for-bit'
accurate copies.
* Fuzzy file name logic can correct common file name spelling
variations.
* Workaround known TOC file parsing bugs in cdrdao.

Usage
=====
::

mktoc [OPTIONS] < CUE_FILE
mktoc [OPTIONS] [[-f] CUE_FILE] [[-o] TOC_FILE]
mktoc [OPTIONS] -w WAV_FILES [[-o] TOC_FILE]

``CUE_FILE`` must contain a valid CUE format. When ``*_FILE`` is not
provided, the program will read from ``STDIN``. All output will be sent to
``STDOUT``.

All attempts will be made to preserve any and all information from the input
file. For any case where the CUE file contains unknown or bad values, the
user will be notified on ``STDERR``.

Options
=======

.. option:: --version

show program's version number and exit

.. option:: -h

show help message and exit

.. option:: --help

show detailed usage instructions and exit

.. option:: -a, --allow-missing-wav

do not abort when WAV file(s) are missing, (experts only). It is possible
when using this option that a bug in cdrdao will create a CD that ignores
the pregap definitions in the TOC file. Only use this option if the CUE
file does not contain pregaps, or if you do not wish to retain the pregap
information.

.. option:: -c <WAV_OFFSET>, --offset-correction=<WAV_OFFSET>

correct reader/writer offset by creating WAV file(s) shifted by
WAV_OFFSET samples (original data is not modified)

.. option:: -d, --debug

enable debugging statements

.. option:: -f <CUE_FILE>, --file=<CUE_FILE>

specify the input CUE file to read

.. option:: -m, --multi

for safety, this option must be set when creating a mulit-session TOC
file

.. option:: -o <TOC_FILE>, --output=<TOC_FILE>

specify the output TOC file to write

.. option:: -t, --use-temp

write offset corrected WAV files to /tmp directory

.. option:: -w, --wave

write a TOC file using list of WAV files

.. option:: -z, --no-multi

disable multi-session support; program assumes TOC will be written in
single-session mode

Examples
========
1. Create a TOC file from a set of WAV files::

mktoc -w *.wav

2. Write a TOC file to :file:`toc_file.toc`, from a set of WAV files::

mktoc -w *.wav toc_file.toc
mktoc -w *.wav > toc_file.toc
mktoc -w *.wav -o toc_file.toc

3. Create a TOC file from a valid CUE file::

mktoc cue_file.cue
mktoc < cue_file.cue
mktoc -f cue_file.cue

4. Write a TOC file to :file:`toc_file.toc`, given an input CUE file::

mktoc cue_file.cue toc_file.toc
mktoc < cue_file.cue > toc_file.toc
mktoc -f cue_file.cue -o toc_file.toc

5. Tell mktoc to ignore missing WAV file errors. There is a potential that
the result TOC file will cause cdrdao to loose pregap information during
the burn process (see above)::

mktoc -a cue_file.cue

6. Adjust WAV files for a CD writer offset value. For example, if your CD
writer has a -30 sample write offset, it can be corrected by offsetting
the input WAV files by +30 samples. New WAV files will be placed in the
working directory in a new dir called ``wav+30``::

mktoc -c 30 < cue_file.cue

7. Adjust WAV files for a CD writer offset value, but create new files in
the :file:`/tmp directory`::

mktoc -c 30 -t < cue_file.cue

Contact
=======

E-mail
------
| mktoc[@]tuxcoder[dot]com
Info
----
| http://mktoc.googlecode.com
| http://blog.tuxcoder.com
150 changes: 0 additions & 150 deletions README.txt

This file was deleted.

2 changes: 1 addition & 1 deletion doc/changelog.rst
Expand Up @@ -4,5 +4,5 @@
Change Log
##########

.. include:: ../CHANGELOG.txt
.. include:: ../CHANGELOG.rst

2 changes: 1 addition & 1 deletion doc/install.rst
Expand Up @@ -4,4 +4,4 @@
Install Steps
#############

.. include:: ../INSTALL.txt
.. include:: ../INSTALL.rst
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -31,7 +31,7 @@
def _read( *path_name ):
return open( os.path.join(os.path.dirname(__file__), *path_name)).read()

long_doc = mktoc.__doc__ + '\n' + _read('INSTALL.txt')
long_doc = mktoc.__doc__ + '\n' + _read('INSTALL.rst')

setup( name='mktoc',
version=VERSION,
Expand Down

0 comments on commit b4d9014

Please sign in to comment.