Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Incorrect Persian printing #1912
Comments
|
Could you please explain the exact problem for non-persian speakers? |
|
Because Persian is right to left language, while English is left to right and some letters join together in words, while terminal behave it like a left to right language and doesn't join those some letters, in terminal I use fribidi to correct this problem, |
|
This feels like it's the responsibility of the terminal and not the application. |
|
When terminal does not this work, why should not program do this work?! |
|
In general, we cannot detect bidi functionality in the terminal. youtube-dl 2013.09.12.1 and newer contain an option |
|
Great thanks to Phihag! |
|
This is not a good support: youtube-dl --proxy "" http://www.aparat.com/v/teYF2 WARNING: Falling back on generic information extractor. [generic] teYF2: Downloading webpage [generic] teYF2: Extracting information [download] Destination: حلقه هوشمند برای کنترل تلفن-cc8ea41f89ccbcdcec29ead49651 01d6859928.apt [download] 0.0% of 2.61MiB at 548.20KiB/s ETA 00:04 [download] 0.1% of 2.61MiB at 599.64KiB/s ETA 00:04 [download] 0.3% of 2.61MiB at 36.77KiB/s ETA 01:12 [download] 0.6% of 2.61MiB at 75.73KiB/s ETA 00:35 [download] 1.2% of 2.61MiB at 24.84KiB/s ETA 01:46 [download] 1.7% of 2.61MiB at 20.68KiB/s ETA 02:06 Program prints correctly lines included Persian words, but prints percentage line repeatedly! |
|
I enabled that option because fribidi does not support the line removing (or more precisely, partial lines in the first place). I just rewrote the support to use a different approach that's more complicated, but does not have tihs downside. Update to youtube-dl 2013.12.09.2 to test it. |
|
Thank you, this is better. |
|
@phihag I think fribidi has problem with long lines while bidiv doesn't have this problem, but bidiv has problem with half-distance, I suggest you to replace fribidi with bidiv. |
|
@xubuntu4iran Can you post a test case describing how it should look? And I'd rather fix the problem with long lines than incur yet another problem. |


There is a program for terminal named fribidi, is it possible to impelement that to print correctly 5th line?