Questions tagged [farsi]

The Farsi tag is for issues relating to Persian (Farsi, فارسی, پارسی) language.

247 questions
0
votes
1 answer

How to find the coordinates of a rectangle in an image in Python?

I have a text in an image, and there's a bounding box around it, like so: What I'm trying to do is to find the top-left & bottom-right coordinates to calculate the diagonal of the rectangle. I didn't find anything in particular in python…
user10025477
0
votes
0 answers

Print Farsi letters in python 3

So I have a txt file that is written in Farsi and I want to split it word by word and put it in a list, which means I am going to have a list of Farsi words. The error I get: UnicodeEncodeError: 'charmap' codec can't encode characters in position…
user10025477
0
votes
1 answer

Weka shows numbers in Persian and saves data output with question marks

I am about to use Weka for processing a dataset that contains numeric and nominal values. As Persian and Arabic are the secondary languages I am using in my Windows 7 operating system, I assumed that this might be the reason that when I am trying to…
SANN
  • 31
  • 1
  • 12
0
votes
1 answer

Persian path for read_excel

I want to read a file with pd.read_excel and also load_workbook and I have persian names in my path. I get the following error: FileNotFoundError: No such file my code: df1 = pd.read_excel(r'X:\\Frosh\\دیتابیس فروش\\ ثبت اطلاعات فروش.xlsx',…
Usefi
  • 1
0
votes
1 answer

Can mpdf {PAGENO} display Persian characters?

Does mpdf has a setting somewhere to change the default numbering pattern? I'm trying to use {PAGENO} in a footer, and it always shows 1,2,3 etc rather than ۱،۲،۳ For now I can workaround by adding a str_replace in the aliasReplace function of…
0
votes
1 answer

how getting the persian character ascii code of a string in php

I want to display the character codes of a string in php. "; } ?> But its output is null
0
votes
0 answers

convert english number to farsi in r

I want to replace English number with Farsi number. How can implement this? 0-1-2-3-4-5-6-7-8-9 convert to ۰-۱-۲-۳-۴-۵-۶-۷-۸-۹ for example 2658 Become ۲۶۵۸
rezgar
  • 114
  • 8
0
votes
2 answers

Insert a comma between Arabic(Persian) and English words in a text using Regex in Python

I have a txt file which contains 32000 lines. The data is in Arabo-Persian, however, each line contains the Roman transcription of the first word. دێان diêyan بنووڕه‌ ‌دگان نگا دگان‌ دێان‌ شكنه diêyan şêkêne دگان‌ شكنه دیدن dîdin بنووڕه‌ ‌دید…
Z Azin
  • 57
  • 6
0
votes
2 answers

UTF-8 to HTML Character Decimal Codes before use inside code or importing in sql

how can i detect and convert below strings to readable string this strings? سئوالات مطاعن ابوبكر مطاعن عمر since these strings with UTF-8 in MySQL database and our language is Arabic and Persian they are unreadable for us…
DolDurma
  • 15,753
  • 51
  • 198
  • 377
0
votes
0 answers

How to Select UTF8(Persian) Characters From MySQL With Using PHP?

I Want To Read Persian Characters From MySQL With PHP.Characters Are Well Stored By PHP In MySQL. But When Reading Them The Characters Are In The Form Of "?". This Is My Data In MySQL: My SQL Picture This Is My Code For Select Data: $Query = "SELECT…
0
votes
2 answers

Persian/Arabic letters are displayed broke in matplotlib in jupyternotebook

so there's a problem with displaying persian letters in my plot here that they seem to break, i solved the problem of left-to-right with adding [::-1] that someone mentioned in a forum but the letters are now in the right alignment (right-to1-left)…
0
votes
1 answer

Android studio IDE change persian comment font

In Android studio 4 IDE, hardly to read the Persian comment with the default font. I tried use another font in setting but no effected. How I can change comment font in Persian. Thanks a lot.
mehdi
  • 340
  • 4
  • 17
0
votes
1 answer

Python unicode translation leaves input unchanged

I have written a python code that is supposed to translate/transliterate Persian characters. Here is a chunk of the translation table: dictionary = { '\u062B': 's̱', '\u062C': 'ǧ', } '\u062B' is "ث" which should be translated to "s̱" but when I run…
Bahador
  • 75
  • 1
  • 11
0
votes
2 answers

is there a way to write Persian in python kivy

i try to write Persian in python kivy but it is not working. from kivy.app import App from kivy.uix.screenmanager import ScreenManager,Screen from kivy.lang import Builder from kivy import Config from kivy.uix.label import Label from kivy.uix.widget…
Pykalier
  • 5
  • 3
0
votes
0 answers

Insert Persian Text from a file into PowerPoint

I am trying to read a plaintext store as UTF-8 and split it into slides in PowerPoint. However, my text doesn't work. Persian is a subset of Arabic typesetting codes. Function convertANSIPersiande(inputStr As String) As String Dim n As Integer …
chikitin
  • 762
  • 6
  • 28