forked from brailleapps/dotify-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joel Håkansson
committed
Aug 23, 2016
1 parent
8f4bfa0
commit 9f6decb
Showing
13 changed files
with
263 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |