Bug 467585 - The Question & Answer quiz should be case-insensitive.
Summary: The Question & Answer quiz should be case-insensitive.
Status: RESOLVED FIXED
Alias: None
Product: kwordquiz
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.12.1
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Hedlund
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-19 19:38 UTC by Kim
Modified: 2023-05-05 12:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim 2023-03-19 19:38:14 UTC
The Question & Answer quiz marks an answer as 'wrong' when the answer is in a different case as it is in the Editor.

STEPS TO REPRODUCE
1. Type something in Column 1 and Column 2.
2. Select Question & Answer.
3. Type the answer in with at least one character different case than it was entered in the Editor.

OBSERVED RESULT
It marks the answer as 'wrong'.

EXPECTED RESULT
I expected the answer to be correct, as the answer should not be case-sensitive.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.23.5
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I would like an option, such as a checkbox, to specify whether I want the answer to be case-sensitive or not.
Comment 1 Albert Astals Cid 2023-04-23 16:57:39 UTC
Where do you think that option makes sense?

As an new column where you can set it per each of the rows?

Or as a configure option in the Settings -> Configure -> Quiz section?

I'm thinking more on the second.
Comment 2 Kim 2023-04-23 18:34:20 UTC
(In reply to Albert Astals Cid from comment #1)
> Where do you think that option makes sense?
> 
> As an new column where you can set it per each of the rows?
> 
> Or as a configure option in the Settings -> Configure -> Quiz section?
> 
> I'm thinking more on the second.

Yes, the second option sounds better.
Comment 3 Bug Janitor Service 2023-04-23 23:36:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/kwordquiz/-/merge_requests/23
Comment 4 Albert Astals Cid 2023-05-05 12:51:18 UTC
Git commit 24c71f80d69ffc2a5808a9db181ec4408409ac43 by Albert Astals Cid.
Committed on 05/05/2023 at 12:43.
Pushed by aacid into branch 'master'.

Add the option to compare asnwers in a non case sensitive way

M  +4    -0    src/kwordquiz.kcfg
M  +7    -1    src/kwqquizmodel.cpp
M  +118  -130  src/prefquizbase.ui

https://invent.kde.org/education/kwordquiz/commit/24c71f80d69ffc2a5808a9db181ec4408409ac43