Name: yudit
Version: 3.0.8
Release: 1
Group: Applications/Editors
License: GPL
Source: %{name}-%{version}.tar.gz
Summary: Unicode Text Editor
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr

%description
Yudit is a unicode text editor for  the X Window
System.  She  can  do True  Type font rendering,
printing,   transliterated  keyboard  input  and
handwriting recognition with no dependencies  on
external  engines. Her conversion  utilities can
convert    text   between   various   encodings.
Keyboard  input   maps  can  also  act like text
converters. There is no need for a pre-installed
multi-lingual environment. Menus are  translated
into many languages.

GNU (C) 1997-2023 Gaspar Sinai <gaspar@yudit.org> 

%prep
%setup
%configure

%build
make

%install
rm -fr $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT%{prefix}
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Applications $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 gnome-yudit.png $RPM_BUILD_ROOT/usr/share/pixmaps/yudit.png
cat >$RPM_BUILD_ROOT/etc/X11/applnk/Applications/yudit.desktop <<EOF
[Desktop Entry]
Name=Yudit (Unicode editor)
Type=Application
Description=The Yudit Unicode editor
Exec=yudit
Icon=yudit.png
EOF


%clean

%files
%defattr(-,root,root)
%{prefix}/bin/uniconv
%{prefix}/bin/uniprint
%{prefix}/bin/yudit
%{prefix}/bin/mytool
%{_mandir}/man1/*

%dir %{_datadir}/yudit
%{_datadir}/yudit/data
%{_datadir}/yudit/fonts
%{_datadir}/yudit/syntax
%{_datadir}/yudit/src 
%{_datadir}/yudit/doc 
%dir %{_datadir}/yudit/locale
%{_datadir}/yudit/locale/am
%{_datadir}/yudit/locale/ar
%{_datadir}/yudit/locale/az
%{_datadir}/yudit/locale/bg
%{_datadir}/yudit/locale/bn
%{_datadir}/yudit/locale/cs
%{_datadir}/yudit/locale/de
%{_datadir}/yudit/locale/el
%{_datadir}/yudit/locale/en
%{_datadir}/yudit/locale/es
%{_datadir}/yudit/locale/fi
%{_datadir}/yudit/locale/fr
%{_datadir}/yudit/locale/gu
%{_datadir}/yudit/locale/ga
%{_datadir}/yudit/locale/hi
%{_datadir}/yudit/locale/hu
%{_datadir}/yudit/locale/ja
%{_datadir}/yudit/locale/ko
%{_datadir}/yudit/locale/mn
%{_datadir}/yudit/locale/mr
%{_datadir}/yudit/locale/pa
%{_datadir}/yudit/locale/pl
%{_datadir}/yudit/locale/sl
%{_datadir}/yudit/locale/sr
%{_datadir}/yudit/locale/ru
%{_datadir}/yudit/locale/ta
%{_datadir}/yudit/locale/uk
%{_datadir}/yudit/locale/ur
%{_datadir}/yudit/locale/vi
%{_datadir}/yudit/locale/yi
%{_datadir}/yudit/locale/zh
%{_datadir}/yudit/locale/zh_CN

%dir %{_datadir}/yudit/config
%config %{_datadir}/yudit/config/*
%config /etc/X11/applnk/Applications/yudit.desktop
%config /usr/share/pixmaps/yudit.png

%doc CHANGELOG.TXT COPYING.TXT FAQ.TXT README.TXT TODO.TXT doc/*.utf8 doc/HOWTO-*.txt doc/otfsupport.txt

%changelog
* Sat Jan 14 2023 Gaspar Sinai <gaspar@yudit.org.>
   - Fixed paragraph-bug when form-feed was followed composing character.
   - Added Shavian and Braille kmaps.
   - Fixed SFontTTF crash when font does not have a name.
   - Re-worked OldHungarian_Full.ttf to have Unicode encoding instead of custom
   - Preparing yudit-3.0.8
* Sat Jan 07 2023 Gaspar Sinai <gaspar@yudit.org.>
   - Fixed minor widget appearance problems.
   - Added CLIPBOARD (for keyboard cut&paste) in addition to XA_PRIMARY (mouse)
   - fontpath, datapath and syntaxpath search is more consistent now.
   - Added /** to search fontpath sub-directories. 
   - Added system fontpath to default yudit.properties
* Sun Jan 01 2023 Gaspar Sinai <gaspar@yudit.org.>
   - Added yudit.scale property for high-resolution displays. 
* Sat Dec 31 2022 Gaspar Sinai <gaspar@yudit.org.>
   - Fixed compiler warnings
   - Added 1-1 character aliases
   - Fixed uniconv utf-16 encoders
   - Added German-deadkeys keymap
   - Added bn-messages.po  bn-messages.mo
* Sun Jun 07 2020 Gaspar Sinai <gaspar@yudit.org.>
   - Added support to OpenType CFF fonts (CFF2 remains unsupported).
   - Added one more color for So (Other Symbol) to differencite Emojis.
   - Added mouse-wheel support for Windows version.
   - Cleaning up default yudit.properties.
   - Added Emoji.mys keymap.
   - Preparing version 3.0.7...
* Sun May 24 2020 Gaspar Sinai <gaspar@yudit.org.>
   - Fall-back rendering engine was enhanced to handle
     multiple newpath - stroke,fill paths.
   - Re-created Yudit icons to use vector graphics.
   - Fixed memory leak is osx font rendering.
   - Fixed preview where preview command returns immediately.
   - Preparing version 3.0.5
* Sun May 17 2020 Gaspar Sinai <gaspar@yudit.org>
    - Fixed SFontTTF to render properly glyphs containing only curves,
     and glyphs that start with a curve.
    - Added all legacy ligagures to OldHungarian_Full.ttf and OldHungarian.mys
* Sun May 10 2020 Gaspar Sinai <gaspar@yudit.org>
    - Updated for Unicode 13.0.0
    - Added OldHungarian_full.ttf
    - Added support for MacOS with Cocoa using 
      Objective C
    - Released version 3.0.0
* Fri May 01 2015 Gaspar Sinai <gaspar@yudit.org>
   - Added support for Regional Indicator Symbols
* Mon Oct 20 2014 Gaspar Sinai <gaspar@yudit.org>
   - Applied debian patches
   - Fixed datadir
* Sun Oct 19 2014 Gaspar Sinai <gaspar@yudit.org>
   - Updated for Unicode 7.0.0
   - Fixed compiler warnings
* Thu Aug 04 2011 Gaspar Sinai <gaspar@yudit.org>
   - Fixed syntax core 
   - Fixed parallel compilation
   - Fixed printing control characters
* Sat Feb 06 2010 Gaspar Sinai <gaspar@yudit.org>
  - Changed to use My Documents instead of C:\Home on Windows.
  - Added HOME environment variable override to HOME directory.
  - Fixed file selection bug. 
* Sun Jan 31 2010 Gaspar Sinai <gaspar@yudit.org>
  - Updated to Unicode 5.2.0
  - Landscape printing bug fixed
  - DOS CRLF with uniconv bug fixed
  - Hungarian Runes (PUA) rovasiras glyph adjustments
  - Minor enhancements
* Sun Dec 09 2007 Gaspar Sinai <gaspar@yudit.org>
  - Added support for hunspell spell checker via syntax mechanism
  - Added a new dialog for highlighting selection
  - Added support for form feed character during printing and editing.
  - Using double buffer to avoid flickering
* Wed Nov 28 2007 Gaspar Sinai <gaspar@yudit.org>
  - added syntax directory
* Wed Sep 27 2006 Gaspar Sinai <gaspar@yudit.org>
  - Fixed Syriac Rendering bug for OTF.
  - Added Simplified Chinese translation (zh_CN)
* Sat Jul 29 2006 Gaspar Sinai <gaspar@yudit.org>
  - Updated for Unicode 5.0.0.
* Sun May 21 2006 Gaspar Sinai <gaspar@yudit.org>
  - Changed my email address from gsinai@yudit.org to gaspar@yudit.org
  - Adding new media types from Daryoush Javan <djavan@unixoft.com>.
  - Fixed segmentation fault in swindow/sx11/SXInputMethod.cpp by 
    Marcus Meissner <meissner@suse.de> 
  - Added and updated several kmap and HOWO files.
* Mon Mar 21 2005 Gaspar Sinai <gsinai@yudit.org>
  - Merged Marathi and Gujarati menu.
  - Merged jodakshar.hwd marathi.hwd roman.hwd handwrinting recognition files
  - Merged CS-qwerty keymap, SpanishPrefix.kmap, Sanskrit-Translit.kmap, GreekAncient.kmap
  - Updated Tibetan-Wylie.kmap 
  - Merged Telugu, Italian FAQ
  - Merged HOWTO greekancient
  - Merged AMD 64 fixes to InputMethod.cpp.
* Sat Sep 6 2003 Gaspar Sinai <gsinai@yudit.org>
  Release 2.7.6
  Better positioning for complex (indic) scripts.
  Comments are preserved now in ~/.yudit/yudit.properties
  Fixed buffer overflow bugs in
   stoolkit/SString.cpp
   stoolkit/SParagraph.cpp
  Yudit -nus command line option turns off uniscribe emulation.  
  Added Punjabi (pa) translations from
     Madhusudan Singh <chhabra@eecs.umich.edu>.
  Added more substitution types. The matrix is documented in
  doc/otfsupport.txt.
  The following font-range filters have been added:
     indic: U+0900..U+0FFF
     deva:  U+0900..U+097F
     beng:  U+0980..U+09FF
     guru:  U+0A00..U+0A7F
     gujr:  U+0A80..U+0AFF
     orya:  U+0B00..U+0B7F
     taml:  U+0B80..U+0BFF
     telu:  U+0C00..U+0C7F
     knda:  U+0C80..U+0CFF
     mlym:  U+0D00..U+0D7F
     sinh:  U+0D80..U+0DFF
     thai:  U+0E00..U+0E7F
     lao:   U+0E80..U+0EFF
     tibt:  U+0F00..U+0FFF
     jamo:  U+1100..U+11FF
  usage: ani.ttf:beng,raghu.ttf:deva
* Sat Jun 14 2003 Gaspar Sinai <gsinai@yudit.org>
  Updated with Miikka's patch for Unicode 4.0.
  Added many patches and contributions
  Added entry level (not full) Tibetan support with some Open Type Fonts 
  Added yudit.editor.xinputs.style property to yudit.properties.
     possible values: root,over-the-spot,off-the-spot
  New menu translations: Czech, Greek, Mongolian, Serbian (cyrillic)
  New keymaps: Telugu-Rts, CS, Kazakh-prefix, Runes,
  Dakelh (Carrier syllabics), ArabicBuck, GeorgianB, 
  BengaliSona, Slavic, Serbian, Kanji,
  Added new configurable xinput styles:
  preedit-over-status-over, preedit-over-status-under,
  preedit-under-status-under, preedit-root-status-root
  NewYudit specific Private Use Area assignment: 
  mytool/uni/BLISSYMBOLICS.TXT (BlissSymbolics.kmap, yudit.ttf)
  Bugfixes and hopefully not many new bugs :)
  Stable version 2.7.5 is ready
* Tue Jan 14 2003 Gaspar Sinai <gsinai@yudit.org>
  o changed names of yudit.editor.xinputs.style
    preedit-over-status-over
    preedit-over-status-under
    preedit-under-status-under
    preedit-root-status-root
* Sun Jan 12 2003 Gaspar Sinai <gsinai@yudit.org>
  Applied SAMPA.patch,patch1,patch2,patch3,patch4
  Added BengaliSona.kmap
  Removed dependency on ws2_32.dll - this means it will work on Windows 95
  Added yudit.editor.xinputs.style property to yudit.properties.
    possible values: root,over-the-spot,off-the-spot,over-the-spot-off
* Sun Jan 5 2003 Kevin Patrick Scannell <scannell@slu.edu>
  Added Irish (ga).
* Sun Dec 1 2002 Gaspar Sinai <gsinai@yudit.org>
  Added kmap and Russian menu from Vyacheslav Dikonov <sdiconov@mail.ru>
  Added berbere from Bruno Cauchy Lefebvre <bb.lefebvre@free.fr>
  Added Farsi.kmap from  Seyed-allaei <allaei@sissa.it>
  Reorganized kmaps a bit
  Largefont redrawing fix
  Added 'C' locale -> '' local patch from Jean-Marc Lienher <oksid@bluewin.ch> 
  Added simple-dark syntax highlight for light background setup
  Made composing mark work within ligatures too, when shaped.
  Keymap cleanups 
  OldHungarian keymap became HungarianRunes keymap.
  Fixed printing for WindowsXP+ghostscript (Window98 was ok)
* Sun Nov 10 2002 Gaspar Sinai <gsinai@yudit.org>
  Added full, Unicode compliant bi-directional support
  Added Sanskrit.kmap from Yves Codet <ycodet@club-internet.fr>
  Added Polish gui translations from Pawel Zawila-Niedzwiecki <zawel@wgt.com.pl>
  Added Perian.kmap from Roozbeh Pournader <roozbeh@sharif.edu>
  Added ZWJ ZWNJ RLM LRM as a visible glyph when editing.
  Optimized code for speed
  Added Inuktitut-ICI.kmap, Inuktitut-KBD.kmap, Chinese-Pinyin.kmap, 
   Chinese-WB.kmap from "Johnson, Howard" <Howard.Johnson@nrc.ca>
  Added OpenType GPOS support for composing characters
* Sat Oct 12 2002 Gaspar Sinai <gsinai@yudit.org>
  Added Urdu/Pakistan ur locale from S H A N <shanali@singnet.com.sg>
  Added new ligatures for URDU: U+06A9 U+0627 and U+06A9 U+0644
  Modified Amharic/Ethiopia am locale Daniel Yacob <locales@geez.org>
  Updated FAQs.
  Added better composing support. Undo/Redo for composing characters
   that are added on the fly.
  Removed clustering feature from several kmaps as cluster now can be 
  built on the fly.
  IS_AS,IS_BN,IS_DV,IS_GJ,IS_KN,IS_ML,IS_OR,IS_PJ,IS_RM,IS_TL,IS_TM
  converters from Anirban.
* Tue Sep 03 2002 Gaspar Sinai <gsinai@yudit.org>
  Applied patches and contibutions:
  Rendering fixes (Miikka-Markus Alhonen)
  Bengali menu (Anirban Mitra <mitra_anirban@yahoo.co.in>)
  Color Highlighting, word wrapping and other fixes:
     Maarten van Gompel <proycon@anaproy.homeip.net>
* Sun May 12 2002 Gaspar Sinai <gsinai@yudit.org>
- OpenType font shaping support for shaped characters that are not
  among Arabic presentation forms. This includes quite a few Arabic 
  and Syriac shapes.  
- Support for unifont syriacforms.hex and arabforms.hex files with
  direct font rendering.
- Fixed crash on Sparc computers (alignment problem)
- Koran menu and FAQ translations from Jungshik Shin <jshin@mailaps.org>
- Amharic menu translations from Daniel Yacob <locales@geez.org>
- Cherokee.kmap from Steve Juranich <sjuranic@ee.washington.edu>
- Added Vietnamese FAQ.TXT HOWTO-vietnamese.txt and message.po
  from Hoan <hoan@wanadoo.fr>
- Added Urdu.kmap from Miikka-Markus.Alhonen@tigatieto.com
* Thu Apr 25 2002 Gaspar Sinai <gsinai@yudit.org>
- Unicode 3.2 changes
- X Locale and Input Method Support 
- Added direct rendering for iso10646 encoded .bdf font files 
  and unifont .hex files. It is useful on platforms that do not have X11.
- Locale name for Chinese has been corrected to be zh (ISO639)
- True Type cmap 12 (needed for plane1,2..) and X11 (iso10646p2-\d+) added
- True Type cmap 2 with external converter added
- True Type uses now nonzero winding rule now by default.
- UTF-16 UTF-16-LE UTF-16-BE support.
- New converters for utf-16 utf-16-le utf-16-be, gb-18030, 
  Shift_JISX0213 (shift-jis-3), EUC-JISX0213 (euc-jp-3), 
  ISO-2022-JP-3 (iso-2022-jp-3) 
- Old Italic software glyph mirroring added
- Updated ksx-1001 (replacement for ksc-5601-old), ksc-5601-r ksc-5601-l
- Updated HOWTO-Japanese.txt
- JIS X 0213 X11 (jisx0213.2000-1,jisx0213.2000-2) font support
- Shift_JISX0213 encoded True Type font support with shift-jis-3 converter
* Sun Feb 24 2002 Gaspar Sinai <gsinai@yudit.org>
- Malayalam support (Miikka-Markus Alhonen)
- Kannada support (Miikka-Markus Alhonen)
- Telugu support (Miikka-Markus Alhonen)
- koi8-c support (Miikka-Markus Alhonen)
- koi8-u support (Gaspar)
- ncr converter (Miikka-Markus Alhonen)
- rovas converter (Gaspar)
- iso-8859-15 converter (Gaspar)
- iso-8859-16 converter (Gaspar)
- Mirrored characters (Miikka-Markus Alhonen-Gaspar)
- Old Hungarian support with ligatures in Private Use Area (Gaspar)
- Ukrainian kmap and translations (Solotskyy)
* Sat Jan 26 2002 Gaspar Sinai <gsinai@yudit.org>
- Pango X11 Ligature support
- Devanagari support (Miikka-Markus Alhonen)
- Bengali support (Miikka-Markus Alhonen)
- Gujarati support (Miikka-Markus Alhonen)
- Gurmukhi support (Miikka-Markus Alhonen)
- Oriya support (Miikka-Markus Alhonen)
- Hindi menu (Sanjay)
* Wed Jan 02 2002 Gaspar Sinai <gsinai@yudit.org>
- Tamil support (Vasee)
- Added Hangul Jamos (Miikka-Markus Alhonen)
- OpenType Ligature substitution support
- Testing other Indic scripts.
- Fixed bumap.
* Tue Nov 27 2001 Gaspar Sinai <gsinai@yudit.org>
- Prepearing for 2.5 with shaping (Arabic) support.
- Changed (removed -e, added auto-tmpfile): yudit.default.preview.command=gv
* Fri Nov 09 2001 Gaspar Sinai <gsinai@yudit.org>
- Fixed shift-jis converter
- Optimized speed
- Fixed layout manager bugs, made it nicer.
- Optimized memory usage (vut it by a factor of 2)
- Added freehand (handwriting) input method.
- Added hiragana and katakana handwriting data (hwd 2.0)
  generated by Yuko Inui <yuko@yudit.org>
* Thu Oct 25 2001 Gaspar Sinai <gsinai@yudit.org> patch 1,2,3,4,5,7,8
- renamed yudit-2.4-destdir.patch to //yudit.org/download/yudit-2.4.patch5.txt
- added 7,8
- renamed bz2 to gz in Source:
- removed doc from being doc because yudit uses it.
* Wed Aug 29 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.3-4
- Fix build as non-root
- Add patches from yudit.org
- Set prefix correctly
- Use %%configure
- Add docs
- Add desktop file
- Fix specfile
