mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +00:00
28 lines
836 B
C++
28 lines
836 B
C++
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
#ifndef __XDXF2HTML_HH_INCLUDED__
|
|
#define __XDXF2HTML_HH_INCLUDED__
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include "dictionary.hh"
|
|
|
|
/// 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 {
|
|
|
|
enum DICT_TYPE { STARDICT, XDXF };
|
|
|
|
using std::string;
|
|
using std::map;
|
|
|
|
/// Converts the given xdxf markup to an html one. This is currently used
|
|
/// for Stardict's 'x' records.
|
|
string convert( string const &, DICT_TYPE type = STARDICT, map < string, string > const * pAbrv = NULL,
|
|
Dictionary::Class *dictPtr = NULL, bool isLogicalFormat = false, unsigned revisionNumber = 0 );
|
|
|
|
}
|
|
|
|
#endif
|