博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
matlab生成文本乱码_如何生成完全随机/乱码文本的段落
阅读量:2518 次
发布时间:2019-05-11

本文共 3442 字,大约阅读时间需要 11 分钟。

matlab生成文本乱码

matlab生成文本乱码

image

You probably already know about or perhaps tools such as , however what can end up happening is – despite the nature of the text – people still focus on the text and attempt to read it. When situations such as this happen, using completely random or gibberish text can come in handy.

您可能已经知道或诸如工具,但是尽管文本具有本质,但最终可能会发生的事情是人们仍然专注于文本并尝试阅读它。 当发生这种情况时,使用完全随机或乱码的文本可能会派上用场。

当Lorem Ipsum不够用时 (When Lorem Ipsum Isn’t Enough)

Wikipedia defines Lorum Ipsum’s common use as:

维基百科将Lorum Ipsum的常用用法定义为:

In publishing and graphic design, lorem ipsum is placeholder text (filler text) commonly used to demonstrate the graphics elements of a document or visual presentation, such as font, typography, and layout, by removing the distraction of meaningful content.

在发布和图形设计中,lorem ipsum是占位符文本(填充文本),通常用于通过消除有意义的内容的分散性来演示文档或视觉表示的图形元素,例如字体,字体和布局。

This works in a lot of cases, but sometimes you will have those who focus on the text (“hey, the text is in Latin”) and attempt to read it because, after all, the text is pronounceable. Using random word generators can yield the same results (“hey, that text doesn’t make any sense”). Obviously, this defeats the whole point of filler text.

这在很多情况下都有效,但是有时您会得到那些专注于文本的人(“嘿,文本是拉丁语”)并尝试阅读它,因为毕竟文本是可发音的。 使用随机单词生成器可以产生相同的结果(“嘿,该文本没有任何意义”)。 显然,这破坏了填充文本的重点。

So for cases like this, using completely random text to the point where it is just characters in paragraph form can be handy. One glance at the text and it is immediately obvious that the content is merely a placeholder.

因此,对于这种情况,使用完全随机的文本到段落形式的字符就很方便了。 乍一看文本,很明显内容只是一个占位符。

随机文本生成器工具 (Random Text Generator Tool)

The Random Text Generator tool is a slightly modified version of a batch script with the same name (both are available for download using the links at the bottom of the article) which for ease of anticipated/typical use.

随机文本生成器工具是具有相同名称的批处理脚本的稍作修改的版本(都可以使用文章底部的链接下载),该脚本 ,以便于预期/典型使用。

Default options are:

默认选项是:

  • Text which is 3 paragraphs

    3段文字
  • paragraphs between 5 and 8 sentences long

    5至8个句子之间的段落
  • sentences between 6 and 10 words long

    长度在6到10个单词之间的句子
  • words between 3 and 10 characters long

    长度在3到10个字符之间的单词

So by simply running the RandomText.exe file the output will open in Notepad and resemble something like the following:

因此,只需运行RandomText.exe文件,输出将在记事本中打开,类似于以下内容:

image

If you would like to override these settings, you would need to run the tool from the command line and specify the appropriate switches. The help information (available by running “RandomText /?” from the command line) displays the following information:

如果要覆盖这些设置,则需要从命令行运行该工具并指定适当的开关。 帮助信息(可通过从命令行运行“ RandomText /?”获得)显示以下信息:

image

For example, the following produces 10 random sentences using the default sentence and word length:

例如,以下使用默认句子和单词长度生成10个随机句子:

RandomText /T 10 /P 1 1

随机文本/ T 10 / P 1 1

image

This command produces a single paragraph with 20 sentences between 15 and 20 words long where a word is between 3 and 5 characters:

此命令生成一个单段,其中包含20个句子,长度在15到20个单词之间,其中一个单词在3到5个字符之间:

RandomText /T 1 /P 20 20 /S 15 20 /W 3 5

随机文本/ T 1 / P 20 20 / S 15 20 / W 3 5

image

结论 (Conclusion)

While a tool like this can seem a bit absurd, it definitely can have its place. Of course, the uses are not limited to mere placeholder text generation as pretty much anywhere you need to use garbage text, this tool can be of value.

尽管这样的工具看起来有些荒谬,但它绝对可以占有一席之地。 当然,用途不仅仅限于占位符文本生成,因为几乎在您需要使用垃圾文本的任何地方,此工具都很有价值。

下载链接 (Download Links)

(more command line oriented)

(更多面向命令行)

翻译自:

matlab生成文本乱码

转载地址:http://prywd.baihongyu.com/

你可能感兴趣的文章
Echart输出图形
查看>>
hMailServer搭建简单邮件系统
查看>>
从零开始学习jQuery
查看>>
Spring+SpringMVC+MyBatis深入学习及搭建(四)——MyBatis输入映射与输出映射
查看>>
opacity半透明兼容ie8。。。。ie8半透明
查看>>
CDOJ_24 八球胜负
查看>>
Alpha 冲刺 (7/10)
查看>>
一款jQuery打造的具有多功能切换的幻灯片特效
查看>>
SNMP从入门到开发:进阶篇
查看>>
@ServletComponentScan ,@ComponentScan,@Configuration 解析
查看>>
unity3d 射弹基础案例代码分析
查看>>
thinksns 分页数据
查看>>
os模块
查看>>
LINQ to SQL vs. NHibernate
查看>>
基于Angular5和WebAPI的增删改查(一)
查看>>
windows 10 & Office 2016 安装
查看>>
最短路径(SP)问题相关算法与模板
查看>>
js算法之最常用的排序
查看>>
Python——交互式图形编程
查看>>
经典排序——希尔排序
查看>>