Name: fonts-compare Version: 1.3.1 Release: 2%{?dist} Summary: Tool to compare fonts for a language License: GPL-2.0-or-later URL: https://github.com/sudipshil9862/fonts-compare Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/fonts-compare-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: desktop-file-utils Requires: python3-gobject Requires: python3-langtable Requires: python3-langdetect Requires: fontconfig Requires: hicolor-icon-theme %description Fonts-Compare is a tool that enables individuals to compare various fonts in a particular language. %prep %autosetup %build %install mkdir -p %{buildroot}%{_datadir}/%{name}/ install -D -m 755 fonts-compare %{buildroot}%{_bindir}/%{name} install -D -m 755 fonts_compare.py %{buildroot}%{_datadir}/%{name}/ install -m 644 -D org.github.sudipshil9862.fonts-compare.desktop %{buildroot}/%{_datadir}/applications/org.github.sudipshil9862.%{name}.desktop mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/ install -D -m 644 logo/16x16/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/ mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/ install -D -m 644 logo/22x22/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/ mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/ install -D -m 644 logo/32x32/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/ mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ install -D -m 644 logo/48x48/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/ install -D -m 644 logo/64x64/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/ mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/ install -D -m 644 logo/128x128/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/ mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/ install -D -m 644 logo/256x256/fonts-compare.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/ mkdir -p %{buildroot}/usr/share/icons/hicolor/scalable/apps/ install -D -m 644 logo/fonts-compare.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/ %check desktop-file-validate %{buildroot}%{_datadir}/applications/org.github.sudipshil9862.%{name}.desktop %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/org.github.sudipshil9862.%{name}.desktop %dir %{_datadir}/icons/hicolor/ %dir %{_datadir}/icons/hicolor/16x16/ %dir %{_datadir}/icons/hicolor/22x22/ %dir %{_datadir}/icons/hicolor/32x32/ %dir %{_datadir}/icons/hicolor/48x48/ %dir %{_datadir}/icons/hicolor/64x64/ %dir %{_datadir}/icons/hicolor/128x128/ %dir %{_datadir}/icons/hicolor/256x256/ %dir %{_datadir}/icons/hicolor/scalable/ %dir %{_datadir}/icons/hicolor/scalable/apps/ %{_datadir}/icons/hicolor/*/apps/%{name}.* %changelog * Tue Apr 11 2023 Sudip Shil - 1.3.1-2 - LICENSE changed to GPL-2.0-or-later - %autosetup - removed unnecessary directory that created by spec * Tue Apr 11 2023 Sudip Shil - 1.3.1-1 - LICENSE changed to GPL-2.0+ - little change in README * Wed Apr 5 2023 Sudip Shil - 1.3.0-1 - licence update with MIT - some core spec file issues fixed and updated - Package must own all directories that it creates, this issue fixed - README.md update with instruction and commands * Thu Mar 30 2023 Sudip Shil - 1.2.7-1 - spec file updated - fixed issue: wrong-icon-size errors raised by the fedora-review * Thu Mar 30 2023 Sudip Shil - 1.2.6-2 - spec file updated * Wed Mar 29 2023 Sudip Shil - 1.2.6-1 - more information in README.md - some code rendering and bux fixed * Mon Mar 20 2023 Sudip Shil - 1.2.5-1 - dealing with unscalable fonts like Fixed, Biwidth - dealing with fonts with PCF fontformat - resolves Fontbutton shoes None - Fonts of which languages are not installed in your system with a command: python3 fonts_compare.py --nofonts - resolves reopen issue: https://github.com/sudipshil9862/fonts-compare/issues/33 - resolves: https://github.com/sudipshil9862/fonts-compare/issues/34 * Thu Mar 9 2023 Sudip Shil - 1.2.4-1 - Resolves: https://github.com/sudipshil9862/fonts-compare/issues/33 * Fri Mar 3 2023 Sudip Shil - 1.2.3-1 - Resolves: FontButton displays 'None'. https://github.com/sudipshil9862/fonts-compare/issues/32 - bug fixed generated by filtering-fonts for above gtk-version-4.9 users * Mon Feb 27 2023 Sudip Shil - 1.2.2-1 - Resolves: https://github.com/sudipshil9862/fonts-compare/issues/31 * Wed Feb 22 2023 Sudip Shil - 1.2.1-1 - merged code which supports all OS - supports gtk verison below 4.9 and above 4.9 * Mon Feb 20 2023 Sudip Shil - 1.2.0-1 - Resolves: https://github.com/sudipshil9862/fonts-compare/issues/25 - Resolves: https://github.com/sudipshil9862/fonts-compare/issues/26 - Resolves: https://github.com/sudipshil9862/fonts-compare/issues/27 - Resolves: https://github.com/sudipshil9862/fonts-compare/issues/28 - after entrybox text changed in gtkdialog, pressing enter will trigger OK signal - font labels only have the FAMILY now, style not required - made wrap toggle and wrapping of lebels are better than previous version - filtering fonts for specific language solved - make language search more clever - now more accuarate indic languages search in language search drop-down - selected language will be shown above all languages in language search drop-down and delete malayalam, urdu screenshot - dark theme added - If font_size changed then window_size will reset - search entry focused in initialization - version tag remove from desktop file - all mypy errors solved - code rendering - ui menu screenshot updated - logo changed made by inkscape * Fri Jan 27 2023 Sudip Shil - 1.1.4-1 - Add desktop-validation for org.github.sudipshil9862.fonts-compare.desktop - made language search more clever, more selective in language search drop down - more accuarate indic languages search - selected language will be shown above all languages in language search drop-down - made layout more size responsive - logo changed made by inkscape - search entry focused in initialization of program - dark theme added - updated all indic languages screenshots with pango sample texts of fonts-compare UI in https://sshil.fedorapeople.org/lohit-vs-noto-comparison.html * Fri Jan 6 2023 Sudip Shil - 1.1.3-1 - Changed Application ID - Renamed desktop entry file name * Thu Jan 5 2023 Sudip Shil - 1.1.2-1 - changed logo for fonts-compare * Thu Jan 5 2023 Sudip Shil - 1.1.1-1 - spec file updated with installing svg * Thu Jan 5 2023 Sudip Shil - 1.1.0-1 - Desktop entry file added - fonts-compare logo created - README file updated - Some name changes in UI * Mon Jan 2 2023 Sudip Shil - 1.0.9-1 - Added custom dialog in edit label menu button to edit labels by entry textbox, added langdetect label, buttons borders removed, code changes with class inheritance - Edit labels from entry and labels will be changed, language detection for text that being typed in entry textbox, ok and cancel button functions fixed - Solved major pylint errors - Font size adjustment widget and spin button font size adjustment widget both widgets shifted to hamburger menu, title name changed - pango sample text checkboxadded in menu - Now code selects only font fc-list and won't select Family+Style, fontbutton selects style by-default, code rendering, remove unused horizontal boxes - Added fallback checkbox in menu - Dropped language label full name that shows up in main ui, instead used tooltip/hover over language selector - Removed glibx XX_YY locals from language list - code rendering, reduced spaces, reduced vertical and hotizontal boxes used, font adjustment bug fixed - fonts compare's screenshots added in readme file and https://sshil.fedorapeople.org/lohit-vs-noto-comparison.html * Wed Dec 14 2022 Sudip Shil - 1.0.8-1 - Bug fixed: No text shows up if langtable sample text selected after selecting pango sample text * Wed Dec 14 2022 Sudip Shil - 1.0.7-1 - Added header bar, hamburger menu - Added searchable language widget - About, quit button in hamburger menu - Solved issue with fc-match (like bn_IN, bn_Bd not recognizable by fc-match) - Sometimes random_font doesnot contain any style then error arises fixed - Added spin adjustment button to increase decrease of fontsize of labels - Highlighting the error if fonts not installed instead of dialog box - Use pango sample text inside hamburger toggle button - font slider removed - vertical and horizontal boxes adjustment done - python language list removed for this release - Wrap text above fontsize 50 for text labels - Fixed header bar bugs * Thu Dec 1 2022 Sudip Shil - 1.0.6-1 - Dictionary removed - Attempt language detection only when the entered text really changed - added toggle button for Pango and Langtable sample text - set langtable sample text as default when toggle switch is off - Blocking entry function's signal for some time so that it avoids language detection again - Availability of languages from langtable, fontconfig and python - label text added for showing the error if no font is installed for a language - HId error label when fonts of any language actually are installed - dialog box code removed - default sample string by langtable, global variables removed, some global functions removed - text wrapping and removed unnecessary code - some vertical and horizontal boxes bug fixed - fixed pylint warnings - added missing type hints * Mon Nov 14 2022 Sudip Shil - 1.0.5-1 - random font generator for second text - Instruction to debug and installing new fonts for different languages added in README.md file - All languages supported - ui design changed * Mon Oct 31 2022 Sudip Shil - 1.0.4-1 - font slider added, more languages added, more fonts supported, README file as user manual * Tue Oct 18 2022 Sudip Shil - 1.0.3-1 - fixed broken macros - on_changed function deactivated for a while added * Sun Oct 16 2022 Sudip Shil - 1.0.2-1 - updated version 1.0.2-1 - Bug 1 fixed: errors and warning removed - checked pylint, pylintrc parameters updated for this project specificly - Bug 2 fixed: If I type japanese text in gtkEntry then no font detected in font button https://github.com/sudipshil9862/fonts-compare/issues/3 - Bug 3 fixed: If click ‘bn’ then font button dialog has bengali text below but not happening this for ‘ja’ -> showing some english text instead of japanese https://github.com/sudipshil9862/fonts-compare/issues/2 - Bug 4 fixed: If I write japanese in gtkEntry field and then I select ‘bn’ from drop then everything changed but the japanese text still there in gtkEntry - Bug 5 fixed: When a language is detected by typing a text, the combobox(drop-down) doesn’t change https://github.com/sudipshil9862/fonts-compare/issues/5 - Bug 6 fixed: code_rendering - detecting combo box lang using for loop and making it general so that any language can be selected from drop-down if it’s there (use dictionary) - Bug 7 fixed: Text in the entry suddenly changes to sample text for the detected language when typing into the entry https://github.com/sudipshil9862/fonts-compare/issues/6 * Tue Sep 27 2022 Sudip Shil - 1.0.1-1 - updated version 1.0.1-1 * Fri Sep 23 2022 Sudip Shil - 1.0.0-1 - Initial RPM release