summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-04-23 15:32:11 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-04-23 15:32:11 +0200
commit7b0aa18c4735638608a879bda2570cf819590825 (patch)
tree0f4def8eed3e277bc671c7124c77fb1628fbad71 /source/html/css-apply.c
parent1e09b18bfd55536c49899b73e116b46599412f56 (diff)
downloadmupdf-7b0aa18c4735638608a879bda2570cf819590825.tar.xz
epub: Support roman and alphabetic numbering in ordered lists.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r--source/html/css-apply.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c
index 98818239..40cae696 100644
--- a/source/html/css-apply.c
+++ b/source/html/css-apply.c
@@ -78,6 +78,7 @@ static const char *list_style_type_kw[] = {
"none",
"square",
"upper-alpha",
+ "upper-greek",
"upper-latin",
"upper-roman",
};
@@ -884,6 +885,17 @@ fz_apply_css_style(fz_context *ctx, fz_html_font_set *set, fz_css_style *style,
else if (!strcmp(value->data, "circle")) style->list_style_type = LST_CIRCLE;
else if (!strcmp(value->data, "square")) style->list_style_type = LST_SQUARE;
else if (!strcmp(value->data, "decimal")) style->list_style_type = LST_DECIMAL;
+ else if (!strcmp(value->data, "decimal-leading-zero")) style->list_style_type = LST_DECIMAL_ZERO;
+ else if (!strcmp(value->data, "lower-roman")) style->list_style_type = LST_LC_ROMAN;
+ else if (!strcmp(value->data, "upper-roman")) style->list_style_type = LST_UC_ROMAN;
+ else if (!strcmp(value->data, "lower-greek")) style->list_style_type = LST_LC_GREEK;
+ else if (!strcmp(value->data, "upper-greek")) style->list_style_type = LST_UC_GREEK;
+ else if (!strcmp(value->data, "lower-latin")) style->list_style_type = LST_LC_LATIN;
+ else if (!strcmp(value->data, "upper-latin")) style->list_style_type = LST_UC_LATIN;
+ else if (!strcmp(value->data, "lower-alpha")) style->list_style_type = LST_LC_ALPHA;
+ else if (!strcmp(value->data, "upper-alpha")) style->list_style_type = LST_UC_ALPHA;
+ else if (!strcmp(value->data, "armenian")) style->list_style_type = LST_ARMENIAN;
+ else if (!strcmp(value->data, "georgian")) style->list_style_type = LST_GEORGIAN;
}
style->line_height = number_from_property(match, "line-height", 1.2f, N_SCALE);