#1
|
|||
|
|||
Rtl text aligned right and ltr text aligned to left in one line - HOW?
Hello,
i need to format a dictionary for layout. The first language of the dictionary is LTR and the second one is a RTL language. Now i have seen in other dictionaries that they have managed to align the LTR language to left and the RTL language to the right side in the same line. I need to do that as well. I am uploading an example file, where the RTL text starts with °° and ends with °°°. Example of my current data: (see attachment for more details) abats n.m.pl. °°د بوده ګانو لړمون°°°. abat-son (pl. ~-~s). °°کوزې خوا ته د غږ د راماتولو ترتیبات°°°. abattage n.m. °°وهنه (د ونې) ؛ حلالونه، کوتنه، وژنه°°°. abattement n.m. °° ۱ـ بېسېکي ؛ نا امیدي ۲ـ د مالیې تنقیص °°°. abatteur n.m. °°د ونو وهونکی°°°. abattis n.m.pl. °°د چرګانو سر او پښې او لړمون ؛ د انسان لاسونه او پښې (.pop) ؛ د نړول شوؤ شیانو کوټه°°°. abattoir n.m. °°مسلخ، کوتنځی، کوتلځی°°°. I found some examples which suggest that it is possible what i want to do. The question is: how to? Can anyone here help me solve this problem? Note: This thread is also posted to excelforum.com with following link: https://www.excelforum.com/word-form...ml#post4739817 Last edited by wordnew; 09-10-2017 at 11:44 PM. Reason: examples |
#2
|
|||
|
|||
You would use a two-column borderless table. (Or, if you want two columns of words/definitions as in your screenshot, a four-column borderless table.) The first (and third) column would be set for left-alignment, the second (and fourth) for right-alignment.
4. Use Tables and Tabs to Arrange Text in Microsoft Word Tables You could use one paragraph style in the first column and another in the second. These could have the proofing language set appropriately as well as the allignment. |
#3
|
|||
|
|||
Dear Charles Kenyon,
thank you very much for your reply to my thread. I tried the method you have kindly suggested but the columns remain fixed sized in this method. I mean i can change their width but that width remains for all other words. I am rather looking for a solution which will make my layout like in the image examples i have posted in my first post. In the examples that I have posted there are no fixed columns for words and meanings. Some times is the meaning longer and sometimes the word takes more place than the word befor it. And my task is to get to that solution where for each word and its meaning there is no fixed width. The original word file of my dictionary has over 1500 pages. My hope is that i can find an automated solution for the whole file, after which my layout looks like in one of the example images i have posted in this thread. |
#4
|
||||
|
||||
What are the degree symbols for?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Dear Macropod, I had added bevor and after each field (Word, Grammar Identities, Translation) different symbols, with the hope that these symbols will help me in possible automised solution. In other words these symbols can just be deleted.
I am uploading first three pages of real file with this post. |
#6
|
|||
|
|||
Quote:
It is more work than a two-column table but will allow text on the left and right to overlap. This is what is called Flush justification in Wordperfect. Note that this workaround is imperfect and requires a great deal of manual tweaking.
|
#7
|
||||
|
||||
Perhaps you can get what you want with some major reformatting, for which you might use a macro like:
Code:
Sub Demo() Application.ScreenUpdating = False Dim i As Long, Rng As Range Set Rng = Selection.Range With ActiveDocument With .Range With .Find .ClearFormatting .Replacement.ClearFormatting .Forward = True .Format = False .MatchWildcards = True .Wrap = wdFindContinue .Text = "°°°" .Replacement.Text = "" .Execute Replace:=wdReplaceAll .Text = "°°" .Replacement.Text = "^p" .Execute Replace:=wdReplaceAll .Wrap = wdFindStop .Text = "^t*^13*^13" .Replacement.Text = "^p" .Execute End With Do While .Find.Found i = i + 1 If i Mod 100 = 0 Then DoEvents .ParagraphFormat.TabStops.ClearAll With .Paragraphs.Last.Range.ParagraphFormat .FirstLineIndent = 0 .LeftIndent = 0 .RightIndent = InchesToPoints(0.5) .Alignment = wdAlignParagraphJustify .ReadingOrder = wdReadingOrderRtl End With .Paragraphs.First.Range.Select Selection.InsertStyleSeparator .Collapse wdCollapseEnd .Find.Execute Loop End With End With Rng.Select Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] Last edited by Charles Kenyon; 10-29-2019 at 08:34 AM. Reason: Mark as answer |
#8
|
|||
|
|||
Dear Charles Kenyon and macropod,
thank you both very much for your kind help. Macropod's VBA Code repaired my whole document at once. God bless you. |
#9
|
||||
|
||||
FWIW, the keys to reformatting your document were:
1. Splitting each entry into two paragraphs, one with LTR the other with RTL formatting; and 2. Applying a Style Separator to the first of these paragraphs to remove the gap between them. You can see the effect if you click on the ¶ symbol on the Ribbon's Home tab to display the formatting marks.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#10
|
|||
|
|||
You can use this style that I get it from my customized table of content style, "TOC 1"
______________________ Font: (Default) Cambria, (Complex) Persian (Iran), Complex Script Font: B Nazanin, Right-to-left, Right Before: 0/63 cm Hanging: 0/63 cm, Right-to-left Line spacing: Multiple 1/15 li, Space After: 5 pt Tab stops: 0/68 cm, Right + 1/55 cm, Right + 16/69 cm, Left,Leader: …, Bulleted + Level: 1 + Aligned at: 0/63 cm + Indent at: 1/27 cm, Style: Linked, Automatically update, Hide until used, Show in the Styles gallery, Priority: 40 Based on: Normal Following style: Normal ________________________ I Hope this is helpfull |
#11
|
|||
|
|||
LTR -RTL mixed line problem
Dear macropod;
I have the same problem. Could you help me!? I try to follow your steps in file A_style_separator.docx. Two highlighted records are based on your solution. The yellow one misplaces the words. the cyan is left justified instead of fully justified. The original file is A.docx. LTR paragraph is in English followed by RTL paragraph. Would you be so kind as to help me out. I would deeply appreciate it. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The "body of text" for all odd-numbered pages are all "vertically-centered-aligned". | keepcalmandreadabook | Word | 5 | 03-27-2017 04:08 PM |
Inserting Symbols and Keeping Text Aligned- THANK YOU! | StuartS | Word | 1 | 07-21-2016 10:00 PM |
Position pictures so they are right aligned with margin | TomPC | Word | 2 | 04-22-2015 01:38 PM |
can't get text to stay aligned for printing | cherd | Word | 1 | 10-06-2011 03:20 AM |
Footnote text is not aligned with the corresponding number | Patrick1988 | Word | 0 | 08-28-2010 09:33 PM |