Bug 489345

Summary: Importing a CSV Flashcard Set Does Not Use Comma Separator
Product: [Applications] kwordquiz Reporter: spam7423
Component: generalAssignee: Carl Schwan <carl>
Status: CONFIRMED ---    
Severity: minor CC: aacid
Priority: NOR    
Version First Reported In: 24.05.1   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description spam7423 2024-06-27 23:00:39 UTC
SUMMARY
As an end-user of kwordquiz, I would like to be able to import my flashcard sets, which are stored as csv files.  I store my flashcard sets as csv files for flexibility: to be able to move them around different applications easily. However, while kwordquiz does support opening/importing the csv file type, it does not actually separate out the question from the answer using the comma separator, unlike other flashcard applications.

During my troubleshooting, I did notice that when opening a csv file, it can separate out the question from the answer using the tab separator. Technically, tsv files are supported but not csv files.

STEPS TO REPRODUCE
If you have a csv file ready for testing: 
1. From the "Welcome" page, click on "Open Existing Document"
2. Change the filter of the resulting window to "CSV documents"
3. Open the csv file

OBSERVED RESULT
The questions and answers are not separated when the file is opened.

EXPECTED RESULT
The questions and answers are separated when the file is opened.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux 12
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Since the logic is already implemented to support tsv files, another issue should probably be created for adding in a tsv filter option.