Modify ↓
Opened 14 years ago
Closed 14 years ago
#7148 closed enhancement (worksforme)
[PATCH] Auto-detect page directionality for floating TOC
Reported by: | Itamar Oren | Owned by: | Noah Kantrowitz |
---|---|---|---|
Priority: | normal | Component: | TocMacro |
Severity: | normal | Keywords: | rtl |
Cc: | Trac Release: | 0.12 |
Description
The problem: when including a floating TOC in right-to-left pages, the TOC floats on the right, which is "not right".
The fix: Make the floating aware of page directionality (complex, depends on ticket:4431) and set floating position accordingly.
Workaround until then (attached patch): Simple heuristic - if the page begins with:
{{{ #!div dir=rtl ... }}}
then assume it is right-to-left.
Also add "float=<dir>" argument that allows overriding auto-detection and setting the floating direction manually.
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | float_dir_detection.patch added |
---|
comment:1 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Auto-detection of page directionality for floating TOC