Update wordlist
This commit is contained in:
parent
4706aa2c70
commit
d834ca331f
53
README.adoc
53
README.adoc
@ -1,5 +1,5 @@
|
|||||||
// echo README.adoc | entr sh -c "podman run --rm -it --network none -v "${PWD}:/documents/" asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg README.adoc; printf 'Done ($(date -Isecond))\n'"
|
// echo README.adoc | entr sh -c "podman run --rm -it --network none -v "${PWD}:/documents/" asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg README.adoc; printf 'Done ($(date -Isecond))\n'"
|
||||||
:toc:
|
// :toc:
|
||||||
:nofooter:
|
:nofooter:
|
||||||
:!webfonts:
|
:!webfonts:
|
||||||
:source-highlighter: rouge
|
:source-highlighter: rouge
|
||||||
@ -7,3 +7,54 @@
|
|||||||
:sectlinks:
|
:sectlinks:
|
||||||
|
|
||||||
= xpin
|
= xpin
|
||||||
|
|
||||||
|
== File Structure
|
||||||
|
|
||||||
|
In order of dependency, the role of each of these directories in this repository is:
|
||||||
|
|
||||||
|
[cols="m,,"]
|
||||||
|
|===
|
||||||
|
|Directory |Contents |Description
|
||||||
|
|
||||||
|
|docs
|
||||||
|
|Asciidoctor documentation
|
||||||
|
|Design decisions and algorithm definition documentation
|
||||||
|
|
||||||
|
|wordlist
|
||||||
|
|Python/CSV
|
||||||
|
|Wordlist sources and generator code
|
||||||
|
|
||||||
|
|test-data
|
||||||
|
|C++/CSV
|
||||||
|
|Test data mapping random and hand-picked lat/lon transformed to CellIDs and xpin addresses.
|
||||||
|
Also contains source code linking to the C++ S2 library to ensure CellIDs are translated properly.
|
||||||
|
|
||||||
|
|words
|
||||||
|
|Rust Crate
|
||||||
|
|Crate to store the mapping of words and their associated numeric values.
|
||||||
|
|
||||||
|
|src
|
||||||
|
|Rust Crate
|
||||||
|
|
|
||||||
|
|
||||||
|
|tests
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
||||||
|
|xpin-wasm
|
||||||
|
|Rust Crate
|
||||||
|
|WASM bindings for xpin
|
||||||
|
|
||||||
|
|web-frontend
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
||||||
|
|build
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
||||||
|
|web
|
||||||
|
|Rust Crate
|
||||||
|
|
|
||||||
|
|
||||||
|
|===
|
||||||
|
@ -555,6 +555,7 @@ CASTILE
|
|||||||
CASTRO
|
CASTRO
|
||||||
CATALOGING
|
CATALOGING
|
||||||
CATALOGUING
|
CATALOGUING
|
||||||
|
CATARACT
|
||||||
CATASTROPHE
|
CATASTROPHE
|
||||||
CATECHISM
|
CATECHISM
|
||||||
CATHARINE
|
CATHARINE
|
||||||
@ -1472,6 +1473,7 @@ HOSTAGE
|
|||||||
HOSTILITY
|
HOSTILITY
|
||||||
HOT
|
HOT
|
||||||
HOUGH
|
HOUGH
|
||||||
|
HOUSEWIFE
|
||||||
HOUSTON
|
HOUSTON
|
||||||
HOWARD
|
HOWARD
|
||||||
HP
|
HP
|
||||||
@ -2141,7 +2143,6 @@ MYSORE
|
|||||||
NAD
|
NAD
|
||||||
NAIROBI
|
NAIROBI
|
||||||
NAKED
|
NAKED
|
||||||
NAKED
|
|
||||||
NAMIBIA
|
NAMIBIA
|
||||||
NAN
|
NAN
|
||||||
NANCY
|
NANCY
|
||||||
@ -2676,6 +2677,7 @@ RUSSIA
|
|||||||
RUSSIAN
|
RUSSIAN
|
||||||
RUTH
|
RUTH
|
||||||
RUTHERFORD
|
RUTHERFORD
|
||||||
|
RUTHLESS
|
||||||
RUTLAND
|
RUTLAND
|
||||||
RWANDA
|
RWANDA
|
||||||
SABBATH
|
SABBATH
|
||||||
|
|
@ -114,7 +114,9 @@ pprint(list(enumerate(final_wordlist)))
|
|||||||
print(f"Ending index: {ending_word_index}")
|
print(f"Ending index: {ending_word_index}")
|
||||||
|
|
||||||
final_wordlist = [
|
final_wordlist = [
|
||||||
(idx + 1, word)
|
# The idx here starts at 0, which is fine
|
||||||
|
# It indicates that a *word* component can map to 0 (not that the numeric component can)
|
||||||
|
(idx, word)
|
||||||
for idx, words in enumerate(final_wordlist)
|
for idx, words in enumerate(final_wordlist)
|
||||||
for word in words
|
for word in words
|
||||||
]
|
]
|
||||||
|
1
wordlist/99-wordlist.csv
Symbolic link
1
wordlist/99-wordlist.csv
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
04-deduplicated-words.py
|
|
@ -11,7 +11,7 @@ use std::path::Path;
|
|||||||
fn main() {
|
fn main() {
|
||||||
let path = Path::new(&env::var("OUT_DIR").unwrap()).join("codegen.rs");
|
let path = Path::new(&env::var("OUT_DIR").unwrap()).join("codegen.rs");
|
||||||
let mut file = BufWriter::new(File::create(path).unwrap());
|
let mut file = BufWriter::new(File::create(path).unwrap());
|
||||||
let wordlist_path = "../data/wordlist-tmp.csv";
|
let wordlist_path = "../wordlist/99-wordlist.csv";
|
||||||
|
|
||||||
println!("cargo:rerun-if-changed={}", wordlist_path);
|
println!("cargo:rerun-if-changed={}", wordlist_path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user