Skip to content

Spelling #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 70 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
5f8e7b3
spelling: activating
jsoref Mar 3, 2025
dbf7bf5
spelling: additionally
jsoref Mar 3, 2025
14c7449
spelling: aggressive
jsoref Mar 3, 2025
8de898b
spelling: ajax
jsoref Mar 19, 2025
008f8f5
spelling: algorithm
jsoref Mar 3, 2025
640a886
spelling: all
jsoref Feb 23, 2025
4b3c9c4
spelling: applied
jsoref Mar 3, 2025
125fedc
spelling: as the
jsoref Feb 23, 2025
7a3b30e
spelling: at that
jsoref Feb 23, 2025
16b9ba1
spelling: blockquote
jsoref Mar 20, 2025
2ded551
spelling: case-insensitive
jsoref Feb 23, 2025
b66308d
spelling: circumstances
jsoref Mar 3, 2025
ac29843
spelling: classes
jsoref Mar 3, 2025
4b54f87
spelling: columns
jsoref Mar 3, 2025
c6b0c99
spelling: compatibility
jsoref Mar 3, 2025
89c786b
spelling: concatenation
jsoref Mar 3, 2025
734a5a8
spelling: datatables
jsoref Mar 19, 2025
98dfda9
spelling: delimited
jsoref Mar 3, 2025
80cb19a
spelling: descriptions
jsoref Mar 3, 2025
01deee8
spelling: diacritical
jsoref Mar 19, 2025
3f5bf5a
spelling: disable
jsoref Mar 19, 2025
6267f9c
spelling: display
jsoref Feb 23, 2025
a8b1b6e
spelling: entire
jsoref Mar 19, 2025
fcad881
spelling: fine-grained
jsoref Feb 23, 2025
c20b846
spelling: finite
jsoref Mar 19, 2025
71d6829
spelling: formatters
jsoref Mar 19, 2025
4ef8ea6
spelling: from https
jsoref Mar 19, 2025
5d03d14
spelling: from
jsoref Mar 19, 2025
a710453
spelling: handler
jsoref Mar 19, 2025
59817e5
spelling: id
jsoref Feb 23, 2025
f6e173f
spelling: if this
jsoref Feb 23, 2025
546342a
spelling: ilen
jsoref Mar 19, 2025
311b127
spelling: in sync
jsoref Mar 19, 2025
fec7599
spelling: indication
jsoref Mar 19, 2025
955f458
spelling: iterator
jsoref Mar 19, 2025
6123f51
spelling: its
jsoref Feb 23, 2025
9d83407
spelling: javascript
jsoref Feb 23, 2025
f18480a
spelling: length can
jsoref Mar 19, 2025
2767c88
spelling: max
jsoref Mar 19, 2025
9e6ce90
spelling: middle-aged
jsoref Mar 20, 2025
eb734b8
spelling: modifier
jsoref Mar 19, 2025
1925486
spelling: multi
jsoref Mar 19, 2025
51a2739
spelling: multiple
jsoref Mar 19, 2025
7e10320
spelling: nonexistent
jsoref Feb 23, 2025
b825367
spelling: object
jsoref Feb 23, 2025
7c91fb3
spelling: pagelength
jsoref Mar 20, 2025
36dfb11
spelling: paragraphs
jsoref Mar 19, 2025
e0a878e
spelling: prepopulated
jsoref Feb 23, 2025
2ec29d1
spelling: programmatically
jsoref Mar 19, 2025
cfc0415
spelling: propagates
jsoref Mar 19, 2025
fe95bae
spelling: regexes
jsoref Mar 19, 2025
a364cdc
spelling: safe
jsoref Mar 19, 2025
b845df5
spelling: savecallback
jsoref Mar 20, 2025
41b7ac4
spelling: search
jsoref Feb 23, 2025
928d862
spelling: searching
jsoref Mar 19, 2025
e6badba
spelling: separator
jsoref Mar 19, 2025
101a8e6
spelling: stating
jsoref Mar 19, 2025
799ebf5
spelling: struct
jsoref Mar 19, 2025
1599264
spelling: structure
jsoref Mar 19, 2025
2b044c4
spelling: substantially
jsoref Mar 19, 2025
25cf477
spelling: tables
jsoref Mar 19, 2025
f031cdb
spelling: that
jsoref Feb 23, 2025
4213e64
spelling: the
jsoref Feb 23, 2025
b489475
spelling: there are
jsoref Feb 23, 2025
b35676d
spelling: typescript
jsoref Feb 23, 2025
8b4fd9c
spelling: unbalanced
jsoref Mar 19, 2025
712531c
spelling: unnecessarily
jsoref Mar 19, 2025
ed4f5ea
spelling: utilise
jsoref Mar 19, 2025
46f3d2c
spelling: visible
jsoref Mar 19, 2025
1626c93
spelling: whether or not the filtering should be case-insensitive
jsoref Feb 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"first_name": "Cedric",
"last_name": "Kelly",
"age": "22",
"position": "Senior Javascript Developer",
"position": "Senior JavaScript Developer",
"salary": "433060",
"start_date": "2012-03-29",
"extn": "6224",
Expand Down Expand Up @@ -109,7 +109,7 @@
"first_name": "Colleen",
"last_name": "Hurst",
"age": "39",
"position": "Javascript Developer",
"position": "JavaScript Developer",
"salary": "205500",
"start_date": "2009-09-15",
"extn": "2360",
Expand Down Expand Up @@ -642,7 +642,7 @@
"first_name": "Jennifer",
"last_name": "Acosta",
"age": "43",
"position": "Junior Javascript Developer",
"position": "Junior JavaScript Developer",
"salary": "75650",
"start_date": "2013-02-01",
"extn": "3431",
Expand Down Expand Up @@ -720,7 +720,7 @@
"first_name": "Michael",
"last_name": "Bruce",
"age": "29",
"position": "Javascript Developer",
"position": "JavaScript Developer",
"salary": "183000",
"start_date": "2011-06-27",
"extn": "5384",
Expand Down
2 changes: 1 addition & 1 deletion build/examples-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#
# Can be used on both examples directories and docs. Each has
# slightly different processing - the docs is more aggrasive
# slightly different processing - the docs is more aggressive
# in updating code style.
#
# Call with the path to the directory with the xml files you
Expand Down
38 changes: 19 additions & 19 deletions build/examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
function multiple ( $value, $fn )
{
if ( is_array( $value ) ) {
for ( $i=0, $ien=count($value) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($value) ; $i<$iLen ; $i++ ) {
$fn( $value[$i] );
}
}
Expand Down Expand Up @@ -660,7 +660,7 @@ function sql_files ( $out_dir )
);

$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = "( ".
$json[$i]['id'].", ".
"'".$json[$i]['first_name']."', ".
Expand Down Expand Up @@ -771,7 +771,7 @@ function sql_files ( $out_dir )
VALUES
EOD;
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = "( ".
$json[$i]['id'].", ".
"'".$json[$i]['first_name']."', ".
Expand Down Expand Up @@ -823,7 +823,7 @@ function sql_files ( $out_dir )
VALUES
EOD;
$insert = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$insert[] = "\t\t( ".
$json[$i]['id'].", ".
"'".$json[$i]['first_name']."', ".
Expand Down Expand Up @@ -882,7 +882,7 @@ function sql_files ( $out_dir )

EOD;

for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$str .= "INSERT INTO \"datatables_demo\" ".
"( \"first_name\", \"last_name\", \"age\", \"position\", \"salary\", \"start_date\", \"extn\", \"email\", \"office\", \"seq\" ) ".
"VALUES ";
Expand Down Expand Up @@ -926,7 +926,7 @@ function sql_files ( $out_dir )

EOD;

for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$str .= "INSERT INTO \"datatables_demo\" ".
"( \"first_name\", \"last_name\", \"age\", \"position\", \"salary\", \"start_date\", \"extn\", \"email\", \"office\", \"seq\" ) ".
"VALUES ";
Expand Down Expand Up @@ -971,7 +971,7 @@ function json_files ( $out_dir )

// Plain arrays
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = [
$json[$i]['first_name'].' '.$json[$i]['last_name'],
$json[$i]['position'],
Expand All @@ -995,7 +995,7 @@ function json_files ( $out_dir )

// Arrays with sub objects
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = [
$json[$i]['first_name'].' '.$json[$i]['last_name'],
'hr' => [
Expand All @@ -1017,7 +1017,7 @@ function json_files ( $out_dir )

// Simple object base case
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = [
'id' => $json[$i]['id'],
'name' => $json[$i]['first_name'] .' '. $json[$i]['last_name'],
Expand All @@ -1042,7 +1042,7 @@ function json_files ( $out_dir )

// Objects with sub objects and arrays
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = [
'name' => $json[$i]['first_name'].' '.$json[$i]['last_name'],
'hr' => [
Expand All @@ -1064,7 +1064,7 @@ function json_files ( $out_dir )

// Salary without formatting
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$country = $json[$i]['office'];
if ( $country === 'Singapore' ) {
$country = 'Argentina';
Expand All @@ -1086,7 +1086,7 @@ function json_files ( $out_dir )

// Objects with sub objects
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$out[] = [
'name' => [ $json[$i]['last_name'], $json[$i]['first_name'] ],
'hr' => [
Expand All @@ -1106,7 +1106,7 @@ function json_files ( $out_dir )

// Orthogonal date data
$out = [];
for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) {
$t = strtotime( $json[$i]['start_date'] );
$out[] = [
'name' => $json[$i]['first_name'] .' '. $json[$i]['last_name'],
Expand Down Expand Up @@ -1240,7 +1240,7 @@ function tidy_structure ( &$examples, $order )

function dump_structure( &$examples, $pre="" )
{
for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) {
$example = $examples[$i];

if ( $example['type'] === 'dir' ) {
Expand All @@ -1256,7 +1256,7 @@ function dump_structure( &$examples, $pre="" )

function process_structure ( &$examples, $toc='', $cat='' )
{
for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) {
$example = $examples[$i];

if ( $example['type'] === 'dir' ) {
Expand Down Expand Up @@ -1305,7 +1305,7 @@ function build_toc ( $examples, $example, $category )
// Use all examples
$out = '';

for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) {
if ( $examples[$i]['type'] === 'dir' && $examples[$i]['name'] !== 'private' ) {
$out .= build_toc_category( $examples[$i], $example );
}
Expand All @@ -1321,7 +1321,7 @@ function build_toc_category ( $category, $current=null )
$inCategory = false;
$out = '';

for ( $i=0, $ien=count($category['files']) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($category['files']) ; $i<$iLen ; $i++ ) {
$example = $category['files'][$i];

if ( $example['name'] !== 'index' ) {
Expand Down Expand Up @@ -1360,7 +1360,7 @@ function build_toc_category ( $category, $current=null )

function has_files ( $files )
{
for ( $i=0, $ien=count($files) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($files) ; $i<$iLen ; $i++ ) {
if ( $files[$i]['type'] === 'file' ) {
return true;
}
Expand All @@ -1376,7 +1376,7 @@ function has_files ( $files )

function toc_structure ( &$examples )
{
for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) {
$group = &$examples[$i];

if ( $group['type'] === 'dir' ) {
Expand Down
2 changes: 1 addition & 1 deletion build/include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function css_compress {
echo_msg "CSS compressing $FILE.css"
$SASS --no-charset --stop-on-error --style compressed $DIR/$FILE.css > $DIR/$FILE.min.css

# compressed style will add a UTF8 BOM which messes with concatination - remove it.
# compressed style will add a UTF8 BOM which messes with concatenation - remove it.
sed -i '1s/^\xEF\xBB\xBF//' $DIR/$FILE.min.css

echo_msg " File size: $(ls -l $DIR/$FILE.min.css | awk -F" " '{ print $5 }')"
Expand Down
24 changes: 12 additions & 12 deletions build/lib/DT_Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function build_table ( $type, $idIn=null )
$a = explode('|', $type);
$t = '';

for ( $i=0, $ien=count($a) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($a) ; $i<$iLen ; $i++ ) {
$t .= $this->build_table( $a[$i] );
}

Expand Down Expand Up @@ -453,7 +453,7 @@ public function build_table ( $type, $idIn=null )
}
else {
$cells = '';
for ( $i=0, $ien=count($columns) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($columns) ; $i<$iLen ; $i++ ) {
$cells .= '<th>'.$this->_column( $columns[$i], 'title' ).'</th>';
}
$t .= '<thead>';
Expand All @@ -479,7 +479,7 @@ public function build_table ( $type, $idIn=null )
}

$cells = '';
for ( $i=0, $ien=count($columns) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($columns) ; $i<$iLen ; $i++ ) {
$cell = $this->_column( $columns[$i], 'data', $this->_data[$j] );

if ( strpos( $cell, '<td' ) === 0 ) {
Expand Down Expand Up @@ -508,7 +508,7 @@ public function build_table ( $type, $idIn=null )
}
else {
$cells = '';
for ( $i=0, $ien=count($columns) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($columns) ; $i<$iLen ; $i++ ) {
$cells .= '<th>'.$this->_column( $columns[$i], 'title' ).'</th>';
}
$t .= '<tfoot>';
Expand Down Expand Up @@ -558,7 +558,7 @@ private function _format_libs ( $type )
$out = array();
$libs = $this->_libs[ $type ];

for ( $i=0, $ien=count($libs) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($libs) ; $i<$iLen ; $i++ ) {
$file = $libs[$i]; // needs a path

if ( strpos($file, '//') !== 0 &&
Expand Down Expand Up @@ -608,7 +608,7 @@ private function _resolve_xml_libs ( $framework, $type, $libs )
if ( isset( $lib['lib'] ) ) {
$split_attr = explode( ' ', (string)$lib['lib'] );

for ( $i=0, $ien=count($split_attr) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($split_attr) ; $i<$iLen ; $i++ ) {
$a[] = $split_attr[$i];
$this->_xml_libs[ $type ][] = $split_attr[$i];
}
Expand All @@ -624,7 +624,7 @@ private function _resolve_libs ( $framework, $type, $libs )
$exampleLibs = &$this->_libs[ $type ];
$srcLibs = DT_Example::$lookup_libraries[ $type ];

for ( $i=0, $ien=count($libs) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($libs) ; $i<$iLen ; $i++ ) {
$lib = $libs[$i];

if ( strpos($lib, '/') === 0 || strpos($lib, '.') === 0 ) {
Expand Down Expand Up @@ -681,17 +681,17 @@ private function _resolve_framework_lib ( $framework, $type, $lib )
'jquery' :
'dataTables';

// Always include the core Javascript file.
// Always include the core JavaScript file.
$out[] = $path.'/js/'.$jsBaseFilename.'.'.$filename.$min.'.js';

// Possibly include a framework Javascript file. If the framework is
// Possibly include a framework JavaScript file. If the framework is
// DataTables, then there will be no override JS file.
if ( $framework !== 'dataTables' && $component['framework']['js'] ) {
$out[] = $path.'/js/'.$filename.'.'.$framework.$min.'.js';
}
}
else if ( $type === 'css' ) {
// Possibly include a framework Javascript file.
// Possibly include a framework JavaScript file.
if ( $component['framework']['css'] ) {
$out[] = $path.'/css/'.$filename.'.'.$framework.$min.'.css';
}
Expand Down Expand Up @@ -949,7 +949,7 @@ private function _libs_for_js () {
<tr class="even">
<td>Cedric</td>
<td>Kelly</td>
<td>Senior Javascript Developer</td>
<td>Senior JavaScript Developer</td>
<td>Edinburgh</td>
<td>29th Mar 12</td>
<td>$433,060</td>
Expand Down Expand Up @@ -1010,7 +1010,7 @@ function ( $type, $row ) {
return '<span class="young">'.$row['age'].'</span>';
}
else if ( $row['age'] < 55 ) {
return '<span class="middleaged">'.$row['age'].'</span>';
return '<span class="middle-aged">'.$row['age'].'</span>';
}
return '<span class="old">'.$row['age'].'</span>';
},
Expand Down
10 changes: 5 additions & 5 deletions build/lib/DT_Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
* paths)
*/

function DT_Markdown($text, $default_claases=array(), $truncateWhiteSpace=false){
function DT_Markdown($text, $default_classes=array(), $truncateWhiteSpace=false){
if ( $truncateWhiteSpace ) {
$text = DT_Markdown_Parser::truncateWhiteSpace( $text );
}

$parser = new DT_Markdown_Parser($default_claases);
$parser = new DT_Markdown_Parser($default_classes);
return $parser->transform($text);
}

Expand All @@ -45,7 +45,7 @@ static function truncateWhiteSpace ( $str )

// Remove the same amount of white space for each line
if ( $match && count($match) ) {
for ( $i=0, $ien=count($a) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($a) ; $i<$iLen ; $i++ ) {
$a[$i] = preg_replace( '/'.$match[0].'/', '', $a[$i], 1 );
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@ function _docLink ( $software, $type, $item, $html )
$a = explode('|', $item);
$s = array();

for ( $i=0, $ien=count($a) ; $i<$ien ; $i++ ) {
for ( $i=0, $iLen=count($a) ; $i<$iLen ; $i++ ) {
$s[] = self::_docLink( $software, $type, $a[$i],
htmlspecialchars(trim($a[$i]), ENT_NOQUOTES)
);
Expand Down Expand Up @@ -210,7 +210,7 @@ function _docLink ( $software, $type, $item, $html )
break;

case 'js': // JS type
$lang = 'Javascript';
$lang = 'JavaScript';
break;

default:
Expand Down
Loading