The Farsi tag is for issues relating to Persian (Farsi, فارسی, پارسی) language.
Questions tagged [farsi]
247 questions
4
votes
2 answers
Parse two words in Persian which are concatenated by half space (\u200c)
I'm dealing with Persian language poems (The language alphabet is almost the same as Arabic). For each line of the poem in my file, I want to parse its words and hold them in another list as monolithic words. The problem is that some words are…

m0ss
- 334
- 2
- 4
- 17
4
votes
0 answers
How to add custom font to PhpOffice/PhpWord package
I am trying to generate .docx file from html with PhpWord package (here).
I want to use a custom Persian font (b-Nazanin) in my file. I got these formats of the font: (.ttf, .woff, .z, .cfg.z, .php).
Is there a way to add custom fonts to the PhpWord…

mohamadmamghaderi
- 41
- 1
4
votes
1 answer
Display Arabic/Persian letter/character separately in Java?
I want to properly separate each letter/character of an Arabic/Persian word, in an isolated letter/character without changing it's face, and persisting their medial/initial/isolated/final form,
Here's an example:
Regular segmentation:
بابا ====> ب…

Shaheen Zahedi
- 1,216
- 3
- 15
- 40
4
votes
1 answer
Encoding Persian string using C#
I am developing an SMS application using C# for the bank which sends transaction alerts i.e. ATM transactions to the customer through the SMS gateway. The application is working fine, the only issue is encoding the Persian text, it doesn't encode…

Hizbullah Watandost
- 217
- 2
- 11
4
votes
3 answers
How to change text alignment in GitHub readme?
I'm editting my GitHub readme and I need to add text in two different alignments. Part of the readme is in English and should be left to right and another part is in a different language (Persian, in my case) which has a right to left alignment.…

Pedram
- 2,421
- 4
- 31
- 49
4
votes
0 answers
Parsing Farsi strings using pdf_text in R
I am attempting to parse this pdf file from the Afghanistan Independent Election Commission (listing polling centers planned for elections held on Oct 20) into a csv file using R. I was able to successfully do this for the English-language version…

cjsc
- 95
- 5
4
votes
3 answers
dot (.) in HTML is misplaced
I am working with some Right to Left languages in HTML and the dot at the end of the sentence is always misplaced in browser. It looks fine in text editor but I cannot get the dot to go all the way at the end of the sentence when shown in browser. I…

fardin
- 1,399
- 4
- 16
- 27
4
votes
3 answers
Adobe Premier CC - Farsi Titles are shown Separate and Reversed
I am using Adobe Premier Pro CC v8 for subtitling a video clip in Persian. Texts in titles are shown as sequences of separate letters and are being typed in reverse. I used several Persian fonts and reduced kerning to 0, which did not help. I also…

hana
- 41
- 1
- 3
4
votes
1 answer
representing a sequence of byte strings in Farsi format
I have a sequence of UTF-8 characters, for example something like this:
\xd8\xa2\xd8\xb4\xd9\x86\xd8\xa7\xdb\x8c\xdb\x8c \xd8\xa8\xd8\xa7 \xd8\xa2\xd8\xb1\xd9\x85\xd8\xa7\xd9\x86 \xd9\xbe\xd8\xb1\xd9\x88\xda\x98\xd9\x87 \xd9\x84\xd8\xba\xd8\xaa…

TJ1
- 7,578
- 19
- 76
- 119
4
votes
2 answers
Tell if specific char in string is a long char or a short char
Be prepared, this is one of those hard questions.
In Farsi or Persian language ی which sounds like y or i and is written in 4 different shapes according to it's place in word. I'll call ی as YA from now for simplification.
take a look at this image…

Mahdi Tahsildari
- 13,065
- 14
- 55
- 94
4
votes
2 answers
Dipaly farsi text in android webview (for phones not supporting farsi)
In farsi letters are attach together to form writing scripts. However when I save HTML pages using "UTF-8" or "Windows-1256" encdoings, and try to display them using webview in android, letters are diplayed seperately and in left-to-right direction…

VSB
- 9,825
- 16
- 72
- 145
3
votes
0 answers
How could i extract persian numbers from an image in c#
I want a code that takes the image of a fisherman's check and first accurately detects the location of the fisherman's ID in the image, and then extracts the fisherman's ID, which contains 16 Persian digits, and displays the extracted Persian…

Aidin Barmalaei
- 63
- 5
3
votes
2 answers
How to make spacy train faster on NER for Persian language
I have a blank model from spacy, in the config file I use the widget Training Pipelines & Models with this config:
Language = Arabic
Components = ner
Hardware = CPU
Optimize for = accuracy
then in config-file I changed the:
[nlp]
lang =…

miladjurablu
- 31
- 1
- 5
3
votes
3 answers
Mirrored actions on UIActivityViewController, swift, with persian language (iOS 15.4)
screen shot
As you can see my actions are mirrored while I set my application language to persian.
It just happening on iOS 15.4 older versions are works fine
my main text share is in persion and it's not mirrored, just my actions are mirrored.
this…

Sepehr Keyhani
- 31
- 3
3
votes
0 answers
how to embed N-grams
for improving my model I use to give character based 3- Gram instead of word :)
the code snippet is in below:
def MakeNGram(sent_list, N, vocab_size, seq_size):
NGramList = []
for sent in sent_list:
# ----------------------------…

Maryami Najafi
- 127
- 8