Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write a number inside ayah end arabic unicode symbol

I'm working on android application and I'm trying to write arabic number inside arabic end of ayah symbol (۝) into textview. I've tried to write the end of ayah symbol then the arabic number without any space but it didn't work. I'm using uthmani font.

I want to display it like this picture:

This is part of the code

    NumberFormat nf = NumberFormat.getInstance(Locale.forLanguageTag("AR"));
    temp+="  "+"\u06DD"+String.valueOf(nf.format(count))+" ";

"\u06DD" is the encoding of (۝) in java.

The result became like this:

like image 886
shahd Avatar asked Jan 27 '16 16:01

shahd


4 Answers

I just reversed the format and it worked

NumberFormat nf = NumberFormat.getInstance(Locale.forLanguageTag("AR"));
textView.setText(String.valueOf(nf.format(285))+"\u06DD");

(font was roboto)

like image 189
Cem Avatar answered Nov 06 '22 20:11

Cem


In Flutter, you can use quran package. getVerseEndSymbol(int verseNumber) function will return aya end symbol with the given verse number.

Example:

Text(
      quran.getVerse(18, index + 1) + getVerseEndSymbol(index + 1),
      textAlign: TextAlign.right,
),

This will return the symbol with the given verse number.

enter image description here

like image 29
Aqeel Avatar answered Oct 28 '22 08:10

Aqeel


You can use font named me_quran with these unicodes U+FD3E + numbers + U+FD3F

﴿ ORNATE RIGHT PARENTHESIS Unicode: U+FD3F, UTF-8: EF B4 BF

﴾ ORNATE LEFT PARENTHESIS Unicode: U+FD3E, UTF-8: EF B4 BE

You can download the font file from here

Example of usage: Quran Verse end with numbers inside

like image 6
Khaled Annajar Avatar answered Nov 06 '22 19:11

Khaled Annajar


Try something like this ﴾١٩٦﴿ which looks like ﴾١٩٦﴿

like image 3
Chand Avatar answered Nov 06 '22 18:11

Chand