gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Math Block and Math format: Force LTR direction in RTL languages

Open t-hamano opened this issue 1 year ago • 8 comments

What problem does this address?

Mathematical formulas are always written from left to right, regardless of the language direction. However, in RTL languages, the text input direction is reversed, making it difficult to enter mathematical formulas.

Image

What is your proposed solution?

Apply direction: ltr to the textarea. This approach is also used for HTML and code blocks.

t-hamano avatar Oct 22 '25 02:10 t-hamano

Hi Hamano ! I can add direction: ltr to the Math block textarea,similar to how it's handled it the Code block . Could you please assign this to me?

minhaj-my avatar Oct 22 '25 02:10 minhaj-my

Sorry, for the delay on this issue. I've run into a technical block with my local wp-env setup that I haven't been able to resolve after spending about 2-3 hours . and to worse I had multiple power outage today.

I am extremely sorry.

minhaj-my avatar Oct 22 '25 11:10 minhaj-my

Hi! I noticed this issue is currently assigned, but it hasn’t been updated in a while. I’m interested in contributing — is it still open for someone to work on?

Thanks!

harshbhonsle avatar Oct 25 '25 09:10 harshbhonsle

Yes please

On Sat, 25 Oct 2025, 3:01 pm Harsh Bhonsle, @.***> wrote:

harshbhonsle left a comment (WordPress/gutenberg#72553) https://github.com/WordPress/gutenberg/issues/72553#issuecomment-3446312898

Hi! I noticed this issue is currently assigned, but it hasn’t been updated in a while. I’m interested in contributing — is it still open for someone to work on?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/WordPress/gutenberg/issues/72553#issuecomment-3446312898, or unsubscribe https://github.com/notifications/unsubscribe-auth/BATZYPPHK6EJAON22HBMFBD3ZM377AVCNFSM6AAAAACJ3CFYA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINBWGMYTEOBZHA . You are receiving this because you were mentioned.Message ID: @.***>

minhaj-my avatar Oct 25 '25 09:10 minhaj-my

#72684 solved the Math "block" problem, but the Math "format" problem still needs to be solved separately.

Image

t-hamano avatar Oct 27 '25 01:10 t-hamano

Hi! Could you please explain what you mean by "Math format"? I understand the Math block part, but I'm not sure what the format refers to. Thanks!

harshbhonsle avatar Oct 29 '25 13:10 harshbhonsle

Could you please explain what you mean by "Math format"?

Please look closely at this comment. Just like inline code and inline image, there is also "inline math". This is the math format.

t-hamano avatar Oct 29 '25 13:10 t-hamano

@t-hamano I've sent a PR to fix it. Please review it.

okawayasuno avatar Nov 01 '25 09:11 okawayasuno