| |
1 /* |
| |
2 * Purple - Internet Messaging Library |
| |
3 * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| |
4 * |
| |
5 * Purple is the legal property of its developers, whose names are too numerous |
| |
6 * to list here. Please refer to the COPYRIGHT file distributed with this |
| |
7 * source distribution. |
| |
8 * |
| |
9 * This program is free software; you can redistribute it and/or modify |
| |
10 * it under the terms of the GNU General Public License as published by |
| |
11 * the Free Software Foundation; either version 2 of the License, or |
| |
12 * (at your option) any later version. |
| |
13 * |
| |
14 * This program is distributed in the hope that it will be useful, |
| |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
17 * GNU General Public License for more details. |
| |
18 * |
| |
19 * You should have received a copy of the GNU General Public License |
| |
20 * along with this program; if not, see <https://www.gnu.org/licenses/>. |
| |
21 */ |
| |
22 |
| |
23 #ifndef PURPLE_ZEPHYR_ZEPHYR_HTML_H |
| |
24 #define PURPLE_ZEPHYR_ZEPHYR_HTML_H |
| |
25 |
| |
26 /* This parses HTML formatting (put out by one of the gtkimhtml widgets |
| |
27 And converts it to zephyr formatting. |
| |
28 It currently deals properly with <b>, <br>, <i>, <font face=...>, <font color=...>, |
| |
29 It ignores <font back=...> |
| |
30 It does |
| |
31 <font size = "1 or 2" -> @small |
| |
32 3 or 4 @medium() |
| |
33 5,6, or 7 @large() |
| |
34 <a href is dealt with by outputting "description <link>" or just "description" as appropriate |
| |
35 */ |
| |
36 char *html_to_zephyr(const char *message); |
| |
37 |
| |
38 /* This parses zephyr formatting and converts it to html. For example, if |
| |
39 * you pass in "@{@color(blue)@i(hello)}" you should get out |
| |
40 * "<font color=blue><i>hello</i></font>". */ |
| |
41 char *zephyr_to_html(const char *message); |
| |
42 |
| |
43 #endif /* PURPLE_ZEPHYR_ZEPHYR_HTML_H */ |