accent is a simple CLI tool to add french accents to a text file using markup. I wrote this program because my keyboard doesn't have shortcuts for those and I often have to write long essays in french.
To compile and install accent, use the provided Makefile:
# This command will install `accent` in /usr/bin.
sudo make installTo use accent, simply pipe the markup text to stdin and retrieve the text with the accents on stdout.
# Example that can be run from the root of the git repository.
cat ./examples/gateaux | accentThe input file should be ASCII only, the output file is UTF-8.
The following substitution patterns will be replaced by the associated french accents.
| Format Sequence | Replaced By |
|---|---|
| e1 | è |
| e2 | é |
| e3 | ê |
| a1 | à |
| a3 | â |
| c4 | ç |
| E1 | È |
| E2 | É |
| E3 | Ê |
| A1 | À |
| A3 | Â |
| C4 | Ç |
| o3 | ô |
| O3 | Ô |
| u3 | û |
| U3 | Û |
| i3 | î |
| I3 | Î |
| u1 | ù |
| U1 | Ù |
| newline - | newline • |
Note that there are no escape characters for the defined markup language, so use with caution.
To build the fedora package for accent, go to the root of the repository and then use:
# Assuming all the tools have been installed already.
fedpkg --release f33 local| Field | Value |
|---|---|
| 📝 Contributors | roadelou |
| 📧 Contacts | |
| 📅 Creation Date | 2021-07-22 |
| 💡 Language | Markdown Document |