Punctuation marks at the end of LTR paragraphs in an RTL blog get jumbled

  • Unknown's avatar

    I have a blog on Twenty Twelve suit – a bilingual RTL/LTR suit. I use Hebrew and English.
    When I enter text in English – e.g., as a quote – the punctuation mark at the very end of the paragraph is “kicked back” to the beginning of the last line – i.e., at the left-hand side of the last line rather than at the right-hand side of it.
    Here’s an example, at para 5 and 6: https://amirlicht.wordpress.com/2017/03/06/76/
    This looks like a problem and it looks bad.
    Any solution?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Adding a modlook tag.
    Looking forward to some advice.
    Thanks.

  • Unknown's avatar

    Solved.
    More digging in the forums yielded the solution, from here:
    https://en.forums.wordpress.com/topic/bilingual-posts-hebrew-english?replies=1

    1. Go to the HTML tab of the post.
    2. In the paragraphs that read from right-to-left add “dir=rtl” to the paragraph tag so it reads: <p dir=rtl>.

  • Unknown's avatar

    Glad to hear you got this sorted. If you need any more help, just let us know!

  • Unknown's avatar

    Since you found the answer, I’ve removed the modlook tag. Thank you for looking!

    One other tip you may find useful is when your cursor is in the Post Editor box, you can also right click and select “Writing direction.” (However, this doesn’t work in the forums.) This should automatically add the RTL tag like so:
    <p style="direction: rtl;">טקסט</p>

    I’ve checked this in my test blog and it appears to work correctly.

  • Unknown's avatar

    And that’s what happens when you don’t refresh first. :)

  • Unknown's avatar

    Thanks much for your attention and help.
    Best

  • Unknown's avatar

    Thanks for that @justjennifer, I wasn’t aware you could set the writing direction using a right click. I’ve tested this on my test blog too and it works well — no need to manually add the tags :)

  • Unknown's avatar

    Yep, this seems to work.
    Still, it would be nice to have LTR/RTL buttons in the advanced editor ruler.

  • Unknown's avatar

    Hi again,
    Well, not so quickly.
    Please look here: https://amirlicht.wordpress.com/2015/03/12/4/
    Please ignore the Hebrew text [or enjoy it:)] and focus on the paragraphs in English. I have now edited the first para in English and inserted “dir=ltr” in the html view, but only in the first para. This para now shows correctly, with the full stop at the end of the last sentence.
    If you right-click on any other English para you will see that the writing direction is left-to-right but they are jumbled nonetheless, the full stop showing at the end of the para showing on the left-hand side of the last line.
    So there is need to manually add the tags, which is quite inconvenient and probably unknown to most bloggers.
    Please forward this to anyone who may help.
    Thanks,
    Amir

  • Unknown's avatar

    Hi Amir,

    Yes I see what you mean. Interestingly, some of the LTR paragraphs have a full stop in the right place. It’s correct in the paragraph that starts, “Here there are two principles applicable”.

    Further down the full stop appears on the left. I can see this in the paragraph that starts “Any person employed in the public service who”. It looks like the full stop has been inserted in RTL mode — which is why it is appearing on the wrong side for LTR text.

    At the moment there are two options:

    1. Add the RTL tags manually

    2. Use the the following button on the editor in the WP Admin Dashboard:

    https://cloudup.com/csGXFXuW9WV

    It looks like this button is missing from the new editor though, so I’ll raise that issue.

    Thanks!

  • Unknown's avatar

    Hi,
    Precisely. The “Here there are” para is the one into which I manually inserted the dir=ltr tag yesterday.
    All the others are without it, yet when you right-click them in html they show writing direction left to right.
    Until that button is added to the editor I’ll insert tags manually.
    Thanks for taking care of this issue.
    Best,
    Amir

  • Unknown's avatar

    Hi Amir,

    No problem, I’ll report this issue and let you know when I have an update.

    Thanks!

  • Unknown's avatar

    Hi Amir,

    Just wanted to give you an update. A Text Direction button is now visible in the editor when you select a RTL interface language:

    https://en.support.wordpress.com/language-settings/#interface-language

    This screenshot shows the button location:

    https://cloudup.com/cemZcC-xzqJ

    Have a great weekend!

  • Unknown's avatar

    Hi Gemma,
    Thanks much for the update. This is good news.
    Can you also show this button when LTR interface language is selected? Many Hebrew users, myself included, use LTR for user interface in their web browser, office s/w, etc., because the Hebrew translation of technical terms is often quite awkward. More importantly, English speaking WP users who blog on issues that involve Hebrew, Arabic, or Hindu would find such a button highly useful.
    Best,
    Amir

  • Unknown's avatar

    Hi Amir,

    I’ll make a request for the button to also be included to TLR interface languages too.

    Thanks!

  • The topic ‘Punctuation marks at the end of LTR paragraphs in an RTL blog get jumbled’ is closed to new replies.