TODO for dealing with "forbidden" wordwrap characters
This commit is contained in:
parent
6eee4b8b31
commit
dadcc9ba2d
1 changed files with 7 additions and 1 deletions
|
|
@ -3,5 +3,11 @@
|
|||
infile=${@: -1}
|
||||
args=${@:1:${#}-1}
|
||||
|
||||
sed -e "s/<\\/dd>/<br\\/><br\\/><\\/dd>/g" $infile | w3m $args
|
||||
# FIXME: https://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages
|
||||
# | sed -e "s/\(.[、。)]\)/<nobr>\\1<\\/nobr>/g" \
|
||||
# This needs expanding & to not mess with <img> `alt` tag attributes or anything inside HTML tags (e.g., " quotes)!
|
||||
# -bjk 2023.07.17
|
||||
|
||||
sed -e "s/<\\/dd>/<br\\/><br\\/><\\/dd>/g" $infile \
|
||||
| w3m $args
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue