Spaces:
Sleeping
Sleeping
Create readme.md
Browse files
readme.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Preeti to Unicode Translator
|
2 |
+
|
3 |
+
This Streamlit app translates text written in Preeti font to Unicode readable format. It supports both plain text input and PDF file uploads.
|
4 |
+
|
5 |
+
## Features
|
6 |
+
|
7 |
+
- Translate Preeti font text to Unicode
|
8 |
+
- Support for both plain text input and PDF file uploads
|
9 |
+
- Easy-to-use web interface powered by Streamlit
|
10 |
+
|
11 |
+
## Installation
|
12 |
+
|
13 |
+
1. Clone this repository:
|
14 |
+
```
|
15 |
+
git clone https://huggingface.co/rockerritesh/preeti-unicode
|
16 |
+
cd preeti-unicode
|
17 |
+
```
|
18 |
+
|
19 |
+
2. Install the required dependencies:
|
20 |
+
```
|
21 |
+
pip install -r requirements.txt
|
22 |
+
```
|
23 |
+
|
24 |
+
## Usage
|
25 |
+
|
26 |
+
1. Run the Streamlit app:
|
27 |
+
```
|
28 |
+
streamlit run app.py
|
29 |
+
```
|
30 |
+
|
31 |
+
2. Open your web browser and navigate to the URL displayed in the terminal (usually `http://localhost:8501`).
|
32 |
+
|
33 |
+
3. Use the app:
|
34 |
+
- For text input: Enter or paste your Preeti font text in the text area and click "Translate".
|
35 |
+
- For PDF input: Upload your PDF file containing Preeti font text and click "Translate PDF".
|
36 |
+
|
37 |
+
4. View the translated Unicode text in the output area.
|
38 |
+
|
39 |
+
## Dependencies
|
40 |
+
|
41 |
+
- streamlit
|
42 |
+
- PyPDF2
|
43 |
+
|
44 |
+
## How it works
|
45 |
+
|
46 |
+
This app uses a mapping of Preeti font characters to their Unicode equivalents. When text is input or a PDF is uploaded, the app processes the content, replacing Preeti characters with their Unicode counterparts.
|
47 |
+
|
48 |
+
## Contributing
|
49 |
+
|
50 |
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
51 |
+
|
52 |
+
## License
|
53 |
+
|
54 |
+
This project is licensed under the MIT License - see the [MIT](https://mit-license.org/) file for details.
|
55 |
+
|
56 |
+
## Acknowledgements
|
57 |
+
|
58 |
+
- Streamlit for the web app framework
|
59 |
+
- PyPDF2 for PDF processing
|
60 |
+
- (Add any other acknowledgements)
|
61 |
+
|
62 |
+
## Contact
|
63 |
+
|
64 |
+
If you have any questions or feedback, please open an issue on this GitHub repository.
|