Libre Office: Fix German heading formatting commands#17836
Conversation
|
@michaelweghorn I have found this potential issue reading soffice's code, but have not experimented myself. Indeed, I have only a portable LO 24.8, but reporting headings formatting is only available from 25.2 onwards. Could you tests with and without this PR, launching NVDA in German (command line: |
|
@Adriani90 are you a German Libre Office user or have you the opportunity to test? (before and after this PR) Required minimal LO version is 25.2. |
@CyrilleB79 Thanks! I can confirm the previous check wouldn't work when using German language, while this here does.
Yes, that's my understanding, too, as I see no language/locale-specific modifications for these in LibreOffice's |
|
Adding to 2025.1 milestone since it is a fix-up of #17153 which was merged during 2025.1 dev cycle. |
Link to issue number:
Fix-up of #17153.
Summary of the issue:
When modifying heading style with ctrl+1/2/3/4/5 or turning back to body text with ctrl+0, other formatting changes might be reported in languages where "ctrl" is translated differently, e.g. "Strg" in German.
Description of user facing changes
Only style and no other associated formatting changes should be reported when modifying heading styles with ctrl+1/2/3/4/5 or turning back to body text with ctrl+0.
Description of development approach
Do not use the
displayNameproperty to define which type of gesture we are dealing with, UsemodifierNamesandmainKeyNameproperties instead since they are not translated.Testing strategy:
Manual tests done by @michaelweghorn (see #17836 (comment)).
Known issues with pull request:
If in any language other gestures than ctrl+1/2/3/4/5/0 are used, this code is not be valid. In this case, a specific script should be made for heading/body text formatting.
For now I think that it's not the case (confirmed by @michaelweghorn in #17836 (comment)), so there is no point in developing specific code for a theoretical situation.
Code Review Checklist:
@coderabbitai summary