Lune

UIST2025顶会

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Filling typed holes with live GUIs 引用了 Adding interactive visual syntax to textual code
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper11

  1. Penrose: from mathematical notation to beautiful diagramsKatherine Ye, Wode Ni, Max Krieger, Dor Ma'ayan 等SIGGRAPH 2020 · 53 次引用
  2. Ivie: Lightweight Anchored Explanations of Just-Generated CodeLitao Yan, Alyssa Hwang, Zhiyuan Wu, Andrew HeadCHI 2024 · 40 次引用
  3. Filling typed holes with live GUIsCyrus Omar, David Moon, Andrew Blinn, Ian Voysey 等PLDI 2021 · 35 次引用
  4. Textlets: Supporting Constraints and Consistency in Text DocumentsHan L. Han, Miguel A. Renom, Wendy E. Mackay, Michel Beaudouin-LafonCHI 2020 · 35 次引用
  5. Adding interactive visual syntax to textual codeLeif Andersen, Michael Ballantyne, Matthias FelleisenOOPSLA 2020 · 28 次引用

相关 Paper

  1. Code Style Sheets: CSS for CodeSam Cohen, Ravi ChughOOPSLA 2025 · 5 次引用
  2. RidgeBuilder: Interactive Authoring of Expressive Ridgeline PlotsShuhan Liu, Yangtian Liu, Junxin Li, Yanwei Huang 等CHI 2025 · 3 次引用
  3. HDLayout: Hierarchical and Directional Layout Planning for Arbitrary Shaped Visual Text GenerationTonghui Feng, Chunsheng Yan, Qianru Wang, Jiangtao Cui 等AAAI 2025
  4. 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
  5. A Pretty Expressive PrinterSorawee Porncharoenwase, Justin Pombrio, Emina TorlakOOPSLA 2023
黄昏的海面,两侧是细线勾勒的悬崖