From ce54343097ebe60300c2da89ab1b66b0c46218b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Sun, 7 May 2023 16:26:26 +0200 Subject: [PATCH] Tooltip --- czkawka_gui/i18n/en/czkawka_gui.ftl | 15 +++++++++++++++ czkawka_gui/src/gui_structs/gui_main_notebook.rs | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/czkawka_gui/i18n/en/czkawka_gui.ftl b/czkawka_gui/i18n/en/czkawka_gui.ftl index 36e304e..81ee7b7 100644 --- a/czkawka_gui/i18n/en/czkawka_gui.ftl +++ b/czkawka_gui/i18n/en/czkawka_gui.ftl @@ -18,6 +18,21 @@ music_length_checkbox = Length music_comparison_checkbox = Approximate Comparison music_checking_by_tags = Tags music_checking_by_content = Content +same_music_seconds_label = Minimal fragment second duration +same_music_similarity_label = Maximum difference + +same_music_tooltip = + Searching for similar music files by its content can be configured by setting: + + - The minimum fragment time after which music files can be identified as similar + - The maximum difference difference between two tested fragments + + The key to good results is to find sensible combinations of these parameters, for provided. + + Setting the minimum time to 5s and the maximum difference to 1.0, will look for almost identical fragments in the files. + A time of 20s and a maximum difference of 6.0, on the other hand, works well for finding remixes/live versions etc. + + By default, each music file is compared to each other and this can take a lot of time when testing many files, so it is usually better to use reference folders and specifying which files are to be compared with each other(with same amount of files, comparing fingerprints will be faster at least 4x than without reference folders). music_comparison_checkbox_tooltip = It searches for similar music files using AI, which uses machine learning to remove parentheses from a phrase. For example, with this option enabled, the files in question will be considered duplicates: diff --git a/czkawka_gui/src/gui_structs/gui_main_notebook.rs b/czkawka_gui/src/gui_structs/gui_main_notebook.rs index 0061d3d..153445a 100644 --- a/czkawka_gui/src/gui_structs/gui_main_notebook.rs +++ b/czkawka_gui/src/gui_structs/gui_main_notebook.rs @@ -426,6 +426,13 @@ impl GuiMainNotebook { self.check_button_broken_files_image.set_label(Some(&flg!("main_check_box_broken_files_image"))); self.check_button_broken_files_pdf.set_label(Some(&flg!("main_check_box_broken_files_pdf"))); + self.label_same_music_seconds.set_label(&flg!("same_music_seconds_label")); + self.label_same_music_similarity.set_label(&flg!("same_music_similarity_label")); + self.label_same_music_seconds.set_tooltip_text(Some(&flg!("same_music_tooltip"))); + self.label_same_music_similarity.set_tooltip_text(Some(&flg!("same_music_tooltip"))); + self.scale_seconds_same_music.set_tooltip_text(Some(&flg!("same_music_tooltip"))); + self.scale_similarity_similar_videos.set_tooltip_text(Some(&flg!("same_music_tooltip"))); + { let hash_size_index = self.combo_box_image_hash_size.active().unwrap() as usize; let hash_size = IMAGES_HASH_SIZE_COMBO_BOX[hash_size_index];