GithubHelp home page GithubHelp logo

gavi-tharaka / sinhala_convertor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27 KB

This Python script converts Sinhala Unicode text to legacy font styles ('fm' and 'isi'). It is designed to help programmers working on Sinhala Unicode converters and related projects.

Python 100.00%
convertor fm isi python sinhala unicode unicode-to-fm

sinhala_convertor's Introduction


Sinhala Unicode Text Converter

This Python script converts Sinhala Unicode text to legacy font styles ('fm' and 'isi'). It is designed to help programmers working on Sinhala Unicode converters and related projects.

Features

  • Converts Sinhala Unicode text to specified typing styles: 'fm' and 'isi'.
  • Easy to use and integrate into other projects.
  • JSON-based mapping for flexibility and easy updates.

Installation

  1. Clone the repository:

    git clone https://github.com/gavi-tharaka/sinhala_convertor.git
  2. Navigate to the project directory:

    cd sinhala_convertor
  3. Ensure you have Python installed. This script is compatible with Python 3.

Usage

  1. Import the convertor function from the script and use it to convert text:

    from legacy import convertor
    
    # Example usage
    text = "මම සිංහල"
    converted_text_fm = convertor(text, 'fm')
    converted_text_isi = convertor(text, 'isi')
    
    print("Original Text:", text)
    print("Converted Text (fm):", converted_text_fm)
    print("Converted Text (isi):", converted_text_isi)

Function Documentation

convertor

Convert Sinhala Unicode text to a specified typing style.

Parameters:

  • text (str): The input text in Sinhala Unicode format.
  • style (str): The desired typing style to convert the text to. Accepted values are 'fm' and 'isi'.

Returns:

  • str: The converted text in the specified typing style.

Example

from legacy import convertor
text = "ආයුබෝවන්"
style = 'fm'

converted_text = convertor(text, style)
print(converted_text)

Contribution

Feel free to fork this project, submit issues, and make pull requests. Your contributions are welcome!

License

This project is licensed under the MIT License.

Contact

For any inquiries or feedback, please contact [Your Email] or open an issue on GitHub.


Enjoy converting Sinhala Unicode text with ease!


sinhala_convertor's People

Contributors

gavi-tharaka 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.