Skip to content

Commit

Permalink
Merge pull request #76 from mzraly/add_hindi
Browse files Browse the repository at this point in the history
Add Hindi language definition and a small sample story.
  • Loading branch information
jzohrab authored Dec 24, 2023
2 parents 6cbd53a + e0bffa1 commit f9d51fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lute/db/demo/languages/hindi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Hindi
dict_1: https://www.boltidictionary.com/en/search?s=###
dict_2: https://www.bing.com/images/search?q=###&form=HDRSC2&first=1&tsc=ImageHoverTitle
sentence_translation: https://www.bing.com/translator/?from=hi&to=en&text=###
show_romanization: true
# right_to_left:

# parser_type: defaults to space delimited.
# character_substitutions:
split_sentences: .?!|।॥
split_sentence_exceptions: Mr.|Mrs.|Dr.|[A-Z].|Vd.|Vds.
word_chars: a-zA-Z\u0900-\u0963\u0966-\u097F
4 changes: 4 additions & 0 deletions lute/db/demo/stories/hi_wikipedia.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# title: Wikipedia Hindi article sample text (Universal Declaration of Human Rights)
# language: Hindi
#
अनुच्छेद १(एक): सभी मनुष्य जन्म से स्वतन्त्र तथा मर्यादा और अधिकारों में समान होते हैं। वे तर्क और विवेक से सम्पन्न हैं तथा उन्हें भ्रातृत्व की भावना से परस्पर के प्रति कार्य करना चाहिए।

0 comments on commit f9d51fe

Please sign in to comment.