basic-group: updated files.

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@94 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
devitg 2018-11-11 11:00:42 +00:00
parent bac6ca7385
commit 6f9c9d0bf4
6 changed files with 51 additions and 36 deletions

View File

@ -3,8 +3,9 @@ layout: page
category-title: Basic commands
category-page: basic
tags: directory change navigate
author: Marinelli Alessandro
title: CD
author: Alessandro Marinelli
title: cd
previous-page: pages/cmd/basic/cd.html
next-page: pages/cmd/basic/ls.html
---

View File

@ -3,8 +3,8 @@ layout: page
category-title: Basic commands
category-page: basic
tags: directory list
author: Marinelli Alessandro
title: LS
author: Alessandro Marinelli
title: ls
previous-page: pages/cmd/basic/cd.html
---

View File

@ -5,6 +5,8 @@ category-page: basic
tags: manual
author: De Vita Gianmarco
title: man
previous-page: pages/cmd/basic/cd.html
next-page: pages/cmd/basic/ls.html
---
<p>The <code>man</code> tool allows you to explore the various utilities
of the Shell. To search for more information about a command, just write</p>

View File

@ -1,7 +1,10 @@
---
layout: page
author: De Vita Gianmarco
title: OPEN
category_title: Basic commands
category-page: basic
tags: open
author: Gianmarco De Vita
title: open
---
<p>You can open files and folder as new windows through the terminal.
The command is <code>open</code>. By writing the command open followed by the

View File

@ -1,7 +1,11 @@
---
layout: page
author: De Vita Gianmarco
category_title: Basic commands
category-page: basic
tags: Open the Shell
author: Gianmarco De Vita
title: Open the Shell
next-page: pages/cmd/basic/ls.html
---
<p>The tool that allows us to interact with the system with the shell is the terminal.
There are mainly two ways to access to the terminal on a MacOS system.</p>
@ -33,10 +37,10 @@ title: Open the Shell
<p> You can notice that the top lines in the window follow this structure:</p>
{% highlight ruby linenos %}
<pre>
Last login: Day Month 2 hh:mm:ss on console
Device-name:~ username$
{% endhighlight %}
</pre>
<p>The tilde (~) just before your username means that the current position in
which the terminal is working is the Home directory. The gray spot next to

View File

@ -1,15 +1,18 @@
---
layout: page
author: De Vita Gianmarco
title: SAY
category_title: Basic commands
category-page: basic
tags: say
author: Gianmarco De Vita
title: say
---
<p>You can convert text into audible speech just by writing the command
<code>say</code> followed by a string. This is possible thanks to the
Speech Synthesis manager.</p>
{% highlight ruby linenos %}
Device-name:Current-position username$ say string
{% endhighlight %}
<pre>
Device-name:Current-position username$ say string
</pre>
<p>Naturally, the wide presence of flags for this command allows you to use
this command for many different tasks. Notice that using more flag
@ -20,52 +23,54 @@ title: SAY
of the string, by the path of a text file, you will get as output a voice
reading the content of that file.</p>
{% highlight ruby linenos %}
<pre>
Device-name:Current-position username$ say -f path/text.txt
{% endhighlight %}
</pre>
<h3>Specify the reading voice</h3>
<p>By writing the flag <code>-v</code> followed by a person name and a string, you
can decide which voice should read the string.</p>
{% highlight ruby linenos %}
Current-position username$ say -v name string
{% endhighlight %}
<pre>
Device-name:Current-position username$ say -v name string
</pre>
<p><b>Notice.</b> Of course, you're not expected to know every possible voice,
so, by writing "?" as argument of the command (including also the flag -v),
you will get a list of all the available voices.</p>
{% highlight ruby linenos %}
Current-position username$ say -v ?
{% endhighlight %}
<pre>
Device-name:Current-position username$ say -v ?
</pre>
<h3>Specify the Speech Rate</h3>
<p>By writing the flag <code>-r</code> followed by a rate and then by a
string, you can decide the reading speed in words per minute.</p>
{% highlight ruby linenos %}
Current-position username$ say -r rate string
{% endhighlight %}
<pre>
Device-name:Current-position username$ say -r rate string
</pre>
<h3>Store the output in an audible file</h3>
<p>You can save the result of the command in an audible file. To do that,
you have just to write after the command the flag <code>-o</code> followed
by the path/name of the output file and then the string that has to be read.</p>
{% highlight ruby linenos %}
Current-position username$ say -o path/audiofile.*format string
{% endhighlight %}
<pre>
Device-name:Current-position username$ say -o path/audiofile.*format string
</pre>
<h3>Exercise - Flags combinations</h3>
<h3>Try by yourself - Flags combinations</h3>
<p>As said above, you can use more flags in the same command, once you know
well them. See the examples below and try to guess the output. You can
copy these commands into your terminal to verify your answers.</p>
copy these commands into your terminal to verify your answers. Naturally,
you have to create the text files if they don't exist (with some text
inside), to make the work.</p>
{% highlight ruby linenos %}
Current-position username$ say -v Alex -f hello_world.txt
{% endhighlight %}
<pre>
Device-name:Current-position username$ say -v Alex -f hello_world.txt
</pre>
{% highlight ruby linenos %}
Current-position username$ say -o hi.aac -f hello_world.txt
{% endhighlight %}
<pre>
Device-name:Current-position username$ say -o hi.aac -f hello_world.txt
</pre>