Shortcuts.lyx and a problem with names of keys

Dan d3vf4n at tutanota.com
Sun Aug 27 12:37:01 UTC 2023


I have reviewed and updated (couple of minor changes) the Shortcuts.lyx file, which I attach to this e-mail for you to check.

---------------------------------

Aside from that,

I was updating the Catalan and Spanish translations of Shortcuts.lyx and realized something odd. The output of the very same document depends on the interface language, not the document or text language! See PDF attachments.

STEPS TO REPRODUCE
-----------------------------------
Please, let me know if you can reproduce the problem
 1. Start LyX.
 2. Set your interface language to English (Tools > Preferences > Language) and restart LyX.
 3. Open the file lib/doc/Shortcuts.lyx and generate a preview in PDF.

This should produce a PDF equal to "Shortcuts_interface-en.pdf". Now do

 4. Switch interface language to Spanish (Tools > Preferences > Language) and restart LyX. 5. Open the same file again lib/doc/Shortcuts.lyx (not the Spanish version) and generate a preview in PDF.

This should yield a PDF equal to "Shortcuts_interface-es.pdf". Now

 6. Compare both PDF files.


PROBLEM
----------------
The document and the document language is the very same, but there are keys whose name change in the output; namely, CONTROL, SHIFT, TAB, ENTER, ARROW KEYS, PgUp.
Unlike the ALT key and the special word "undefined" (this one present in the PO files), which keep their names.

The problem shows in the LyX editor view as well; not just in preview or exported output PDF files.

EXPECTED BEHAVIOUR
-----------------------------------
Both PDF files should be exactly equal: changing the UI language should affect neither the output of the document, nor the displayed names of the keys in the LyX editor view.

ENVIRONMENT
------------------------
LinuxMint 21.2 (Victoria) with Cinnamon Desktop Environment.


LyX 2.4.0~RC1.devel (not released yet)


Git commit hash 2617d2de


Configuration


Host type:               x86_64-pc-linux-gnu


Special build flags:      build=development warnings assertions stdlib-assertions callback-printing use-enchant


Bundled libraries:        nod


C++ Compiler:            g++ (11.4.0)


C++ Compiler flags:       -Wall -Wextra -fPIC -g -O -std=c++17  -Wno-deprecated-copy


C++ Compiler user flags:


Linker flags:             -rdynamic


Linker user flags:


Qt Frontend:


Qt version:	   5.15.3

 



Daniel.
--
Enviat amb Tutanota.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shortcuts.lyx
Type: application/x-lyx
Size: 59578 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-docs/attachments/20230827/fab49b10/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shortcuts_interface-en.pdf
Type: application/pdf
Size: 124913 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-docs/attachments/20230827/fab49b10/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shortcuts_interface-es.pdf
Type: application/pdf
Size: 126379 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-docs/attachments/20230827/fab49b10/attachment-0003.pdf>


More information about the lyx-docs mailing list