Announcement

Collapse
No announcement yet.

Word Processing Tips for Blogging

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Word Processing Tips for Blogging

    http://www.syavash.com/portal/pinglish2farsi/conve...

    How to Mix English and Farsi Text

    When confronted with html text editors incapable of producing the desired formatting, I simply disable the rich-text and resort to using html tags. Consequently, I can mix English and Farsi sentences and paragraphs together while creating the desired format for both sets.

    The most useful html tag is the alignment tag with either left or right justification values: <align="left"> or <align="right">

    The alignments tags must be added to the beginning of each paragraph as such: <p align="right"> For example, the following two sentences are left and right justified respectively:

    Put down the gun, and Pick up the Pen!



    هموطن، سلاحت را کناربگزار، دست بر قلم بردار

    How to Configure Microsoft Word for Farsi

    If you already have access to Microsoft Word, there is no need to purchase a separate Farsi word processor. Microsoft Word can be configured for the Farsi language. For a detailed description, please refer to

    http://www.microsoft.com/middleeast/arabicdev/fars

  • #2
    What if bloggers wish to insert one or more Farsi words inside an English sentence and vice versa? The text formatting is awkward and practically unreadable.

    Using the html text editor in Iranian.com site, I was able to manipulate html tags until I could produce such a coveted feature. Here are the required steps:

    Mixing Farsi Words with English

    Please disable the rich-text first. To mix Farsi words inside an English passage, enter the following on separate lines.

    <p align="left">
    <span dir="rtl" lang="FA">کورش کبیر</span><br />
    <span dir="ltr">is the founding father of our nation. </span><br />
    <span dir="rtl" lang="FA">فرزندان کورش </span><br />
    <span dir="ltr">showered his resting place with flowers.</span>
    < /p>

    Mixing English Words with Farsi

    Please disable the rich-text first. To mix English words inside a Farsi passage, enter the following on separate lines.

    <p align="right">
    <span dir="rtl" lang="EN">Korosh Kabir </span><br />
    <span dir="rtl">پدر ملت ایران است.</span><br />
    <span dir="rtl" lang="EN">Iranians </span><br />
    <span dir="rtl">گل به سوی آرامگاه کورش پرتاب کردن. </span>
    </p>

    The output of the above html code will be the following text:

    کورش کبیر

    is the founding father of our nation.

    فرزندان کورش

    showered his resting place with flowers.

    Korosh Kabir

    پدر ملت ایران است.

    Iranians

    گل به سوی آرامگاه کورش پرتاب کردند.

    A Brief Description of the Tags:

    The span tag provides no visual change by itself. Instead it provides a hook to one part of the text. This hook allows you to add different styles to the content and manipulate the text. The opening and closing paragraph tags mark the beginning and the end of a paragraph respectively.

    The dir tag sets the direction of the text from right to left or left to right. The lang tag sets the language used for the text immediately following the tag. Valid values are EN for English or FA for Farsi. The br tag stands for break and inserts a line break. Without it, the desired formatting can’t be achieved.

    You are forewarned!

    Comment

    Working...
    X