mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Support for external css in Stardict dictionaries with html output format
This commit is contained in:
parent
ce594b7610
commit
ec845a977e
|
@ -281,6 +281,8 @@ string StardictDictionary::handleResource( char type, char const * resource, siz
|
|||
return ( QString::fromUtf8( articleText.c_str() )
|
||||
.replace( QRegExp( "(<\\s*img\\s+[^>]*src\\s*=\\s*[\"']+)((?!data:)[^\"']*)", Qt::CaseInsensitive ),
|
||||
"\\1bres://" + QString::fromStdString( getId() ) + "/\\2" )
|
||||
.replace( QRegExp( "(<\\s*link\\s+[^>]*href\\s*=\\s*[\"']+)((?!data:)[^\"']*)", Qt::CaseInsensitive ),
|
||||
"\\1bres://" + QString::fromStdString( getId() ) + "/\\2" )
|
||||
.toUtf8().data() );
|
||||
}
|
||||
case 'm': // Pure meaning, usually means preformatted text
|
||||
|
|
Loading…
Reference in a new issue