adding --names option to the list command
This commit is contained in:
parent
27e64af308
commit
15703c1fa1
39
README.md
39
README.md
|
@ -30,18 +30,31 @@ sâdêto. Dê yo nâ topho, my sû pida phe, vi phûtw châcho, po sotê?
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
% fanlang list
|
% fanlang list
|
||||||
Abyssal
|
Abyssal : Eshshishsee zozsuwhoshsh asaawheeziwh! A..whoszoshs ssaswhsu..o
|
||||||
Celestial
|
Celestial : Ȯoiüöueîîoäuüeêiûȯ, ouịeüêoäaüaėu̇üoäuau âüiûeėûeuäuiüêuäaịii,
|
||||||
Common
|
Common : Uemson noffom, eelom lesyoe exori emaah? Sytteel eudd liiom! Exemooaf
|
||||||
Draconic
|
Draconic : Vysisa kseeseg ksotsaa' dseyhk yz'sax, 'sosuu'h lsitv dj'sih sir'seed
|
||||||
Dwarvish
|
Dwarvish : Nûzhewt co. Phûbê pâpp pûzhûde bî tho di dakf, kâ mû che pe nezhûphû
|
||||||
Elvish
|
Elvish : Vyöua ycrem mluwre yrhyi syüstem? Uufyias eotdyian fleoe, eswoawyia
|
||||||
Gnomish
|
Gnomish : Di buae haui se miue taui nue, pue heo ruoe puoy roea, hauy diua mey
|
||||||
Halfling
|
Halfling : Pelee fipo'we'nei, se'hovololi'y, rare'ri'ti'myo ja'to'lilae nybe'wao,
|
||||||
Infernal
|
Infernal : Po p'daod p'kyid bou t'yagio k'pub x'opuj, p'nba jibi z'eux p'jaabu
|
||||||
Lizardfolk
|
Lizardfolk : Roast, malic orange earth. Grain musty coconut! Raspberry peanut meat
|
||||||
Orcish
|
Orcish : Chuche cebru hiko tuma, zutup brumef fubrok cozb ciko, cokot fochi
|
||||||
Undercommon
|
Undercommon : Tniwus, aldupun sqiluth rivujel gijäxaa, aäuyäutäs vixälat vükäe
|
||||||
|
|
||||||
|
% fanlang list --names
|
||||||
|
Abyssal : Zwhoshwhshwhe
|
||||||
|
Celestial : Aȯîaûuêeäuêaaüuịäu̇
|
||||||
|
Common : Nana Zeborg
|
||||||
|
Draconic : Jsois
|
||||||
|
Dwarvish : Thi Vudottir
|
||||||
|
Elvish : Smoöbd am Dwesm
|
||||||
|
Gnomish : Tue Nio
|
||||||
|
Halfling : Fybobo'ga'jo'a Da'ro'y Byna'ba'e "Gallant"
|
||||||
|
Infernal : Edmius
|
||||||
|
Lizardfolk : Floral Maple Syrup Phrenolic
|
||||||
|
Orcish : Dih Buzh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Language Packs
|
## Language Packs
|
||||||
|
@ -57,7 +70,7 @@ You can override `fanlang`'s default language pack by specifying the `FANLANG_LA
|
||||||
```shell
|
```shell
|
||||||
# Create your ancient_elvish module in campaign/language_pack/ancient_elvish
|
# Create your ancient_elvish module in campaign/language_pack/ancient_elvish
|
||||||
% FANLANG_LANGUAGE_PACK=campaign.language_pack fanlang list
|
% FANLANG_LANGUAGE_PACK=campaign.language_pack fanlang list
|
||||||
Ancient Elvish
|
Ancient Elvish : ...
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setting the Default Language
|
### Setting the Default Language
|
||||||
|
|
|
@ -74,9 +74,12 @@ def names(
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def list():
|
def list(names: bool = typer.Option(False, help="Display sample names.")):
|
||||||
for lang, module in supported_languages.items():
|
for lang, module in supported_languages.items():
|
||||||
text = textwrap.shorten(module.Language.text(count=20), width=70, placeholder='')
|
if names:
|
||||||
|
text = str(module.Name)
|
||||||
|
else:
|
||||||
|
text = textwrap.shorten(module.Language.text(count=20), width=70, placeholder='')
|
||||||
print(f"{lang.title():15s}: {text}")
|
print(f"{lang.title():15s}: {text}")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user