Ragged Blocks: Rendering Structured Text with Style
Sam Cohen, Ravi Chugh
摘要
Whether it be source code in a programming language, prose in natural language, or otherwise, text is highly structured. Currently, text visualizations are confined either to flat, line-based decorations, which can convey only limited information about textual structure, or nested boxes, which convey structure but often destroy the typographic layout of the underlying text. We hypothesize that the lack of rich styling options limits the kinds of information that are displayed alongside text, wherever it may be displayed.
In this paper, we show that it is possible to achieve arbitrarily nested decorations while minimally disturbing the underlying typographic layout. Specifically, we present a layout algorithm that generates ragged blocks, or rocks, which are rectilinear polygons that allow nested text to be compactly rendered even when styled with borders and padding. Our layout algorithm is evaluated on a benchmark suite comprising representative source code files in multiple programming languages. The (ragged block) layouts produced by our algorithm are substantially more compact than the (rectangular block) layouts produced by conventional techniques, when uniformly styling every element in the syntax tree with borders and padding.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
它引用的顶会 Paper11
- Penrose: from mathematical notation to beautiful diagramsKatherine Ye, Wode Ni, Max Krieger, Dor Ma'ayan 等SIGGRAPH 2020 · 被引用 53 次
- Ivie: Lightweight Anchored Explanations of Just-Generated CodeLitao Yan, Alyssa Hwang, Zhiyuan Wu, Andrew HeadCHI 2024 · 被引用 40 次
- Filling typed holes with live GUIsCyrus Omar, David Moon, Andrew Blinn, Ian Voysey 等PLDI 2021 · 被引用 35 次
- Textlets: Supporting Constraints and Consistency in Text DocumentsHan L. Han, Miguel A. Renom, Wendy E. Mackay, Michel Beaudouin-LafonCHI 2020 · 被引用 35 次
- Adding interactive visual syntax to textual codeLeif Andersen, Michael Ballantyne, Matthias FelleisenOOPSLA 2020 · 被引用 28 次
相关 Paper
- Code Style Sheets: CSS for CodeSam Cohen, Ravi ChughOOPSLA 2025 · 被引用 5 次
- RidgeBuilder: Interactive Authoring of Expressive Ridgeline PlotsShuhan Liu, Yangtian Liu, Junxin Li, Yanwei Huang 等CHI 2025 · 被引用 3 次
- HDLayout: Hierarchical and Directional Layout Planning for Arbitrary Shaped Visual Text GenerationTonghui Feng, Chunsheng Yan, Qianru Wang, Jiangtao Cui 等AAAI 2025
- Information Extraction from Visually Rich Documents using LLM-based Organization of Documents into Independent Textual SegmentsAniket Bhattacharyya, Anurag Tripathi, Ujjal Das, Archan Karmakar 等ACL 2025
- A Pretty Expressive PrinterSorawee Porncharoenwase, Justin Pombrio, Emina TorlakOOPSLA 2023
