diff options
author | Aaron Ball <nullspoon@oper.io> | 2019-03-09 18:40:33 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2019-03-09 20:26:27 -0700 |
commit | c7033290ac21023c74f59c6f02a918cf6b2b36a8 (patch) | |
tree | 61569757b69602923b7376b3e9274a3af773d871 /Makefile | |
parent | 93a26f6394546f53b9531cead1713311de0dda78 (diff) | |
download | upwgen-c7033290ac21023c74f59c6f02a918cf6b2b36a8.tar.gz upwgen-c7033290ac21023c74f59c6f02a918cf6b2b36a8.tar.xz |
Added unicode tiers
Previously, only the -i,--i18n switch existed, which would append the
world's top ~10 languages to the unicode array. This was often
problematic because many fonts don't have glyphs for the lesser-used
writing systems. This also had the inadvertant effect of making many of
the generated i18n passwords unacceptable for many services. This is
because the more common unicode characters are accepted (eg: latin
basic, extended, suppliment, etc), but the less common are considered
"disallowed symbols", making most of the generated passwords
unacceptable.
This introduces the -1, -2, -3, and -4 switches to alleviate this. The
-1 switch includes only the most used scripts in the world (Latin and
IPA phonetic), which covers some of the biggest languages in use making
these passwords most likely to be acceptable. The subsequent switches
include lesser and lesser used scripts in sequence.
This commit splits out all i18n functions into the new i18n_cat library
to clean up main. Also made intrcat hidden, implementing
i18n_cat_ascii_* functions to replace all external calls to it.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,9 @@ out = upwgen PREFIX = /usr/bin all: - $(CC) $(CCOPTS) src/main.c -o $(out) + @if [ ! -d obj ]; then mkdir obj; fi + $(CC) $(CCOPTS) -c src/i18n_cat.c -o obj/i18n_cat.o + $(CC) $(CCOPTS) src/main.c obj/*.o -o $(out) install: mkdir -p $(DESTDIR)/$(PREFIX) |