> Hello, > > while translating the UI I have run across this strange behaviour, which I > qualify as a bug: the context-menu item to change a quotation mark character > does not work as expected. > > PROBLEM > ======== > Existing quotation characters do not switch to the paragraph's language > default quotes when instructed to, via the context menu. In this test case, > from Spanish («) to German (,,). > > EXPECTED BEHAVIOUR > =================== > Any quote character present in the document should be switched to the > paragraph's language-default quoting style when instructed to, via the > context menu. > > I think I have a patch for this (see the attachment). The context menu is created in src/frontends/qt/Menus.cpp and the command binded to that menu item is actually using the global quoting style, not the language default's (at the cursor position). I have tested it and works, use the LyX file I attached in my previous e-mail as a test. Daniel. -- Enviat amb Tutanota.
1970c1970 < FuncRequest cmd = FuncRequest(LFUN_INSET_MODIFY, subcmd + langqs + wildcards); --- > FuncRequest cmd = FuncRequest(LFUN_INSET_MODIFY, subcmd + globalqsc + wildcards);
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel