GithubHelp home page GithubHelp logo

ogonki's Introduction

Making Life Easier for Programmers: A Simple Solution to Diacritical Marks in Text Files (66 languages)

DESCRIPTION

This program is a tool for replacing tails in unformatted text files (preferably encoded in UTF-8).

It supports 66 languages.

In the beginning, the program defines a tail map, which contains sets of characters specific to each of the supported languages.

The main function: main starts with handling flags. The available flags are -help (display help) and -lang (choose the tail language, pl by default).

The program then takes file paths as command line arguments.

If no path is specified, the program displays an error message and exits.

For each given access path, the program checks the file extension (recognizes up to 180 extensions of non-software text files).

If it is one of the supported extensions, the program reads the content of the file, replaces the tails using the replaceTags function for the given language, and then saves the modified content to a new file named <original_file_name>_modified.txt.

The process of replacing tails is done using the replaceTails function, which iterates through all the tailing characters for a given language and replaces them with the appropriate replacement characters.

The getReplacement function specifies replacement characters for individual tails. Diacritics are changed, e.g., ą to a, ć to c, etc., with the remaining characters. Other characters in the text are replaced by themselves.

The printHelp function displays help on how to use the program, describes the supported flags and languages, and gives examples of use.

MANUAL

To run the program, you must have a Go compiler installed on your device.

Then follow these steps:

  1. Clone the repository to your device:     git clone https://github.com/lukaszwojcikdev/ogonki.git

  2. Go to the project directory:     cd tails

  3. Compile the program:     go build ogonki.go

  4. Starting the program: Linux: ./ogonki.go or Windows: ogonki.exe

Author

This program was created by [Lukasz Wójcik].

If you have any questions or comments, please contact me at kontakt(at)lukaszwojcik.eu

License

This project is licensed under [MIT].

Details can be found in the file [LICENSE].

I hope you liked the program and it will be helpful to you.

If you have any questions, feel free to ask, I will try to answer as soon as possible.

ogonki's People

Contributors

lukaszwojcikdev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.