在Ayah End Arabic Unicode符号中写一个数字
我正在研究Android应用程序,并且正在尝试将Ayah符号()阿拉伯语末端中的阿拉伯语编写到TextView中。 我试图编写Ayah符号的结尾,然后写阿拉伯数字,没有任何空间,但没有用。我正在使用Uthmani字体。
我想像此图片一样显示它:
这是代码
NumberFormat nf = NumberFormat.getInstance(Locale.forLanguageTag("AR"));
temp+=" "+"\u06DD"+String.valueOf(nf.format(count))+" ";
“ \ u06dd”的一部分,是()的编码在爪哇。
结果变得如此:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
您可以使用这些UNICODES U + FD3E +数字 + u + u + fd3f
您可以从此处从此处下载font文件
usage usage euseage exame
”中的数字
You can use font named me_quran with these unicodes U+FD3E + numbers + U+FD3F
You can download the font file from here
Example of usage:

尝试这样的东西
﴾ ١٩٦﴿
看起来像﴾١٩٦﴿Try something like this
﴾١٩٦﴿
which looks like ﴾١٩٦﴿在Flutter中,您可以使用 quran 软件包。
getVerseendSymbol(int versenumber)
函数将返回带有给定的经文号码的Aya End符号。示例:
这将返回带有给定经文号码的符号。
In Flutter, you can use quran package.
getVerseEndSymbol(int verseNumber)
function will return aya end symbol with the given verse number.Example:
This will return the symbol with the given verse number.
我刚刚扭转了格式,它起作用
(字体是Roboto)
I just reversed the format and it worked
(font was roboto)
如果您使用的是uthmanic font “ nofollow noreferrer”>“ kfgqpc uthmanic script您只需在这样的“ ٤٤”中输入一个阿拉伯语的数字,它将被渲染为具有数字的结尾符号:
If you are using uthmanic font "KFGQPC Uthmanic Script HAFS Regular", you just enter a number in arabic like this "٤٤" and it will be rendered as end verse symbol with the number:

为了迅速使用此代码,用于古兰经AYA结束代码的加法:
附加ArabicaySustyle以结束任何AYA文本。
for swift use this code for quran aya ending code addition:
append arabicAyaStyle to end of any aya text.
您可以使用替换pan来更改如何渲染AYA数字的
方式
You can use ReplacementSpan to alter how the aya number is rendered
for example this is how I did it
如果您使用的是Uthmani字体,例如来自 quran.com 或,您可以使用阿拉伯数字来自
(23),则您将创建字符串
u +0660
tou+0669
在符号中呈现一个编号。没有其他字体或Unicode字符范围可行。例如,如果数字为“ \ u0662 \ u0663”
。在Flutter中,您可以使用 quran package 在符号内获得数字,但仅适用于该数字Flutter提供的默认字体。如果您使用任何其他字体,包括Uthmani,则该数字不会在符号中呈现。
Chand提出了一个很好的替代方法,但是由于该数字将在阿拉伯文本中呈现,这是正确的,因此您必须翻转括号:
“ \ ufd3f< Arabic> \ ufd3e中的数字”
。If you are using the Uthmani font, such as from quran.com or from here, you can use the Arabic numerals from
U+0660
toU+0669
to get a numbered rendered within the symbol. No other font or unicode character range works. For example, if the number is٢٣
(23), you would create string"\u0662\u0663"
.In Flutter you can use the quran package to get a number inside the symbol, but it only works for the default font provided by Flutter. If you use any other font, including Uthmani, the number will not be rendered in the symbol.
Chand presents a good alternative, but since the number will be rendered within Arabic text, which is right to left, you must flip the parentheses:
"\ufd3f<number in arabic>\ufd3e"
.