عالم الكتب الإلكترونية
موقع عالم الكتب الإلكترونية لتحميل الكتب في جميع التخصصات مجانا، عالم الكتب pdf، تحميل الكتب العربية والمترجمة والقصص والروايات العربية والمترجمة.

# Unicode to Shree Lipi (Devanagari) Basic Converter

# Define a basic mapping dictionary english_to_devanagari = { 'a': 'अ', 'A': 'आ', 'i': 'इ', 'I': 'ई', 'u': 'उ', 'U': 'ऊ', 'e': 'ए', 'E': 'ए', 'ai': 'ऐ', 'AI': 'ऐ', 'o': 'ओ', 'O': 'ओ', 'au': 'औ', 'AU': 'औ', 'ka': 'क', 'Ki': 'कि', 'ku': 'कु', # Add more mappings here }

Creating a Unicode to Shree Lipi converter involves understanding both the Unicode standard and the specific script or "lipi" you're converting to, in this case, likely a reference to the Devanagari script which is commonly used to write many languages including Hindi, Sanskrit, and others. For simplicity, let's assume the goal is to convert English text (or any text in a Latin script) into Devanagari script, which could colloquially be referred to as "Shree Lipi."

def convert_to_devanagari(text): devanagari_text = "" i = 0 while i < len(text): # Check for two-character sequences if i + 1 < len(text) and text[i:i+2] in english_to_devanagari: devanagari_text += english_to_devanagari[text[i:i+2]] i += 2 elif text[i] in english_to_devanagari: devanagari_text += english_to_devanagari[text[i]] i += 1 else: devanagari_text += text[i] i += 1 return devanagari_text

الملكية الفكرية محفوظة لمؤلف الكتاب المذكور
فى حالة وجود مشكلة بالكتاب الرجاء إبلاغنا من خلال صفحة: اتصل بنا أو من خلال صفحة حقوق الملكية
× إخفاء
كتب مشابهة
اضف مراجعة

يستخدم موقعنا ملفات تعريف الارتباط لتحسين تجربتك. باستمرارك في استخدام موقعنا فأنت توافق على سياسة الخصوصية الخاصة بنا وملفات تعريف الارتباط، ولكن يمكنك رفض ذلك ومغادرة الموقع إذا كنت ترغب في ذلك. أوافق قراءة المزيد