2012-02-20 21:47:14 +00:00
|
|
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
2009-01-28 20:55:45 +00:00
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#ifndef __XDXF2HTML_HH_INCLUDED__
|
|
|
|
#define __XDXF2HTML_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <string>
|
2012-01-24 12:55:28 +00:00
|
|
|
#include <map>
|
2012-01-31 12:49:37 +00:00
|
|
|
#include "dictionary.hh"
|
2015-08-01 10:38:39 +00:00
|
|
|
#include "indexedzip.hh"
|
2009-01-28 20:55:45 +00:00
|
|
|
|
|
|
|
/// Xdxf is an xml file format. Since we display html, we'd like to be able
|
|
|
|
/// to convert articles with such a markup to an html.
|
|
|
|
namespace Xdxf2Html {
|
|
|
|
|
2012-01-24 12:55:28 +00:00
|
|
|
enum DICT_TYPE {
|
|
|
|
STARDICT,
|
|
|
|
XDXF
|
|
|
|
};
|
|
|
|
|
2009-01-28 20:55:45 +00:00
|
|
|
using std::string;
|
2012-01-24 12:55:28 +00:00
|
|
|
using std::map;
|
2009-01-28 20:55:45 +00:00
|
|
|
|
|
|
|
/// Converts the given xdxf markup to an html one. This is currently used
|
|
|
|
/// for Stardict's 'x' records.
|
2015-08-01 10:38:39 +00:00
|
|
|
string convert( string const &,
|
|
|
|
DICT_TYPE type,
|
|
|
|
map< string, string > const * pAbrv,
|
|
|
|
Dictionary::Class * dictPtr,
|
|
|
|
bool isLogicalFormat = false,
|
|
|
|
unsigned revisionNumber = 0,
|
|
|
|
QString * headword = 0 );
|
2023-07-20 08:02:22 +00:00
|
|
|
|
2009-01-28 20:55:45 +00:00
|
|
|
} // namespace Xdxf2Html
|
|
|
|
|
|
|
|
#endif
|