Skip to content

Commit

Permalink
Added image badges
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Nov 12, 2021
1 parent 97bede5 commit 0436967
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 4 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- TODO: Fix Facebook terminology usage of "_XX" as suffix
- TODO: this is a placeholder

## [1.5.0] - 2021-11-12
### Added
- <https://tico-19-hxltm.etica.ai/> is now the public website.

### Changed
- <https://github.com/EticaAI/tico-19-hxltm> is the (likely) definitive
repository for this project, as part of the
[Etica.AI GitHub organization](https://github.com/EticaAI).
The early draft was bootstrapped on
<https://github.com/fititnt/tico-19-hxltm> (personal account).

### Fixed
- `data/original/terminology/facebook/{.*-XX.csv -> .*.csv}`: Removed unknown
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# tico-19-hxltm
[![Website: inclusao.etica.ai](img/badges/website.svg?1)](https://tico-19-hxltm.etica.ai/)
[![GitHub: EticaAI/tico-19-hxltm](img/badges/github.svg)](https://github.com/EticaAI/tico-19-hxltm)
[![Download: Releases](img/badges/download-releases.svg)](https://github.com/EticaAI/tico-19-hxltm/releases)

**[working-draft] Public domain datasets from
[Translation Initiative for COVID-19](https://tico-19.github.io) on the format
HXLTM (Multilingual Terminology in Humanitarian Language Exchange).**

> TODO: move to [@EticaAI](https://github.com/EticaAI) organization and
publish on a subdomain.
**See [data/original](data/original)**

**See [data/original/README.md](data/original/README.md)**
<!--
- https://github.com/pubs/pubs
- https://github.com/JabRef/jabref
- snap install jabref
-->

## License

Expand Down
2 changes: 2 additions & 0 deletions data/original/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ is done as previous step to convert to HXLTM format.
> Note: Emerson Rocha, from Etica.AI is not associated with the TICO-19 team.
> Even if you use this work, please consider citing the original lexicographers.
{% raw %}
```bibtex
@misc{tico-19,
author={Anastasopoulos, Antonios and Cattelan, Alessandro and Dou, Zi-Yi and Federico, Marcello and Federmann, Christian and Genzel, Dmitriy and Guzm\'{a}n, Francisco and Hu, Junjie and Hughes, Macduff and Koehn, Philipp and Lazar, Rosie and Lewis, Will and Neubig, Graham and Niu, Mengmeng and \"{O}ktem, Alp and Paquin, Eric and Tang, Grace and Tur, Sylwia},
Expand All @@ -442,3 +443,4 @@ year={2020},
note={{arXiv}:2007.01788}
}
```
{% endraw %}
1 change: 1 addition & 0 deletions img/badges/download-releases.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/badges/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/badges/website.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions scripts/build-badges.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/sh
# ==============================================================================
#
# FILE: build-badges.sh
#
# USAGE: ./scripts/build-badges.sh
#
# DESCRIPTION: Script used to generate img/badges/*.svg used to serve
# the README.md files and on the website.
# This is not related to data manipulation.
#
# OPTIONS: ---
#
# REQUIREMENTS: - POSIX Shell or better
# - pybadges
# - See <https://github.com/google/pybadges>
# BUGS: ---
# NOTES: ---
# AUTHORS: Emerson Rocha <rocha[at]ieee.org>
# COLLABORATORS: <@TODO: put additional non-anonymous names here>
# COMPANY: EticaAI
# LICENSE: Public Domain dedication OR Zero-Clause BSD
# SPDX-License-Identifier: Unlicense OR 0BSD
# VERSION: v1.0
# CREATED: 2021-11-12 16:59 UTC started, based on EticaAI
# /inclusao-digital/imagens/badges
# /build-badges.sh
# ==============================================================================

# Requeriment: pybadges (see https://github.com/google/pybadges)
# `pip install pybadges`

# Hint: to do a fast preview, replace '> filename.svg' with '--browser', example:
## python -m pybadges --left-text='Label here' --right-text='Value here' --right-color='#26A65B' --browser

# python -m pybadges --left-text='Idioma' --right-text='Português' --right-color='#1E90FF' > language-portuguese.svg
# python -m pybadges --left-text='Idioma' --right-text='Traduções são bem vindas!' --right-color='#1E90FF' > language-new.svg
# python -m pybadges --left-text='Versão' --right-text='1.0.0-beta' --right-color='#808080' > version.svg

# python -m pybadges --left-text='Situação' --right-text='Trabalho em progresso' --right-color='#FF773D' > status-work-in-progress.svg
python3 -m pybadges --left-text='Downloads' --right-text='Releases' --right-color='#1E90FF' > img/badges/download-releases.svg

python3 -m pybadges --left-text='GitHub' --right-text='EticaAI/tico-19-hxltm' --right-color='#237c02' > img/badges/github.svg
python3 -m pybadges --left-text='Website' --right-text='tico-19-hxltm.etica.ai' --right-color='#237c02' > img/badges/website.svg

#python -m pybadges --left-text='Comunidades' --right-text='2' --right-color='#26A65B' > grupos-total.svg
#python -m pybadges --left-text='Gratuidades' --right-text='3' --right-color='#1E90FF' > gratuidades-total.svg
#python -m pybadges --left-text='Desenvolvimento em smartphone' --right-text='5' --right-color='#FF773D' > smartphone-total.svg
#python -m pybadges --left-text='Serviços Online' --right-text='2' --right-color='#9400D3' > servicos-online-total.svg
#python -m pybadges --left-text='Africa' --right-text='1' --right-color='#1E90FF' > orgs-africa.svg
#python -m pybadges --left-text='Asia' --right-text='2' --right-color='#1E90FF' > orgs-asia.svg
#python -m pybadges --left-text='Europe' --right-text='4' --right-color='#1E90FF' > orgs-europe.svg
#python -m pybadges --left-text='North America' --right-text='6' --right-color='#1E90FF' > orgs-north-america.svg

# There have other color:
#python -m pybadges --left-text='Oceania' --right-text='Need your help!' --right-color='#FF773D' > orgs-oceania.svg
#python -m pybadges --left-text='South America' --right-text='Need your help!' --right-color='#FF773D' > orgs-south-america.svg

# Other badges
# Other
#python -m pybadges --left-text='Strategies to find A/IS ethics organizations' --right-text='3' --right-color='#9400D3' > other-strategies.svg

# Extra badges
# python -m pybadges --left-text='Status' --right-text='Work in progress' --right-color='#FF773D' > status-work-in-progress.svg

0 comments on commit 0436967

Please sign in to comment.