Skip to content

Commit

Permalink
Merge pull request #26 from morinted/master
Browse files Browse the repository at this point in the history
Rewrite readme for Jekyll update
  • Loading branch information
morinted committed Apr 26, 2016
2 parents 5901358 + 714b56c commit 4925a60
Show file tree
Hide file tree
Showing 39 changed files with 32 additions and 1,283 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

35 changes: 0 additions & 35 deletions .eslintrc

This file was deleted.

12 changes: 0 additions & 12 deletions .gitignore
@@ -1,14 +1,7 @@
dictionaries
dictionaries.json

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

Expand All @@ -28,8 +21,3 @@ Temporary Items
.apdisk

*.log
node_modules
dist
lib
coverage
_book
79 changes: 32 additions & 47 deletions README.md
Expand Up @@ -5,7 +5,7 @@ There is much more to text now than there ever was, between new
weird words, all the way to extended symbols such as emoji. We type cryptic
nonsense in the form of programming languages. We use function keys and movement
keys and modifiers and shortcuts. We have a whole set of problems
to deal with that the *writers of olde* never had to deal with.
to deal with that the *writers of olde* never had to.

If stenography is ever really going to replace a keyboard for everyday use,
people need to use shortcuts, commands, and preferably they shouldn't have to
Expand All @@ -16,61 +16,46 @@ you with the task of evolving beyond a traditional keyboard.

## Adding a dictionary

To add a dictionary, you only need to add the dictionary file and edit the
dictionary list with information about your dictionary.
**To submit a dictionary, you can do one of the following:**

### What makes a dictionary
1. Send me an email with your dictionary: morinted@gmail.com
2. Submit a GitHub issue with the needed information
3. Make a GitHub pull request on the gh-pages branch with your `dictname.md`

The required bits that make up a dictionary are:
To submit a dictionary, you'll need:

- A dictionary file in either JSON or RTF/CE. JSON is preferable, as that's
what most Plover users are familiar with.
- An entry in the dictionary list with information about your dictionary:
+ Name: title of the dictionary
+ Filename: the filename of the dictionary that you added to the dictionary folder
+ Description:
- What: short summary of what the dictionary is. Limit to one sentence where possible.
- Why: longer explanation of why you think people might use this dictionary and what its contents may be. Limit to one paragraph where possible.
- How: explain the theory behind your dictionary, you can use as much detail as you think is necessary. You can use multiple paragraphs: this is where the user is learning how to use your dictionary.
+ Tags: the categories that your dictionary fits into. There are a few tags that are pre-defined, you are welcome to define new ones if you feel it is necessary. You can see dictionaries.json for a full list of tags, which, for example, are along the lines of briefs, words, symbols, commands, and shortcuts.
- A steno dictionary in JSON or RTF/CRE format, or both.
- To create a description file, formatted like this one, but with your dictionary information filled in, instead. Note: "dictname" below would need to match the name of your actual dictionary, like `dictname.json` or `dictname.rtf`

There are examples with the other dictionaries in the repository. Because dictionaries
are manually approved, you can assume that any dictionaries on the site are in a format
that you can copy for your own submission.
```md
---
layout: dictionary
title: A Cool Title
version: 1
date: 2016-01-01
filename: dictname
author: My Name
tags: briefs captioning commands linux mac windows program-specific programming shortcuts symbols words
what: One-liner about my cool dictionary
formats:
- json
- rtf
---

### Option 1. Submit a Pull Request
## Why

This is the preffered method, if you are familiar with GitHub. Just fork, on the `gh-pages`
branch add your dictionary to `dictionaries.json` and place your dictionary in the
`dictionaries` folder.
This is a really cool dictionary. I'll describe it in about one paragraph. It's really great because when you use it you can write more words with the steno machine and it makes you cooler.

The JSON format may look a little weird to you, it's just an alternative style called diffy that aims to make maintaining JSON a little bit easier for programmers. Please maintain this style when submitting a PR. If you don't want to style it manually, you can use the npm tool `format-json` which defaults to diffy format.
## How

### Option 2. Submit an Issue
Here you can extend on how to use the dictionary, offer tips and advice.

If you are not comfortable making a GitHub Pull Request,
you are welcome to just submit an issue with the required information
for a dictionary and we can make the code changes.
Feel free to spread out across multiple paragraphs...

### Option 3. Email

If you for some reason
cannot create a GitHub account and still want to submit a dictionary, you
can always email [Ted](https://github.com/morinted) using the email on his GitHub profile.

## Development

The scripts for the website assume that you have both the `master` and the `gh-pages` branches pulled and available, side-by-side in a parent folder. I.e., you have `stenodict/master` and `stenodict/gh-pages`. To achieve this, you can run these commands wherever you want to store Stenodict for development:
- Use a bulleted list.
- Make your points.
- You can show raw steno: `STKPWHRAO*EUFRPBLGTSDZ`
- `STK`: "and"

And that's why you should use my dictionary!
```
mkdir stenodict && cd stenodict
git clone https://GitHub.com/openstenoproject/stenodict master
git clone https://GitHub.com/openstenoproject/stenodict gh-pages && cd gh-pages
git checkout gh-pages && git branch -D master
cd .. && pwd && ls
```

Now you will have a `stenodict` directory with folders `master` and `gh-pages` in it.

In order to develop the JavaScript component of the website, in the master branch, run `npm install`. After grabbing the dependencies, you should be able to start a server locally with `npm start`. `npm run build` places your `index.html` and needed files in `../gh-pages`, so it's best to have the folder structure explained above.
94 changes: 0 additions & 94 deletions actions/index.js

This file was deleted.

37 changes: 0 additions & 37 deletions bootstrap.config.js

This file was deleted.

83 changes: 0 additions & 83 deletions bootstrap.config.less

This file was deleted.

0 comments on commit 4925a60

Please sign in to comment.