搜索
查看: 17225|回复: 4

[资源分享] Lorem ipsum 是什么

[复制链接]
发表于 2013-4-20 19:45:37 | 显示全部楼层 |阅读模式
有一段文字,经常看到。

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

它被填充在页面效果的DEMO页上,比如下图。
bg2009041101.jpg

Wikipedia上的解释是,这只是一段用来测试排版效果的占位文字,没有实际的含义。据说,16世纪的时候就有人开始用了。当时的某个印刷工人,从古罗马政治家西塞罗的文章中,选了一段拉丁文,“Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit ”,进行了混排,就把它创造出来了。这句拉丁文的英译是“Neither is there anyone who loves grief itself since it is grief and thus wants to obtain it”,译成中文就是“无人爱苦,亦无人寻之欲之,乃因其苦……”(不知是谁的手笔,译得真漂亮啊。)
如果你需要用到填充文本,网上有自动生动器,可供使用。还有一个中文的乱文生成器,也很有意思。
========================
此外,在Microsoft Word中有一个函数,能够自动生成填充文本。
首先,键入 “=rand()”。
bg2009041105.jpg
然后,按一下回车,就出现了下面的结果。
bg2009041106.jpg
“那只敏捷的棕毛狐狸跃过那只懒狗。” 这句话是英语“The quick brown fox jumps over the lazy dog.”的翻译,26个字母都用到了,所以以前常被用来测试打字机的效果。
在office 2013中,是这样一段文字
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign.
Reading is easier, too, in the new Reading view. You can collapse parts of the document and focus on the text you want. If you need to stop reading before you reach the end, Word remembers where you left off - even on another device.

Word 2007中又新加了一个lorem()函数,可以生成正宗的lorem ipsum文本。
在文档中键入“=lorem()”。
bg2009041103.png
现在是按回车的时间。
bg2009041104.png
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.
Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci.
Aenean nec lorem. In porttitor. Donec laoreet nonummy augue.
Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy.

rand()和lorem()都带有两个可选的参数,分别表示需要生成的段落数和每段的句数。比如=lorem(6,20) ,表示生成一共6段,每段20句的文本。

回复

使用道具 举报

发表于 2013-7-23 18:03:54 | 显示全部楼层
帮帮顶顶!!
回复

使用道具 举报

联系我们(Contact)|手机版|萝卜头IT论坛 ( 苏ICP备15050961号-1 )

GMT+8, 2024-12-22 13:49 , Processed in 0.089037 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表