Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-breaking whitespaces in abbreviations (german) #35

Closed
Frosch opened this issue Apr 26, 2020 · 2 comments
Closed

Non-breaking whitespaces in abbreviations (german) #35

Frosch opened this issue Apr 26, 2020 · 2 comments
Assignees
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature 3-fixed Issue resolution: Issue has been fixed on the develop branch

Comments

@Frosch
Copy link

Frosch commented Apr 26, 2020

Is your feature request related to a problem? Please describe.
In German, there is supposed to be a non-breaking small space (U+202F) in-between abbreviations. Languagetool does tell you to add a non-breaking whitespace between the parts, but it adds a full-width whitespace (U+202F) which looks completely weird. This probably happens because the small whitespace is not really supported in HTML iirc. So, Languagetool probably won't (/can't) change this behavior. However, in LaTeX it is completely fine and \, should be used for this.

So, it is really frustrating having numerous "errors" in your document just because you're using the correct kind of spacing :)

Describe the solution you'd like
It would be great if this rule could be catched for LaTeX to recognize \, for the spacing.

Describe alternatives you've considered

  • Using the "wrong" spacing in your document: no errors, but looks weird and is incorrect for German texts (as of DIN 5008)
  • Disabling the rule: As this is an error I make kinda often, I'd love to keep this rule active :)
@Frosch Frosch added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Apr 26, 2020
@valentjn valentjn self-assigned this Apr 26, 2020
@valentjn valentjn added the 3-fixed Issue resolution: Issue has been fixed on the develop branch label Apr 26, 2020
@valentjn
Copy link
Owner

valentjn commented Apr 26, 2020

@Frosch Thanks for the feature request. This is fixed now. For the record:

  • The full-width whitespace is of course U+00A0.
  • LT doesn't really depend on HTML, but works directly on plain Unicode strings. So another option would have been directly using the Unicode character in your LATEX document, but then you'd need an engine like LuaTEX or XETEX plus a font that contains that character (it's possible to work around this). Needless to say that using \, is the preferred solution.
  • I think DIN 5008 only says to use a non-breaking space in abbreviations (I don't have a copy though), and I can't find anything about thin spaces in the Rechtschreibrat rules. So I think LT is actually working correctly. However, from a typographical POV, a thin non-breaking space looks much more appealing to me.

Edit: The Duden also recommends thin spaces (section Textverarbeitung und E-Mails, Festabstände). I'm just not sure if it's in the DIN as well.

@valentjn
Copy link
Owner

valentjn commented May 1, 2020

Fix released in 4.9.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature 3-fixed Issue resolution: Issue has been fixed on the develop branch
Projects
None yet
Development

No branches or pull requests

2 participants