cdleong commited on
Commit
1232c23
·
1 Parent(s): 051e947

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -93,13 +93,17 @@ if lang is not None:
93
 
94
  st.write(f"Broader tags for this language, if any:")
95
  st.write(broader_tags)
 
 
96
  st.write(f"Try also: https://r12a.github.io/app-subtags/?lookup={lang}, which will likely have links to Ethnologue, Wikipedia, and Character usage. You can also try searching for '{langtext}' there!")
 
 
97
  st.write(f"https://glottolog.org/glottolog?search={t_variant} may be also of interest, with links to various resources including WALS, Wikidata, Odin, and OLAC. ")
98
  if t_variant != b_variant:
99
  st.write(f"If that doesn't work, try https://glottolog.org/glottolog?search={b_variant}, or put in a [custom search query](https://glottolog.org/glottolog)")
100
  st.write(f"https://glottolog.org/glottolog?search={urllib.parse.quote(langtext)} may pull up something as well.")
101
 
102
- st.write("## Older / Related Codes")
103
 
104
  st.write(f"ISO 639-3 'alpha3' code, 'terminology' or 'T' variant (deprecated): {t_variant}")
105
  st.write(f"ISO 639-3 'alpha3' code, 'bibliographic' or 'B' variant (deprecated): {b_variant}")
@@ -109,7 +113,7 @@ if lang is not None:
109
  if t_variant != b_variant:
110
  st.write(f"If it exists, the ISO 639 Code Tables entry for the B variant would be at https://iso639-3.sil.org/code/{b_variant}")
111
 
112
- st.write("### Codes scraped from iso639-3.sil.org")
113
  #TODO: Cleanup this bit
114
  t_obsolete_codes = pull_obsolete_codes(t_variant)
115
  b_obsolete_codes = pull_obsolete_codes(b_variant)
 
93
 
94
  st.write(f"Broader tags for this language, if any:")
95
  st.write(broader_tags)
96
+
97
+ st.write(f"### Language Subtag Search Tool")
98
  st.write(f"Try also: https://r12a.github.io/app-subtags/?lookup={lang}, which will likely have links to Ethnologue, Wikipedia, and Character usage. You can also try searching for '{langtext}' there!")
99
+
100
+ st.write(f"### Glottolog")
101
  st.write(f"https://glottolog.org/glottolog?search={t_variant} may be also of interest, with links to various resources including WALS, Wikidata, Odin, and OLAC. ")
102
  if t_variant != b_variant:
103
  st.write(f"If that doesn't work, try https://glottolog.org/glottolog?search={b_variant}, or put in a [custom search query](https://glottolog.org/glottolog)")
104
  st.write(f"https://glottolog.org/glottolog?search={urllib.parse.quote(langtext)} may pull up something as well.")
105
 
106
+ st.write("### Older / Related Codes")
107
 
108
  st.write(f"ISO 639-3 'alpha3' code, 'terminology' or 'T' variant (deprecated): {t_variant}")
109
  st.write(f"ISO 639-3 'alpha3' code, 'bibliographic' or 'B' variant (deprecated): {b_variant}")
 
113
  if t_variant != b_variant:
114
  st.write(f"If it exists, the ISO 639 Code Tables entry for the B variant would be at https://iso639-3.sil.org/code/{b_variant}")
115
 
116
+ st.write("#### Codes scraped from iso639-3.sil.org")
117
  #TODO: Cleanup this bit
118
  t_obsolete_codes = pull_obsolete_codes(t_variant)
119
  b_obsolete_codes = pull_obsolete_codes(b_variant)