I've splitted noorgtk.py to a few modules in noor.gtkhelper package to
make it more manageable. Check out the repository.
Regards,
Ali
please consider adding search and bookmarking support....
I've added search to the repository (bound to ``/``, ``C-f`` and
``C-s`` keys). It is quite basic, though:
* is case-sensitive
* dialects should match
* starts from the start of the buffer each time
* is only in forward direction
* stops at the first match
I might fix some of these tomorrow. Patches are welcome :-)
Regards,
Ali
I've improved some of these:
> * is case-sensitive
Search is case-insensitive, now.
> * starts from the start of the buffer each time
It starts from current aya.
> * is only in forward direction
I've added search backwards (from current aya); use ``C-r`` or ``?``.
> * stops at the first match
When in search mode, you can use ``C-s`` to go to the next match and
``C-r`` to go to the previous match.
One problem that remains is what to do about diacritics. Should noor
ignore all diacritics when searching?
Regards,
Ali
Also added ``gtk.ignore_case`` option to control that.
>> * starts from the start of the buffer each time
>
> It starts from current aya.
>
>> * is only in forward direction
>
> I've added search backwards (from current aya); use ``C-r`` or ``?``.
>
>> * stops at the first match
>
> When in search mode, you can use ``C-s`` to go to the next match and
> ``C-r`` to go to the previous match.
You can also use up/down and M-n/M-p, too.
> One problem that remains is what to do about diacritics. Should noor
> ignore all diacritics when searching?
I'll try to add ``gtk.ignore_diacritics`` option to control that.
Regards,
Ali
Searches are temporary and they move in the window; putting them in
the taskpane requires making them somehow stateless or resetting it
whenever the current aya or sura changes.
By the way, the current command bar (where search box is shown) can
hold labels and buttons, too (for instance next/prev match; something
like firefox).
Regards,
Ali
Added.
Regards,
Ali
I will check it...
It is available in the noor's mercurial repository. You can get its
snapshots from:
http://noor.sf.net/hg/noor/archive/tip.tar.gz
Regards,
Ali
you should press control+f or control+s to.....
Assalam alaikum
Brother I have attached a .zip file which contains four files. Three of them are icons and one is the updated menu.py. Please change the functions in the bookmark menu.
Please use the about13.png instead of the old about13.png. The old one was a little small...this one is perfect.
And if you can...please add find next and find prev. buttons in the search bar.
Alaikum assalam
> Brother I have attached a .zip file which contains four files. Three of them
> are icons and one is the updated menu.py. Please change the functions in the
> bookmark menu.
>
> Please use the about13.png instead of the old about13.png. The old one was a
> little small...this one is perfect.
Thanks, updated.
> And if you can...please add find next and find prev. buttons in the search bar.
Done.
Regards,
Ali