[okular] [Bug 461390] EPub rendered with HUGE font.

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sun Jun 23 17:11:00 BST 2024


https://bugs.kde.org/show_bug.cgi?id=461390

--- Comment #2 from milahu at gmail.com ---
fixed python code

#!/usr/bin/env python3
# convert css values from short float to full float
# example: .9 to 0.9
# aka: expand minified float values
# fix too large fonts in okular
# TODO regex is bad. use a proper css linter: stylelint
# https://bugs.kde.org/show_bug.cgi?id=461390
import re, sys
with open(sys.argv[1], "r") as f: css = f.read()
print(re.sub(r":\s*\.([0-9]+)([a-zA-Z]+)\s*;", r":0.\1\2;", css))

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list