diff --git a/zim.cc b/zim.cc index 2c8fabe6..cb2359f8 100644 --- a/zim.cc +++ b/zim.cc @@ -747,7 +747,6 @@ string ZimDictionary::convert( const string & in ) text.replace( QRegularExpression( "<\\s*a\\s+(class=\"external\"\\s+|)href=" + urlWiki ), QString( ", excluding any known protocols such as http://, mailto:, #(comment) // these links will be translated into local definitions // @@ -771,7 +770,6 @@ string ZimDictionary::convert( const string & in ) if ( !list[4].isEmpty() ) // a title, ex: title="Precambrian/Chaotian" tag = list[4].split("\"")[1]; - // Check type of links inside articles if( linksType == UNKNOWN && tag.indexOf( '/' ) >= 0 ) { @@ -824,7 +822,6 @@ string ZimDictionary::convert( const string & in ) } newText.clear(); - // Occasionally words needs to be displayed in vertical, but
were changed to somewhere // proper style:
N
e
o
p
t
e
r
a
QRegularExpression rxBR( "(]*>)\\s*((\\w\\s*<br(\\\\|/|)>\\s*)+\\w)\\s*", @@ -1287,7 +1284,6 @@ void ZimArticleRequest::run() string result; - // See Issue #271: A mechanism to clean-up invalid HTML cards. // leave the invalid tags at the mercy of modern browsers.(webengine chrome) // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser // https://en.wikipedia.org/wiki/Tag_soup#HTML5 @@ -1504,7 +1500,6 @@ vector< sptr< Dictionary::Class > > makeDictionaries( continue; // Got the file -- check if we need to rebuid the index - ZimFile df( firstName ); vector< string > dictFiles; @@ -1521,7 +1516,6 @@ vector< sptr< Dictionary::Class > > makeDictionaries( { gdDebug( "Zim: Building the index for dictionary: %s\n", i->c_str() ); - unsigned articleCount = 0; unsigned wordCount = 0;