From 7fc5f59f77936cf53db30bfa6c04bc61d3790b63 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Thu, 2 Feb 2012 18:01:39 +0400 Subject: [PATCH] Tune headwords presentation in xdxf dictionaries --- article-style.css | 1 + xdxf.cc | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/article-style.css b/article-style.css index 3190d622..85f46b9f 100644 --- a/article-style.css +++ b/article-style.css @@ -210,6 +210,7 @@ div.xdxf .xdxf_headwords { + font-size: 116%; font-weight: bold; margin-top: 10px; margin-bottom: 10px; diff --git a/xdxf.cc b/xdxf.cc index 12511266..26b8c46f 100644 --- a/xdxf.cc +++ b/xdxf.cc @@ -168,7 +168,6 @@ private: /// Loads the article, storing its headword and formatting the data it has /// into an html. void loadArticle( uint32_t address, - string & headword, string & articleText ); friend class XdxfArticleRequest; @@ -446,7 +445,8 @@ void XdxfArticleRequest::run() string headword, articleText; - dict.loadArticle( chain[ x ].articleOffset, headword, articleText ); + headword = chain[ x ].word; + dict.loadArticle( chain[ x ].articleOffset, articleText ); // Ok. Now, does it go to main articles, or to alternate ones? We list // main ones first, and alternates after. @@ -485,18 +485,18 @@ void XdxfArticleRequest::run() for( i = mainArticles.begin(); i != mainArticles.end(); ++i ) { - result += "

"; - result += i->second.first; - result += "

"; +// result += "

"; +// result += i->second.first; +// result += "

"; result += i->second.second; result += cleaner; } for( i = alternateArticles.begin(); i != alternateArticles.end(); ++i ) { - result += "

"; - result += i->second.first; - result += "

"; +// result += "

"; +// result += i->second.first; +// result += "

"; result += i->second.second; result += cleaner; } @@ -521,7 +521,6 @@ sptr< Dictionary::DataRequest > XdxfDictionary::getArticle( wstring const & word } void XdxfDictionary::loadArticle( uint32_t address, - string & headword, string & articleText ) { // Read the properties