Skip to content

AIArabicProjects/dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

قاموس المصطلحات التقنية - Arabic Technical Glossary

A Flask-based web application for displaying English technical terms with Arabic translations and explanations. This is an MVP (Minimum Viable Product) that reads terms from local markdown files.

Features

  • Bilingual Support: English terms with Arabic translations
  • RTL Layout: Proper right-to-left layout for Arabic content
  • Search Functionality: Full-text search across English terms, Arabic translations, and explanations
  • Responsive Design: Mobile-friendly interface using Tailwind CSS
  • Markdown Support: Rich text formatting with images support
  • Server-side Rendering: Fast loading with Flask templates

Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Run the Application

python run.py

The application will be available at: http://localhost:8000

3. Add Terms

Add new terms by creating markdown files in the terms/ directory. Each file should follow this format:

# English Term

## Arabic Translation

Explanation content here with markdown formatting support.

You can include:
- **Bold text**
- *Italic text*
- Lists
- Code blocks
- Images
- And more!

File Structure

dict/
├── app/
│   ├── datastore/
│   │   ├── term_loader.py      # Loads terms from local directory
│   │   └── term_parser.py      # Parses markdown files
│   ├── routes/
│   │   └── main.py             # Flask routes
│   ├── templates/
│   │   ├── base.html           # Base template with RTL support
│   │   ├── index.html          # Home page
│   │   ├── term.html           # Term detail page
│   │   ├── search.html         # Search results page
│   │   └── 404.html            # Error page
│   └── __init__.py
├── terms/                      # Directory for markdown term files
│   ├── activation-function.md
│   ├── neural-network.md
│   └── machine-learning.md
├── requirements.txt
└── run.py

API Endpoints

  • GET / - Home page with all terms
  • GET /term/<slug> - Individual term detail page
  • GET /search?q=<query> - Search terms
  • GET /refresh - Refresh terms cache

Sample Terms

The application comes with 3 sample terms:

  • Activation Function (دالة التفعيل)
  • Neural Network (الشبكة العصبية)
  • Machine Learning (تعلم الآلة)

Future Enhancements

  • GitHub integration for community contributions
  • User authentication and role management
  • Advanced search filters
  • Term categories and tags
  • Export functionality
  • Admin panel for term management

Technology Stack

  • Backend: Python Flask
  • Frontend: HTML, CSS, Tailwind CSS, JavaScript
  • Markdown: Python-Markdown library
  • Deployment: Ready for Heroku and other cloud platforms

Contributing

To add new terms:

  1. Create a new .md file in the terms/ directory
  2. Follow the markdown format shown above
  3. Restart the application or visit /refresh to load new terms

License

This project is open source and available under the MIT License.

About

AI in Arabic English to Arabic Dictionary

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors