Skip to content

Commit

Permalink
Major updates; bring current with companion web generator
Browse files Browse the repository at this point in the history
The "Colors" word list has been added to the Alternate generator. However,
unlike the web generator, it is not default. I may add ANSI colors later, but I
don't know how feasible this would be. Modern terminals support True Color (16
million colors), which is what would be necessary. Challenges abound, however,
as I would need to detect the terminal background color, and outline color words
that are too close in luminosity. Never mind actually outlining the text. Maybe
I just leave it as a warning to the user. We'll see.

The "Hungarian" word list have been added to the Diceware generator.

The "Trump" word list has been updated to 6,300 words using his latest tweets.

The "Random" generator function has been rewritten from several functions to a
single function taking arguments. This should simplify the codebase and make
future maintenance easier.

Finally, I added a "test.sh" shell script to do some sanity checking when doing
development on the script, to make sure it's still behaving as expected.
  • Loading branch information
atoponce committed Jan 22, 2018
1 parent 5220ed4 commit 972c725
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 106 deletions.
1 change: 1 addition & 0 deletions lists/alternate_colors.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lists/alternate_trump.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lists/diceware_hungarian.js

Large diffs are not rendered by default.

Loading

0 comments on commit 972c725

Please sign in to comment.