惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
GRAHAM CLULEY
T
Tenable Blog
Know Your Adversary
Know Your Adversary
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy International News Feed
S
Security Affairs
NISL@THU
NISL@THU
O
OpenAI News
Attack and Defense Labs
Attack and Defense Labs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Schneier on Security
Schneier on Security
S
SegmentFault 最新的问题
S
Schneier on Security
G
Google Developers Blog
V
V2EX
C
Check Point Blog
U
Unit 42
Google DeepMind News
Google DeepMind News
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
S
Secure Thoughts
博客园 - 司徒正美
Recorded Future
Recorded Future
P
Proofpoint News Feed
Spread Privacy
Spread Privacy
K
Kaspersky official blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
AI
AI
博客园 - 聂微东
N
News and Events Feed by Topic
SecWiki News
SecWiki News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
Project Zero
Project Zero
W
WeLiveSecurity
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Three Gaps, One Platform
Kemal Deniz · 2026-04-26 · via DEV Community

The terminology, perceptual, and accessibility gaps between typographers and developers — and where paragraf sits


§0 — Hook

A typographer says: "the colour is unbalanced." A developer opens the style sheet and adjusts the colors on the page. The paragraph is still wrong. Neither person made a mistake.

"Colour" in typesetting means the visual density of a paragraph (also called grey) — how evenly ink is distributed across the lines. It has nothing to do with hue. The developer heard the correct English word and acted on a reasonable interpretation. The typographer used the correct technical term and assumed it would be understood. The conversation failed before it began.

This is the first gap: terminology. Two disciplines developed precise vocabularies for the same domain, independently, and the words do not always map to each other.

The second gap is deeper. A typographer looks at a paragraph and perceives something wrong before they can name it — the trained eye reads texture, rhythm, and density as a unified impression. A developer looks at the same paragraph and sees output that matches the specification. The code is correct. The output is wrong. These are not contradictory statements. They describe two different instruments measuring the same object.

The third gap is structural. The tools that produce publication-quality typographic output are desktop applications and command-line systems. They are not callable from a Node.js function. They do not run in a CI pipeline. They do not return a PDF buffer from a single API call.

This article names all three gaps, maps the terminology where it overlaps, and describes where paragraf sits in relation to them.


§1 — The Terminology Gap

Both digital typesetting and software development have spent decades solving the problem of text on a page. They arrived at precise solutions — from different directions, with different tools, and with different names for what they found.

If you have spent years working with type, the terms on the left are familiar. If you have spent years writing code, the terms on the right are familiar. The intersection of the two is not very crowded.

This is not a translation from one language to a simpler one. It is a map between two equally precise vocabularies.

Typesetting Development Notes
Paragraph colour / grey Whitespace distribution How evenly ink is distributed across a paragraph. Tight lines and loose lines produce uneven grey — visible before you can name it.
Rivers Whitespace clustering Vertical gaps that form when loose lines stack. The eye catches them as white channels running through the paragraph.
Justified text Line-breaking algorithm Justification is the goal. The algorithm — greedy or Knuth-Plass — determines the quality of the result.
Leading Line height Distance between baselines. Named after the lead strips compositors placed between rows of metal type.
Optical margin alignment Margin protrusion Punctuation and soft glyph edges pushed slightly outside the column boundary so the margin reads as visually straight.

KP vs Greedy

Knuth-Plass (left) produces even paragraph grey with no rivers — spacing is distributed optimally across all lines simultaneously. Greedy (right) fills each line independently, producing uneven grey and visible rivers of white space.

Optical Margin Alignment

Optical margin alignment (top): punctuation protrudes slightly outside the column boundary, producing a visually straight margin edge. Without it (bottom), the margin reads as ragged even when mathematically flush.


§2 — The Perceptual Gap

The terminology gap is solvable with a shared reference. The perceptual gap is harder.

A typographer's judgment is trained over years of looking at printed pages — recognising rivers in justified text before knowing their name, feeling when leading is too tight before measuring it, seeing when a paragraph's colour is wrong before identifying which lines are causing it. This is not intuition. It is pattern recognition built from sustained exposure to a specific domain. It cannot be transferred as a specification.

A developer's judgment is trained differently — recognising when code is brittle, when an abstraction leaks, when a system will fail under load. These are also not intuitions. They are patterns learned from building and breaking systems. A developer looking at a paragraph of text has no trained apparatus for reading its typographic quality. The code produced correct output. That is the only signal available.

The inverse is equally true. A typographer looking at a codebase has no trained apparatus for reading its structural quality. The document looks correct on screen. That is the only signal available.

Neither gap represents a failure of intelligence or effort. They represent two disciplines that developed different perceptual instruments for different problems, and are now being asked to collaborate on the same artefact.

What changes this is not more training — it is a shared surface. When the typographer can adjust tolerance and see the paragraph grey change in real time, the parameter becomes a perceptual instrument. When the developer can see that the typographer's tolerance: 1.5 approval maps to a specific output quality, the visual judgment becomes a reusable specification. The gap does not close. But it becomes navigable.


§3 — The Accessibility Gap

InDesign is a desktop application. TeX is a command-line system. Both require installation, licensing or configuration, and specialist knowledge to operate. Neither is callable from a Node.js function. Neither runs in a CI pipeline. Neither returns a PDF buffer from a single API call.

This is not a criticism — both tools are mature, reliable, and used in production publishing worldwide. It is a statement about what they are: authoring environments designed for human operators, not pipeline components designed for programmatic integration.

The gap this creates is visible in how publishing automation projects get built. A catalog of ten thousand products needs a PDF for each one. A report needs to be generated on demand from live data. A personalised document needs to be assembled from a template and a data record at request time. These are engineering problems. The tools that produce acceptable typographic output are not designed for them. The tools designed for them do not produce acceptable typographic output.

paragraf is an attempt to occupy that gap: publication-quality typesetting as a Node.js library, callable from TypeScript, with no external processes and no GUI dependency. The same algorithms that production typesetting tools use — Knuth-Plass, OpenType shaping, optical margin alignment — running inside a standard npm install.

That is the claim. Not that paragraf matches the output quality of tools refined over decades. But that the algorithms are the same, the parameters are exposed, and the pipeline is programmable.

The pipeline side is paragraf's current focus. The typographer-facing side — a visual authoring environment built on the same engine — is studio, currently in design. That is the subject of a future article in this series.


§4 — What paragraf Implements

The terminology map is one thing. What paragraf actually exposes is another. This section shows the implementation — with the actual parameters, and with honesty about what is not yet there.

Paragraph colour / whitespace distribution

Controlled by tolerance and looseness in the paragraph composer. tolerance sets how much deviation from ideal spacing is acceptable before a line is considered bad. looseness nudges the algorithm toward fewer or more lines. Together they give the typographer direct control over the grey of a paragraph.

paragraf code

const { lines } = composer.compose({
  text: '...',
  font: { id: 'body', size: 11, weight: 400, style: 'normal', stretch: 'normal' },
  lineWidth: 396,
  tolerance: 2.0,
  looseness: 0,
  alignment: 'justified',
  language: 'en-us',
});

Enter fullscreen mode Exit fullscreen mode


Rivers

Rivers are the visual consequence of a greedy line-breaking algorithm — not a parameter to set, but a problem paragraf avoids by using Knuth-Plass. The algorithm considers all lines simultaneously rather than filling each line independently, which eliminates the whitespace clustering that produces rivers in justified text.


Justified text / line-breaking algorithm

paragraf implements Knuth-Plass with the full parameter set: tolerance, looseness, consecutive hyphen limit, and runt-line penalties. The demo runs Knuth-Plass and greedy side by side — the difference is visible immediately on any paragraph of justified prose.

paragraf code

const { lines } = composer.compose({
  text: '...',
  alignment: 'justified',
  tolerance: 2.0,
  consecutiveHyphenLimit: 2,
});

Enter fullscreen mode Exit fullscreen mode


Leading / line height

Set per style in the paragraf style system. Applied baseline to baseline, consistent with typesetting convention rather than CSS convention (which measures from the top of the line box).

paragraf code

const template = defineTemplate({
  styles: {
    body: {
      font: { family: 'LiberationSerif', size: 11 },
      alignment: 'justified',
      lineHeight: 16, // baseline to baseline, in points
    },
  },
});

Enter fullscreen mode Exit fullscreen mode


Optical margin alignment

Implemented as a two-pass recomposition. The first pass composes normally. The second pass identifies punctuation and soft glyph edges at line starts and ends, applies protrusion values, and recomposes affected lines. The result is a visually straight margin edge on justified text.

paragraf code

const { lines } = composer.compose({
  text: '...',
  alignment: 'justified',
  opticalMargins: true,
});

Enter fullscreen mode Exit fullscreen mode


What is not yet implemented:
Frame-level widow/orphan control, and PDF/X output are in progress. These affect press-ready output but not the typesetting parameters above.


§5 — Close

Three gaps. One platform pursuing all three.

The terminology gap is addressed by exposed, named parameters that map directly to typesetting concepts. The perceptual gap is navigated by making those parameters adjustable and their output immediately visible — so that a typographer's judgment and a developer's integration can operate on the same artefact. The accessibility gap is addressed by building the pipeline as a Node.js library rather than a desktop application or command-line system.

None of these gaps are fully closed. paragraf is pre-1.0, in active development, and honest about what is not yet implemented. What it offers at this stage is a surface — a place where typographic judgment and engineering decisions can meet, with a shared vocabulary for what they are doing.

The paragraf series continues when studio is ready to demonstrate. A parallel series on AI-assisted development starts now — the v0.1 documentation system is the first subject.

paragraf is open source. The repository, the live demo, and the article series are at github.com/kadetr/paragraf.