@@ -1066,54 +1066,6 @@ \subsection{Permissions}
1066
1066
1067
1067
\subsection {Text }
1068
1068
1069
- \begin {frame }{It \textbf {is } important to select \textbf {good } text editor\ldots }
1070
- \begin {center }
1071
- \includegraphics [width=\textwidth -3cm]{real_programmers.png}
1072
- \end {center }
1073
- \begin {flushright }
1074
- \url {https://xkcd.com/378/}
1075
- \end {flushright }
1076
- \end {frame }
1077
-
1078
- \begin {frame }{Importance of good text editor}{Can your text editor\ldots ?}
1079
- \label {editors }
1080
- \begin {multicols }{2}
1081
- \begin {itemize }
1082
- \item Show syntax highlight
1083
- \item Show line numbers
1084
- \item Show space between brackets
1085
- \item Open any encoding and EOL
1086
- \item Fold source code
1087
- \item Show line breaks
1088
- \item Mark lines
1089
- \item Open multiple files
1090
- \item Advanced search and replace
1091
- \item Use regular expressions
1092
- \item Make projects, add notes
1093
- \item Use command line
1094
- \item Check spelling
1095
- \item Debug source code
1096
- \item And more\ldots
1097
- \end {itemize }
1098
- \end {multicols }
1099
- \begin {multicols }{4}
1100
- \begin {itemize }
1101
- \item \href {https://kate-editor.org/}{Kate}
1102
- \item \href {https://kde.org/applications/utilities/kwrite/}{KWrite}
1103
- \item \href {https://www.vim.org/}{Vim}
1104
- \item \href {https://en.wikipedia.org/wiki/Emacs}{GNU Emacs}
1105
- \item \href {https://www.geany.org/}{Geany}
1106
- \item \href {http://bluefish.openoffice.nl/}{Bluefish}
1107
- \item \href {https://wiki.gnome.org/Apps/Gedit}{Gedit}
1108
- \item \href {https://notepad-plus-plus.org/}{Notepad++}
1109
- \item \href {https://www.sublimetext.com/}{Sublime}
1110
- \item \href {https://atom.io/}{Atom}
1111
- \item \href {https://www.nano-editor.org/}{Nano}
1112
- \item And \href {https://en.wikipedia.org/wiki/List_of_text_editors}{more}\ldots
1113
- \end {itemize }
1114
- \end {multicols }
1115
- \end {frame }
1116
-
1117
1069
\begin {frame }{Text and text --- differences among operating systems}
1118
1070
\label {eolenc }
1119
1071
\begin {itemize }
@@ -1136,28 +1088,6 @@ \subsection{Text}
1136
1088
\end {itemize }
1137
1089
\end {frame }
1138
1090
1139
- \begin {frame }[fragile]{Converting the text}{Prevent bad display and weird errors when launching scripts}
1140
- \begin {bashcode }
1141
- unix2dos textfile # Convert text file from UNIX to Windows EOL
1142
- unix2mac textfile # Convert text file from UNIX to old Mac EOL
1143
- dos2unix textfile # Convert text file from Windows to UNIX EOL
1144
- mac2unix textfile # Convert text file from old Mac to UNIX EOL
1145
- unix2dos --help # More information about usage, include encoding
1146
- # Converts encoding of input file (ISO-8859-2) to outfile in UTF-8
1147
- iconv -f ISO-8859-2 -t UTF-8 infile.txt > outfile.txt
1148
- iconv -l # List of available encoding to convert
1149
- iconv --help # More information about usage
1150
- enca -h # See usage of another encoding tool
1151
- recode CP1250..UTF-8 textfile # Convert encoding from CP-1250 to UTF-8
1152
- recode ../CR-LF textfile # Convert EOL from UNIX to Windows
1153
- recode --help # More information about usage; recode is deprecated
1154
- \end {bashcode }
1155
- \begin {itemize }
1156
- \item macOS uses same encoding and EOL as Linux (and rest of UNIX world), so there are no problems with compatibility
1157
- \item Launching of bash script written on Windows on Linux/macOS will probably fail (because of different EOL)
1158
- \end {itemize }
1159
- \end {frame }
1160
-
1161
1091
\section {Command line }
1162
1092
1163
1093
\begin {frame }{Command line}
@@ -2477,6 +2407,76 @@ \section{Text}
2477
2407
\end {block }
2478
2408
\end {frame }
2479
2409
2410
+ \begin {frame }{It \textbf {is } important to select \textbf {good } text editor\ldots }
2411
+ \begin {center }
2412
+ \includegraphics [width=\textwidth -3cm]{real_programmers.png}
2413
+ \end {center }
2414
+ \begin {flushright }
2415
+ \url {https://xkcd.com/378/}
2416
+ \end {flushright }
2417
+ \end {frame }
2418
+
2419
+ \begin {frame }{Importance of good text editor}{Can your text editor\ldots ?}
2420
+ \label {editors }
2421
+ \begin {multicols }{2}
2422
+ \begin {itemize }
2423
+ \item Show syntax highlight
2424
+ \item Show line numbers
2425
+ \item Show space between brackets
2426
+ \item Open any encoding and EOL
2427
+ \item Fold source code
2428
+ \item Show line breaks
2429
+ \item Mark lines
2430
+ \item Open multiple files
2431
+ \item Advanced search and replace
2432
+ \item Use regular expressions
2433
+ \item Make projects, add notes
2434
+ \item Use command line
2435
+ \item Check spelling
2436
+ \item Debug source code
2437
+ \item And more\ldots
2438
+ \end {itemize }
2439
+ \end {multicols }
2440
+ \begin {multicols }{4}
2441
+ \begin {itemize }
2442
+ \item \href {https://kate-editor.org/}{Kate}
2443
+ \item \href {https://kde.org/applications/utilities/kwrite/}{KWrite}
2444
+ \item \href {https://www.vim.org/}{Vim}
2445
+ \item \href {https://en.wikipedia.org/wiki/Emacs}{GNU Emacs}
2446
+ \item \href {https://www.geany.org/}{Geany}
2447
+ \item \href {http://bluefish.openoffice.nl/}{Bluefish}
2448
+ \item \href {https://wiki.gnome.org/Apps/Gedit}{Gedit}
2449
+ \item \href {https://notepad-plus-plus.org/}{Notepad++}
2450
+ \item \href {https://www.sublimetext.com/}{Sublime}
2451
+ \item \href {https://atom.io/}{Atom}
2452
+ \item \href {https://www.nano-editor.org/}{Nano}
2453
+ \item And \href {https://en.wikipedia.org/wiki/List_of_text_editors}{more}\ldots
2454
+ \end {itemize }
2455
+ \end {multicols }
2456
+ \end {frame }
2457
+
2458
+ \begin {frame }[fragile]{Converting the text}{Prevent bad display and weird errors when launching scripts}
2459
+ \begin {bashcode }
2460
+ unix2dos textfile # Convert text file from UNIX to Windows EOL
2461
+ unix2mac textfile # Convert text file from UNIX to old Mac EOL
2462
+ dos2unix textfile # Convert text file from Windows to UNIX EOL
2463
+ mac2unix textfile # Convert text file from old Mac to UNIX EOL
2464
+ unix2dos --help # More information about usage, include encoding
2465
+ # Converts encoding of input file (ISO-8859-2) to outfile in UTF-8
2466
+ iconv -f ISO-8859-2 -t UTF-8 infile.txt > outfile.txt
2467
+ iconv -l # List of available encoding to convert
2468
+ iconv --help # More information about usage
2469
+ enca -h # See usage of another encoding tool
2470
+ recode CP1250..UTF-8 textfile # Convert encoding from CP-1250 to UTF-8
2471
+ recode ../CR-LF textfile # Convert EOL from UNIX to Windows
2472
+ recode --help # More information about usage; recode is deprecated
2473
+ \end {bashcode }
2474
+ \begin {itemize }
2475
+ \item macOS uses same encoding and EOL as Linux (and rest of UNIX world), so there are no problems with compatibility
2476
+ \item Launching of bash script written on Windows on Linux/macOS will probably fail (because of different EOL)
2477
+ \end {itemize }
2478
+ \end {frame }
2479
+
2480
2480
\subsection {Reading }
2481
2481
2482
2482
\begin {frame }[fragile]{Read text file}
0 commit comments