renamed: config option 'html_filter_break_lines' to 'html_filter_break_word'

added:   config option 'html_filter_wrap_line'
         this wraps the whole line (line calculated with html tags as well)
changed: orphans (for html filter) are read from locale files now
         ('language_orphans' value )



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@728 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-04-16 08:42:22 +00:00
parent aadf12c7b3
commit 426beae796
19 changed files with 1079 additions and 672 deletions

View File

@@ -40,12 +40,33 @@ public:
bool IsKey(const std::wstring & key) const;
bool IsKey(const std::wstring & key, size_t lang) const;
// checking whether there is a 'key' in the lang language
// (default language is not checked)
bool IsKeyLang(const wchar_t * key, size_t lang);
bool IsKeyLang(const std::wstring & key, size_t lang) const;
// returning specific 'key'
const std::wstring & Get(const wchar_t * key);
const std::wstring & Get(const wchar_t * key, size_t lang);
const std::wstring & Get(const std::wstring & key) const;
const std::wstring & Get(const std::wstring & key, size_t lang) const;
/*
lists
*/
// checking whether there is a 'key' in the lang language
// (default language is not checked)
bool IsKeyLangList(const wchar_t * key, size_t lang);
bool IsKeyLangList(const std::wstring & key, size_t lang) const;
const std::vector<std::wstring> & GetList(const std::wstring & key) const;
const std::vector<std::wstring> & GetList(const std::wstring & key, size_t lang) const;
// how many languages we have
size_t Size();
// setting/getting current language
// default: 0
void SetLang(size_t lang);
@@ -65,7 +86,7 @@ public:
const std::wstring & LangToFileName(size_t lang) const;
// returning how many locale files (languages) there are
size_t Size();
size_t Size() const;
// it sets whether we should parse locale files as utf-8 files
// default: false
@@ -93,6 +114,10 @@ private:
// this table has the same size as locale_files (at least one item)
std::vector<ConfParser::TableSingle> loc_tab;
// messages vector<via language>
// this table has the same size as locale_files (at least one item)
std::vector<ConfParser::Table> loc_tab_multi;
// these tables are used to change url characters
std::wstring subst_original;
std::wstring subst_changeto;
@@ -103,6 +128,7 @@ private:
std::string file_name;
std::wstring key_str;
const std::wstring empty; // used when returning a non existing key from loc_tab (or in LangToFileName)
const std::vector<std::wstring> empty_list; // the same as above
std::string adir1, adir2;
size_t default_lang; // index to loc_tab
size_t current_lang; // index to loc_tab