Skip to content

Improve English grammar in user-interface text. - #2075

Merged
fxha merged 15 commits into
marktext:developfrom
brainchild0:en_grammar
Jun 7, 2020
Merged

Improve English grammar in user-interface text.#2075
fxha merged 15 commits into
marktext:developfrom
brainchild0:en_grammar

Conversation

@brainchild0

@brainchild0 brainchild0 commented Apr 29, 2020

Copy link
Copy Markdown
Contributor

Thank you to all contributors for undertaking this wonderful project.

Although I have long found Markdown to provide the best platform for writing, I often thought that I was the only one who disliked the common variety of editors styled with two side-by-side panes for plain text and live preview. Being unable to write directly in formatted text has been a major distraction in using Markdown.

More recently, a handful of truly WYSIWG editors have emerged, but confined to the commercial space.

It will vastly improve the user experience to have available an application that is enjoyable too use, free to distribute, and open for contributions.

I am also excited about the Muya project, which will allow integration with generic applications.


Because I am a native speaker of English, I noticed that the user strings might be revised to follow standard grammar.

I prepared a PR with proposed revisions. Unfortunately, I have no environment to build or to test. However, because the changes merely revise static strings, I expect integration would be virtually problem free.


  • Bug fix?: no
  • New feature?: yes
  • Breaking changes?: no
  • Deprecations?: no
  • New tests added?: not needed
  • Fixed tickets: none
  • License: MIT

@Rexogamer Rexogamer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a fellow native English speaker, I really appreciate this! I just have a few suggestions.

Comment thread src/main/menu/templates/help.js Outdated
Comment thread src/main/menu/templates/help.js Outdated
Comment thread src/muya/lib/ui/formatPicker/config.js Outdated
Comment thread src/muya/lib/ui/formatPicker/config.js Outdated
Comment thread src/main/menu/templates/format.js Outdated
Comment thread src/renderer/prefComponents/editor/config.js
Comment thread src/renderer/prefComponents/editor/index.vue Outdated
Comment thread src/renderer/prefComponents/editor/index.vue Outdated
Comment thread src/renderer/prefComponents/editor/index.vue Outdated
Comment thread src/renderer/prefComponents/spellchecker/index.vue Outdated
@brainchild0

Copy link
Copy Markdown
Contributor Author

Thank you for the suggestions. I welcome the comments and appreciate the discovery of errors.

@Rexogamer

Rexogamer commented Apr 29, 2020 via email

Copy link
Copy Markdown
Contributor

@fxha fxha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brainchild0 @Rexogamer Thanks for the contribution and the great feedback!

Comment thread src/main/menu/templates/format.js Outdated
Comment thread src/main/menu/templates/paragraph.js
Comment thread src/main/menu/templates/view.js Outdated
Comment thread src/renderer/prefComponents/editor/config.js
Comment thread src/renderer/prefComponents/editor/index.vue Outdated
Comment thread src/renderer/prefComponents/general/index.vue Outdated
Comment thread src/renderer/prefComponents/spellchecker/index.vue Outdated
Comment thread src/renderer/prefComponents/spellchecker/index.vue Outdated
Comment thread src/renderer/prefComponents/spellchecker/index.vue Outdated
Comment thread src/renderer/prefComponents/spellchecker/index.vue Outdated
brainchild0 and others added 4 commits May 21, 2020 11:44
Drop instructions for adding dictionaries from label to list of currently installed ones.

Co-authored-by: Felix Häusler <[email protected]>
Resolve language for white space handling in code blocks.

Co-authored-by: Felix Häusler <[email protected]>
@brainchild0

brainchild0 commented May 24, 2020

Copy link
Copy Markdown
Contributor Author

I have attempted to apply as many of the comments as possible at the present time.

For purposes of housekeeping, I have marked all conversations as resolved. Please be free to comment further if you find unfixed problems.

Currently, three questions remain, which I feel are structural rather than grammatical, but may be dependencies for this request.

The structural questions are as follows:

  1. Following the earlier discussion, the user might be confused about why language detection is unavailable, if use of the spell checker is required and if no explanation is given for this requirement. Also, if support is only available for Mac users, then I wonder whether the application should simply hide (rather than disable) the option, depending on an OS check.

  2. My best understanding of the handling of trailing line breaks is that the configurability reduces to two separate binary options, which have orthogonal effects, and also apply to mutually exclusive conditions. The two possible values for each of two options is of course four total options, as in the drop-down menu.

    The two options are the following, as I understand:

    1. If the file ends in no line breaks, then do nothing, or append one line break.
    2. If the file ends in multiple line breaks, then do nothing, or truncate all line breaks in excess of one.

    Because the questions are separate, phrasing the answers to both in a single sentence is difficult. I feel inclined to suggest that the design be changed to incorporate two separate checkboxes, one for each question.

  3. The text relating to emphasis needs to be consistent in two respects. First, the same language must be used in both the pop-up tool tips and the menu. Second, the language must commit either to the semantic feature of emphasis or to the physical feature of letter style.

    Currently, neither constraint is followed. However, as three out of four instances of this text is the semantic case, I chose to adopt that convention for the revisions.

    I identify the following three options:

    1. Italic and bold: Simple and familiar, but not strictly correct, as many Markdown enthusiasts will notice. (In some cases users may even alter editing display with custom styles, once the feature becomes supported.)
    2. Emphasis and strong emphasis: Cumbersome, but accurate. Used in some applications, but fewer than above. Alongside icons that show the letters I and B in corresponding letter style, unlikely to cause misunderstanding.
    3. Emphasized and strong: As above, but slightly more compact.

@brainchild0

This comment has been minimized.

@fxha

fxha commented May 24, 2020

Copy link
Copy Markdown
Contributor

Following the earlier discussion, the user might be confused about why language detection is unavailable, if use of the spell checker is required and if no explanation is given for this requirement. Also, if support is only available for Mac users, then I wonder whether the application should simply hide (rather than disable) the option, depending on an OS check.

The option will be only shown when macOS spell checker is used (#2138). In addition we need to notify the user about the compatible issue with underlined words like "This feature is only enabled if spelling mistakes are underlined." because there are no backend checks. The spell check is most likely disabled but I cannot test this because I don't own macOS.

My best understanding of the handling of trailing line breaks is that the configurability reduces to two separate binary options, which have orthogonal effects, and also apply to mutually exclusive conditions. The two possible values for each of two options is of course four total options, as in the drop-down menu.

That's wrong because all cases are valid options depending on the users preferences. The options are:

  1. Trim trailing newlines: Remove all ending newlines before saving.
  2. Insert final newline: Remove all ending newline and ensure a single one before saving.
  3. Analyse each file and apply either 1, 2 or 4.
  4. Allow unlimited newlines and don't change anything before saving.

The text relating to emphasis needs to be consistent in two respects. First, the same language must be used in both the pop-up tool tips and the menu. Second, the language must commit either to the semantic feature of emphasis or to the physical feature of letter style.

I still prefer bold and italic because it's most commonly used. Further opinions @Jocs @Rexogamer ?

@Rexogamer

Copy link
Copy Markdown
Contributor

My best understanding of the handling of trailing line breaks is that the configurability reduces to two separate binary options, which have orthogonal effects, and also apply to mutually exclusive conditions. The two possible values for each of two options is of course four total options, as in the drop-down menu.

That's wrong because all cases are valid options depending on the users preferences. The options are:

  1. Trim trailing newlines: Remove all ending newlines before saving.
  2. Insert final newline: Remove all ending newline and ensure a single one before saving.
  3. Analyse each file and apply either 1, 2 or 4.
  4. Allow unlimited newlines and don't change anything before saving.

I’m presuming this means that 3 is used alongside one of the other options (eg 3 and 1)?

The text relating to emphasis needs to be consistent in two respects. First, the same language must be used in both the pop-up tool tips and the menu. Second, the language must commit either to the semantic feature of emphasis or to the physical feature of letter style.

I still prefer bold and italic because it's most commonly used. Further opinions @Jocs @Rexogamer ?

I agree, bold/italic would be better as it just seems more commonly understood to me.

@Jocs

Jocs commented May 24, 2020

Copy link
Copy Markdown
Member

I identify the following three options:
Italic and bold: Simple and familiar, but not strictly correct, as many Markdown enthusiasts will notice. (In some cases users may even alter editing display with custom styles, once the feature becomes supported.)
Emphasis and strong emphasis: Cumbersome, but accurate. Used in some applications, but fewer than above. Alongside icons that show the letters I and B in corresponding letter style, unlikely to cause misunderstanding.
Emphasized and strong: As above, but slightly more compact.

I also prefer Italic and bold, Because it corresponds to the shortcut key. Cmd + B and Cmd + I

@Jocs

Jocs commented May 24, 2020

Copy link
Copy Markdown
Member

@brainchild0 @Rexogamer Thank you, great work!

@brainchild0

brainchild0 commented May 24, 2020

Copy link
Copy Markdown
Contributor Author

My understanding is still lacking for handing of trailing newline characters, but I believe it is at least improving.

Every file at any time falls into one of three categories: a) It has no trailing newline characters, b) it has exactly one, or c) it has more than one.

I believe we all agree so far.

Now I am understanding that option (1) causes the resulting file to have no trailing newline characters, regardless of how many it had before. Option (2) causes it to have one newline character, regardless of how many it had before. Option (4) has no effect.

But you are describing option (3) as "analyzing" the file. Can we please be explicit? If the three possibilities are that the initial number of newline characters is a) 0, b) 1, or c) N > 1, then what is the result for option (3) in each case?

@fxha

fxha commented May 24, 2020

Copy link
Copy Markdown
Contributor

But you are describing option (3) as "analyzing" the file. Can we please be explicit?

The third option checks the end of the document while loading the file and set it to a (1), b (2) or c (4). After the document is edited by the user, the text is formatted by a, b or c. That means the third option is never used by the editor to format the document but is used by the document decoding process while loading a file to detect and apply one of the other options. If you set 1, 2 or 4 in settings we don't care about the existing format of the file and just overwrite the ending.

@brainchild0

Copy link
Copy Markdown
Contributor Author

So if the file has three trailing line breaks when it is opened, under option (3), and the editing buffer has no trailing line breaks when the file is saved, then the application appends the three lines breaks to the saved file? And if the buffer has ten trailing line breaks when the file is saved, then the application truncates seven line breaks?

 - Unify emphasis descriptions, using words "italic" and "bold".
 - Add note that language detection depends on enabling feature
   for highlighting spelling errors.

@fxha fxha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please change traling to trailing, thanks.

So if the file has three trailing line breaks when it is opened, under option (3), and the editing buffer has no trailing line breaks when the file is saved, then the application appends the three lines breaks to the saved file? And if the buffer has ten trailing line breaks when the file is saved, then the application truncates seven line breaks?

@brainchild0 That's wrong because we disable formatting when there are more than 1 new lines while opening a file and (3) is used. I made a suggestion that should be fine.

Comment thread src/main/menu/templates/view.js Outdated
Comment thread src/renderer/prefComponents/editor/config.js Outdated
Comment thread src/renderer/prefComponents/editor/config.js Outdated
Comment thread src/renderer/prefComponents/editor/config.js Outdated
@brainchild0

brainchild0 commented May 30, 2020

Copy link
Copy Markdown
Contributor Author

I still lack a clear understanding of the behavior and meaning, but we can use whatever text you want.

I accepted the comments and revisions. These changes appear in commits up to and including 9f44ea3.

I also made a few more find adjustments in b39b662.

I am mostly comfortable with everything except the language about the trailing new lines.

Two further possible revisions moving forward include using ellipsis (...) consistently following items that invoke a dialog box, and deciding whether to keep colon characters in the text for the GitHub fields.

brainchild0 and others added 4 commits May 31, 2020 20:23
  - Describe thematic break as "horizontal rule", which accords with
    decision to use terms "italic" and "bold" instead of their
    semantic counterparts. Note that "rule" is more precise than
    "line", and is famaliar from HTML element '<hr/>'.

  - Add a verb to text for full screen mode. Now it is "show in full
    screen".

  - Further very fine modifications for consistency and flow.
@brainchild0

Copy link
Copy Markdown
Contributor Author

See revised, previous comment. I will wait for feedback, and am currently planning nothing further until I receive it.

@fxha fxha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for your work! I'll merge the PR soon (next days) if no feedback is given.

I am mostly comfortable with everything except the language about the trailing new lines.

Let n be the newline count behind the last non-empty line when opening a file. m the trailing newline mode (1: no trailing newlines, 2: one trailing newline, 3: auto 4: none).

We do nothing if a file is loaded and a mode m not 3 is used. If m=3 then

  • n=0 -> set m:=1
  • n=1 -> set m:=2
  • n>1 -> set m:=4

Now, the user wants to save the opened file and we check m:

  • m=1: Remove all trailing newlines
  • m=2: Remove all trailing newlines and add one newline

... and save the document on disk.

@brainchild0

brainchild0 commented Jun 4, 2020

Copy link
Copy Markdown
Contributor Author

@fxha: I now understand. Thank you.

The rules are too complex to explain completely in summary, but to me, compared to the current language, a clearer form for option (3) is one similar to "Preserve style of original document."

(Also, for option (2) I prefer "Ensure exactly one trailing.")

@fxha

fxha commented Jun 6, 2020

Copy link
Copy Markdown
Contributor

(3) "Preserve style of original document."
Also, for option (2) I prefer "Ensure exactly one trailing."

@brainchild0 That's sounds great. Would you mind updating the string, so I can merge the PR.

@brainchild0

Copy link
Copy Markdown
Contributor Author

@brainchild0 That's sounds great. Would you mind updating the string, so I can merge the PR.

@fxha Done!

@fxha
fxha merged commit c79f84e into marktext:develop Jun 7, 2020
Jocs added a commit that referenced this pull request Jul 16, 2021
* update readme (#2008)

* update readme

* remove unused codes

* Update third party

* remove unused codes

* fix: style error in editor setting

* Release v0.16.1 (#2011)

* Fix typo (#2118)

* Include Chocolatey package installation option (#2107)

* Update dependencies (#2133)

* Fix max width of editor tabs (#2097)

* Fix max width of editor tabs

* Update sponsor (#2141)

* update: sponsors

* update img width and height

* Add ability to paste images to Features (#2127)

* Fix empty shortcuts in shortcut validator (#2130)

* Fix Hunspell dictionary downloader on Windows (#2131)

* Add missing encoding entry (#2132)

* Improve heading font size scaling (#2135)

* Reduce dependency bundle size (#2136)

* Fix Hunspell spell checker initialization on Windows (#2137)

* Disable and hide unnecessary settings options (#2138)

* Increase indentation for sidebar treeview (#2161)

* Fix image export issues on Windows (#2129)

* Fix footnote renderer exception in markedjs (#2162)

* Add GitLab math block support (#2119)

* update: yarn.lock file (#2178)

* feat: switch tabs using alt-#num (#1975)

* Fix bad font when exporting document on macOS (#2190)

* 📝 update zh_cn.md (#2192)

* Improve English grammar in user-interface text. (#2075)

* Fix unnecessary character sanitation on clipboard output (#2197)

* Fix double used shortcut (#2198)

* Fix double used shortcut

* Update documentation

* Update dependencies (#2199)

* Support setting text direction via comand palette (#2194) (#2195)

* Update bug issue template (#2215)

* Fix inline html renderer (#2224)

* Fix sub- and superscript in HTML output

* Update dependencies

* Conform user-interface text to conventions for trailing punctuation (#2209)

* Release v0.16.2 (#2200)

Bump version to 0.16.2 and update documentation.

* Replace PRC emoji for zh_TW translation with Taiwan flag (#2278)

* Update FAQ.md (#2290)

Clarify what aidou is for non-chinese users

* Fix markdown syntax document mistake for table content align (#2282) (#2296)

* Update pt.md (#2350)

* Update pt.md

My annual contribution to Mark Text, with its documentation accessible to all Brazilians and Portuguese.

* Update pt.md

* Update pt.md

* Update pt.md

* Update pt.md

* Update pt.md

* Update pt.md

* Update pt.md

* Update pt.md

* Update regex of auto link to fix trailing slashes (#2354)

* Update FAQ.md - link to Portable (#2337)

Fixing link to portable page.

* updated turkish translation of readme.md (#2366)

* pass file.id to closeTab on middle click (#2272)

* Add codeblock highlight and coloration for the SPARQL and Turtle languages (#2365)

* fix image paths on readme tr.md (#2374)

* Fix issue with not being able to copy table cell (#2375)

* fixed issue#2383 (#2397)

* Fix quick open bug and freeze constants to avoid accidental mutation (#2323)

* fix: #2330 enable shift+tab for table navigation (#2331)

* fix: prism language missing while load dependent language (#1752) (#2335)

* Fix graphite light wordcount (#2392)

* Update dependencies (minor only) (#2402)

* fix: typewriter shake after press enter (#1852)

* Support negative zoom (#2412)

* Restrict export dialog file extensions (#2408)

* Allow BCP-47 language codes in spell checker (#2410)

* Fix footnote inline code font size (#2411)

* feat: add shortcut for toggle-toc (#1863) (#2326)

* Make global menu fields mutable (#2407)

* Replace text when only one table cell is selected (#2413)

* Allow to copy table cells text as plaintext (#2409)

* Fix font selection autocomplete (#2420)

* Updated korean translation of README.md (#2432)

I updated ko.md (korean translation of README.md) to match the latest version of README.md

* Rebase markedjs bug fixes (#2419)

* Add option to disable HTML rendering (#2414)

* Fix symbolic links and related path issues (#2416)

* Upgrade to N-API and Electron 11 (#2422)

* Upgrade to N-API and Electron 11

* Update Electron and remove workaround

* Fix ESLint error

* Disble MathML due to DOMPurify security issues (#2436)

* Update Simplified Chinese translation of README (#2445)

* Improve undo history (#2437)

* Add TOC generator to document exporter (#2391)

* Add support for relative image directory (#2439)

* Fix installation instructions in README.md (#2449)

* Update README.md

Calling brew cask install is disabled

* Update i18n files

* Release v0.16.3 (#2448)

Co-authored-by: Ran Luo <[email protected]>
Co-authored-by: saymoon <[email protected]>
Co-authored-by: shaunmbg <[email protected]>
Co-authored-by: Micael Dias <[email protected]>
Co-authored-by: Dan Dascalescu <[email protected]>
Co-authored-by: BeatLink <[email protected]>
Co-authored-by: He Linming <[email protected]>
Co-authored-by: Royce <[email protected]>
Co-authored-by: brainchild0 <[email protected]>
Co-authored-by: Rasmus Eneman <[email protected]>
Co-authored-by: nyanpasu64 <[email protected]>
Co-authored-by: Sbelletier <[email protected]>
Co-authored-by: 小新 <[email protected]>
Co-authored-by: Enderson Menezes <[email protected]>
Co-authored-by: Sweet Liquid <[email protected]>
Co-authored-by: Nick Ali <[email protected]>
Co-authored-by: erentar <[email protected]>
Co-authored-by: Max Lantas <[email protected]>
Co-authored-by: Vincent Emonet <[email protected]>
Co-authored-by: Amauri Bizerra <[email protected]>
Co-authored-by: Anton Freeman <[email protected]>
Co-authored-by: Dan Munckton <[email protected]>
Co-authored-by: evan-cohen <[email protected]>
Co-authored-by: zmen <[email protected]>
Co-authored-by: bmvisoky <[email protected]>
Co-authored-by: YeloMelon <[email protected]>
Co-authored-by: MingZZX <[email protected]>
Co-authored-by: カワリミ人形 <[email protected]>
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants