Skip to content

Commit

Permalink
Adds complete user documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Håkansson committed Aug 23, 2016
1 parent 8f4bfa0 commit 9f6decb
Show file tree
Hide file tree
Showing 13 changed files with 263 additions and 1 deletion.
35 changes: 35 additions & 0 deletions docs/Emboss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[Table of Contents](toc.md)

# Emboss #
Send a PEF-file to an embosser for embossing.

One argument is required, and can be one of the following:
* path to a file
* `-clear`
* `-setup`

Upon the first run, the application will ask the user for the required setup:
* device
* embosser model
* embosser table (if applicable)
* paper size

The file will be sent directly to the embosser on subsequent runs. To change settings, use either `-setup` or `-clear`.

## Setup ##
Setup will ask all the user to verify all settings.

## Clear ##
Clear will delete the current settings. The next time the application is started, it runs as on the first run.

## Device ##
The device is the address where the embosser can be contacted. In most cases this should be intuitive. If your device does not show up, make sure that the embosser is turned on.

## Embosser Model ##
Note that the same embosser model may communicate differently depending on firmware or hardware version. Make sure that the embosser version is correct.

## Embosser Table ##
Some embossers require that a table is chosen by the user for the purpose of communication. Make sure that the table chosen in the user interface matches the value expected by the embosser.

## Paper Size ##
Verify that the paper in the embosser matches the value in the user interface. Some embossers uses rolls of paper. In this case, select a paper size that matches the intended paper size once cut.
65 changes: 65 additions & 0 deletions docs/GeneratePef.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[Table of Contents](toc.md)

# Generate a PEF-file #
Generate a random PEF-file for testing purposes.

One argument is required: _path to output file_

<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef<br>
</pre>

Optional arguments include:
* volumes
* pages
* eightdot
* rows
* cols
* duplex

## Volumes ##
Set the number of volumes to generate.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef -volumes=3<br>
</pre>

## Pages ##
Set the number of pages in each volume.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef -pages=50<br>
</pre>

## Eight dot ##
Set to true to include 8-dot patterns.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef -eightdot=true<br>
</pre>

## Rows ##
Set the maximum numbers of rows on a page.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef -rows=29<br>
</pre>

## Cols ##
Set the maximum number of characters on a row.
<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef -cols=28<br>
</pre>

## Duplex ##
Set the duplex property.
<pre>
Example:<br>
java -jar brailleUtils-ui.jar generate output.pef -duplex=true<br>
</pre>
14 changes: 14 additions & 0 deletions docs/MergePef.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Table of Contents](toc.md)

# Merge several PEF-files #
Merge several PEF files into one.

The purpose is to facilitating the use of PEF-files with braille editors that do not support multi volume files.

Three arguments are required: _path to input folder_, _path to output file_ and identifier.

Optional arguments include:
* sort

## Sort ##
Set the sorting method to use when ordering files in the input folder.
31 changes: 31 additions & 0 deletions docs/PefToText.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[Table of Contents](toc.md)

# PEF to Text #
Convert a PEF-file document into a text braille file.

Two arguments are required _path to input file_ and _path to output file_.

Optional arguments include:
* range
* table
* breaks
* fallback
* replacement

## Range ##
Output a range of pages.

## Table ##
Set the table (character mapping) to use.

## Breaks ##
Set the line break style. Most braille applications use DOS line breaks.

## Fallback ##
Set the action to use if an eight dot pattern is encountered and the current table does not support eight dot:
* mask
* replace
* remove

## Replacement ##
Set the replacement character to use if an eight dot pattern is encountered and fallback is set to "replace".
4 changes: 4 additions & 0 deletions docs/Plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Table of Contents](toc.md)

# Plugins #
Plugins can be added by creating a directory called _plugins_ in the software folder and placing the plugin (.jar) in that folder.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ in the source directory. The built library can be found under build/distribution

## 3 Help Resources ##
See the latest version of the written documentation on
https://github.com/brailleapps/braille-utils-cli/wiki
https://github.com/brailleapps/braille-utils-cli
8 changes: 8 additions & 0 deletions docs/SplitPef.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Table of Contents](toc.md)

# Split a PEF-file #
Split a PEF file into several files, one file per volume.

The purpose is to facilitating the use of PEF files with braille editors that do not support multi volume files.

Two arguments are required: _path to input file_ and _path to output folder_.
45 changes: 45 additions & 0 deletions docs/TextToPef.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[Table of Contents](toc.md)

# Text to PEF #
Convert a text braille file into a PEF-file.

Two arguments are required _path to input file_ and _path to output file_.

The input file should be a "braille ready" text file, i.e. broken in rows an pages (using the form feed character), and using one unique character to represent each braille pattern.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar text2pef input.txt output.pef<br>
</pre>

Optional arguments include:
* mode
* identifier
* date
* author
* title
* language
* duplex

The options `identifier`, `date`, `author`, `title` and `language` all involve setting the meta data of the resulting file. It will not affect the contents of the file in any way.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar text2pef input.txt output.pef -date=2013-01-01<br>
</pre>

## Mode ##
Choose a table to use when converting. Note that, if a character is encountered in the file that isn't in the selected table, an error will occur. The default mode is to attempt to detect. If this fail, choose between the tables suggested in the detector failure message.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar text2pef input.txt output.pef -mode=nabcc<br>
</pre>

## Duplex ##
Set the duplex property of the resulting file.

<pre>
Example:<br>
java -jar brailleUtils-ui.jar text2pef input.txt output.pef -duplex=true<br>
</pre>
3 changes: 3 additions & 0 deletions docs/UnicodeBraillePatterns.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[Table of Contents](toc.md)

#Unicode Braille Patterns#
Below is a list of braille patterns in Unicode order:
```
2800 BLANK
Expand Down
23 changes: 23 additions & 0 deletions docs/UsersGuide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[Table of Contents](toc.md)

# Introduction #
This document contains information needed to run the command line user interface contained in the package. Note that this software doesn't target end users directly, but rather developers of user interfaces or braille systems. The functionality in the user interface does not demonstrate the full capability of the package.

# First Run #
To run the user interface, download and extract the latest release. If you do not have Java installed on your machine, you have to download and install that as well.

On the command line, navigate to the extracted folder and type:
`java -jar brailleUtils-ui.jar`. Press enter.

This will bring up a list of applications (or features):
* [emboss](Emboss)
* [text2pef](TextToPef)
* [pef2text](PefToText)
* [validate](ValidatePef)
* [split](SplitPef)
* [merge](MergePef)
* [generate](GeneratePef)

These are explained in detail in separate sections.
To start one of them, append their name as the first argument, for example:
`java -jar brailleUtils-ui.jar emboss`
14 changes: 14 additions & 0 deletions docs/ValidatePef.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Table of Contents](toc.md)

# Validate a PEF-file #
Validate a PEF-file.

One argument is required: _path to input file_

Optional arguments include:
* mode

## Mode ##
Set the validation mode:
* full
* light
5 changes: 5 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[Table of Contents](toc.md)

# Changes #

# 1.x.y #
Fixed a problem when optional arguments are placed before required.

## 1.2.3 ##
Added StreamSource to PEFFileCompare.

Expand Down
15 changes: 15 additions & 0 deletions docs/toc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#Table of Contents#

* [User's Guide](UsersGuide.md)
* Commands
* [emboss](Emboss.md)
* [text2pef](TextToPef.md)
* [pef2text](PefToText.md)
* [validate](ValidatePef.md)
* [split](SplitPef.md)
* [merge](MergePef.md)
* [generate](GeneratePef.md)
* [Plugins](Plugins.md)
* [Changes](Changes.md)
* Appendices
* [Unicode Braille Patterns](UnicodeBraillePatterns.md)

0 comments on commit 9f6decb

Please sign in to comment.