cirkumflekskonvertilo

Circumflex Converter in Esperanto

Cirkumflekskonvertilo

What's this?

This is a circumflex(cirkumflekso) and breve(u-hoketo) converter in Esperanto.
It converts the surrogate characters to circumflex/brave characters.
This source code is written in crystal.

Surrogate Notations

It supports three notations:

  • H-convention (Zamenhof's convention)
    [Ch, ch, Gh, gh, Hh, hh, Jh, jh, Sh, sh, W, w] → [Ĉ, ĉ, Ĝ, ĝ, Ĥ, ĥ, Ĵ, ĵ, Ŝ, ŝ, Û, û]
    The original convention [U, u] → [Ǔ, ǔ] is not supported.
  • X-convention
    [Cx, cx, Gx, gx, Hx, hx, Jx, jx, Sx, sx, Ux, ux] → [Ĉ, ĉ, Ĝ, ĝ, Ĥ, ĥ, Ĵ, ĵ, Ŝ, ŝ, Û, û]
  • ^-convention
    [C^, c^, G^, g^, H^, h^, J^, j^, S^, s^, U^, u^] → [Ĉ, ĉ, Ĝ, ĝ, Ĥ, ĥ, Ĵ, ĵ, Ŝ, ŝ, Û, û]
    [U~, u~] → [Û, û]

Usage

  1. Install crystal, see install page for detail.
  2. convert input text: crystal konv.cr [input.txt] or cat [input.txt] | crystal konv.cr.

If you want to build the code: crystal build knov.cr, then ./konv [input.txt] or cat [input.txt] | ./konv

License

The source code is licensed MIT.

Repository

cirkumflekskonvertilo

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • over 3 years ago
  • November 21, 2020
License

MIT License

Links
Synced at

Fri, 03 May 2024 13:45:56 GMT

Languages