Commit graph

49 commits

Author SHA1 Message Date
shenleban tongying 329737f1cb opt: replace some QString + arg() with {fmt} in article_maker 2023-05-20 11:46:29 +08:00
xiaoyifang d08d5fe576
opt: let qt handle the language direction (#709)
* opt: let qt handle the language direction

* 🎨 apply clang-format changes

* action: modify auto clang format action

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-19 19:41:27 +08:00
YiFang Xiao 126e76ee62 fix: fulltext search,found dictionaries update 2023-05-14 14:31:30 +08:00
YiFang Xiao 60d26e0e0f fix: the scanpopup found dictionaries mixed with mainwindows
fix #677
2023-05-13 12:39:36 +08:00
YiFang Xiao d1f5024b2b fix: add default value to js gdMakeArticleActive invoke 2023-05-12 09:20:19 +08:00
yifang xiao b495a1006f opt: only enable highlight dictionary name on modern style 2023-05-09 12:32:09 +00:00
xiaoyifang cfe1a1c8c0 opt: simple case folding 2023-04-29 18:21:42 +08:00
xiaoyifang b0f35b4f14 opt: replace Folding::normalizeWhitespace with QString::simplified 2023-04-29 18:21:42 +08:00
shenleban tongying 07d9c63c79 clean(html): satisfy w3c html validator
* use <meta charset="utf-8">
* remove useless script type=text/javascript
* remove a trailing slash on <link>
2023-04-27 13:18:05 +08:00
Xiao YiFang b68a70caa6 refactor wstring toWString
ref #506
2023-04-24 15:55:24 +08:00
Xiao YiFang c2f856c074 opt: Sorting through the use of strings
there are many string conversion in the system .some of them can be avoided .
2023-04-24 15:11:40 +08:00
Xiao YiFang 1798025d0b opt: when in darkmode ,make the current article more significant
fix #493
2023-04-21 12:09:12 +08:00
shenleban tongying 1a3bae3329 cleanup(css): remove 1x1 pixel <img> hack
When the code was written, there is no way to specify img's src, so
the 1x1 blank.png is a dummy img to be replaced.
2023-04-20 19:53:34 +08:00
xiaoyifang 664d6b1483 opt: give a min-height to the last dictionary
fix #536
2023-04-20 12:43:35 +08:00
shenleban tongying 03af31c6fc
refactor: move common/base/utils into /src/common/ 2023-04-17 20:41:47 -04:00
shenleban tongying 697b2f9cd1
refactor: move left over .cc/.hh files to src/ 2023-04-17 17:56:55 -04:00
shenleban tongying 129345613e
refactor: Move all .cc/.hh files to src/ 2023-04-17 17:17:36 -04:00
Konstantin Isakov ab88fa4867 Drop the src/ directory. It's superfluous. 2010-05-15 16:42:18 +04:00
Konstantin Isakov ceab951fe9 Update year in copyright notices. 2010-05-08 22:59:59 +04:00
Konstantin Isakov 706b156938 Allow editing dictionary groups right from the dictionary bar (Right Click->
Edit this group).
2010-05-08 18:02:51 +04:00
Konstantin Isakov dcfd87397d Add support for lang(xx) and gdlangfrom-xx language attributes to articles. 2010-04-03 13:43:39 +04:00
Konstantin Isakov 1a13abcc41 Show individual words after compound expressions, not before them.
This feels a bit better, since compound expressions are more useful than
the basic word split.
2010-04-01 13:08:51 +04:00
Konstantin Isakov c6b9cc0434 When an unsuccessful attempt to look up a phrase or whole sentence is made, the query is splitted into individual words and presented to user as links. Then all the compound expressions (expressions consisting of two or more words) are attempted to be found, and the results are also presented to the user. 2010-03-30 17:41:14 +04:00
Konstantin Isakov a134015070 Use gdlookup:// scheme instead of bword:// one for close word suggestions.
The latter is prone to problems due to URI conventions and should not be used.
2009-11-11 13:37:23 +03:00
Konstantin Isakov e13a4596ae + Dictionary bar, a bar with dictonary icons for the current group, was
implemented. Clicking icons disables corresponding dictionaries. When
  clicking with Shift/Ctrl, a dictionary can be made solo.
  The feature is currently only available in main window only, scan popup
  will be addressed later.
+ 'View' menu introduced. It allows switching toolbars and side pane on/off
  without any arcane knowledge on how to toggle them on/off via RMB.
2009-09-23 18:44:38 +00:00
Konstantin Isakov 05d53409bf + Support for folloing websites' links in-place. The actual link is followed for
the website, while the query word is set to the link's text as used for all
  other dictionaries in the group.
* Some associated cleanup (better scrolling to articles, better external link
  handling).
The changes might cause problems - test!
2009-05-29 19:48:50 +00:00
Konstantin Isakov 31c735c2d5 * Update 'Welcome' text. 2009-05-24 17:38:38 +00:00
Konstantin Isakov e93084f96b + Pronounce word feature now plays sound from the currently active article
if it contains one.
2009-05-14 20:38:17 +00:00
Konstantin Isakov ac2d24709b + Save currently focused articles when navigating.
+ Lingvo style headers look closer to Lingvo now, and the currently chosen
  article gets its header highlighted, too.
2009-05-11 22:25:22 +00:00
Konstantin Isakov 527035f450 + Navigating away from within any article belonging to some dictionary
will result in scrolling to the same dictionary for newly opened content.
+ Some more css markup was added, in part to accomplish the above, in
  part to make the navigation look better (i.e. have space before article).
2009-05-11 19:14:28 +00:00
Konstantin Isakov dc96e29174 *! Awlays set definition's (QWebView) style using Html css, not Qt css. 2009-05-11 15:33:57 +00:00
Konstantin Isakov 8c40c6d50a + Implement switchable display styles. For now 'Default' and 'Lingvo'. 2009-05-11 11:03:36 +00:00
Konstantin Isakov c94e98d1c9 + Add a class for the "From " dictionary heading prefix. 2009-05-11 09:32:18 +00:00
Konstantin Isakov 21b2d3b747 + Printing support implemented. 2009-05-01 12:20:33 +00:00
Konstantin Isakov babde3d53d *! Introduce gd::wstring and gd:wchar and switch to them from std::wstring and
wchar_t. This changes nothing on Linux and most other systems, but on Win32
   it causes to use normal UCS-4 strings instead of Win32's usual UTF-16.
2009-04-18 17:20:12 +00:00
Konstantin Isakov 629a138f7e + Dictionary::stemmedMatch() added, and is now used for word suggestions when
no translations were found.
2009-04-17 13:51:50 +00:00
Konstantin Isakov ce365f386b * Russian translation updated.
* Basic support for translations added, along with the changes necessary to
  accommodate to it.
2009-04-12 19:41:58 +00:00
Konstantin Isakov 1160e742cb + Add 'table of contents' navigation into the right-button mouse menu. 2009-04-12 16:22:42 +00:00
Konstantin Isakov 03736c2193 * Give groups numerical ids and switch to use them everywhere instead of names
to identify them.
2009-04-10 12:48:40 +00:00
Konstantin Isakov 66fb8b51c1 * Update intro text with regard to the fact that paths can now be recursive. 2009-03-29 12:26:54 +00:00
Konstantin Isakov 7859daaff6 * Major dictionary interface rework. Dictionaries now return Request objects
which can provide results asyncronously, be discarded prematurely etc. This
  work touches just about every piece of exiting code.
+ On top of the new interface, MediaWiki (Wikipedia) support was added.
* Some other small fixes might went along.
2009-03-26 19:00:08 +00:00
Konstantin Isakov 27f5e814f7 * "the each"->"each" 2009-02-09 19:39:58 +00:00
Konstantin Isakov 050a989da8 * reading->ready typo fixed. 2009-02-08 21:32:33 +00:00
Konstantin Isakov 00ac1e235c + Add some initial welcome text and help. 2009-02-08 18:35:29 +00:00
Konstantin Isakov 62cb2479ed * The default stylesheets are now embedded into the program itself. It is
still possible to amend them by creating external ones, though.
2009-02-08 17:21:46 +00:00
Konstantin Isakov 4bae99aeb5 Mass-update email to point to a @berlios one. 2009-02-05 14:21:47 +00:00
Konstantin Isakov 2be1c2b375 Scan popup functionality implemented, among with other small improvements.
For now, the modifier key is hardcoded to be Ctrl.
2009-02-01 00:08:08 +00:00
Konstantin Isakov faeacaff3e Implement asyncronous word finding. 2009-01-29 19:16:25 +00:00
Konstantin Isakov c05781368b Created /trunk/src and moved everything there. 2009-01-28 20:55:45 +00:00