|
609 | 609 | font-family: 'Noto Sans JP', sans-serif; |
610 | 610 | /* Word wrapping controlled dynamically by JavaScript */ |
611 | 611 | border: 1px solid rgba(0, 0, 0, 0); |
| 612 | + z-index: 11; |
612 | 613 | user-select: text; |
613 | 614 | -webkit-user-select: text; |
614 | 615 | -moz-user-select: text; |
|
632 | 633 | background-color: rgb(255, 255, 255); |
633 | 634 | font-weight: var(--bold); |
634 | 635 | font-family: 'Noto Sans JP', sans-serif; |
| 636 | + z-index: 11; |
635 | 637 | user-select: text; |
636 | 638 | -webkit-user-select: text; |
637 | 639 | -moz-user-select: text; |
|
666 | 668 | white-space: nowrap; |
667 | 669 | } |
668 | 670 |
|
669 | | - /* Per-line mode: each line is placed at its detected quad with a |
670 | | - geometry-derived font size. line-height 1 keeps the column/row no |
671 | | - thicker than the font size; letter-spacing 0 because the print's |
672 | | - tracking is already baked into the quad length the size was fitted to. */ |
| 671 | + /* Original mode with lines_coords: each line is placed at its detected quad |
| 672 | + with a geometry-derived font size. line-height 1 keeps the column/row no |
| 673 | + thicker than the font size; letter-spacing 0 because the print's tracking |
| 674 | + is already baked into the quad length the size was fitted to. */ |
673 | 675 | .textBox.perLine .ocr-line.positionedLine { |
674 | 676 | position: absolute; |
675 | 677 | line-height: 1; |
676 | 678 | letter-spacing: 0; |
677 | 679 | white-space: nowrap; |
678 | 680 | } |
679 | 681 |
|
680 | | - /* Layering contract for overlapping blocks (detector sometimes assigns a |
681 | | - column to the neighboring block, so boxes overlap): every box's white |
682 | | - panel must paint below every box's per-line text. The boxes stay |
683 | | - z-index:auto (no own stacking context — tree order still stacks smaller |
684 | | - boxes over bigger ones), while positioned line spans get a positive |
685 | | - z-index that lifts them above all panels in the page's context. The |
686 | | - whole-box panel is kept because it masks messy/angled print that |
687 | | - per-line strips cannot cover. */ |
688 | | - .textBox.perLine .ocr-line.positionedLine { |
689 | | - z-index: 1; |
690 | | - } |
691 | | -
|
692 | 682 | /* A quad that captured multiple print columns (base text + furigana): |
693 | 683 | the text flows inside the full quad bbox at the block's reference size, |
694 | 684 | wrapping into columns/rows instead of shrinking onto one line. */ |
|
0 commit comments