Git Product home page Git Product logo

xassidas's Introduction

Numérisation des Xassidas en TXT

Ce projet vise à numériser les Xassidas en format texte (txt) et les rendre accessibles via l'application web xassida.sn.

Ce repository contient des xassidas en format texte (txt) organisés en fonction des confréries et leurs auteurs.

Le projet est entièrement open-source et est ouvert aux contributions.

Comment contribuer ?

  1. Avoir le texte d'un xassida (.txt) bien écrit

  2. Formatter le texte (voir Format à respecter ci dessous)

  3. Organiser le xassida en fonction de la confrérie et de l'auteur (voir structure).

    NB: Veillez bien vérifier la saisie des accents car la transcription en français se fait automatiquement voir Transcription

Format à Respecter

Un xassida et ses traductions doivent avoir exactement le même format:
  1. Les Chapitres commencent par 3 diez ###
  2. Les versets (beyit) doivent être séparés par 2 diez ##

NB: Si le xassida ne comporte pas de chapitre le ficher doit aussi commencé par 3 diez ### (voir un example) example.png

Structure des fichiers

xassidas
├── mouride
│   └── cheikh_ahmadou_bamba
        ├── midadi (xassida)
        │   ├── en
        │   │   └── midadi.txt (traduction anglais)
        │   ├── fr
        │   │   └── midadi.txt (traduction français)
        │   └── midadi.txt  (texte arabe)
└── tidjan
    └── cheikh_tidiane_sy
        ├── abuna (xassida)
        │   ├── abuna.txt (texte arabe)
        │   └── fr
        │       └── abuna.txt (traduction français)

Pour les Developpeurs

Requirements

  • Python 3.9 ou Supérieur

Installer les dépendances

  pip install -r requirements.txt

Les scripts

  1. parse_xassida.py :

    Ce script sera utilisé pour extraire les xassidas et leur traductions en format json.

    python parse_xassida.py [-t tariha] [-a auteur] [-x xassida]
    Sortie Json
    {
      "name": "sample",
      "chapters": [
        {
          "name": "الفاتحة",
          "number": 1,
          "verses": [
            {
              "number": 0,
              "key": "1:0",
              "text": "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ",
              "words": [
                {
                  "position": 0,
                  "text": "بِسْمِ",
                  "transcription": "bismi"
                },
                {
                  "position": 1,
                  "text": "اللَّهِ",
                  "transcription": "l-lahi"
                },
                {
                  "position": 2,
                  "text": "الرَّحْمَٰنِ",
                  "transcription": "r-raḥmāni"
                },
                {
                  "position": 3,
                  "text": "الرَّحِيمِ",
                  "transcription": "r-raḥīmi"
                }
              ],
              "translations": []
            },
            ...
          ],
        },
        ...
      ],
      "translated_names": [],
      "audios": [],
      "translated_lang": []
      }
  2. parse_translations.py :

    Ce script sera utilisé pour extraire et inserer dans le ficher ci-dessus les traductions s'ils existent.

    python parse_translations.py [-t tariha] [-a auteur] [-x xassida]
    Sortie Json
    {
      "name": "sample",
      "chapters": [
        {
          "name": "الفاتحة",
          "number": 1,
          "verses": [
            {
              "number": 0,
              "key": "1:0",
              "text": "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ",
              "words": [
                {
                  "position": 0,
                  "text": "بِسْمِ",
                  "transcription": "bismi"
                },
                {
                  "position": 1,
                  "text": "اللَّهِ",
                  "transcription": "l-lahi"
                },
                {
                  "position": 2,
                  "text": "الرَّحْمَٰنِ",
                  "transcription": "r-raḥmāni"
                },
                {
                  "position": 3,
                  "text": "الرَّحِيمِ",
                  "transcription": "r-raḥīmi"
                }
              ],
              "translations": [
                {
                  "lang": "en",
                  "text": "In the name of Allah, the Entirely Merciful, the Especially Merciful.",
                  "author": ""
                }
              ]
            },
            ...
          ]
        },
        ...
      ],
      "translated_names": [],
      "audios": [],
      "translated_lang": []
    }
  3. parse_author.py:

    Ce script permet de regrouper les sorties Json des xassidas d'un auteur dans un même fichier json

    python parse_author.py [-t tariha] [-a auteur]

Technologies utilisées

  • Arabic Keyboard Online LEXILOGOS: Outil permettant d'écrire en arabe
  • Python3: Les différents scripts (transcription, formattage des fichiers) ont été écrits en python

Licence

Ce projet est sous licence MIT. Veuillez consulter le fichier LICENSE pour plus d'informations.

xassidas's People

Contributors

linzo99 avatar

Stargazers

Serigne Saliou Mbacké Mbaye avatar  avatar  avatar Abass avatar LebzoDev avatar Thierno DIOP avatar  avatar Serigne Saliou LO avatar Alassane Ndoye avatar Rachidusfallensis avatar ReddingCode avatar Sira Ndiaye avatar Oumar Sonko 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.