amateur ramblings

i am not qualified to say this

  • Home Blog, bookmarks
  • About Useless information about me
  • Things Useless things I've done
  • Contact How to reach me

June 15, 2008
Posted by yaman

Arabic in Photoshop CS3 in Mac OS X

 

If you have had difficulties typing Arabic text into Photoshop, I have created a Google Code project to develop an open-source script that will provide a solution: Arabic4MacPhotoshop. The Photoshop Script that I wrote will enable Photoshop users to create properly shaped Arabic text in Photoshop graphics.

Arabic Text Broken on Mac OS X PhotoshopCurrently, Arabic text in Photoshop on Mac appears as disconnected characters in backwards-order (pictured to the right). My script, which does not work in all cases and may require some additional fiddling on the part of the user, will automatically convert Arabic text you have entered into Photoshop into legible Arabic script. It will automatically remove all diacritic marks from your text and create individual text layers for each marking, so that you can position them in the correct spot above the appropriate letter. Unfortunately, I don’t know of any simple way to avoid this extra step for the time being.

Arabic Photoshop Fixed by Arabic4MacPhotoshop ScriptWhat this script does is evaluate Arabic characters to determine what the correct shape should be, whether it is at the beginning, middle, or end of a word, and what the preceding character is. It then converts the Unicode representation in memory to the one for the specific ligature rather than the base character. It will then create a new Text Layer with the “fixed” text, as well as additional layers for any diacritic mark (fatha, domma, kasra, shaddeh, etcetera). If you wish to edit your text after this point, you must repeat the process and edit the original, disconnected, backwards text, rather than the “fixed” text. Otherwise you will run into problems.

While this script does not solve all issues, it provides an alternative fix for probably an overwhelming amount of Arabic work that needs to be done in Photoshop. One solution for Mac Photoshop users is this $1,700 modified application which supposedly has completely integrated Arabic functionality as well as other features. I have never used this program since it is more expensive even than the original Photoshop. The other option is to use the free and open-source program the GIMP, which works on Windows, Linux, and Mac, and fully supports Arabic text.

If you are interested in viewing or contributing to the source code for this project in order to make future improvements, please visit the project site: Arabic4MacPhotoshop. Also feel free to report any problems and suggestions so that they might be improved. As this script is released under the GPLv3, any and all revisions must in distribution include the source code in its entirety, and commercial use or reproduction is prohibited.

If you like this free and open-source product, please consider donating to support the development of other tools like it by clicking the button below!


33 Comments

Posted Under Code

33 Comments

  1. Yazan
    June 15, 2008

    If you were on the same continent I’d jump and kiss u “bei 3yonak”! ;)

  2. saint
    June 15, 2008

    Great work, hope others will take advantage.
    Hope you will have a window version in the future.
    But thank you, you reminded me to download GIMP to my daughter since she asked me for photoshop and this is for free and better than upgrading the old photoshp.
    Thanks

  3. yaman
    June 15, 2008

    Hi saint, I don’t have windows but does the same problem exist for the Windows Photoshop? If so, then this script might actually work on Windows as well..

    Yazan, be careful what you wish for, because we will be on the same continent next week I think ;-)

  4. عزير
    June 17, 2008

    That’s amazing!
    I’ve been typing in Word then using the snipping tool to make a PNG graphic to place into Photoshop, but this is very cool!

  5. alharaka
    June 17, 2008

    ربنا يخليك! But still, I do not understand why people just give up and use GIMP. Unless you are professionally required to use Photoshop, we should support more Adobe bloatware.

  6. yaman
    June 17, 2008

    There are a lot of things people should and shouldn’t do but choice of software is, in this case, the last thing I will argue about :) I would say the main reason though is that the GIMP requires more “know-how” in order to reproduce pre-packaged Photoshop filters.

  7. kimo
    July 28, 2008

    sorry..but how do I install the script? do i just add it in the PS plug-ins folder?

    thanks!

  8. yaman
    July 29, 2008

    kimo, there is no installation for the script. You can place it anywhere you would like on your hard drive, and when you would like to use it, simply go to File–>Scripts–>Browse and then select the file on your hard drive and it will run automatically. You will need to run the script for each Arabic text layer individually, every time you type new text.

  9. kimo
    July 30, 2008

    thanks a lot for the tip yaman..will def try it out today..great work! keep it up :)

  10. Debbie
    August 11, 2008

    Great script!….you saved me hours of work:D

  11. Chad
    October 8, 2008

    Yaman,

    You’re a genius bro. Thanks for sharing this wonderful masterpiece this makes my life easy and productive saves the time in conversion and correction.

    And oh, I’m using PC and it works!

    Cheers!

  12. Abu Ismail
    December 19, 2008

    Thanks, man. Helped a lot.

  13. Anton
    January 16, 2009

    I am unable to aply the code to my Photoshop 7 (Windows). How can I do that? Should I use the Automate command?

  14. yaman
    January 16, 2009

    I am not sure Anton. Sorry. However I don’t think Photoshop v 7 is the same as Photoshop v CS3. Maybe if you can find information about scripting in Photoshop 7, you can apply the same script, or make some small modifications to it.

  15. Beshr Kayali
    January 21, 2009

    Woho :) It even works with CS4 :)
    Thanks Yaman :)

  16. krafthans
    January 30, 2009

    Shukran! Thank you! That really helps a lot!.

    Just in case somebody else is having troubles to get the shadda/tashdid with the small alif right when writing “Allah”: Note that there ist a unicode (that exists in Arial font for example) for the whole ligature of lam-lam-ha with shadda and small alif: 65010 [FDF2] ?

  17. Pouyan Savoli
    February 7, 2009

    Dear Yaman, thanks alot for your wonderful program. It made my day! However it needed some modification for supporting additional Farsi characters (P, Zh, Ch, G and Farsi Ye). Could it possible to add me to google project page so I add small modification to source. This way other Farsi users will be able to use this without any problems. I also recommend everyone to make a photoshop macro for .js file for quick and easy use.

  18. armando javier
    February 22, 2009

    thank you very much Yaman, now my long time problem is solved at last,
    it works very well for me, but depending on the fonts used.

  19. rebobaydobay
    April 1, 2009

    Hi,
    I love the idea of this script, I need to translate a site into arabic. Everything seems to work perfectly except the text seems to read from the bottom up – i.e. the lines are reversed. Any idea why this would be?

    |G|

  20. tristam sparks
    April 29, 2009

    thanks so much. my hat is off you you my friend. i work at amnesty international, and you contribution will enable us to control arabic script from the start to the end of the online publishing process.

  21. G Nagle
    April 29, 2009

    Yaman,
    Thank you. You just saved our graphic designer a bunch of time as we enter the Arab-speaking world with our products. Expect a donation shortly.

  22. iman
    June 17, 2009

    Ahlan Yaman,
    Razan told me about this page cause I was asking about the same issue. I downloaded the file, but it opens as a Dreamweaver file. Any idea why it’s doing that?

  23. SAIF
    June 24, 2009

    HOW CAN I USE THIS SCRIPT
    TELL ME PLZ
    THANKS

  24. 3dee
    July 6, 2009

    great script

    im using windows vista and ps cs3 and it worked for me :)

  25. Adhamox
    July 7, 2009

    Thank you so much.. worked for me on Photoshop CS4 Mac..

    Greetings from Egypt
    Adham

  26. Mik
    July 28, 2009

    Really great script, worked perfectly and helped me to make the arabic web banner my company needed. Thanks a lot

  27. isha7ar
    August 2, 2009

    so how does it works ?

  28. shawkat
    August 3, 2009

    so how does it work ?

  29. sha7ar
    August 3, 2009

    this works for me too :D
    HOW TO USE IT ?

    1-add the script file to :
    C:\Program Files\Adobe\Adobe Photoshop CS2\Presets\Scripts\

    2-go to photoshop and wirte some arabic words

    3-in photoshop(cs2,cs3,cs4):
    File >> Scripts >> Arabic4MacPhotoshop-0.2
    and watch the magic ;)

  30. deena
    September 2, 2009

    thank you so much!!! i love you

  31. mark t.
    December 7, 2009

    This is fantastic. You are really making a difference to a lot of people. Thanks for taking the time to do this and for making your hard work available to the rest of us!

  32. ibrahem
    December 23, 2009

    mannnnnnnnnnn !!!!!!!!!!!!!! THAAANKS ALOTTTTTTTTTTTTTTTTTTTTTTT !!! :) :) :)

  33. muslim
    February 2, 2010

    Jazaaka Allahu khairan!!
    it saved my life!

    Big thanx :)

Leave a comment

Connect with your Facebook Account

Note: Your comment will not be approved if you use an invalid e-mail address.

* = Required

    • Asides
    • Twitter
    • Flickr

    Tom Friedman Writes The Happy Ending To The Iraq War He Helped Enable

    OH, HELLO. Here’s some good news, after years and years of promoting the necessary destruction of Iraq and Iraqis, all for the purpose of a war that diverted the United States from pressing issues of national security, Tom Friedman has declared the Iraq misadventure to be a success and has officiall…

    Source: www.huffingtonpost.com

    (Discussion)

    Cops vs. Kids in New York City Schools – NYTimes.com

    It’s time to rein in the way police and safety officers in New York public schools mistreat students.

    Police the police.

    Source: www.nytimes.com

    (Discussion)

    Student Activists Beaten After Rally On Interstate (VIDEO, PHOTOS)

    Produced by HuffPost’s Eyes & Ears Citizen Journalism Unit On March 4th, 2010, demonstrators in California and across the country took to the streets to protest massive cuts at all levels of education and government imposed austerity measures.

    Source: www.huffingtonpost.com

    (Discussion)

    Occupy CA: Statement on Highway Takeover

    Frederick Douglas tells us that power concedes nothing without a demand: Street rebellions force the establishment to yield to the demands of the movement or be faced with an ungovernable, rebellious populace. In short, stopping highway traffic in protest of the dismantling of public education was a…

    Source: occupyca.wordpress.com

    (Discussion)

    Heckling Oren at UCI was right | Taher Herzallah

    We would not be where we are today as a country if people who were politically marginalized had not stood up for their rights. As a student and human rights activist, I expect that our universities will allow space for all points of view, including my nonviolent and heartfelt protestations against O…

    Source: www.ocregister.com

    (Discussion)

    It’s Not about Islam & Judaism, It’s About Anti-Colonialism, Territory, Liberation, and Lives – Nir

    On Sunday, February 28th the New York Times published an outrageous oped by Efraim Karsh full of lies, distortions and mistakes. Karsh claims that Muslims view themselves as part of the House of Islam and the rest of the world as part of the House of War. I have worked in Afghanistan, Pakistan, Soma…

    Nir Rosen destroys many of the myths that are common to American approaches to Iraq, Muslims, and the Middle East in general.

    Source: www.thewashingtonnot…

    (Discussion)

    Kevin Huffman – Tweaking the RNC’s fundraising strategy

    Fear tactics? Not the best fundraising strategy. First, your plan divides Republican donors into two main categories: small donors who are “visceral,” “reactionary” and motivated by “fear,” and large donors who are “calculated,” “ego-driven” and motivated by “access.”

    Source: www.washingtonpost.com

    (Discussion)

    Deportations to tear apart S.F. family

    Charles Washington with his wife Tracey, holding her 5-year-old son, speaks on behalf of his family at the Asian Law Caucus office in San Francisco.

    Gavin Newsom wrecking homes and families in San Francisco.

    Source: www.sfgate.com

    (Discussion)

    Anti-racists turn up the heat at UCSD

    A noose hung to intimidate African-American students is the latest racist incident to spur activism at UC San Diego ahead of the March 4 Day of Action.

    Especially noteworthy is the section about the Black Student Union denouncing the administration-led “leadership bodies” as “a tactic to divide student leaders from the student movement.” All student ‘government’ is a tactic to divide student leaders from students.

    Source: socialistworker.org

    (Discussion)

    Blanco: In Solidarity with 1.3% of UCSD | Racialicious

    The scandal is that many students at UCSD consider black people and communities as a product of their imaginations and consumer habits: an entertainment commodity we pay to watch on MTV, or hear on the radio. A stereotype we have the “right” to enjoy and take pleasure in, because we have paid good m…

    Source: www.racialicious.com

    (Discussion)

    RSS: Tom Friedman Writes The Happy Ending To The Iraq War He Helped Enable http://bit.ly/dl5yLg

    follow me on
    twitter

    Sorry... I have not set my Flickr
    account up yet
  • Categories

    • Absurdities
    • Action Alerts
    • Asides
    • Code
    • Comment
    • Current Events
    • Journal
  •  

This site is using the Handgloves WordPress Theme
Designed & Developed by George Wiscombe

Subscribe via RSS