mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Slob, Win-specific: Increase scale for MathJax SVG and HTML-CSS output
This commit is contained in:
parent
6c301993e1
commit
4b0df8532d
13
slob.cc
13
slob.cc
|
@ -912,6 +912,18 @@ string SlobDictionary::convert( const string & in, RefEntry const & entry )
|
|||
pos += list[ 0 ].length();
|
||||
}
|
||||
}
|
||||
#ifdef Q_OS_WIN32
|
||||
else
|
||||
{
|
||||
// Increase equations scale
|
||||
text = QString::fromLatin1( "<script type=\"text/x-mathjax-config\">MathJax.Hub.Config({" )
|
||||
+ " SVG: { scale: 170, linebreaks: { automatic:true } }"
|
||||
+ ", \"HTML-CSS\": { scale: 210, linebreaks: { automatic:true } }"
|
||||
+ ", CommonHTML: { scale: 210, linebreaks: { automatic:true } }"
|
||||
+ " });</script>"
|
||||
+ text;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Fix outstanding elements
|
||||
text += "<br style=\"clear:both;\" />";
|
||||
|
@ -922,7 +934,6 @@ string SlobDictionary::convert( const string & in, RefEntry const & entry )
|
|||
void SlobDictionary::loadResource( std::string & resourceName, string & data )
|
||||
{
|
||||
vector< WordArticleLink > link;
|
||||
string resData;
|
||||
RefEntry entry;
|
||||
|
||||
link = resourceIndex.findArticles( Utf8::decode( resourceName ) );
|
||||
|
|
Loading…
Reference in a new issue