lorem-ipsum

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Lorem Ipsum Generator

Lorem Ipsum 生成器

Overview

概述

Generate lorem ipsum placeholder text using the bundled generator script. Always use the script to generate content rather than writing lorem ipsum directly.
Critical requirement: ALL text in the generated output must be lorem ipsum, including headings, bullet points, list items, table cells, and any other textual elements.
使用内置的生成器脚本生成Lorem Ipsum占位文本。请务必使用脚本生成内容,而非手动编写Lorem Ipsum。
关键要求:生成输出中的所有文本必须是Lorem Ipsum,包括标题、项目符号、列表项、表格单元格以及任何其他文本元素。

Generator Script

生成器脚本

Use
scripts/generate.py
to produce lorem ipsum content. The script handles all text generation to ensure consistent, authentic lorem ipsum output.
使用
scripts/generate.py
生成Lorem Ipsum内容。该脚本负责所有文本生成工作,确保输出的Lorem Ipsum内容一致且真实。

Basic Usage

基本用法

bash
undefined
bash
undefined

Generate 3 paragraphs (default)

生成3个段落(默认设置)

uv run scripts/generate.py
uv run scripts/generate.py

Generate 5 paragraphs with 4 sentences each

生成5个段落,每个段落包含4个句子

uv run scripts/generate.py --paragraphs 5 --sentences 4
uv run scripts/generate.py --paragraphs 5 --sentences 4

Generate approximately 500 words

生成约500个单词的内容

uv run scripts/generate.py --words 500
uv run scripts/generate.py --words 500

Generate exactly 1000 characters

生成恰好1000个字符的内容

uv run scripts/generate.py --characters 1000
uv run scripts/generate.py --characters 1000

Generate approximately 200 LLM tokens (~800 characters)

生成约200个LLM令牌(约800个字符)

uv run scripts/generate.py --tokens 200
uv run scripts/generate.py --tokens 200

Continuous text without paragraph breaks

生成无段落分隔的连续文本

uv run scripts/generate.py --paragraphs 4 --continuous
undefined
uv run scripts/generate.py --paragraphs 4 --continuous
undefined

Structured Content

结构化内容

bash
undefined
bash
undefined

3 sections with headings and 2 paragraphs each

生成3个带标题的章节,每个章节包含2个段落

uv run scripts/generate.py --headings 3 --paragraphs 6
uv run scripts/generate.py --headings 3 --paragraphs 6

4 sections with bullet points (5 bullets each)

生成4个带项目符号的章节,每个章节包含5个项目符号

uv run scripts/generate.py --headings 4 --bullets 5
uv run scripts/generate.py --headings 4 --bullets 5

Numbered lists instead of bullets

使用编号列表替代项目符号

uv run scripts/generate.py --headings 3 --bullets 6 --numbered
uv run scripts/generate.py --headings 3 --bullets 6 --numbered

Realistic mixed document with 5 sections (varied content types)

生成包含5个章节的真实混合文档(内容类型多样)

uv run scripts/generate.py --mixed 5

The `--mixed` option generates realistic documents with varied structure per section:
- Some sections have paragraphs only
- Some have bullet or numbered lists
- Some have subheadings (h3) with nested content
- Some combine paragraphs with lists
uv run scripts/generate.py --mixed 5

`--mixed` 选项会生成具有真实感的文档,每个章节的结构各不相同:
- 部分章节仅包含段落
- 部分章节包含项目符号或编号列表
- 部分章节包含子标题(h3)及嵌套内容
- 部分章节结合了段落与列表

Output Options

输出选项

bash
undefined
bash
undefined

Write to file

将内容写入文件

uv run scripts/generate.py --paragraphs 3 --output ~/Desktop/placeholder.txt
uv run scripts/generate.py --paragraphs 3 --output ~/Desktop/placeholder.txt

HTML format

生成HTML格式内容

uv run scripts/generate.py --headings 2 --format html --output page.html
uv run scripts/generate.py --headings 2 --format html --output page.html

Plain text (no markdown formatting)

生成纯文本(无Markdown格式)

uv run scripts/generate.py --format text
uv run scripts/generate.py --format text

Copy to clipboard

将内容复制到剪贴板

uv run scripts/generate.py --words 200 | pbcopy
undefined
uv run scripts/generate.py --words 200 | pbcopy
undefined

All Options

所有选项

OptionDescription
--paragraphs N
Number of paragraphs (default: 3)
--sentences N
Sentences per paragraph (default: 5)
--words N
Approximate total word count
--characters N
Exact character count (truncates to match)
--tokens N
Estimated LLM token count (~4 chars/token)
--continuous
Output without paragraph breaks
--headings N
Number of sections with headings
--bullets N
Bullet points per section
--numbered
Use numbered lists instead of bullets
--mixed N
Realistic document with N sections, varied content types
--output FILE
Write to file instead of stdout
--format FORMAT
Output format: text, markdown, html (default: markdown)
选项描述
--paragraphs N
段落数量(默认值:3)
--sentences N
每个段落的句子数量(默认值:5)
--words N
近似总单词数
--characters N
精确字符数(会截断内容以匹配)
--tokens N
估算的LLM令牌数(约4个字符对应1个令牌)
--continuous
输出无段落分隔的内容
--headings N
带标题的章节数量
--bullets N
每个章节的项目符号数量
--numbered
使用编号列表替代项目符号
--mixed N
生成包含N个章节的真实文档,内容类型多样
--output FILE
将内容写入文件而非输出到标准输出
--format FORMAT
输出格式:text、markdown、html(默认值:markdown)

Workflow

工作流程

  1. Interpret the user's request for length and structure
  2. Run
    scripts/generate.py
    with appropriate options
  3. If the user wants the output saved, use
    --output
    or redirect/pipe as needed
  4. If the user wants it in clipboard, pipe to
    pbcopy
  5. Display the result or confirm the file was written
  1. 解读用户对内容长度和结构的需求
  2. 使用合适的选项运行
    scripts/generate.py
  3. 如果用户希望保存输出,使用
    --output
    选项或重定向/管道符进行操作
  4. 如果用户希望将内容复制到剪贴板,使用管道符将输出传递给
    pbcopy
  5. 显示结果或确认文件已写入

Examples

示例

"Generate 3 paragraphs of lorem ipsum"
bash
uv run scripts/generate.py --paragraphs 3
"Create lorem ipsum with 3 headings and 2 paragraphs under each"
bash
uv run scripts/generate.py --headings 3 --paragraphs 6
"Give me a document with bullet points"
bash
uv run scripts/generate.py --headings 3 --bullets 5
"500 words of continuous lorem ipsum saved to ~/Desktop/placeholder.txt"
bash
uv run scripts/generate.py --words 500 --continuous --output ~/Desktop/placeholder.txt
"Lorem ipsum with numbered lists in HTML format"
bash
uv run scripts/generate.py --headings 4 --bullets 5 --numbered --format html
"Exactly 500 characters of lorem ipsum"
bash
uv run scripts/generate.py --characters 500
"About 100 tokens worth of lorem ipsum with headings"
bash
uv run scripts/generate.py --tokens 100 --headings 2
"A realistic document with mixed content"
bash
uv run scripts/generate.py --mixed 5
"生成3段Lorem Ipsum内容"
bash
uv run scripts/generate.py --paragraphs 3
"创建包含3个标题且每个标题下有2段内容的Lorem Ipsum"
bash
uv run scripts/generate.py --headings 3 --paragraphs 6
"给我一个带项目符号的文档"
bash
uv run scripts/generate.py --headings 3 --bullets 5
"生成500个单词的连续Lorem Ipsum并保存到~/Desktop/placeholder.txt"
bash
uv run scripts/generate.py --words 500 --continuous --output ~/Desktop/placeholder.txt
"生成带编号列表的HTML格式Lorem Ipsum"
bash
uv run scripts/generate.py --headings 4 --bullets 5 --numbered --format html
"生成恰好500个字符的Lorem Ipsum"
bash
uv run scripts/generate.py --characters 500
"生成约100个令牌且带标题的Lorem Ipsum"
bash
uv run scripts/generate.py --tokens 100 --headings 2
"生成包含混合内容的真实感文档"
bash
uv run scripts/generate.py --mixed 5