mojira.dev
MC-268905

Minecraft quotation mark (") is not the same as some text documents quotation mark

Note: I cannot find the dupe, so comment if you found one.

Minecraft quotation mark is not the same as some text documents quotation mark (such as Word). This seems like a minor/unnecessary issue but it's actually kinda major. Some people (including me) use and edit a lot of commands. Of course, it's much easier to edit commands in text documents than in Minecraft itself. And since the quotation mark is also use a lot in commands and the most popular text documents is Word, this make edit commands with quotation mark very annoying.

Step to reproduce:
Step 1: Open Microsoft Word and type (but not copy): /summon minecraft:enderman ~ ~1 ~ {carriedBlockState:{Name:"minecraft:bedrock"}}
Step 2: Copy that text, then in the Minecraft world, press "T" and then press "Ctrl+V", then press "Enter" -> Note that the command didn't success.
Step 3: Now press "T" again, then type (but not copy) that text above; or press the up arrow key, then remove the old (") and add back the ("), then click "Enter" -> Note that the command successed.

I also tested some other text documents and found out that the same thing happened to PowerPoint (although clearly PowerPoint is not a text document), but it doesn't work with Excel and Notepad.

Edit: I researched further and found that the Microsoft Word quotation mark is the "right double quotation mark" and the Minecraft quotation mark is the normal "quotation mark".

Attachments

Comments 4

minecraft commands never support the right double and the left double quotation marks. and microsoft word is a bad option for editing commands with quotation marks since it will convert the normal quotation mark to the left or the right double quotation mark. if I were you, I would use notepad instead.

There is only one quote key on the keyboard, typing curly quotes is difficult. So Microsoft office has a feature that helps you type curly quotes. It can automatically convert normal quotes (", aka. straight quotes) to curly quotes. When you type a straight quote the first time, it converts it to a left curly quote (“), and then when you type another straight quote, it converts to a right curly quote (”). You can turn off the automatic conversion in the settings of Microsoft office. Straight quotation marks are deprecated on printed materials, so Microsoft office converts them by default.

The curly quotation marks are called "typographic quotation marks" and look like “this”, and some languages use them like „this“. Other languages use chevrons/guillemets like « this » or »this«.

In programming and also usually when writing something with your keyboard, typically you only use the "typewriter" quotation marks, which look like "this". Microsoft Word and other word processing applications automatically convert these into the typographic quotation marks for your selected language. However, applications that are not used for typesetting generally do not do this.

Since typographic quotation marks depend on the language and most keyboards have no way of typing them without a program converting them for you, Minecraft commands, like the vast majority of programming languages, do not support typographic quotation marks at all.

I'm closing this as a feature request since this is essentially requesting for new syntax to be added to Minecraft commands.

If you want to write commands outside of Minecraft, I recommend using the built-in Windows Editor for small projects, or a more fully-fledged editor like VS Code for larger projects. Neither of these convert quotation marks.

Ok thanks, I didn't know that.

Brain81505

(Unassigned)

Unconfirmed

(Unassigned)

1.20.4, 24w09a

Retrieved